/* style.css */

/* --- Base Styles & Variables --- */
:root {
    --dark-navy: #0a192f;
    --navy: #112240;
    --light-navy: #172a45;
    --lightest-navy: #303C55;
    --navy-shadow: rgba(2, 12, 27, 0.7);
    --dark-slate: #495670;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --primary-blue: #6495ED; /* Cornflower Blue - vibrant but professional */
    --light-blue: #87CEFA; /* Light Sky Blue - for highlights/hovers */
    --font-sans: 'Poppins', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace; /* Fallback */
    --font-heading: 'Exo 2', sans-serif;

    --fz-xxs: 12px;
    --fz-xs: 13px;
    --fz-sm: 14px;
    --fz-md: 16px;
    --fz-lg: 18px;
    --fz-xl: 20px;
    --fz-xxl: 22px;
    --fz-heading-sm: 28px;
    --fz-heading-md: 32px;
    --fz-heading-lg: 48px;
    --fz-heading-xl: 60px;

    --border-radius: 4px;
    --nav-height: 100px;
    --nav-scroll-height: 70px;
    --tab-height: 42px;
    --tab-width: 120px;

    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition: all 0.25s var(--easing);
    --transition-long: all 0.5s var(--easing);

    --hamburger-width: 30px;
    --ham-before: top 0.1s ease-in 0.25s, opacity 0.1s ease-in;
    --ham-before-active: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
    --ham-after: bottom 0.1s ease-in 0.25s, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    --ham-after-active: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--dark-slate) var(--dark-navy);
}
/* Works on Chrome, Edge, and Safari */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--dark-navy);
}
::-webkit-scrollbar-thumb {
  background-color: var(--dark-slate);
  border-radius: 20px;
  border: 3px solid var(--dark-navy);
}


body {
    font-family: var(--font-sans);
    background-color: var(--dark-navy);
    color: var(--light-slate);
    line-height: 1.6;
    font-size: var(--fz-md);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--light-blue);
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--lightest-slate);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: clamp(var(--fz-heading-md), 7vw, var(--fz-heading-xl)); }
h2 { font-size: clamp(var(--fz-heading-sm), 5vw, var(--fz-heading-lg)); }
h3 { font-size: clamp(var(--fz-xl), 4vw, var(--fz-xxl)); color: var(--light-slate); }
h4 { font-size: var(--fz-lg); color: var(--slate); }

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--primary-blue);
    font-size: clamp(var(--fz-heading-sm), 5vw, var(--fz-heading-md));
}

.section-title i {
    margin-right: 10px;
    color: var(--light-blue);
}


.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 40px auto;
    color: var(--slate);
    font-size: var(--fz-lg);
}

.highlight {
    color: var(--primary-blue);
    font-weight: 500;
}

.content-section {
    padding: 100px 0;
}

.alternate-bg {
    background-color: var(--navy);
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: var(--fz-sm);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.cta-button:hover, .cta-button:focus {
    background-color: rgba(100, 149, 237, 0.1); /* Faded Cornflower Blue */
    outline: none;
}

.cta-button i {
    margin-left: 8px;
    transition: transform 0.2s ease-in-out;
}
.cta-button:hover i {
    transform: translateX(3px);
}


/* --- Header / Navbar --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85); /* Slightly transparent dark navy */
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    transition: height 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

#main-header.scrolled {
    height: var(--nav-scroll-height);
    box-shadow: 0 10px 30px -10px var(--navy-shadow);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--fz-xl);
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--primary-blue);
}

#main-header nav ul {
    display: flex;
    align-items: center;
}

#main-header nav ul li {
    margin: 0 15px;
}

#main-header nav ul li a {
    color: var(--light-slate);
    font-size: var(--fz-sm);
    padding: 10px;
    position: relative;
    transition: var(--transition);
}
#main-header nav ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

#main-header nav ul li a:hover,
#main-header nav ul li a:focus,
#main-header nav ul li a.active { /* Add 'active' class via JS based on scroll */
    color: var(--primary-blue);
}

