/* Responsive Design System - Additive Mobile-First Approach */

/* Only add responsive overrides, don't change desktop styles */

/* Base - All devices */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
    margin: 0;
    padding: 0;
}

/* Container margin fix */
.container {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Fix right margin issue */
.hero, .about, .stats-section, .flow, .contact-section, .register, .footer {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Mobile Navigation Styles - Only for mobile */
@media (max-width: 768px) {
    /* Header mobile adjustments */
    .nav {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    /* Mobile menu styles */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        width: 24px;
        height: 18px;
        justify-content: space-between;
        z-index: 1002;
    }
    
    .mobile-menu .menu-line {
        width: 100%;
        height: 2px;
        background: var(--dark-red);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu.active .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu.active .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hide desktop navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(27, 23, 23, 0.2);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1rem 1.2rem;
        border-bottom: 1px solid rgba(27, 23, 23, 0.1);
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .nav-links a:not(.cta-button):hover {
        background: var(--cream);
        padding-left: 1.8rem;
    }
    
    .nav-links a:not(.cta-button)::after {
        display: none;
    }
    
    .cta-button {
        margin-top: 1.5rem !important;
        align-self: center !important;
        width: fit-content !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Hero mobile adjustments */
    .hero {
        padding: 100px 0 50px;
        background-attachment: scroll !important;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .title-main {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Countdown mobile */
    .countdown-timer {
        gap: 0.8rem;
        max-width: 100%;
    }
    
    .time-unit {
        padding: 1rem 0.3rem;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    /* Hero stats mobile */
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        padding: 0.8rem 0.5rem;
        min-width: auto;
        flex: 1;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* About section mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    /* Stats section mobile */
    .stats-section {
        padding: 4rem 0;
    }
    
    .stats-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        text-align: center !important;
        grid-template-columns: none !important;
    }
    
    .big-stat {
        order: 1 !important;
        margin-bottom: 2rem;
        width: 100% !important;
        display: block !important;
    }
    
    .big-number {
        font-size: clamp(3rem, 12vw, 5rem) !important;
        line-height: 1 !important;
        display: block !important;
    }
    
    .big-label {
        font-size: 1.2rem !important;
        margin-top: 0.8rem !important;
        letter-spacing: 1px !important;
        display: block !important;
    }
    
    .currency {
        position: static !important;
        display: inline !important;
        font-size: clamp(2rem, 8vw, 3rem) !important;
        margin-right: 0.5rem !important;
        top: auto !important;
        left: auto !important;
    }
    
    .stats-list {
        order: 2 !important;
        gap: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .stats-list .stat-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1.5rem !important;
        background: rgba(237, 235, 221, 0.1) !important;
        border-radius: 15px !important;
        gap: 0.5rem !important;
        border: 1px solid rgba(237, 235, 221, 0.2) !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .stats-list .stat-item:hover {
        transform: translateY(-3px) !important;
        background: rgba(237, 235, 221, 0.15) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    }
    
    .stats-list .stat-item .number {
        font-size: 2rem !important;
        font-weight: 800 !important;
        color: var(--white) !important;
        line-height: 1 !important;
        display: block !important;
    }
    
    .stats-list .stat-item .label {
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        margin-top: 0.3rem !important;
        display: block !important;
    }
    
    /* Flow Timeline Mobile - Vertical Layout */
    .flow {
        padding: 4rem 0;
    }
    
    .flow-timeline {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .timeline-line {
        left: 30px;
        width: 3px;
        transform: none;
        background: linear-gradient(180deg, var(--dark-red) 0%, rgba(27, 23, 23, 0.2) 100%);
    }
    
    .step {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 3rem;
        padding-left: 4.5rem;
        position: relative;
    }
    
    .step:nth-child(even) {
        flex-direction: row;
    }
    
    .step-icon {
        position: absolute;
        left: 15px;
        top: 0;
        width: 50px;
        height: 50px;
        transform: none;
        background: var(--dark-red);
        border: 3px solid var(--white);
        box-shadow: 0 5px 15px rgba(99, 0, 0, 0.3);
    }
    
    .step-icon i {
        color: var(--white);
        font-size: 1.3rem;
    }
    
    .step-content {
        width: 100%;
        padding: 1.5rem;
        margin: 0;
        text-align: left;
        border-radius: 15px;
        background: var(--white);
        box-shadow: 0 10px 30px rgba(27, 23, 23, 0.1);
        border: 2px solid var(--light-red);
    }
    
    .step:nth-child(odd) .step-content,
    .step:nth-child(even) .step-content {
        margin: 0;
        text-align: left;
    }
    
    .step-number {
        background: var(--dark-red);
        color: var(--white);
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 1rem;
        border-radius: 15px;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        color: var(--dark-red);
        font-weight: 700;
    }
    
    .step-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--dark-gray);
        opacity: 0.9;
    }
    
    /* Remove hover effects on mobile */
    .step-content:hover {
        transform: none;
    }
    
    /* Register/CTA Section Mobile */
    .register {
        padding: 4rem 0;
        overflow: hidden;
    }
    
    .register-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .register-text {
        order: 1;
    }
    
    .register-text h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .register-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .urgency-banner {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 25px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .register-card {
        order: 2;
        max-width: 100%;
        padding: 2rem 1.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
    }
    
    .register-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .price-display {
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .currency {
        font-size: 1.2rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .per-team {
        font-size: 0.9rem;
    }
    
    .register-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 25px;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .guarantee {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }

    /* Stats Section Landscape */
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
        align-items: center;
    }
    
    .big-stat {
        order: 1;
    }
    
    .stats-list {
        order: 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stats-list .stat-item {
        padding: 1rem;
        text-align: center;
    }
    
    .stats-list .stat-item .number {
        font-size: 1.8rem;
    }
    
    .stats-list .stat-item .label {
        font-size: 0.8rem;
    }
    
    /* Flow Timeline Landscape */
    .flow {
        padding: 2rem 0;
    }
    
    .step {
        margin-bottom: 2rem;
    }
    
    .step-content {
        padding: 1rem;
    }
    
    .step-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Small mobile - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .time-unit {
        padding: 0.8rem 0.2rem;
    }
    
    .time-value {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.6rem 0.3rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .register-card {
        padding: 1.5rem 1rem;
    }
    
    /* Register Section Small Mobile */
    .register {
        padding: 3rem 0;
    }
    
    .register-content {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .register-text h2 {
        font-size: 1.8rem;
    }
    
    .register-text p {
        font-size: 0.95rem;
    }
    
    .urgency-banner {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .register-card {
        padding: 1.5rem 1rem;
        max-width: 300px;
    }
    
    .register-card h3 {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .currency {
        font-size: 1.1rem;
    }
    
    .per-team {
        font-size: 0.85rem;
    }
    
    .register-cta {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .guarantee {
        font-size: 0.8rem;
    }

    /* Fix any margin issues */
    .hero-content-box,
    .section,
    .container,
    main {
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    /* Ensure no horizontal overflow */
    * {
        max-width: 100%;
    }

    /* Fix specific margin issues */
    body, html {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
}

/* Ultra Small Mobile - 375px and below */
@media (max-width: 375px) {
    /* Stats Section Ultra Small - Force Mobile Layout */
    .stats-section {
        padding: 2.5rem 0 !important;
    }
    
    .container {
        padding: 0 0.5rem !important;
    }
    
    .stats-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .big-number {
        font-size: clamp(2rem, 18vw, 3.5rem) !important;
    }
    
    .big-label {
        font-size: 0.9rem !important;
    }
    
    .currency {
        font-size: clamp(1.2rem, 12vw, 2rem) !important;
    }
    
    .stats-list .stat-item {
        padding: 0.8rem !important;
    }
    
    .stats-list .stat-item .number {
        font-size: 1.5rem !important;
    }
    
    .stats-list .stat-item .label {
        font-size: 0.75rem !important;
    }
}

/* Tablet - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        gap: 3rem;
    }
    
    .register-content {
        grid-template-columns: 1fr 350px;
        gap: 3rem;
    }
    
    /* Register Section Tablet */
    .register {
        padding: 6rem 0;
    }
    
    .register-content {
        grid-template-columns: 1fr 350px;
        gap: 3rem;
        align-items: center;
    }
    
    .register-text h2 {
        font-size: 2.8rem;
    }
    
    .register-text p {
        font-size: 1.1rem;
    }
    
    .register-card {
        padding: 2.5rem 2rem;
        max-width: 350px;
    }
    
    .price {
        font-size: 2.8rem;
    }
    
    .register-cta {
        padding: 1.1rem 2.2rem;
        font-size: 1.05rem;
    }
}

/* Large screens - maintain existing styles */
@media (min-width: 1025px) {
    /* Don't override any desktop styles */
    .mobile-menu {
        display: none;
    }
    
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        gap: 2.5rem;
        box-shadow: none;
        overflow: visible;
    }
    
    .nav-links a {
        width: auto;
        padding: 0.5rem 0;
        border-bottom: none;
    }
    
    .nav-links a:not(.cta-button):hover {
        background: transparent;
        padding-left: 0;
    }
    
    .nav-links a:not(.cta-button)::after {
        display: block;
    }
    
    .cta-button {
        margin-top: 0 !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Ensure desktop stats work properly */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .big-stat {
        text-align: center;
    }
    
    .stats-list {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .stats-list .stat-item {
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 1.5rem;
        background: rgba(237, 235, 221, 0.1);
        border-radius: var(--border-radius);
        backdrop-filter: blur(10px);
    }
    
    /* Desktop flow timeline */
    .flow-timeline {
        max-width: 1000px;
    }
    
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
    }
    
    .step {
        flex-direction: row;
        margin-bottom: 4rem;
    }
    
    .step:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .step-icon {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 80px;
    }
    
    .step-content {
        width: 45%;
        padding: 2.5rem;
    }
    
    /* Desktop Register Section */
    .register {
        padding: 8rem 0;
    }
    
    .register-content {
        grid-template-columns: 1fr 400px;
        gap: 4rem;
        align-items: center;
    }
    
    .register-text {
        text-align: left;
    }
    
    .register-card {
        text-align: center;
        max-width: 400px;
        padding: 3rem;
    }
    
    .urgency-banner {
        justify-content: flex-start;
    }
}

/* Landscape mobile optimization */
@media (max-width: 812px) and (orientation: landscape) {
    /* Register Section Landscape */
    .register {
        padding: 2rem 0;
    }
    
    .register-content {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
        align-items: center;
        text-align: left;
    }
    
    .register-text h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .register-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .urgency-banner {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        justify-content: flex-start;
    }
    
    .register-card {
        padding: 1.5rem;
        max-width: 300px;
    }
    
    .register-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .register-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Enhanced mobile responsive for register animation */
@media (max-width: 768px) {
    /* Add staggered animation for mobile register section */
    .register-text {
        animation: slideInLeft 0.8s ease-out 0.2s both;
    }
    
    .register-card {
        animation: slideInRight 0.8s ease-out 0.4s both;
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Ensure proper spacing and alignment across all devices */
.register-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.register-content {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Fix any margin issues */
.register .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--dark-red);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu,
    .hero-actions,
    .register-cta,
    .contact-submit-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
