/* =========================================
   MOBILE RESPONSIVE ENHANCEMENTS
   DC Networks Website - Mobile Optimization
   ========================================= */

/* =========================================
   BASE MOBILE ADJUSTMENTS
   ========================================= */

/* Ensure proper viewport scaling */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
}

/* =========================================
   MOBILE TYPOGRAPHY
   ========================================= */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    h4 {
        font-size: 1.125rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* =========================================
   CONTAINER & SPACING
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }
}

/* =========================================
   CRITICAL FIX: Override Slick Carousel Hidden Slides
   ========================================= */

/* CSS-only Auto-Sliding Carousel Animation */
@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {

    /* Make sure the brands section container is visible */
    .hero-dark .brands-section,
    .brands-section {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        min-height: 180px !important;
        overflow: visible !important;
    }

    .brands-section.fade-up {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .brands-section h3 {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .brands-divider {
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 2rem !important;
    }

    /* Customer logos carousel - auto-sliding */
    .customer-logos,
    section.customer-logos,
    .customer-logos.slider {
        display: flex !important;
        overflow: hidden !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        padding: 1.5rem 0 !important;
        min-height: 100px !important;
    }

    /* Create sliding animation */
    .customer-logos .slide,
    section.customer-logos .slide,
    .slider .slide {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-shrink: 0 !important;
        width: 120px !important;
        margin: 0 1.5rem !important;
        animation: slideLogos 20s linear infinite !important;
    }

    /* Force images to show */
    .customer-logos .slide img,
    section.customer-logos .slide img,
    .slider .slide img {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 60px !important;
        height: 60px !important;
        width: auto !important;
        max-width: 120px !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    /* Override any Slick styles that might interfere */
    .customer-logos.slick-slider,
    .customer-logos .slick-list,
    .customer-logos .slick-track,
    section.customer-logos.slick-slider,
    section.customer-logos .slick-list,
    section.customer-logos .slick-track {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        width: auto !important;
        overflow: visible !important;
    }

    .customer-logos .slick-slide,
    section.customer-logos .slick-slide {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-shrink: 0 !important;
    }

    /* Hide scrollbar for customer logos */
    .customer-logos::-webkit-scrollbar,
    section.customer-logos::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

@media (max-width: 480px) {

    .customer-logos .slide,
    section.customer-logos .slide,
    .slider .slide {
        width: 100px !important;
        margin: 0 1rem !important;
    }

    .customer-logos .slide img,
    section.customer-logos .slide img,
    .slider .slide img {
        max-height: 50px !important;
        height: 50px !important;
        max-width: 100px !important;
    }
}

/* =========================================
   HERO SECTION MOBILE
   ========================================= */
@media (max-width: 768px) {
    .hero-dark {
        min-height: auto;
        padding: 4rem 0 3rem !important;
        padding-top: 4rem !important;
        display: block;
    }

    .hero-dark-content {
        padding-top: 2rem;
    }

    .hero-dark-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
        color: #111827 !important;
    }

    .hero-dark-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem;
        color: #4B5563 !important;
    }

    .cert-badge {
        margin-bottom: 2.5rem;
    }

    .cert-badge img {
        height: 32px !important;
    }

    .cert-badge p {
        font-size: 0.8rem;
        text-align: center;
        padding: 0 1rem;
        color: #6B7280 !important;
    }

    /* Brands Section - Force Visibility */
    .brands-section {
        margin-top: 2.5rem;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        transform: none !important;
        min-height: 150px !important;
    }

    .brands-section.fade-up {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .brands-section h3 {
        font-size: 1rem;
        color: #111827 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .brands-divider {
        margin-bottom: 1.5rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Ensure fade-up elements are visible on mobile */
    .hero-dark .fade-up {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Client Logos - FORCE DISPLAY */
    section.customer-logos,
    .customer-logos,
    .slider {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
        padding: 1rem 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 100px !important;
        width: 100% !important;
    }

    .customer-logos .slide,
    .customer-logos>div,
    .slider .slide,
    .slider>div {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    .customer-logos .slide img,
    .customer-logos>div img,
    .customer-logos img,
    .slider .slide img,
    .slider>div img,
    .slider img {
        display: block !important;
        max-height: 60px !important;
        height: auto !important;
        width: 100% !important;
        max-width: 120px !important;
        margin: 0 auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        object-fit: contain !important;
        position: relative !important;
    }

    /* Override any Slick styles */
    .slick-slider,
    .slick-list,
    .slick-track {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        width: 100% !important;
    }

    .slick-slide {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        float: none !important;
    }
}

@media (max-width: 480px) {
    .hero-dark {
        padding: 3rem 0 2.5rem !important;
        padding-top: 3rem !important;
    }

    .hero-dark-title {
        font-size: 1.75rem !important;
    }

    .hero-dark-subtitle {
        font-size: 0.95rem !important;
    }

    section.customer-logos,
    .customer-logos,
    .slider {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .customer-logos .slide img,
    .customer-logos>div img,
    .customer-logos img,
    .slider .slide img,
    .slider>div img,
    .slider img {
        max-height: 50px !important;
        max-width: 100px !important;
    }
}

/* =========================================
   WHO WE ARE SECTION MOBILE
   ========================================= */
@media (max-width: 768px) {
    .who-header {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }

    .who-title {
        font-size: 2rem !important;
        max-width: 100%;
    }

    .who-content {
        max-width: 100%;
    }

    .who-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-stat {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .who-title {
        font-size: 1.75rem !important;
    }

    .who-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* =========================================
   SERVICES PLATFORM SECTION MOBILE
   ========================================= */
@media (max-width: 768px) {
    .platform-header {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .platform-title {
        font-size: 2rem !important;
        max-width: 100%;
    }

    .platform-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .services-grid-4 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        min-height: 320px;
        padding: 1.5rem;
    }

    .service-card-content h3 {
        font-size: 1.25rem;
    }

    .service-card-content p {
        font-size: 0.9rem;
    }

    .service-card-visual {
        margin: 1.5rem 0;
        min-height: 120px;
    }

    .service-card-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .platform-title {
        font-size: 1.75rem !important;
    }

    .service-card {
        min-height: 280px;
    }
}

/* =========================================
   NEWS SECTION MOBILE
   ========================================= */
@media (max-width: 768px) {
    .news-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card {
        max-width: 100%;
    }

    .news-image {
        height: 160px;
    }

    .news-content {
        padding: 1.25rem;
    }

    .news-content h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 1.5rem;
    }

    .news-image {
        height: 140px;
    }
}

/* =========================================
   TESTIMONIAL SECTION MOBILE
   ========================================= */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 2rem 0 !important;
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    /* Let Slick handle the slider */
    .testimonial-slider {
        margin: 0 !important;
    }

    .testimonial-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-source h4 {
        font-size: 1.125rem;
    }

    .testimonial-source p {
        font-size: 1rem;
    }

    .testimonial-rating {
        gap: 0.5rem;
    }

    .stars {
        display: flex;
        gap: 0.25rem;
    }

    .stars svg {
        width: 20px;
        height: 20px;
    }

    .rating-text {
        font-size: 1.125rem;
    }

    .testimonial-content h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.3 !important;
    }

    .testimonial-description {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
        line-height: 1.6 !important;
    }

    .btn-read-reviews {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Slick dots positioning */
    .testimonial-dots {
        margin-top: 1.5rem !important;
        text-align: center;
    }

    .slick-dots {
        position: relative !important;
        bottom: auto !important;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonial-section {
        padding: 1.5rem 0 !important;
    }

    .testimonial-card {
        padding: 1.25rem 0.875rem;
        padding-bottom: 1rem !important;
    }

    .testimonial-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .testimonial-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .testimonial-description {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem !important;
    }

    .stars svg {
        width: 18px;
        height: 18px;
    }

    .rating-text {
        font-size: 1rem;
    }

    .btn-read-reviews {
        margin-bottom: 0 !important;
    }

    .testimonial-dots {
        margin-top: 0.75rem !important;
        padding: 0.5rem 0 !important;
    }

    .slick-dots {
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
    }
}

/* Extra small devices - very aggressive spacing reduction */
@media (max-width: 400px) {
    .testimonial-section {
        padding: 1rem 0 !important;
    }

    .testimonial-card {
        padding: 1rem 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .testimonial-header {
        margin-bottom: 0.75rem;
    }

    .testimonial-content h2 {
        font-size: 1.375rem !important;
        margin-bottom: 0.5rem !important;
    }

    .testimonial-description {
        font-size: 0.875rem;
        margin-bottom: 1rem !important;
    }

    .btn-read-reviews {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .testimonial-dots {
        margin-top: 0.5rem !important;
        padding: 0.25rem 0 !important;
    }
}

/* =========================================
   BUTTONS MOBILE
   ========================================= */
@media (max-width: 768px) {
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* =========================================
   GRIDS MOBILE
   ========================================= */
@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {

    .grid-2,
    .grid-3 {
        gap: 1.25rem;
    }

    .grid-4 {
        gap: 0.875rem;
    }
}

/* =========================================
   CARDS MOBILE
   ========================================= */
@media (max-width: 768px) {
    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.25rem;
    }
}

/* =========================================
   ABOUT PAGE MOBILE
   ========================================= */
@media (max-width: 768px) {

    /* Mission & Vision Cards */
    .mission-vision-card {
        padding: 1.5rem;
    }

    .mv-icon svg {
        width: 48px;
        height: 48px;
    }

    /* Core Values */
    .value-card {
        padding: 1.5rem;
    }

    .value-icon svg {
        width: 40px;
        height: 40px;
    }

    /* Stats */
    .stat-box {
        padding: 1.5rem 1rem;
    }

    /* Certifications */
    .cert-card {
        padding: 1.5rem;
    }

    .cert-icon svg {
        width: 28px;
        height: 28px;
    }

    .cert-list {
        font-size: 0.9rem;
    }

    /* Why Choose Us */
    .why-choose-item {
        flex-direction: row;
        gap: 1rem;
    }

    .why-icon {
        font-size: 1.5rem;
        min-width: 32px;
    }

    /* CTA Box */
    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {

    .mission-vision-card,
    .value-card,
    .cert-card {
        padding: 1.25rem;
    }

    .cta-box {
        padding: 1.5rem 1rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }
}

/* =========================================
   SERVICES PAGE MOBILE
   ========================================= */
@media (max-width: 768px) {

    /* Service Features List */
    .service-features {
        font-size: 0.9rem;
    }

    .service-features li {
        padding: 0.375rem 0;
    }

    /* Feature Boxes */
    .feature-box {
        padding: 1.5rem 1rem;
    }

    .feature-box h4 {
        font-size: 0.9375rem;
    }

    .feature-number {
        font-size: 2.5rem;
    }

    /* Process Timeline */
    .process-step {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .process-number {
        font-size: 2rem;
        min-width: auto;
    }

    .process-content h3 {
        font-size: 1.25rem;
    }

    /* Industry Cards */
    .industry-card {
        padding: 1.5rem;
    }

    .industry-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {

    .feature-box,
    .industry-card {
        padding: 1.25rem;
    }

    .process-step {
        padding: 1.25rem;
    }
}

/* =========================================
   FOOTER MOBILE
   ========================================= */
@media (max-width: 1024px) {
    .footer-main-content {
        gap: 3rem;
    }

    .footer-brand-section {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .footer-columns-wrapper {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-main-content {
        flex-direction: column;
        gap: 3rem;
        margin-bottom: 2.5rem;
    }

    .footer-brand-section {
        flex: 1;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo-link {
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        height: 36px;
    }

    .footer-description {
        font-size: 0.875rem;
        line-height: 1.6;
        text-align: center;
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .footer-columns-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 2.5rem 2rem;
        width: 100%;
        max-width: 100%;
    }

    .footer-col {
        min-width: 0;
        text-align: left;
    }

    .footer-heading {
        font-size: 0.9375rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
        text-align: left;
        letter-spacing: 0.01em;
    }

    .footer-links-list {
        gap: 0.5rem;
        text-align: left;
    }

    .footer-links-list a {
        font-size: 0.875rem;
        text-align: left;
        display: block;
        color: rgba(255, 255, 255, 0.7);
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
        text-align: center;
    }

    .footer-logo-legal {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo-legal p {
        font-size: 0.75rem;
        text-align: center;
    }

    .legal-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .legal-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-main-content {
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-brand-section {
        text-align: center;
    }

    .footer-logo-link {
        justify-content: center;
    }

    .footer-logo {
        height: 32px;
    }

    .footer-description {
        font-size: 0.8125rem;
        line-height: 1.6;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        gap: 1rem;
    }

    .footer-columns-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 2.5rem 1.5rem;
        max-width: 100%;
    }

    .footer-col {
        text-align: left;
    }

    .footer-heading {
        font-size: 0.9375rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
        text-align: left;
        letter-spacing: 0.01em;
    }

    .footer-links-list {
        gap: 0.5rem;
        text-align: left;
    }

    .footer-links-list a {
        font-size: 0.875rem;
        text-align: left;
        display: block;
        color: rgba(255, 255, 255, 0.7);
    }

    .footer-bottom-row {
        gap: 1.25rem;
        padding-top: 1.25rem;
        align-items: center;
        text-align: center;
    }

    .footer-logo-legal {
        gap: 0.875rem;
        align-items: center;
    }

    .footer-logo-legal p {
        font-size: 0.75rem;
        text-align: center;
    }

    .legal-links {
        gap: 0.875rem;
        justify-content: center;
    }

    .legal-links a {
        font-size: 0.75rem;
    }
}

/* =========================================
   FORM ELEMENTS MOBILE
   ========================================= */
@media (max-width: 768px) {

    .form-input,
    .form-textarea {
        padding: 0.625rem;
        font-size: 0.9375rem;
    }

    .form-label {
        font-size: 0.9375rem;
    }
}

/* =========================================
   UTILITY CLASSES MOBILE
   ========================================= */
@media (max-width: 768px) {
    .mb-5 {
        margin-bottom: 2.5rem !important;
    }

    .mb-4 {
        margin-bottom: 2rem !important;
    }

    .mb-3 {
        margin-bottom: 1.5rem !important;
    }

    .mb-2 {
        margin-bottom: 1rem !important;
    }

    .align-start {
        align-items: flex-start !important;
    }
}

/* =========================================
   TOUCH IMPROVEMENTS
   ========================================= */
@media (max-width: 768px) {

    /* Larger touch targets */
    a,
    button,
    .btn {
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Prevent text selection on buttons */
    .btn,
    button {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================
   LANDSCAPE ORIENTATION
   ========================================= */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-dark {
        min-height: auto;
        padding: 3rem 0 2rem;
    }

    .section {
        padding: 2.5rem 0;
    }
}

/* =========================================
   VERY SMALL SCREENS (< 360px)
   ========================================= */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 0.625rem;
    }

    .hero-dark-title {
        font-size: 1.5rem !important;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* =========================================
   PREVENT LAYOUT SHIFT
   ========================================= */
@media (max-width: 768px) {

    img,
    svg {
        max-width: 100%;
        height: auto;
    }

    /* Ensure videos are responsive */
    video {
        max-width: 100%;
        height: auto;
    }

    /* Prevent overflow */
    * {
        max-width: 100%;
    }

    /* Allow specific elements to exceed */
    html,
    body,
    .container,
    .section {
        max-width: none;
    }
}

/* =========================================
   DESKTOP HEADER - Hide Mobile Elements
   ========================================= */
@media (min-width: 901px) {

    /* Ensure mobile menu is completely hidden on desktop */
    .mobile-menu-btn {
        display: none !important;
        visibility: hidden;
    }

    .nav-links-mobile {
        display: none !important;
        visibility: hidden;
        height: 0;
        overflow: hidden;
    }

    /* Ensure desktop menu and actions are visible */
    .desktop-menu {
        display: flex !important;
    }

    .nav-actions {
        display: flex !important;
    }
}

/* =========================================
   MOBILE MENU ENHANCEMENTS
   ========================================= */
@media (max-width: 900px) {

    /* Sticky header wrapper */
    .sticky-header-wrapper {
        position: sticky;
        top: 0;
        z-index: 999;
        background: var(--white);
    }

    /* Site header positioning */
    .site-header {
        position: relative;
    }

    /* Ensure mobile menu button is visible and properly styled */
    /* Ensure mobile menu button is visible and properly styled */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 9999 !important;
        /* Ensure it's above everything */
        position: relative !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0.25rem !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 44px !important;
        /* Slightly larger touch target */
        height: 44px !important;
        margin-left: auto !important;
        /* Push to the right */
        transition: all 0.3s ease !important;
    }

    /* Hamburger menu animation */
    .mobile-menu-btn span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background-color: #111827 !important;
        /* Force dark color */
        margin: 5px 0 !important;
        transition: all 0.3s ease !important;
        transform-origin: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }

    .mobile-menu-btn[aria-expanded="true"] {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(0px, 0px) !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 20px !important;
        height: 2px !important;
        margin-left: -10px !important;
        margin-top: -1px !important;
    }

    .mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
        opacity: 0 !important;
        transform: translateX(-20px) !important;
        width: 0 !important;
        margin: 0 !important;
    }

    .mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(0px, 0px) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 20px !important;
        height: 2px !important;
        margin-left: -10px !important;
        margin-top: -1px !important;
    }

    /* Mobile menu styling */
    .nav-links-mobile {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links-mobile.active {
        display: block !important;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-nav-content {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .nav-links-mobile .nav-link {
        padding: 0.875rem 1rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease, color 0.2s ease;
        display: block;
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
        font-weight: 500;
    }

    .nav-links-mobile .nav-link:hover,
    .nav-links-mobile .nav-link.active {
        background-color: rgba(1, 196, 190, 0.1);
        color: var(--accent);
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-nav-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .mobile-menu-btn {
        display: flex !important;
        width: 40px !important;
        /* Slightly larger */
        height: 40px !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: auto !important;
    }

    .mobile-menu-btn span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        margin: 4px 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #111827 !important;
        /* Force dark color */
    }

    .mobile-nav-content {
        padding: 1.25rem;
    }

    .nav-links-mobile .nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .mobile-nav-actions {
        gap: 0.625rem;
        padding-top: 0.875rem;
    }

    .mobile-nav-actions .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}