#main-header nav ul li a:hover::before,
#main-header nav ul li a:focus::before,
#main-header nav ul li a.active::before {
    width: 80%;
}

.nav-cta {
    margin-left: 20px;
    font-size: var(--fz-xs);
}

#menu-toggle { /* Hamburger menu for mobile */
    display: none;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: var(--fz-xxl);
    cursor: pointer;
    z-index: 1001; /* Above nav content */
}


/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Contain background elements */
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 1)), url('https://images.unsplash.com/photo-1596193439383-8c5e940ead5a?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1600') no-repeat center center/cover; /* Placeholder image - replace with relevant Morocco/water tech */
    background-attachment: fixed; /* Parallax effect */
}

.hero-content {
    max-width: 800px;
    position: relative; /* For z-index if needed */
    z-index: 2;
}

#hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}
#hero h1 span {
    color: var(--primary-blue);
    display: block; /* Put "Redefined" on new line potentially */
    margin-top: 5px;
}

#hero .subtitle {
    font-size: var(--fz-xl);
    color: var(--light-slate);
    margin-bottom: 25px;
}
.darkmane-link {
    font-weight: 500;
    border-bottom: 1px dashed var(--primary-blue);
}
.darkmane-link:hover {
    border-bottom-style: solid;
}

#hero .action-call {
    font-size: var(--fz-lg);
    font-weight: 500;
    color: var(--lightest-slate);
    margin-bottom: 30px;
}
#hero .action-call span {
    color: var(--primary-blue);
}

.hero-cta {
    padding: 15px 35px;
    font-size: var(--fz-md);
}

/* Hero background elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 149, 237, 0.05); /* Very faint blue */
    animation: pulse 5s infinite ease-in-out alternate;
}
.bg-circle.circle-1 { width: 400px; height: 400px; top: 10%; left: 5%; animation-delay: 0s;}
.bg-circle.circle-2 { width: 600px; height: 600px; bottom: 5%; right: 10%; animation-delay: 2s;}

.bg-line {
    position: absolute;
    background: rgba(135, 206, 250, 0.1); /* Faint light blue */
    height: 2px;
    width: 30%;
    opacity: 0.5;
    transform-origin: left;
    animation: expandLine 10s infinite linear alternate;
}
.bg-line.line-1 { top: 20%; right: 0; transform: rotate(-10deg); animation-delay: 1s;}
.bg-line.line-2 { bottom: 15%; left: 0; transform: rotate(5deg); animation-delay: 3s;}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.3; }
    100% { transform: scale(1.05); opacity: 0.6; }
}
@keyframes expandLine {
    0% { width: 10%; opacity: 0.2; }
    100% { width: 35%; opacity: 0.5; }
}

/* --- Problem Section --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.problem-card {
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition-long);
    box-shadow: 0 5px 15px rgba(2, 12, 27, 0.5);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(2, 12, 27, 0.7);
}

.problem-card .icon {
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: block;
}

.problem-card h3 {
    color: var(--lightest-slate);
    font-size: var(--fz-xl);
}

.impact-statement {
    text-align: center;
    font-size: var(--fz-lg);
    font-weight: 500;
    color: var(--light-slate);
    margin-top: 50px;
}

/* --- Vision Section --- */
#vision {
     background: linear-gradient(rgba(17, 34, 64, 0.9), rgba(17, 34, 64, 1)), url('https://images.unsplash.com/photo-1516937998179-512f88546f69?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1600') no-repeat center center/cover; /* Another placeholder - maybe abstract tech/water drops */
     background-attachment: fixed;
}

.vision-points {
     display: flex;
     flex-direction: column;
     gap: 30px;
     max-width: 800px;
     margin: 40px auto;
}

.vision-point {
     display: flex;
     align-items: center;
     gap: 25px;
     background-color: rgba(10, 25, 47, 0.5); /* Semi-transparent dark navy */
     padding: 20px;
     border-radius: var(--border-radius);
     border-left: 3px solid var(--light-blue);
}

