:root {
    --primary-color: #0d1a26; /* Dark Blue-Gray */
    --secondary-color: #1a334d; /* Slightly lighter Dark Blue-Gray */
    --accent-color: #4CAF50; /* Green (Placeholder, can change) */
    --text-color-light: #f0f0f0;
    --text-color-dark: #333;
    --bg-light: #f8f8f8;
    --bg-dark: #121E2F;
    --card-bg: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.25);

    --gradient-hero: linear-gradient(135deg, rgba(13, 26, 38, 0.9), rgba(26, 51, 77, 0.9));
    --gradient-impact: linear-gradient(45deg, rgba(13, 26, 38, 0.9), rgba(26, 51, 77, 0.9));

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.6em; }
p { margin-bottom: 1em; }

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px var(--shadow-strong);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color-light);
    background: linear-gradient(90deg, #A8C0FF, #3F2B96); /* Elegant gradient for logo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Required for text-fill-color */
    width: 100%;
}


/* Section Padding */
.section-padded {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.bg-dark h3 {
    color: var(--text-color-light);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4CAF50, #2E8B57);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #666;
}

/* Hero Section - Opening Gateway */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('images/image_8.jpg') center center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 1;.9;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h2 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 0 4px 8px var(--shadow-strong);
    letter-spacing: 1.5px;
}

.hero-content p {
    font-size: 1.5em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    color: var(--text-color-light);
    opacity: 1;.9;
}

/* Trajectory Unveiled */
.layout-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.layout-two-col .col-text h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.layout-two-col .col-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #555;
}

.layout-two-col .col-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-strong);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.layout-two-col .col-image img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* Velocity Engines - Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns as per requirement */
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px var(--shadow-strong);
}

.card img {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease-in-out;
}
.card:hover img {
    transform: scale(1.03);
}

.card h4 {
    font-size: 1.8em;
    margin: 25px 20px 10px;
    color: var(--primary-color);
}

.card p {
    font-size: 1em;
    color: #666;
    padding: 0 20px;
    margin-bottom: 0;
}

/* Kinetic Flows - Visual Steps */
.flow-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 60px;
    position: relative;
    padding: 0 40px; /* Padding for the line */
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: linear-gradient(to right, #A8C0FF, #3F2B96);
    z-index: 0;
}

.flow-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--bg-light); /* Background for text blocks */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1; /* Ensure step content is above the line */
}

.flow-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.flow-step .step-icon {
    position: absolute;
    top: -30px; /* Adjust to align with the line */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4CAF50, #2E8B57);
    color: var(--text-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 4px solid var(--bg-light); /* To create a distinct circle */
    z-index: 2; /* Above the line and step content */
}

.flow-step h4 {
    margin-top: 40px; /* Space after icon */
    font-size: 1.6em;
    color: var(--primary-color);
}

.flow-step p {
    font-size: 0.95em;
    color: #777;
}

/* Horizon Echoes - Impact Section */
.impact-section {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background: url('images/image_9.jpg') center center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    margin-top: 80px;
    overflow: hidden;
}

.impact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-impact);
    opacity: 1;.92;
    z-index: 1;
}

.impact-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.impact-content h3 {
    font-size: 3.5em;
    margin-bottom: 25px;
    color: var(--text-color-light);
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.impact-content p {
    font-size: 1.3em;
    line-height: 1.7;
    margin-bottom: 1.5em;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

/* Animations */
.fade-in {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.8em; }
    h4 { font-size: 1.4em; }

    .hero-content h2 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2.2em;
    }
    .section-subtitle {
        font-size: 1.1em;
        margin-bottom: 40px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
        gap: 25px;
    }

    .flow-steps {
        flex-wrap: wrap;
        gap: 30px;
        padding: 0 20px;
    }
    .flow-steps::before {
        left: 30px;
        right: 30px;
        top: 70px; /* Adjust for wrap */
    }
    .flow-step {
        flex: 1 1 calc(50% - 15px); /* Two columns on tablets */
        padding-top: 60px;
    }
    .flow-step .step-icon {
        top: -20px;
    }
    .flow-step h4 {
        margin-top: 30px;
    }

    .impact-content h3 {
        font-size: 2.8em;
    }
    .impact-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
    }
    .brand-logo {
        font-size: 2em;
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    .hero-content h2 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1em;
    }

    .layout-two-col {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 40px;
    }
    .layout-two-col .col-text h3 {
        font-size: 2em;
    }
    .layout-two-col .col-image {
        order: -1; /* Image appears first on mobile */
    }

    .section-padded {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2em;
    }
    .section-subtitle {
        margin-bottom: 30px;
    }

    .card-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    .flow-steps {
        flex-direction: column; /* Stack steps on mobile */
        gap: 25px;
        padding: 0;
    }
    .flow-steps::before {
        display: none; /* Hide line on mobile */
    }
    .flow-step {
        flex: none; /* Reset flex sizing */
        width: 100%;
        padding-top: 20px; /* Adjust padding as icon is relative to step */
    }
    .flow-step .step-icon {
        position: static; /* Position normally */
        transform: none;
        margin: -40px auto 15px auto; /* Adjust to sit outside/above the card visually */
        border-width: 2px;
    }

    .impact-section {
        height: 50vh;
        min-height: 350px;
        margin-top: 60px;
    }
    .impact-content h3 {
        font-size: 2.2em;
    }
    .impact-content p {
        font-size: 1em;
    }

    .main-footer {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .brand-logo {
        font-size: 1.8em;
    }

    .hero-content h2 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.8em;
    }
    .section-subtitle {
        font-size: 0.9em;
        margin-bottom: 25px;
    }

    .card h4 {
        font-size: 1.5em;
    }
    .card p {
        font-size: 0.9em;
    }

    .flow-step h4 {
        font-size: 1.4em;
    }
    .flow-step p {
        font-size: 0.85em;
    }

    .impact-content h3 {
        font-size: 1.8em;
    }
    .impact-content p {
        font-size: 0.9em;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
