/* =========================================
   CSS variables & Reset
========================================= */
:root {
    /* Brand Colors (Natural Green & Blue Theme) */
    --primary-blue: #0E4B75;
    /* Deep Ocean Blue */
    --secondary-blue: #186A9E;
    /* Vivid Water Blue */
    --accent-color: #10B981;
    /* Fresh Emerald Green */
    --dark-bg: #0F172A;
    /* Deep Slate/Navy */
    --light-bg: #F0FDF4;
    /* Very subtle mint/green-tinted white */
    --white: #FFFFFF;
    --text-main: #1E293B;
    /* Darker slate for readability */
    --text-muted: #64748B;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Utility Classes
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.w-100 {
    width: 100%;
}

.highlight {
    color: var(--accent-color);
}

.highlight-alt {
    color: #cbd5e1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.title-underline.center {
    margin: 0 auto 2rem auto;
}

.title-underline.bg-white {
    background-color: var(--white);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-sm {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-primary-sm {
    padding: 10px 24px;
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary-sm:hover {
    background-color: var(--accent-color);
}

/* =========================================
   Navbar
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .logo a {
    color: var(--primary-blue);
}

.navbar.scrolled .nav-links a:not(.btn-primary-sm) {
    color: var(--text-main);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--primary-blue);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 120px;
    /* Increased from 50px */
    width: auto;
    transition: var(--transition);
    /* Adding a subtle white pill background so the dark text is visible over the hero */
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 8px;
}

.navbar.scrolled .nav-logo {
    background-color: transparent;
    padding: 0;
}

/* Brand Typography Layout */
.brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 5px;
    /* Alignment tweak against the image */
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.navbar.scrolled .brand-title {
    color: var(--primary-blue);
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

.navbar.scrolled .brand-subtitle {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    position: relative;
    z-index: 1001;
    margin-bottom: 20px;
    /* Push icon upwards */
}

/* =========================================
   Hero Section
========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('assets/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 37, 44, 0.9) 0%, rgba(35, 67, 131, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 80px;
}

.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #E2E8F0;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* =========================================
   Intro Section
========================================= */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-box:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.1);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stat-box h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* =========================================
   Products Section
========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    transition: height 0.4s ease;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card:hover::before {
    height: 100%;
}

.product-card:hover h3,
.product-card:hover p,
.product-card:hover .product-icon i,
.product-card:hover .product-icon svg {
    color: var(--white);
}

.product-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    background: rgba(255, 255, 255, 0.2);
}

.product-icon i,
.product-icon svg {
    font-size: 2rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

/* =========================================
   Why Us Section
========================================= */
.why-us {
    background: var(--dark-bg);
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    padding: 35px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.why-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.why-card p {
    color: #94A3B8;
    font-size: 0.95rem;
}

/* =========================================
   Workflow Section
========================================= */
.workflow-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.workflow-content {
    flex: 1;
}

.workflow-img {
    flex: 1;
}

.image-mockup {
    width: 100%;
    height: clamp(300px, 40vw, 500px);
    border-radius: 24px;
    background-color: var(--dark-bg);
    background: url('assets/workflow-bg.jpg') center/cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.timeline {
    margin-top: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(59, 130, 246, 0.2);
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 42px;
    height: 42px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-family: var(--font-heading);
    z-index: 2;
    box-shadow: 0 0 0 8px var(--light-bg);
    flex-shrink: 0;
}

.timeline-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-text p {
    color: var(--text-muted);
}

/* =========================================
   Applications Section
========================================= */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.app-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.app-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.app-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.app-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative geometry in footer */
.footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    gap: 50px;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

.footer-logo {
    height: 150px;
    /* Increased from 70px */
    width: auto;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
}

.footer-brand p {
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-contact h3,
.footer-form h3 {
    color: var(--white);
    margin-bottom: 25px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.contact-list i {
    margin-top: 5px;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    position: relative;
    z-index: 2;
}

/* =========================================
   Animations & Transitions (Intersection Observer Classes)
========================================= */
.animate-up,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    will-change: transform, opacity;
}

.animate-up {
    transform: translateY(30px);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

/* When class 'visible' is added via JS */
.visible {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}


/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {

    .intro-grid,
    .workflow-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .workflow-img {
        width: 100%;
        margin-top: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-main);
        font-size: 1.2rem;
    }

    .nav-links a.btn-primary-sm {
        color: var(--white);
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar.scrolled .mobile-menu-btn {
        color: var(--primary-blue);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}