.vision-point .icon {
     font-size: 2.2em;
     color: var(--light-blue);
     min-width: 50px; /* Ensure icons align nicely */
     text-align: center;
}
.vision-point h4 {
    color: var(--lightest-slate);
    margin-bottom: 5px;
    font-size: var(--fz-lg);
}
.vision-point p {
    margin-bottom: 0;
    color: var(--light-slate);
}
.vision-tech-link {
    text-align: center;
    margin-top: 30px;
    font-size: var(--fz-md);
}
.darkmane-link-inline {
     font-weight: 500;
}


/* --- Solution Section --- */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.solution-card {
    background-color: var(--navy);
    padding: 25px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: var(--transition-long);
    border: 1px solid var(--lightest-navy); /* Subtle border */
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
    border-color: var(--primary-blue);
}

.solution-card .card-icon-bg {
    width: 60px;
    height: 60px;
    background-color: rgba(100, 149, 237, 0.1); /* Faded Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.solution-card .icon {
    font-size: 1.8em;
    color: var(--primary-blue);
}

.solution-card h3 {
    font-size: var(--fz-lg);
    color: var(--lightest-slate);
    margin-bottom: 15px;
}

.feature-list {
    margin-top: 15px;
    padding-left: 5px;
}

.feature-list li {
    font-size: var(--fz-sm);
    margin-bottom: 10px;
    color: var(--slate);
    display: flex;
    align-items: flex-start; /* Align icon with first line */
}
.feature-list li i {
    color: var(--primary-blue);
    margin-right: 10px;
    margin-top: 4px; /* Adjust vertical alignment */
    font-size: var(--fz-xs);
}

/* Subtle glow effect */
.tech-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 100px;
    background: radial-gradient(circle, rgba(100, 149, 237, 0.15) 0%, rgba(100, 149, 237, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.solution-card:hover .tech-glow {
    opacity: 1;
}


/* --- Why NeroMa Section --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: var(--navy); /* Match the alternate bg for contrast */
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 4px solid var(--light-blue);
    transition: var(--transition);
}
.why-card:hover {
    background-color: var(--light-navy);
    transform: scale(1.03);
}

.why-card .icon {
    font-size: 2.5em;
    color: var(--light-blue);
    margin-bottom: 15px;
}

.why-card h4 {
    font-size: var(--fz-lg);
    color: var(--lightest-slate);
    margin-bottom: 10px;
}
.why-card p {
    font-size: var(--fz-sm);
    color: var(--slate);
}


/* --- Roadmap Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
}

/* The vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--lightest-navy);
    top: 0;
    bottom: 0;
    left: 50px; /* Adjusted for icon size */
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px 30px 90px; /* top right bottom left */
    position: relative;
    background-color: inherit; /* Transparent */
    width: 100%;
}

/* The circular icon on the timeline */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 25px; /* Center the icon on the line */
    background-color: var(--navy);
    border: 3px solid var(--primary-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-icon i {
    font-size: 1.5em;
    color: var(--primary-blue);
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-navy);
    position: relative;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-blue);
}

.timeline-phase {
    font-weight: 600;
    color: var(--lightest-slate);
    font-size: var(--fz-lg);
    display: block;
    margin-bottom: 5px;
}

.timeline-duration {
    font-size: var(--fz-sm);
    color: var(--slate);
    display: block;
    margin-bottom: 10px;
    font-style: italic;
}
.timeline-content p {
    font-size: var(--fz-sm);
    color: var(--light-slate);
    margin-bottom: 0;
}


