/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN FOR INDEX.HTML
   ============================================ */

/* ============================================
   FIXED NAVBAR & FOOTER LAYOUT SYSTEM
   Content fits dynamically between them
   ============================================ */

:root {
    --nav-height: 80px;
}

@media (max-width: 992px) {
    :root { 
        --nav-height: 64px;
    }
}

@media (max-width: 768px) {
    :root { 
        --nav-height: 60px;
    }
}

/* Fixed navbar at all times */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Hero section fits between fixed navbar and scrolls naturally */
.hero {
    min-height: 100vh !important;
    height: auto !important;
    padding-top: var(--nav-height) !important;
    padding-bottom: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
}

.hero .container {
    min-height: calc(100vh - var(--nav-height)) !important;
    padding-top: clamp(20px, 6vh, 60px) !important;
    padding-bottom: clamp(20px, 6vh, 60px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Scale all hero elements based on viewport height */
.hero-content {
    flex: 0 0 auto !important;
    max-width: 95% !important;
}

.hero-title {
    font-size: clamp(1.8rem, 5vh, 4.5rem) !important;
    margin-bottom: clamp(0.8rem, 2vh, 1.5rem) !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.2vh, 1.35rem) !important;
    margin-bottom: clamp(1rem, 2.5vh, 2rem) !important;
    line-height: 1.5 !important;
}

.hero-buttons {
    margin-bottom: clamp(1rem, 3vh, 2.5rem) !important;
    gap: clamp(0.8rem, 1.5vh, 1.5rem) !important;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline,
.hero-buttons .btn-large {
    padding: clamp(0.7rem, 1.5vh, 1.2rem) clamp(1.2rem, 2.5vh, 2.5rem) !important;
    font-size: clamp(0.85rem, 1.8vh, 1.15rem) !important;
}

.hero-stats {
    margin: clamp(0.8rem, 2vh, 1.5rem) 0 !important;
    gap: clamp(0.8rem, 1.5vh, 1.5rem) !important;
}

.stat-item {
    padding: clamp(0.8rem, 1.8vh, 1.5rem) clamp(0.6rem, 1.2vh, 1.2rem) !important;
}

.stat-number {
    font-size: clamp(1.5rem, 4.5vh, 3rem) !important;
}

.stat-label {
    font-size: clamp(0.7rem, 1.5vh, 0.95rem) !important;
}

.landing--logos-container {
    margin: clamp(0.8rem, 2vh, 2rem) auto clamp(1.5rem, 3vh, 2.5rem) auto !important;
    padding: clamp(1.5rem, 2.5vh, 2.5rem) clamp(1.5rem, 2.5vh, 2.5rem) !important;
    max-width: 1200px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.logo-grid {
    gap: clamp(2rem, 3vh, 4rem) !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    place-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 900px !important;
}

.grid-logo {
    width: 100% !important;
    max-width: clamp(100px, 15vh, 180px) !important;
    height: clamp(70px, 12vh, 120px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.grid-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: brightness(1.1) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.grid-logo:hover img {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Full HD Desktop (1920×1080 and similar) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    /* Hero spacing handled globally - removed conflicting rules */
    
    .hero-content {
        max-width: 850px;
        margin: 0 auto 2rem auto;
    }
    
    .hero-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        line-height: 1.15;
        letter-spacing: -0.03em;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline,
    .hero-buttons .btn-large {
        padding: 1.2rem 2.5rem;
        font-size: 1.15rem;
        border-radius: 14px;
        min-width: 200px;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 1100px;
        margin: 0 auto 2rem auto;
    }
    
    .stat-item {
        padding: 1.5rem 1.2rem;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .stat-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(42, 134, 255, 0.3);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(42, 134, 255, 0.2);
    }
    
    .stat-number {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
        background: linear-gradient(135deg, #ffffff 0%, rgba(42, 134, 255, 0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .stat-label {
        font-size: 0.95rem;
        opacity: 0.9;
        font-weight: 500;
    }
    
    .landing--logos-container {
        max-width: 900px;
        margin: 2rem auto 0 auto;
        padding: 1.8rem 2rem;
        background: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(25px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .logo-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
        justify-items: center;
        align-items: center;
    }
    
    .grid-logo {
        width: 100%;
        max-width: 100px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .grid-logo:hover {
        transform: scale(1.1);
    }
    
    .grid-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        filter: brightness(0.9);
        transition: all 0.3s ease;
    }
    
    .grid-logo:hover img {
        filter: brightness(1.1);
    }
    
    .services {
        padding: 6rem 0;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .section-header h2 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 1.3rem;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.7;
    }
    
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 3rem 2.5rem;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.4s ease;
    }
    
    .service-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(42, 134, 255, 0.3);
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(42, 134, 255, 0.15);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        background: rgba(42, 134, 255, 0.1);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2A86FF;
        transition: all 0.3s ease;
    }
    
    .service-card:hover .service-icon {
        background: rgba(42, 134, 255, 0.2);
        transform: scale(1.1) rotate(5deg);
    }
    
    .service-card h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .service-card p {
        font-size: 1.05rem;
        line-height: 1.7;
        opacity: 0.9;
    }
    
    .footer {
        padding: 5rem 0 3rem;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
        max-width: 1400px;
        margin: 0 auto 3rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.8rem;
    }
    
    .footer-section ul li a {
        font-size: 1rem;
    }
    
    .footer-logo {
        height: 55px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        padding-top: 2.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Desktop Large (1441px to 1920px+) */
@media (min-width: 1921px) {
    .container {
        max-width: 1600px;
        padding: 0 60px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .services-grid {
        max-width: 1600px;
        gap: 3rem;
    }
    
    .section-header h2 {
        font-size: 4rem;
    }
}

/* Standard Desktop (1200px - 1440px) */
@media (min-width: 1200px) and (max-width: 1440px) {
    /* Hero spacing handled globally - removed conflicting rules */
    
    .hero-content {
        max-width: 750px;
        margin: 0 auto 1.5rem auto;
    }
    
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.8rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 1000px;
        margin: 0 auto 1.5rem auto;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .landing--logos-container {
        max-width: 800px;
        margin: 1.5rem auto 0 auto;
        padding: 1.5rem 1.5rem;
    }
    
    .logo-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Laptop (1024px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
    /* Hero spacing handled globally - removed conflicting rules */
    
    .hero-content {
        max-width: 700px;
        margin: 0 auto 1.5rem auto;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 1.8rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
        max-width: 900px;
        margin: 0 auto 1.5rem auto;
    }
    
    .stat-item {
        padding: 1.2rem 0.8rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .landing--logos-container {
        max-width: 750px;
        margin: 1.5rem auto 0 auto;
        padding: 1.5rem;
    }
    
    .logo-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

/* Tablet Large (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Tablet and Mobile Portrait (768px and below) */
@media (max-width: 768px) {
    body {
        padding-bottom: 90px;
    }
    
    /* Navbar handled globally */
    .navbar .container {
        padding: 0 20px;
        justify-content: center;
    }
    
    .nav-logo {
        height: 40px !important;
    }
    
    .nav-menu {
        display: none;
    }

    /* Hero spacing handled globally - removed conflicting rules */
    
    .hero-content {
        padding: 0 10px;
    }

    /* Text sizes handled globally with clamp() */
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-item {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .landing--logos-container {
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        background: rgba(26, 26, 26, 0.9) !important;
        border-radius: 15px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .logo-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        justify-items: center;
        align-items: center;
    }
    
    .grid-logo {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .grid-logo img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    .services {
        padding: 4rem 0;
        position: relative;
        z-index: 4;
        background: #1A1A1A;
        margin-top: 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 20px;
        position: relative;
        z-index: 5;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 20px;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 20px;
    }

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

    .footer-links {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    body {
        font-size: 15px;
        padding-bottom: 85px;
    }
    
    /* Navbar handled globally */
    .navbar .container {
        padding: 0 15px;
    }
    
    .nav-logo {
        height: 35px !important;
    }

    .nav-brand h2 {
        font-size: 1.3rem;
    }

    .mobile-menu-toggle {
        padding: 0.4rem;
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Hero spacing & sizing handled globally with clamp() */
    
    .hero-content {
        max-width: 95%;
        text-align: center;
        padding: 0.5rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline,
    .hero-buttons .btn-large {
        max-width: 280px;
        width: 100%;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100%;
        max-width: 320px;
    }

    .stat-item {
        text-align: center;
    }
    
    .landing--logos-container {
        width: 95%;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        background: rgba(26, 26, 26, 0.9) !important;
        border-radius: 15px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .logo-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        justify-items: center;
        align-items: center;
    }
    
    .grid-logo {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .grid-logo img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
    
    .hero-video,
    .hero-video.extraClassAspect,
    .hero-video.extraClassCrop,
    video.hero-video {
        object-fit: contain !important;
        transform: translate(-50%, -50%) scale(0.7) !important;
        -webkit-transform: translate(-50%, -50%) scale(0.7) !important;
    }
    
    .services {
        padding: 3rem 0;
        position: relative;
        z-index: 4;
        background: #1A1A1A;
        margin-top: 0;
        clear: both;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 15px;
        position: relative;
        z-index: 5;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .services-grid {
        gap: 1.2rem;
        padding: 0 15px;
    }
    
    .service-card {
        padding: 1.5rem 1.2rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.7rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section ul li a,
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-logo {
        height: 40px !important;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 15px 0;
        font-size: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline,
    .hero-buttons .btn-large {
        padding: 0.75rem 1.3rem !important;
        font-size: 0.85rem !important;
    }
    
    .stat-number {
        font-size: 1.3rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
    
    .landing--logos-container {
        width: 100%;
        padding: 0.8rem 0.5rem !important;
    }
    
    .logo-grid {
        gap: 0.6rem !important;
    }
    
    .grid-logo {
        max-width: 50px !important;
        height: 35px !important;
    }
}

/* Landscape Mobile (Small Height) */
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    /* Hero spacing handled globally - removed conflicting rules */
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
    
    .logo-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

/* All height-based spacing now handled by global clamp() values at the top of this file */
