:root {
    /* Main Brand Colors */
    --clr-primary: #ff6a00; /* Tech Orange */
    --clr-primary-hover: #e05d00;
    --clr-secondary: #0A192F; /* Deep Tech Navy */
    
    /* Backgrounds */
    --bg-main: #FFFFFF;
    --bg-light: #F5F7FA;
    
    /* Text Colors */
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --text-light: #FFFFFF;
    
    /* UI Elements */
    --border-color: #E5E7EB;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Layout */
    --container-max: 1280px;
    --nav-height: 110px;
    --section-pad: 5rem 0;
    
    /* Animation */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad);
    position: relative;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

/* --- Header / Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.lang-switcher {
    margin-left: 1rem;
    border-left: 1px solid #eee;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
}

.nav-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.nav-sub {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    transition: var(--transition);
}

.nav-item:hover .nav-title,
.nav-item:hover .nav-sub {
    color: var(--clr-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition);
}

.nav-item:hover::after {
    width: 100%;
}

/* Base utility component for "highlight tags" seen on site */
.highlight-tag {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 2px 10px;
    border-radius: 8px;
    margin: 0 4px;
    display: inline-block;
    font-weight: 700;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 85vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 4rem;
    border-radius: 12px;
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.hero-title {
    font-size: 5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    transition: opacity 0.7s ease-in-out;
}

.hero-desc {
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.6;
    transition: opacity 0.7s ease-in-out;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 15vh;
    min-height: 80px;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }

/* --- Features Section --- */
.features-section {
    background-color: var(--bg-light);
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-main);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Services Section --- */
.services-section {
    background-color: var(--bg-main);
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 106, 0, 0.1);
    color: var(--clr-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 auto 1.5rem auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 1.5rem auto 4rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-6px);
}

.service-img-box {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.service-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.6);
    mix-blend-mode: multiply;
}

.service-card:hover .service-img-box img {
    transform: scale(1.05);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.service-title .highlight-tag {
    font-size: 1.25rem;
    padding: 4px 12px;
}

.service-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- Footer Section --- */
.footer {
    background-color: var(--clr-secondary);
    color: var(--text-light);
    padding-top: 6rem;
}

.footer-hero {
    text-align: center;
    margin-bottom: 5rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1) 0%, rgba(10, 25, 47, 0) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-slogan {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    line-height: 1;
}

.brand-line {
    width: 60px;
    height: 3px;
    background: var(--clr-primary);
    border-radius: 2px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--clr-primary);
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--clr-primary);
    transform: translateY(-3px);
}

/* --- Dynamic UI Enhancements --- */

/* Sticky Header Scroll State */
.header.scrolled {
    height: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header.scrolled .logo img {
    height: 55px !important;
}

/* Hero Background Crossfade */
.hero-img {
    transition: opacity 1.5s ease-in-out;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Chat/Contact Action */
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--clr-primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: var(--transition);
}

.floating-action:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--clr-primary-hover);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.6);
}

/* --- References / Installations Section --- */
.references-section {
    background-color: var(--bg-light);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.references-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
}

.references-track {
    display: inline-flex;
    animation: marquee-scroll 35s linear infinite;
}

.references-track:hover {
    animation-play-state: paused;
}

.references-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 6rem;
    padding-right: 6rem;
}

.references-group i {
    font-size: 3.5rem;
    color: var(--text-muted);
    transition: var(--transition);
    opacity: 0.6;
}

.references-group i:hover {
    color: var(--clr-primary);
    transform: scale(1.1);
    opacity: 1;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}


/* --- Subpage Specific Styles --- */
.subpage-hero {
    min-height: 45vh;
}

.subpage-hero-container {
    padding-top: 140px;
    justify-content: flex-start;
    text-align: left;
}

.subpage-hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.subpage-hero-desc {
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

.subpage-content-box {
    background: #fff;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    text-align: center;
    border-bottom: 4px solid var(--clr-primary);
}

.subpage-icon {
    font-size: 3rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.subpage-title {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    color: #002d5b;
    margin-bottom: 1rem;
}

.subpage-text {
    margin-top: 1rem;
    color: #444;
    font-size: 1.1rem;
    max-width: 900px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* --- Responsive Design / Media Queries --- */

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--clr-primary);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

@media (max-width: 1200px) {
    :root {
        --container-max: 1100px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-title {
        font-size: 14px;
    }
    
    .nav-sub {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 991px) {
    .hero-card {
        padding: 3rem;
        max-width: 550px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 80px;
        --section-pad: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: block;
    }

    .logo img {
        height: 50px !important;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 1rem;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links .lang-switcher {
        margin-left: 0 !important;
        border-left: none !important;
        padding-left: 0 !important;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
        width: 100%;
        justify-content: center;
    }

    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-card {
        padding: 2.5rem 1.5rem;
        max-width: 100%;
        margin: 2rem 1.5rem;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }

    /* Grids & Cards */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

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

    /* Footer */
    .footer-hero {
        margin-bottom: 3rem;
        padding: 3rem 1.5rem;
    }
    
    .brand-text {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .social-links {
        justify-content: center;
    }

    /* For generated subpages */
    .subpage-hero-container {
        padding-top: 100px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .subpage-hero-title {
        font-size: 2.2rem !important;
    }
    
    .subpage-content-box {
        padding: 2rem 1.5rem !important;
    }
    
    .subpage-content-box h2 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}
