:root {
    --primary: #0A2540; /* Trustworthy Corporate Navy */
    --primary-light: #1A365D;
    --accent: #0066CC; /* Professional Active Blue */
    --accent-hover: #004C99;
    --text-dark: #334155;
    --text-light: #64748B;
    --bg-light: #F8FAFC; 
    --white: #ffffff;
    --radius: 8px; /* Slightly rounder */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.85); /* Modern Glass background */
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); /* Soft premium shadow */
    --border-color: #E2E8F0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-scroll {
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    letter-spacing: -1.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 500;
    color: var(--accent);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    margin-top: 2px;
    border-radius: 1px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle svg {
    width: 30px;
    height: 30px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.lang-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    opacity: 0.6;
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-divider {
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 100px);
    min-height: 500px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,37,64,0.95), rgba(0,102,204,0.7));
    mix-blend-mode: multiply;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,37,64,0.3) 0%, rgba(10,37,64,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
    padding-top: 75px; /* Account for fixed header in centering */
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: #60A5FA; /* Brighter accent blue for the hero contrast */
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero {
        justify-content: flex-start;
        text-align: left;
        background-attachment: scroll; /* Fixes mobile scroll glitch/jitter */
        will-change: transform;
    }
    
    .hero-content {
        margin: 0;
    }
}

/* Brand Logo Carousel */
.brand-carousel {
    overflow: hidden;
    background-color: var(--white);
    height: 100px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* Add subtle fading edges */
.brand-carousel::before,
.brand-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.brand-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.brand-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.carousel-track {
    display: flex;
    align-items: center;
    width: calc(180px * 15); /* 5 brands * 3 sets * approx width */
    animation: scroll 30s linear infinite;
}

.brand-logo {
    min-width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo h2 {
    font-size: 1.6rem;
    color: var(--text-light);
    opacity: 0.6;
    letter-spacing: 4px;
    margin: 0;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    transition: var(--transition);
}

.brand-logo:hover h2 {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 5)); /* Scroll exactly one block of 5 */ }
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    background-size: 200% auto;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.6;
}

/* Products */
.bg-light {
    background-color: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    border-top: 4px solid var(--accent);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-icon {
    width: 64px;
    height: 64px;
    background-color: #EFF6FF;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.product-icon svg {
    width: 32px;
    height: 32px;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Benefits (Why Us) Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: #EFF6FF;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card .icon svg {
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--text-light);
}

/* Applications Section */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.app-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.app-card:hover {
    transform: translateX(5px) translateY(-3px);
    border-left-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.app-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.app-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 35px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--accent);
}

.contact-card .icon svg {
    stroke-width: 1.5px;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.contact-card p {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-interactive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.contact-form-container h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-submit {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    color: #10B981; /* Green */
}

.form-status.error {
    color: #EF4444; /* Red */
}

.map-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .section-padding {
        padding: 60px 0;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

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

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

    .hero {
        height: calc(100vh - 80px); /* Fallback */
        height: calc(100dvh - 80px); /* Modern mobile browsers */
        min-height: 450px;
    }

    .brand-carousel {
        height: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .product-grid, .benefits-grid, .applications-grid, .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card, .app-card, .contact-card {
        padding: 25px;
    }

    .btn {
        padding: 16px 32px; /* Larger touch target for mobile */
        width: 100%;
        text-align: center;
    }

    .hero .btn {
        width: auto;
    }

    .contact-form-container {
        padding: 0;
    }

    .map-container {
        min-height: 300px;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        transition: height 0.4s ease;
        border-bottom: 0px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        height: calc(100vh - 75px);
        border-bottom-width: 1px;
    }

    .nav-links a {
        width: 100%;
        padding: 25px;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid #f1f5f9;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delay for menu items */
    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links a:nth-child(3) { transition-delay: 0.2s; }
    .nav-links a:nth-child(4) { transition-delay: 0.25s; }
    .nav-links a:nth-child(5) { transition-delay: 0.3s; }

    .lang-switch {
        margin: 30px 0;
        padding: 0;
        border-left: none;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease 0.35s;
    }

    .nav-links.active .lang-switch {
        opacity: 1;
    }
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
