/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ======================================== */

/* Breakpoints:
   - Mobile: 320px - 767px
   - Tablet: 768px - 1024px
   - Desktop: 1025px+
*/

/* ========================================
   TABLET & BELOW (1024px and below)
   ======================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Reduce section padding */
    .section {
        padding: 10rem 3rem;
    }

    /* Work Section */
    .selected-work-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* About Section */
    .about-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Testimonials */
    .testimonials-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Services Section - Single Column for Medium Devices */
    .services-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-showcase-preview {
        height: auto;
        min-height: 300px;
        padding-bottom: 2rem;
        background: transparent;
        border-top: none;
        align-items: flex-start;
        overflow: visible;
    }

    .service-showcase-preview .brand-identity-showcase,
    .service-showcase-preview .graphic-design-showcase,
    .service-showcase-preview .uiux-design-showcase,
    .service-showcase-preview .copywriting-showcase,
    .service-showcase-preview .web-design-showcase,
    .service-showcase-preview .product-dev-showcase {
        transform: scale(0.85) !important;
    }

    /* Hide Accordion - Card design works better and is more consistent */
    .services-accordion {
        display: none !important;
    }
}

/* ========================================
   TABLET & MOBILE (768px and below)
   ======================================== */
@media (max-width: 768px) {
    /* Global Section Adjustments */
    .section {
        padding: 8rem 2rem;
    }

    /* Disable Variable Proximity Hover Effects on Mobile */
    .char,
    .menu-char {
        pointer-events: none !important;
        font-variation-settings: 'wght' 400 !important;
    }

    /* Disable all mouse follow effects on mobile */
    .cursor-follower,
    .cursor-preview,
    .dog-cursor-image,
    .service-hover-image,
    #splash-cursor-container,
    #pixel-trail-container {
        display: none !important;
    }

    /* Disable glow effects on mobile */
    .work-featured-card::after,
    .about-card::after,
    .testimonials-slide::after {
        display: none !important;
    }

    /* Disable hover transforms on mobile */
    .work-item img,
    .work-featured-card,
    .about-card,
    .testimonials-slide {
        transform: none !important;
    }

    /* ========================================
       MOBILE FULLSCREEN MENU - COMPLETE REDESIGN
       ======================================== */

    /* Simplify Menu Background */
    .fullscreen-menu {
        background: #0a0a0a !important;
    }

    /* Hide Desktop Menu on Mobile */
    .menu-desktop {
        display: none !important;
    }

    /* Show Mobile Menu on Mobile */
    .menu-mobile {
        display: flex !important;
    }

    /* Hide Desktop Menu Elements */
    .menu-bg-panel,
    .menu-submenu-section {
        display: none !important;
    }

    /* Close Button */
    .menu-close {
        position: fixed !important;
        top: 1.5rem !important;
        right: 2rem !important;
        transform: none !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        height: 44px !important;
        width: 44px !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .fullscreen-menu.active .menu-close {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .close-icon {
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .close-line {
        width: 24px !important;
        height: 2px !important;
        background: var(--text-white) !important;
    }

    .close-text {
        display: none !important;
    }

    /* Mobile Menu Content - Centered Layout */
    .menu-mobile {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem 4rem 2rem !important;
        height: 100vh;
        overflow-y: auto;
    }

    .menu-mobile .menu-main-section {
        flex: none;
        width: 100%;
        max-width: 500px;
        display: flex;
        justify-content: center;
    }

    .menu-mobile .menu-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Mobile Menu Links - Shorter, Centered */
    .menu-mobile .menu-link {
        font-size: 1.5rem !important;
        font-weight: 500 !important;
        padding: 0.875rem 2rem !important;
        text-align: center;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.3s ease;
        opacity: 0.7;
    }

    .menu-mobile .menu-link:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-mobile .menu-link:active {
        opacity: 1;
        background: rgba(255, 255, 255, 0.02);
    }

    /* Mobile Menu Entrance Animations */
    .fullscreen-menu.active .menu-mobile .menu-link {
        animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
    }

    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(1) { animation-delay: 0.05s; }
    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(2) { animation-delay: 0.08s; }
    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(3) { animation-delay: 0.11s; }
    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(4) { animation-delay: 0.14s; }
    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(5) { animation-delay: 0.17s; }
    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(6) { animation-delay: 0.20s; }
    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(7) { animation-delay: 0.23s; }
    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(8) { animation-delay: 0.26s; }
    .fullscreen-menu.active .menu-mobile .menu-link:nth-child(9) { animation-delay: 0.29s; }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Mobile Menu Exit Animation */
    .fullscreen-menu.exiting .menu-mobile .menu-link {
        animation: slideOutDown 0.25s ease forwards;
    }

    @keyframes slideOutDown {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(15px);
        }
    }

    /* Hero Section - Mobile Only */
    .hero {
        flex-direction: column;
        padding: 8rem 2rem 6rem;
        min-height: auto;
        gap: 2rem;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 10;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 10;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .outline-button {
        width: 100%;
        justify-content: center;
    }

    /* Move meta information under hero body text */
    .hero-meta {
        position: relative !important;
        justify-content: center;
        left: auto;
        bottom: auto;
        top: auto;
        margin-top: 2rem;
        width: 100%;
        display: flex;
        text-align: center;
        gap: 2rem;
        z-index: 10;
    }

    .meta-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .meta-item-available {
        flex-direction: row !important;
        gap: 0.5rem;
    }

    .meta-item-available .meta-status-dot {
        position: static !important;
        margin: 0 !important;
    }

    .meta-divider {
        height: 30px;
    }

    /* Vertical Carousel - Background with blur on mobile */
    .vertical-carousel {
        display: block !important;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        max-width: 100% !important;
        height: 100%;
        transform: none !important;
        opacity: 0.08;
        filter: blur(8px);
        z-index: 0 !important;
        pointer-events: none;
        overflow: hidden;
    }

    .vertical-carousel .carousel-track {
        width: 100% !important;
    }

    .vertical-carousel .carousel-card {
        width: 100% !important;
    }

    /* Navigation - Mobile Only */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 2rem;
        height: 70px;
        z-index: 1000;
    }

    .nav-logo {
        position: static;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .logo-image {
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-right {
        position: static;
        display: flex;
        align-items: center;
    }

    /* Hide hamburger when menu is open on mobile */
    .hamburger.active {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Center SAP button with scroll-to-top on right */
    .nav-left {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 1rem;
        z-index: 1000;
    }

    .nav-cta {
        display: flex !important;
        order: 1;
        white-space: nowrap;
        font-size: 0.8rem !important;
    }

    .scroll-to-top {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
        border-radius: 50% !important;
        order: 2;
    }

    /* Sale Banner - Full width under nav */
    .sale-banner {
        position: fixed;
        top: 70px;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        transform: none !important;
        font-size: 0.7rem;
        padding: 0.65rem 1rem;
        gap: 0.5rem;
        z-index: 999;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* Mobile Submenu - Always Visible */
    .menu-submenu-container {
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 0 0.75rem 0;
        margin: 0;
        max-height: none;
        overflow: visible;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
    }

    .menu-submenu {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        box-shadow: none;
        margin: 0;
        max-width: 100%;
        opacity: 1;
        transform: translateY(0);
    }

    .menu-submenu-link {
        font-size: clamp(0.95rem, 3vw, 1.1rem) !important;
        font-weight: 400 !important;
        padding: 1rem 2rem !important;
        text-align: left;
        border-radius: 0;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
        transition: all 0.3s ease;
        opacity: 0.6;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        word-spacing: 999px;
        line-height: 1.4;
    }

    .menu-submenu-link::before {
        display: none !important;
    }

    .menu-submenu-link:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
    }

    .menu-submenu-link:nth-last-child(-n+2) {
        border-bottom: none !important;
    }

    .menu-submenu-link:active {
        background: transparent !important;
        color: var(--accent-color);
        opacity: 1;
    }

    /* Work Section */
    .work {
        padding: 8rem 2rem;
    }

    .work-container {
        padding: 0;
    }

    .selected-work-grid {
        gap: 2.5rem;
        display: flex;
        flex-direction: column;
    }

    .work-featured-card {
        padding: 0;
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .work-featured-card:hover {
        transform: none;
        padding: 0;
    }

    .work-card-image {
        width: 100%;
        aspect-ratio: 16/10;
        overflow: hidden;
    }

    .work-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .work-card-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1.5rem 1.5rem 0 1.5rem;
    }

    .work-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        white-space: nowrap;
    }

    /* Show only first 2 badges on mobile */
    .work-badge:nth-child(n+3) {
        display: none;
    }

    .work-card-info {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .work-card-text h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .work-card-text p {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    /* Work Footer */
    .work-footer {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
        align-items: stretch;
    }

    .work-footer-text {
        text-align: center;
        font-size: 0.95rem;
        opacity: 0.8;
    }

    .work-footer .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    /* About Section */
    .about {
        padding: 8rem 2rem;
    }

    .about-card {
        padding: 2rem;
    }

    .about-card p {
        font-size: 1rem;
    }

    .about-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    /* Services Section */
    .services {
        padding: 8rem 2rem;
    }

    /* Hide the hover image container on mobile */
    .service-hover-image {
        display: none !important;
    }

    /* Mobile Services Layout - Single Column Cards */
    .services-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-item {
        height: auto;
        min-height: 420px;
        pointer-events: auto;
    }

    .service-content {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        min-height: 120px;
    }

    .service-title {
        font-size: 1.375rem !important;
        font-weight: 600;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .service-showcase-preview {
        height: auto;
        min-height: 240px;
        padding-bottom: 0;
        background: transparent;
        border-top: none;
        align-items: flex-start;
        overflow: visible;
    }

    .service-showcase-preview .graphic-design-showcase,
    .service-showcase-preview .uiux-design-showcase,
    .service-showcase-preview .brand-identity-showcase,
    .service-showcase-preview .copywriting-showcase,
    .service-showcase-preview .web-design-showcase,
    .service-showcase-preview .product-dev-showcase {
        transform: scale(0.65) !important;
    }

    /* Remove hover effects on mobile */
    .service-item:hover {
        transform: none;
    }

    .service-item:hover .brand-identity-showcase,
    .service-item:hover .graphic-design-showcase,
    .service-item:hover .uiux-design-showcase,
    .service-item:hover .copywriting-showcase,
    .service-item:hover .web-design-showcase,
    .service-item:hover .product-dev-showcase {
        transform: scale(0.65) !important;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 8rem 0;
        overflow: visible;
        pointer-events: auto;
    }

    .testimonials-content {
        padding: 0 2rem;
    }

    .testimonials-columns {
        flex-direction: column;
        gap: 1.5rem;
    }

    .testimonials-column {
        text-align: left;
    }

    .testimonials-column p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.8);
    }

    /* Hide desktop testimonials on mobile */
    .testimonials-slider-container {
        display: none !important;
    }

    /* Show mobile testimonials */
    .testimonials-slider-container-mobile {
        display: block !important;
        width: 100vw !important;
        margin-left: -2rem !important;
        margin-top: 3rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 0 2rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .testimonials-slider-container-mobile::-webkit-scrollbar {
        display: none;
    }

    .testimonials-slider-track-mobile {
        display: flex;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }

    .testimonials-slide-mobile {
        flex: 0 0 280px;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        padding: 1.75rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        scroll-snap-align: center;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .testimonial-stars-mobile {
        display: flex;
        gap: 0.25rem;
        color: rgba(255, 255, 255, 0.4);
        font-size: 1rem;
    }

    .testimonial-text-mobile {
        font-size: 0.9rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        flex: 1;
    }

    .testimonial-footer-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .testimonial-user-mobile {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .testimonial-company-logo-mobile {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 1rem;
    }

    .testimonial-user-info-mobile {
        display: flex;
        flex-direction: column;
    }

    .testimonial-user-name-mobile {
        font-size: 0.9rem;
        font-weight: 600;
        color: #fff;
    }

    .testimonial-company-name-mobile {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .testimonial-arrow-mobile {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
    }

    /* Contact Section */
    .contact {
        padding: 8rem 2rem;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .outline-button {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 2rem;
    }

    /* Section Titles */
    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

/* ========================================
   MOBILE (480px and below)
   ======================================== */
@media (max-width: 480px) {
    /* Global Adjustments */
    .section {
        padding: 6rem 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-meta {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .meta-divider {
        display: none;
    }

    /* Navigation */
    .nav-logo {
        left: 1.5rem;
    }

    .logo-image {
        height: 28px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav-left {
        right: 1.5rem;
    }

    .menu-icon {
        width: 32px;
        height: 32px;
    }

    /* Sale Banner */
    .sale-banner {
        width: 95%;
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }

    /* Work Section */
    .work {
        padding: 6rem 1.5rem;
    }

    .work-card-text h3 {
        font-size: 1.25rem;
    }

    .work-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }

    /* About Section */
    .about {
        padding: 6rem 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-card p {
        font-size: 0.9rem;
    }

    /* Services Section */
    .services {
        padding: 6rem 1.5rem;
    }

    .service-item {
        padding: 0;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    /* Menu - Smaller Font for Small Mobile */
    .menu-link {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
        padding: 1rem 1.5rem !important;
    }

    .menu-nav {
        max-width: 500px;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 6rem 1.5rem;
    }

    .testimonials-slide {
        flex: 0 0 280px;
        height: 320px;
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    /* Contact Section */
    .contact {
        padding: 6rem 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-logo .logo-text {
        font-size: 1.25rem;
    }

    /* Section Titles */
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* ========================================
   UTILITY CLASSES FOR RESPONSIVE DESIGN
   ======================================== */

/* Hide on mobile */
.hide-mobile {
    display: none !important;
}

@media (min-width: 769px) {
    .hide-mobile {
        display: block !important;
    }
}

/* Hide on desktop */
.hide-desktop {
    display: block !important;
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Responsive spacing utilities */
.mobile-spacing-sm {
    padding: 1rem;
}

.mobile-spacing-md {
    padding: 2rem;
}

.mobile-spacing-lg {
    padding: 3rem;
}

@media (min-width: 769px) {
    .mobile-spacing-sm,
    .mobile-spacing-md,
    .mobile-spacing-lg {
        padding: 0;
    }

    /* Hide mobile testimonials on desktop */
    .testimonials-slider-container-mobile {
        display: none !important;
    }

    /* Desktop Menu Visibility */
    .menu-mobile {
        display: none !important;
    }

    .menu-desktop {
        display: flex !important;
    }

    /* Show Desktop Menu Elements */
    .menu-bg-panel,
    .menu-submenu-section {
        display: flex !important;
    }
}