/* --- DarkMane / Competitive Edge Section --- */
.darkmane-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.darkmane-content {
    flex: 1;
}
.darkmane-visual {
    flex-basis: 300px; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.darkmane-content h3 {
    margin-top: 30px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}
.darkmane-title {
    margin-top: 40px;
}

.edge-list {
    margin-top: 15px;
    padding-left: 0;
}
.edge-list li {
    margin-bottom: 10px;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 10px;
}
.edge-list li i {
    color: var(--primary-blue);
}
.darkmane-external-link {
    font-weight: 500;
    color: var(--light-blue);
    border-bottom: 1px dashed var(--light-blue);
}
.darkmane-external-link:hover {
    border-bottom-style: solid;
}

/* Abstract Tech Visual Placeholder */
.tech-abstract {
    position: relative;
    width: 200px;
    height: 200px;
}
.abstract-shape {
    position: absolute;
    background-color: rgba(100, 149, 237, 0.1);
    border: 1px solid var(--primary-blue);
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}
.darkmane-visual:hover .abstract-shape {
    transform: rotate(15deg) scale(1.05);
}

.abstract-shape.shape-1 { width: 80%; height: 80%; top: 0; left: 0; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: morph 8s infinite alternate;}
.abstract-shape.shape-2 { width: 60%; height: 60%; bottom: 5%; right: 5%; border-radius: 80% 20% 20% 80% / 50% 80% 20% 50%; animation: morph 10s infinite alternate-reverse; }
.abstract-shape.shape-3 { width: 50%; height: 50%; top: 25%; left: 25%; background-color: rgba(10, 25, 47, 0.5); border: none; border-radius: 50%; opacity: 0.7;}

.tech-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: var(--light-blue);
    opacity: 0.7;
    z-index: 5;
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1);}
  50% { border-radius: 60% 40% 30% 70% / 70% 50% 50% 30%; transform: rotate(10deg) scale(1.05);}
  100% { border-radius: 40% 60% 80% 20% / 50% 70% 30% 50%; transform: rotate(-5deg) scale(0.95);}
}


/* --- Investment Section --- */
.investment-section {
    background-color: var(--dark-navy); /* Ensure strong contrast */
}

.investment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.investment-card {
    background-color: var(--navy);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--lightest-navy);
}
.investment-card .icon {
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.investment-card h4 {
    color: var(--lightest-slate);
    margin-bottom: 15px;
}
.investment-card .amount {
    font-size: var(--fz-xxl);
    font-weight: 600;
    color: var(--white);
    display: block;
    margin: 5px 0;
}
.investment-card ul {
    padding: 0;
    text-align: left;
    margin: 15px auto 0;
    max-width: 200px; /* Keep list centered nicely */
}
.investment-card li {
    font-size: var(--fz-sm);
    color: var(--slate);
    margin-bottom: 5px;
}
.investment-card.use-of-funds li {
    list-style: disc;
    margin-left: 20px; /* Indent list items */
}

.investment-impact {
    text-align: center;
    font-size: var(--fz-lg);
    color: var(--light-slate);
    max-width: 700px;
    margin: 40px auto 30px;
}

.invest-cta {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 15px 40px;
    font-size: var(--fz-lg);
}


/* --- Final CTA Section --- */
.cta-final {
    text-align: center;
    background: linear-gradient(rgba(17, 34, 64, 0.95), rgba(10, 25, 47, 1)), url('https://images.unsplash.com/photo-1551711710-634cfe5f5019?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1600') no-repeat center center/cover; /* Abstract water/tech background */
    background-attachment: fixed;
}
.cta-final .section-title {
    color: var(--white);
}
.cta-final .section-intro {
    color: var(--lightest-slate);
    font-size: var(--fz-xl);
}
.final-thought {
    font-size: var(--fz-lg);
    color: var(--light-slate);
    margin: 30px auto;
    max-width: 700px;
}
.final-thought i {
    color: var(--light-blue);
    margin-right: 8px;
}

.final-cta {
    padding: 18px 45px;
    font-size: var(--fz-lg);
}


/* --- Footer --- */
#main-footer {
    background-color: var(--navy);
    color: var(--slate);
    padding: 50px 0 30px;
    border-top: 1px solid var(--lightest-navy);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 200px; /* Ensure columns don't get too squished */
}

