/* ============================================
   HEXI AGENCY - RESPONSIVE STYLESHEET
   ============================================ */

/* ---- Extra Large Screens (1400px+) ---- */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

/* ---- Large Laptops / Smaller Desktops ---- */
@media (max-width: 1200px) {
    :root {
        --section-padding: 100px;
    }

    .container {
        max-width: 1140px;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .about-preview-wrapper,
    .about-main-wrapper,
    .service-detail-wrapper {
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

/* ---- Tablets & Small Laptops ---- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 24px;
    }

    /* Navbar */
    .nav-menu {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-cta-btn {
        display: none;
    }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About Preview */
    .about-preview-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-preview-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    /* About Main */
    .about-main-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-main-visual {
        max-width: 450px;
        margin: 0 auto;
    }

    /* Values */
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Process */
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-line {
        display: none;
    }

    /* Services Detail */
    .service-detail-wrapper,
    .service-detail-wrapper.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .service-detail-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Clients Grid */
    .clients-full-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ---- Tablets Portrait ---- */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Hero */
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.4rem;
    }

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

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 30px 16px;
    }

    .stat-number .counter {
        font-size: 2rem;
    }

    /* Process */
    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Service Detail */
    .service-detail-title {
        font-size: 1.6rem;
    }

    .service-visual-card {
        max-width: 320px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 8px 18px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* World Map */
    .world-map-container {
        padding: 20px;
    }

    /* Clients */
    .clients-full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trust-numbers {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    .trust-divider {
        width: 60px;
        height: 1px;
    }

    /* Contact */
    .contact-form-card {
        padding: 30px 24px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        padding: 30px 24px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Page Hero */
    .page-hero {
        padding: 130px 0 60px;
    }

    .page-hero-title {
        font-size: 2.2rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.8rem;
    }

    /* Mobile Menu */
    .mobile-nav-link {
        font-size: 1.5rem;
    }

    /* Custom Cursor - hide on tablets */
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }
}

/* ---- Mobile Phones ---- */
@media (max-width: 576px) {
    :root {
        --section-padding: 60px;
        --container-padding: 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 6px 14px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Navbar */
    .navbar {
        padding: 16px 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    .nav-logo-img {
        height: 32px;
    }

    /* Hero */
    .hero-section {
        padding: 90px 0 50px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    .hero-stat-divider {
        height: 30px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .service-card-title {
        font-size: 1.1rem;
    }

    .service-card-desc {
        font-size: 0.9rem;
    }

    /* About Preview */
    .about-preview-visual {
        max-width: 100%;
    }

    .about-img-placeholder {
        height: 220px;
    }

    .about-img-2 {
        right: -15px;
        bottom: -20px;
    }

    .about-img-2 .about-img-placeholder {
        height: 150px;
    }

    .about-experience-badge {
        left: -10px;
        padding: 14px 18px;
    }

    .exp-number {
        font-size: 1.6rem;
    }

    /* About Main */
    .about-main-img-placeholder {
        height: 300px;
    }

    /* Values */
    .value-card {
        padding: 30px 20px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 24px 12px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .stat-number .counter {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Process */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-step-number {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .process-step-content {
        padding: 24px 16px;
    }

    /* Services Detail */
    .service-detail-title {
        font-size: 1.4rem;
    }

    .service-detail-desc {
        font-size: 0.9rem;
    }

    .service-visual-card {
        max-width: 280px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .portfolio-filters {
        gap: 6px;
        margin-bottom: 30px;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 7px 14px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-card-inner {
        padding: 30px 20px;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }

    .team-name {
        font-size: 1.05rem;
    }

    /* Clients */
    .clients-full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .client-card {
        padding: 24px 16px;
    }

    .client-logo-placeholder {
        width: 64px;
        height: 64px;
    }

    .client-initials {
        font-size: 1.1rem;
    }

    .client-name {
        font-size: 0.85rem;
    }

    .trust-numbers {
        padding: 24px;
        gap: 24px;
    }

    .trust-number {
        font-size: 2.2rem;
    }

    /* Contact */
    .contact-form-card {
        padding: 24px 16px;
    }

    .contact-form-title {
        font-size: 1.3rem;
    }

    .contact-info-card {
        padding: 24px 16px;
    }

    .form-input {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }

    .input-icon {
        left: 12px;
    }

    /* Page Hero */
    .page-hero {
        padding: 110px 0 50px;
    }

    .page-hero-title {
        font-size: 1.8rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Footer */
    .footer-top {
        padding: 50px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo-img {
        height: 32px;
    }

    .footer-heading {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom-links {
        gap: 16px;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    /* Back to Top */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 80px;
        right: 20px;
    }

    /* Mobile Menu */
    .mobile-nav-link {
        font-size: 1.3rem;
        padding: 8px 16px;
    }

    .mobile-social-links a {
        width: 42px;
        height: 42px;
    }
}

/* ---- Very Small Phones ---- */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-stat-divider {
        display: none;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .page-hero-title {
        font-size: 1.6rem;
    }

    .clients-full-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 20px 10px;
    }

    .stat-number .counter {
        font-size: 1.5rem;
    }
}

/* ---- Landscape Mode Phones ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }

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

    .hero-subtitle {
        margin-bottom: 20px;
    }

    .hero-stats {
        margin-bottom: 0;
    }

    .page-hero {
        padding: 100px 0 40px;
    }
}

/* ---- High DPI / Retina Displays ---- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo-img,
    .footer-logo-img,
    .preloader-logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ---- Print Styles ---- */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .custom-cursor,
    .custom-cursor-follower,
    #preloader,
    .mobile-menu-overlay,
    .hero-bg-effects,
    .cta-bg-effects,
    .stats-bg-effects {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        padding: 40px 0;
    }

    a {
        color: #000;
    }

    .text-gradient {
        -webkit-text-fill-color: #6BCB3D;
    }
}
/* ============================================
   VIDEO CARD — SERVICES PAGE ONLY
   ============================================ */
@media only screen and (max-width: 768px) {
    #page-services .video-visual {
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        padding: 25px 15px !important;
        min-height: 160px !important;
        max-height: 200px !important;
    }

    #page-services .video-play-btn {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 18px !important;
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
    }

    #page-services .video-timeline {
        width: 68% !important;
        height: 4px !important;
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
    }

    #page-services .timeline-dot {
        width: 10px !important;
        height: 10px !important;
    }

    #page-services .service-detail-section .service-visual-card {
        aspect-ratio: auto !important;
        height: auto !important;
    }
}

@media only screen and (max-width: 480px) {
    #page-services .video-visual {
        padding: 20px 12px !important;
        min-height: 140px !important;
        max-height: 175px !important;
    }

    #page-services .video-play-btn {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 14px !important;
    }

    #page-services .video-timeline {
        width: 64% !important;
        height: 3px !important;
    }

    #page-services .timeline-dot {
        width: 8px !important;
        height: 8px !important;
    }
}