/* ===== GLOBAL RESPONSIVE RULES ===== */
@media (max-width: 1200px) {

    /* Adjustments for large tablets and small laptops */
    .hero h1 {
        font-size: 48px;
    }

    .services-container,
    .case-study-container {
        gap: 20px;
    }

    .about-container {
        gap: 40px;
    }
}

@media (max-width: 992px) {

    /* Tablet landscape adjustments */
    header {
        padding: 20px 30px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .service-card {
        width: 45%;
    }

    .affiliate-card {
        flex: 0 0 calc(25% - 15px);
        /* 4 cards per row */
    }
}

@media (max-width: 768px) {

    /* Tablet portrait adjustments */
    /* Navigation */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 100;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        z-index: 90;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .cta-button {
        display: none;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
        padding: 0 20px;
    }

    /* Services */
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 80%;
        margin-bottom: 20px;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        max-width: 100%;
    }

    /* Affiliate Videos */
    .affiliate-card {
        flex: 0 0 calc(33.333% - 13.333px);
        /* 3 cards per row */
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
    }

    .footer-logo,
    .footer-links,
    .footer-contact,
    .footer-social {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {

    /* Mobile adjustments */
    header {
        padding: 15px 20px;
    }

    .logo img {
        height: 60px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
        padding: 0 15px;
    }

    .hero-button {
        padding: 15px 25px;
        font-size: 16px;
    }

    /* Services */
    .service-card {
        width: 90%;
        padding: 30px 20px;
    }

    /* Case Studies */
    .case-study-container {
        grid-template-columns: 1fr;
    }

    /* Affiliate Videos */
    .affiliate-card {
        flex: 0 0 calc(50% - 10px);
        /* 2 cards per row */
    }

    .affiliate-content h2 {
        font-size: 40px;
    }

    /* Contact Form */
    .contact-form {
        padding: 30px 20px;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 48px;
    }

    .cta-book-button {
        padding: 15px 40px;
        font-size: 18px;
    }
}

@media (max-width: 400px) {

    /* Small mobile devices */
    .hero h1 {
        font-size: 24px;
    }

    .services h2,
    .about h2,
    .clients h2,
    .case-study h2,
    .affiliate-content h2,
    .contact h2 {
        font-size: 32px;
    }

    .affiliate-card {
        flex: 0 0 100%;
        /* 1 card per row */
    }

    .marquee-item {
        font-size: 24px;
        padding: 10px 20px;
    }
}

/* ===== SPECIAL COMPONENT ADJUSTMENTS ===== */
/* Navigation for Mobile */
@media (max-width: 768px) {
    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Marquee Animation Adjustment for Mobile */
@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 15s;
    }

    .marquee-item {
        font-size: 24px;
        padding: 10px 20px;
    }
}

/* Video Aspect Ratio Adjustment */
.video-wrapper {
    position: relative;
    padding-bottom: 177.78%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.affiliate-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Form Input Sizing */
@media (max-width: 576px) {

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .submit-button {
        padding: 12px;
        font-size: 16px;
    }
}

/* Footer Text Sizing */
@media (max-width: 576px) {

    .footer-links h3,
    .footer-contact h3,
    .footer-social h3 {
        font-size: 20px;
    }

    .footer-links ul li a,
    .footer-contact p {
        font-size: 14px;
    }
}

/* Particle Canvas Sizing */
@media (max-width: 768px) {

    #particle-canvas,
    #affiliate-particles,
    #cta-particles {
        display: none;
        /* Disable on mobile for performance */
    }
}

/* ===== MOBILE-SPECIFIC FIXES (Below 768px) ===== */
@media (max-width: 768px) {

    /* 1. About Us Image Fix */
    .about-image img {
        height: 300px !important;
        /* Reduced from 550px */
        object-position: center;
    }

    /* 2. About Us Text Fix */
    .about-text {
        padding: 0 15px;
    }

    .about-text h3 {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }

    .about-text h4 {
        font-size: 20px !important;
    }

    .about-text p {
        font-size: 15px !important;
        line-height: 1.6;
    }

    /* 3. Clients Section Fix */
    .clients-container {
        flex-direction: column !important;
        padding: 0 15px !important;
    }

    .clients-text {
        margin-bottom: 30px;
        text-align: center;
    }

    .clients-text h2 {
        font-size: 32px !important;
    }

    .clients-text p {
        font-size: 15px !important;
    }

    .clients-marquee {
        margin-top: 20px;
        width: 100% !important;
    }

    .marquee-item {
        font-size: 18px !important;
        padding: 8px 15px !important;
        margin: 0 10px !important;
    }

    /* 4. Case Studies Cards Fix */
    .case-study-card {
        max-width: 90% !important;
        margin: 0 auto 25px !important;
    }

    .case-study-image img {
        height: 180px !important;
        /* Reduced from 250px */
    }

    .case-study-content h3 {
        font-size: 24px !important;
    }

    .stat-item .stat-value {
        font-size: 20px !important;
    }

    /* 6. Contact Section Fix */
    .contact-form {
        margin: 0 auto !important;
        width: 90% !important;
        padding: 25px !important;
    }

    .starting-price {
        position: static !important;
        margin: 0 auto 20px !important;
        width: fit-content !important;
    }

    /* 7. CTA Section Fix */
    .cta-content {
        padding: 30px 20px !important;
    }

    .cta-content h2 {
        font-size: 36px !important !important;
        line-height: 1.2;
    }

    .cta-book-button {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
}

/* Extra Small Mobile Fixes (Below 400px) */
@media (max-width: 400px) {

    /* About Us */
    .about-image img {
        height: 250px !important;
    }

    /* Clients */
    .marquee-item {
        font-size: 16px !important;
        padding: 6px 12px !important;
    }

    /* Case Studies */
    .case-study-image img {
        height: 150px !important;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 28px !important;
    }
}

/* ===== HAMBURGER MENU FIXES ===== */
.hamburger {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Move CTA button inside mobile menu */
    .nav-links.active .mobile-cta {
        display: block !important;
        margin-top: 30px;
    }

    .mobile-cta button {
        background: #ff6f00;
        color: white;
        padding: 12px 25px;
        border-radius: 30px;
        font-weight: 600;
    }
}

/* ===== MOBILE HEADER & HAMBURGER FINAL FIXES ===== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px !important;
        justify-content: space-between !important;
    }

    .logo img {
        height: 50px !important;
        /* Reduced logo size */
        width: auto !important;
    }

    .hamburger {
        margin-left: auto;
        /* Pushes to far right */
        margin-right: 0;
    }

    /* Close menu when clicking anywhere */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Full width */
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
    }

    /* Space between logo and hamburger */
    .logo {
        flex: 1;
    }
}

/* Add this to your responsive.css */
.nav-links {
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important;
}    