.footer-left .logo {
    font-size: var(--fz-xl);
    margin-bottom: 10px;
    display: inline-block;
}
.darkmane-link-footer {
    color: var(--primary-blue);
    font-weight: 500;
}
.footer-left p {
    font-size: var(--fz-sm);
    margin-bottom: 10px;
}

.footer-center h4, .footer-right h4 {
    color: var(--lightest-slate);
    margin-bottom: 15px;
    font-size: var(--fz-lg);
}

.footer-center ul li {
    margin-bottom: 8px;
}
.footer-center ul li a {
    color: var(--slate);
    font-size: var(--fz-sm);
}
.footer-center ul li a:hover {
    color: var(--primary-blue);
}

.footer-right p {
    font-size: var(--fz-sm);
    margin-bottom: 10px;
}
.footer-email {
    color: var(--slate);
    font-size: var(--fz-sm);
    display: inline-block;
}
.footer-email:hover {
    color: var(--primary-blue);
}
.footer-email i {
    margin-right: 8px;
}

/* Add styles for .social-links if you implement them */

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--lightest-navy);
    padding-top: 20px;
    margin-top: 30px;
    font-size: var(--fz-xs);
    color: var(--dark-slate);
}


/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-blue);
    color: var(--dark-navy);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fz-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    transform: translateY(20px);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background-color: var(--light-blue);
    transform: translateY(-3px);
}


/* --- Animations --- */
.animate-on-load { /* Simple fade-in for initial hero load */
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.animate-pop-in { animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.7s forwards; opacity: 0; }
.animate-slide-in { animation: slideInUp 0.8s ease-out 0.9s forwards; opacity: 0; }
.animate-drip { animation: drip 1.5s ease-in-out 1s forwards; display: inline-block; }

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes for staggered animations */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drip {
  0% { transform: translateY(-20px) scale(1); }
  50% { transform: translateY(5px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px; /* Smaller nav height */
    }

    #main-header nav ul {
        display: none; /* Hide desktop nav */
        position: fixed;
        top: 0;
        right: 0;
        width: min(75vw, 400px);
        height: 100vh;
        background-color: var(--light-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s var(--easing);
        box-shadow: -10px 0px 30px -15px var(--navy-shadow);
        padding-top: var(--nav-height); /* Space for header */
    }
     #main-header nav ul.active {
        transform: translateX(0);
        display: flex; /* Show when active */
     }

    #main-header nav ul li {
        margin: 20px 0;
    }
    #main-header nav ul li a {
        font-size: var(--fz-lg); /* Larger text for mobile nav */
    }
    .nav-cta {
        margin: 20px 0 0 0; /* Stack CTA button */
        padding: 12px 25px;
        font-size: var(--fz-md);
    }


    #menu-toggle {
        display: block; /* Show hamburger */
    }

    #hero h1 { font-size: clamp(36px, 10vw, 48px); }
    #hero .subtitle { font-size: var(--fz-lg); }

    .problem-grid, .solution-grid, .why-grid, .investment-details {
        grid-template-columns: 1fr; /* Stack cards */
    }

     .darkmane-container {
        flex-direction: column;
         text-align: center;
     }
     .darkmane-visual {
         margin-top: 30px;
         flex-basis: auto;
     }
    .tech-abstract { width: 150px; height: 150px;} /* Smaller abstract */


    .timeline::after { left: 30px; } /* Adjust line position */
    .timeline-item { padding: 10px 20px 20px 70px; } /* Adjust padding */
    .timeline-icon { width: 40px; height: 40px; left: 10px; } /* Adjust icon */
    .timeline-icon i { font-size: 1.2em; }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-left, .footer-center, .footer-right {
        min-width: unset; /* Remove min-width */
        width: 100%;
    }
     .footer-center ul {
         padding: 0;
     }

    #back-to-top {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
        font-size: var(--fz-md);
    }
}