/* ====================
   RESPONSIVE DESIGN
   ==================== */

/* Extra Large Screens - 4K and above */
@media (min-width: 2560px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .cta-title {
        font-size: 4.5rem;
    }
}

/* Large Screens - Desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navigation adjustments */
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    /* Hero section adjustments */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .floating-cards .floating-card {
        display: none; /* Hide floating cards on smaller screens for performance */
    }
    
    /* Section title adjustments */
    .section-title {
        font-size: 2.5rem;
    }
    
    /* FTMO cards adjustment */
    .ftmo-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    
    /* Correct order for mobile: left, center, right */
    .ftmo-card.card-left {
        order: 1;
    }
    
    .ftmo-card.card-center {
        order: 2;
        transform: none;
    }
    
    .ftmo-card.card-right {
        order: 3;
    }
    
    .ftmo-card.featured-card {
        transform: none;
    }
    
    /* Features grid adjustment */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Results grid adjustment */
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Pricing cards adjustment */
    .pricing-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
    
    /* Testimonials grid adjustment */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* CTA title adjustment */
    .cta-title {
        font-size: 3rem;
    }
}

/* Medium Screens - Tablet */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }
    
    /* Navigation - Mobile menu */
    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: auto;
        width: 100%;
        transform: translateY(0) !important;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 0 1.5rem;
        padding-top: 0;
        gap: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--glass-border);
        z-index: 998;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        top: 0;
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
        padding: 1.5rem;
        padding-top: 75px;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-actions {
        display: none;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
        position: relative;
        z-index: 1001;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 80px;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    /* Perfect mobile button styling */
    .btn-large,
    .hero-buttons .btn-large {
        width: auto !important;
        max-width: none !important;
        min-width: 200px !important;
        padding: 0.85rem 1.8rem !important;
        font-size: 0.95rem !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: nowrap;
        margin: 0 auto;
        text-align: center;
    }
    
    .btn-large .btn-icon {
        margin-right: 0.4rem;
    }
    
    .trust-line {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trust-separator {
        display: none;
    }
    
    /* Section adjustments */
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Risk warning adjustments */
    .risk-warning-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    /* FTMO process adjustments */
    .process-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step:not(:last-child)::after {
        content: '↓';
        right: auto;
        top: auto;
        bottom: -0.75rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Features grid adjustments */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    /* Results adjustments */
    .main-result {
        padding: 2rem 1.5rem;
    }
    
    .main-result .result-number {
        font-size: 4rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .result-item {
        padding: 1.5rem 1rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    /* Pricing adjustments */
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .card-price .price {
        font-size: 2.5rem;
    }
    
    /* Pricing card buttons - perfect mobile */
    .pricing-card .btn-primary,
    .pricing-card .btn-whatsapp {
        width: auto !important;
        max-width: none !important;
        min-width: 200px !important;
        padding: 0.85rem 1.8rem !important;
        font-size: 0.95rem !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto;
        white-space: nowrap;
    }
    
    .pricing-card .btn-icon {
        margin-right: 0.4rem;
    }
    
    /* Guarantee box adjustments */
    .guarantee-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    /* Testimonials adjustments */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* FAQ adjustments */
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1.5rem 1.5rem;
    }
    
    /* CTA adjustments */
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary,
    .cta-buttons .btn-large {
        width: auto !important;
        max-width: none !important;
        min-width: 200px !important;
        padding: 0.85rem 1.8rem !important;
        font-size: 0.95rem !important;
        white-space: nowrap;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto;
    }
    
    .cta-buttons .btn-icon {
        margin-right: 0.4rem;
    }
    
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* ====================
       UNIVERSAL MOBILE BUTTON FIX - PROFESSIONAL UI/UX
       ==================== */
    
    /* All buttons on mobile - consistent, clean, professional */
    .btn-primary,
    .btn-secondary,
    .btn-whatsapp,
    a.btn-primary,
    a.btn-secondary,
    a.btn-whatsapp {
        min-width: 200px !important;
        max-width: none !important;
        width: auto !important;
        padding: 0.85rem 1.8rem !important;
        font-size: 0.95rem !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        white-space: nowrap;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        line-height: 1.4;
    }
    
    /* Icon spacing */
    .btn-icon {
        font-size: 1em;
        display: inline-block;
    }
    
    /* Button containers */
    .hero-buttons,
    .cta-buttons,
    .pricing-card,
    .pre-features-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Pre-features CTA button - perfect mobile */
    .pre-features-cta {
        margin-top: -1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .pre-features-cta .btn-primary,
    .pre-features-cta .btn-large {
        width: auto !important;
        max-width: none !important;
        min-width: 200px !important;
        padding: 0.85rem 1.8rem !important;
        font-size: 0.95rem !important;
        margin: 0;
        display: inline-flex !important;
        align-items: center;
        justify-content: center !important;
        white-space: nowrap;
    }
    
    .pre-features-cta .btn-icon {
        margin-right: 0.4rem;
    }
    
    .trust-badge {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-info {
        align-items: center;
    }
    
    /* Social links adjustments */
    .social-icons {
        justify-content: center;
    }
    
    /* Navigation link styling for mobile */
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(139, 92, 246, 0.1);
        color: var(--primary-purple);
    }
    
    .nav-menu li:last-child .nav-link {
        border-bottom: none;
        margin-bottom: 1.5rem;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100vh;
    }
}

/* Small Screens - Mobile (iPhone SE, Small devices) */
@media (max-width: 480px) {
    /* Extra compact buttons for very small screens */
    .btn-primary,
    .btn-secondary,
    .btn-whatsapp,
    .btn-large,
    a.btn-primary,
    a.btn-secondary,
    a.btn-whatsapp {
        min-width: 180px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    .container {
        padding: 0 1rem;
    }
    
    /* Further reduce spacing */
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
    }
    
    /* Navigation adjustments */
    .navbar {
        position: fixed;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-menu {
        padding: 0 1rem;
        padding-top: 0;
    }
    
    .nav-menu.active {
        padding: 1rem;
        padding-top: 70px;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        font-size: 0.95rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 70px;
        min-height: 100vh;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .title-line {
        margin-bottom: 0.25rem;
    }
    
    .subtitle-main {
        font-size: 1rem;
    }
    
    .subtitle-emphasis {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
    
    /* Section adjustments */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Risk warning adjustments */
    .warning-icon {
        font-size: 1.5rem;
    }
    
    .warning-text h3 {
        font-size: 1.1rem;
    }
    
    .warning-text p {
        font-size: 0.85rem;
    }
    
    /* FTMO cards adjustments */
    .ftmo-card {
        padding: 1.5rem;
    }
    
    .ftmo-card h3 {
        font-size: 1.1rem;
    }
    
    /* Features adjustments */
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
    }
    
    /* Results adjustments */
    .main-result .result-number {
        font-size: 3.5rem;
    }
    
    .main-result .result-label {
        font-size: 1.2rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-icon {
        font-size: 2rem;
    }
    
    .result-value {
        font-size: 1.8rem;
    }
    
    /* Pricing adjustments */
    .card-price .price {
        font-size: 2rem;
    }
    
    .feature {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    /* Testimonials adjustments */
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-content p::before {
        font-size: 3rem;
        top: -0.5rem;
        left: -0.5rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* CTA adjustments */
    .cta-title {
        font-size: 2rem;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
    }
    
    /* Footer adjustments */
    .footer-section {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
    
    .footer-description,
    .contact-item,
    .support-badge {
        font-size: 0.85rem;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-secondary,
    .btn-whatsapp {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }
    
    .btn-large {
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
    }
}

/* Extra Small Screens */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .main-result .result-number {
        font-size: 3rem;
    }
    
    .card-price .price {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .result-icon {
        font-size: 1.8rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-item {
        flex-direction: column;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High Contrast and Accessibility */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.15);
        --glass-border: rgba(255, 255, 255, 0.4);
        --text-secondary: #F1F5F9;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax {
        transform: none !important;
    }
    
    .floating-card {
        animation: none !important;
    }
    
    .orb {
        animation: none !important;
    }
    
    .particle {
        animation: none !important;
    }

    /* Floating Navigation Mobile */
    .floating-nav {
        right: 1rem;
        gap: 0.6rem;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

/* Print Styles */
@media print {
    .loading-screen,
    .scroll-progress,
    .custom-cursor,
    #particles-background,
    .gradient-orbs,
    .navbar,
    .floating-cards,
    .btn-primary,
    .btn-secondary,
    .btn-whatsapp {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .section-title,
    .hero-title,
    .cta-title {
        color: black !important;
    }
}