/* responsive.css */

/* Base Resets */
img,
video {
    max-width: 100%;
    height: auto;
}

/* Tablet & Smaller Desktop (Max 1200px) */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

/* Tablet (Max 992px) */
@media (max-width: 992px) {

    /* Generic Sections */
    section {
        padding: 60px 0;
    }

    /* Hero Section */
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content-elite {
        padding-right: 0;
    }

    .hero-actions-elite {
        justify-content: center;
    }

    .hero-stats-glass {
        margin: 0 auto 40px auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-glass-icons {
        display: none;
    }

    /* Trust Bar & Premium Grids */
    .trust-grid-elite,
    .value-grid-premium,
    .blog-grid-elite,
    .service-intro-grid,
    .entities-grid-elite,
    .services-grid,
    .industry-grid,
    .download-grid-elite,
    .features-grid,
    .process-grid,
    .sector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    /* Generic Layouts */
    .two-column {
        flex-direction: column !important;
        gap: 40px !important;
    }


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

/* Large Mobile (Max 768px) */
@media (max-width: 768px) {

    /* Typography */
    h1,
    .h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    h2,
    .h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    /* Navigation */
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        /* Ensure some breathing room */
        gap: 15px;
    }

    .navbar .logo {
        flex: 0 1 auto;
        min-width: 0;
        /* Allow shrinking */
        max-width: 200px;
        height: 44px;
        padding: 4px 12px;
        margin-right: 15px;
        /* Stop overlap */
        display: flex;
        align-items: center;
    }

    .navbar .logo img {
        max-width: 100%;
        height: 100% !important;
        max-height: 100%;
        object-fit: contain;
    }

    .nav-menu,
    .navbar>.container>.btn {
        display: none;
        /* Controlled by JS / mobile overlay */
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        /* Prevent hamburger from shrinking */
        z-index: 100;
    }

    .mobile-menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--text-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Grids */
    .trust-grid-elite,
    .value-grid-premium,
    .blog-grid-elite,
    .service-intro-grid,
    .entities-grid-elite,
    .services-grid,
    .industry-grid,
    .download-grid-elite,
    .features-grid,
    .process-grid,
    .sector-grid,
    .two-column-form {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }


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

    /* Page Header */
    .page-header {
        padding: 80px 0;
        text-align: center;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Section Headers */
    .section-header-elite h2 {
        font-size: 2.2rem;
    }

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

    /* Client Marquee */
    .client-marquee-track img {
        height: 48px;
        margin: 0 20px;
    }


    .footer {
        padding: 60px 0 0;
        text-align: center !important;
    }

    .footer-about p,
    .footer-contact p {
        text-align: center;
        justify-content: center;
    }

    .footer-contact p span {
        text-align: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
        color: var(--accent);
    }

    .footer-links a::before {
        display: none !important;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 0;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-actions-elite {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions-elite .btn {
        width: 100%;
        max-width: 300px;
        /* Modern pill style max width */
        margin-bottom: 10px;
    }

    /* Redesigned Mobile Hero Core Layout */
    .hero-elite {
        align-items: flex-start;
        padding: 130px 0 50px 0;
        min-height: auto;
        height: auto !important;
        aspect-ratio: auto !important;
        overflow: visible !important;
        /* Stop hidden overflow clipping */
    }

    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        align-items: flex-start !important;
    }

    .mobile-hero-spacer {
        display: none !important;
    }

    .hero-content-elite {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 15px;
    }

    /* Keep Title Wrapped and Centered */
    .hero-title-elite {
        font-size: 32px !important;
        line-height: 1.25 !important;
        margin-bottom: 20px !important;
        display: block;
    }

    .hero-title-elite span {
        display: inline !important;
    }

    /* Stats Grid Redesign */
    .hero-stats-glass {
        margin: 0 auto 30px auto;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        /* 2 columns */
        gap: 15px;
        width: 100%;
        max-width: 350px;
        padding: 15px;
    }

    .stat-divider {
        display: none !important;
        /* Hide vertical Divider */
    }

    .stat-number {
        font-size: 1.5rem !important;
        /* Smaller numbers */
    }

    /* Image / Video Card adjustments */
    .hero-media-elite {
        width: 100%;
        padding: 0 10px;
    }

    .hero-3d-card {
        border-radius: 12px;
        /* Less round for app feel */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        /* Softer shadow */
        aspect-ratio: 16/9;
    }

    .floating-badge-elite {
        display: flex !important;
        position: absolute !important;
        top: -15px !important;
        right: 15px !important;
        left: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: auto !important;
        transform: scale(0.8) !important;
        transform-origin: top right !important;
        z-index: 30 !important;
    }

    .floating-glass-icons {
        display: none !important;
    }
}

/* Small Mobile (Max 576px) */
@media (max-width: 576px) {

    /* Header & Navbar Scaling */
    .navbar .container {
        padding: 8px 10px;
        gap: 10px;
    }

    .navbar .logo {
        max-width: 180px;
        height: 38px;
        padding: 4px 10px;
        margin-right: 10px;
        min-width: unset;
    }

    .navbar .logo img {
        max-height: 100%;
        height: 100% !important;
    }

    /* Base Font Overrides */
    body {
        font-size: 15px;
    }

    p {
        font-size: 15px;
        line-height: 1.5;
    }

    section,
    .policy-content {
        padding: 40px 0;
    }

    /* Typography */
    h1,
    .h1 {
        font-size: 30px;
    }

    h2,
    .h2 {
        font-size: 24px;
    }

    .section-header-elite h2 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .client-marquee-track img {
        height: 38px;
        margin: 0 15px;
    }


    .hero-elite {
        display: flex !important;
        align-items: flex-start !important;
        padding: 130px 10px 40px !important;
        min-height: auto !important;
        height: auto !important;
        aspect-ratio: auto !important;
        overflow: visible !important;
        /* Stop hidden overflow clipping */
    }

    .hero-content-elite {
        margin-top: 20px !important;
        position: static;
        z-index: auto;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .hero-title-elite {
        font-size: 26px !important;
        line-height: 1.35 !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        letter-spacing: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        display: block !important;
        text-align: center;
        padding: 0;
    }

    .hero-title-elite span {
        display: inline !important;
        width: auto;
        margin-bottom: 0;
    }

    .text-gradient-premium {
        display: inline !important;
        margin: 0;
    }

    .hero-description-elite {
        font-size: 16px;!important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
        padding: 0 10px;
        /* Prevent touching edges */
    }

    .hero-stats-glass {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .stat-number {
        font-size: 1.2rem !important;
        word-break: break-all;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    .stat-divider {
        display: none !important;
    }

    .floating-badge-elite {
        display: none !important;
    }
}