/* ============================================================
   STRONG MOMENTS TECHNOLOGIES — Design System v2
   Enhanced: dynamic hero, animated dark sections, service pages
   ============================================================ */

:root {
    --color-brand-green: #2E7D32;
    --color-brand-green-hover: #1B5E20;
    --color-brand-green-light: #E8F5E9;
    --color-brand-green-mid: #43A047;
    --color-bg-white: #FFFFFF;
    --color-bg-cream: #F5F4EE;
    --color-bg-dark: #0A0A0A;
    --color-bg-dark-card: #141414;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #6B6B6B;
    --color-text-muted: #A0A0A0;
    --color-text-white: #FFFFFF;
    --color-border: #E5E5E5;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;
    --container-max: 1200px;
    --nav-height: 80px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-primary);
    background: var(--color-bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 200ms ease;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 28px;
    line-height: 1.3;
}

h4 {
    font-size: 20px;
    font-weight: 500;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* ---------- Sections ---------- */
.section {
    padding: var(--space-12) 0;
}

.section-white {
    background: var(--color-bg-white);
}

.section-cream {
    background: var(--color-bg-cream);
}

.section-dark {
    background: var(--color-bg-dark);
}

.section-header {
    margin-bottom: var(--space-8);
}

.section-header h2 {
    margin-top: var(--space-2);
}

.section-dark .section-header h2 {
    color: var(--color-text-white);
}

.section-footer {
    margin-top: var(--space-6);
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-green);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chip-dark {
    background: #1A3320;
    color: #4CAF50;
}

.chip-light {
    background: var(--color-brand-green-light);
    color: var(--color-brand-green);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 200ms ease;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

.btn-primary {
    background: var(--color-brand-green);
    color: var(--color-text-white);
}

.btn-primary:hover {
    background: var(--color-brand-green-hover);
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--color-brand-green);
    color: var(--color-brand-green);
}

.btn-ghost:hover {
    background: var(--color-brand-green-light);
}

.btn-ghost-dark {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-white);
}

.btn-ghost-dark:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost-white {
    background: transparent;
    border: 1.5px solid var(--color-text-white);
    color: var(--color-text-white);
}

.btn-ghost-white:hover {
    background: var(--color-text-white);
    color: var(--color-brand-green);
}

.btn-arrow {
    font-size: 18px;
    transition: transform 200ms ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-brand-green);
    font-size: 14px;
    font-weight: 600;
    transition: all 200ms ease;
}

.text-link:hover {
    text-decoration: underline;
    gap: 10px;
}

.text-link .material-symbols-outlined {
    font-size: 16px;
    transition: transform 200ms ease;
}

.text-link:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* ---------- Cards ---------- */
.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 250ms ease;
}

.card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 32px;
    color: var(--color-brand-green);
    margin-bottom: var(--space-3);
    display: block;
}

.card-title {
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.card-body {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.card-grid {
    display: grid;
    gap: var(--space-3);
}

.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ---------- NAVBAR (FIXED) ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 300ms ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 64px;
    width: auto;
}

.logo-icon {
    font-size: 28px;
    color: var(--color-brand-green);
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-white);
    transition: color 300ms ease;
}

.navbar.scrolled .logo-text {
    color: var(--color-text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 24px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 200ms ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brand-green);
    transition: width 250ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #4CAF50;
}

.navbar.scrolled .nav-link {
    color: var(--color-text-primary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--color-brand-green);
}

.nav-cta {
    font-size: 15px;
    padding: 12px 24px;
}

/* Services dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown>.nav-link .material-symbols-outlined {
    font-size: 18px;
    transition: transform 200ms ease;
}

.nav-dropdown:hover>.nav-link .material-symbols-outlined {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 200ms ease;
    z-index: 200;
    margin-top: 16px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 150ms ease;
}

.dropdown-menu a:hover {
    background: var(--color-brand-green-light);
    color: var(--color-brand-green);
}

.dropdown-menu a .material-symbols-outlined {
    font-size: 20px;
    color: var(--color-brand-green);
    opacity: 0.7;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

/* Inner pages: always light navbar */
.navbar-light {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--color-border);
}

.navbar-light .logo-text {
    color: var(--color-text-primary);
}

.navbar-light .nav-link {
    color: var(--color-text-primary);
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
    color: var(--color-brand-green);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-white);
    border-radius: 2px;
    transition: all 200ms ease;
}

.navbar.scrolled .hamburger span,
.navbar-light .hamburger span {
    background: var(--color-text-primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu .nav-link {
    color: var(--color-text-primary);
    font-size: 16px;
    padding: 8px 0;
}

/* ============= HERO ============= */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-12) var(--space-3);
}

/* Canvas-based particle system sits behind all content */
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Image slideshow layer */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

.hero-slide.active {
    opacity: 0.45;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

/* Dark overlay gradient for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        radial-gradient(ellipse at center, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.75) 70%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.8) 100%);
}

/* Hero with background image */
.hero-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-image .hero-overlay {
    background:
        radial-gradient(ellipse at center, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.85) 80%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.45) 50%, rgba(10, 10, 10, 0.9) 100%);
}

/* Green glow under content */
.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: radial-gradient(circle at center, rgba(46, 125, 50, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    color: var(--color-text-white);
    margin: var(--space-4) 0 var(--space-3);
}

.hero-subtitle {
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: var(--space-6);
}

.hero-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
}

/* Inner page heroes */
.hero-inner {
    min-height: auto;
    padding: var(--space-12) var(--space-3);
    text-align: center;
}

.hero-inner .hero-content {
    max-width: 900px;
}

.hero-short {
    padding: var(--space-8) var(--space-3);
}

/* ============= ANIMATED DARK SECTIONS ============= */

/* Shared animated dark section base */
.dark-animated {
    position: relative;
    overflow: hidden;
}

.dark-animated>canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dark-animated>.container {
    position: relative;
    z-index: 5;
}

/* About Hero: floating geometric shapes */
.hero-about-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    border: 1px solid rgba(46, 125, 50, 0.2);
    animation: floatShape 15s ease-in-out infinite;
    opacity: 0.3;
}

.geo-shape.circle {
    border-radius: 50%;
}

.geo-shape.square {
    border-radius: 4px;
}

.geo-shape.diamond {
    transform: rotate(45deg);
}

.geo-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.geo-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 85%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.geo-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 70%;
    animation-delay: 5s;
    animation-duration: 20s;
}

.geo-shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 70%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 16s;
}

.geo-shape:nth-child(5) {
    width: 50px;
    height: 50px;
    top: 15%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.geo-shape:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 40%;
    animation-delay: 1s;
    animation-duration: 19s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-25px) rotate(8deg);
        opacity: 0.35;
    }
}

.geo-shape.diamond {
    animation-name: floatDiamond;
}

@keyframes floatDiamond {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.2;
    }

    25% {
        transform: rotate(50deg) translateY(-15px);
        opacity: 0.35;
    }

    50% {
        transform: rotate(42deg) translateY(-8px);
        opacity: 0.3;
    }

    75% {
        transform: rotate(52deg) translateY(-20px);
        opacity: 0.4;
    }
}

/* Services Hero: flowing circuit lines */
.hero-circuit-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent 0%, rgba(46, 125, 50, 0.3) 50%, transparent 100%);
    height: 1px;
    animation: circuitFlow 6s linear infinite;
}

.circuit-line:nth-child(1) {
    top: 20%;
    width: 200px;
    left: -200px;
    animation-delay: 0s;
}

.circuit-line:nth-child(2) {
    top: 40%;
    width: 300px;
    left: -300px;
    animation-delay: 1.2s;
}

.circuit-line:nth-child(3) {
    top: 60%;
    width: 150px;
    left: -150px;
    animation-delay: 2.5s;
}

.circuit-line:nth-child(4) {
    top: 80%;
    width: 250px;
    left: -250px;
    animation-delay: 0.8s;
}

.circuit-line:nth-child(5) {
    top: 30%;
    width: 180px;
    left: -180px;
    animation-delay: 3.5s;
}

.circuit-line:nth-child(6) {
    top: 70%;
    width: 220px;
    left: -220px;
    animation-delay: 1.8s;
}

.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(46, 125, 50, 0.4);
    border-radius: 50%;
    animation: nodePulse 3s ease-in-out infinite;
}

.circuit-node:nth-child(7) {
    top: 20%;
    left: 15%;
    animation-delay: 0.5s;
}

.circuit-node:nth-child(8) {
    top: 45%;
    left: 60%;
    animation-delay: 1s;
}

.circuit-node:nth-child(9) {
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.circuit-node:nth-child(10) {
    top: 35%;
    left: 35%;
    animation-delay: 0s;
}

.circuit-node:nth-child(11) {
    top: 55%;
    left: 90%;
    animation-delay: 1.5s;
}

.circuit-node:nth-child(12) {
    top: 85%;
    left: 25%;
    animation-delay: 2.5s;
}

@keyframes circuitFlow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(100vw + 300px));
    }
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.3);
    }

    50% {
        transform: scale(1.8);
        opacity: 0.7;
        box-shadow: 0 0 12px 4px rgba(46, 125, 50, 0.15);
    }
}

/* Blog Hero: typing cursor */
.hero-blog-cursor {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(46, 125, 50, 0.15);
    white-space: nowrap;
    animation: codeFade 8s ease-in-out infinite;
}

.code-line:nth-child(1) {
    top: 15%;
    left: 3%;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    top: 30%;
    left: 60%;
    animation-delay: 1.5s;
}

.code-line:nth-child(3) {
    top: 50%;
    left: 10%;
    animation-delay: 3s;
}

.code-line:nth-child(4) {
    top: 70%;
    left: 45%;
    animation-delay: 4.5s;
}

.code-line:nth-child(5) {
    top: 85%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes codeFade {

    0%,
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }

    10% {
        opacity: 1;
        transform: translateX(0px);
    }

    80% {
        opacity: 1;
        transform: translateX(0px);
    }

    90% {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Contact Hero: pulsing radar */
.hero-contact-radar {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(46, 125, 50, 0.15);
    animation: radarPulse 4s ease-out infinite;
}

.radar-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.radar-ring:nth-child(2) {
    width: 120px;
    height: 120px;
    animation-delay: 1s;
}

.radar-ring:nth-child(3) {
    width: 120px;
    height: 120px;
    animation-delay: 2s;
}

.radar-ring:nth-child(4) {
    width: 120px;
    height: 120px;
    animation-delay: 3s;
}

.radar-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(46, 125, 50, 0.6);
    border-radius: 50%;
    animation: radarDotPulse 2s ease-in-out infinite;
}

@keyframes radarPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(6);
        opacity: 0;
    }
}

@keyframes radarDotPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
        box-shadow: 0 0 20px rgba(46, 125, 50, 0.4);
    }
}

/* Mission strip animation */
.section-dark.dark-animated .mission-accent {
    position: relative;
    overflow: hidden;
}

.section-dark.dark-animated .mission-accent::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: accentShimmer 3s ease-in-out infinite;
}

@keyframes accentShimmer {

    0%,
    100% {
        top: -100%;
    }

    50% {
        top: 100%;
    }
}

/* Floating particles for dark sections */
.floating-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(46, 125, 50, 0.3);
    border-radius: 50%;
    animation: particleFloat 10s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.particle:nth-child(3) {
    left: 45%;
    top: 30%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    left: 65%;
    top: 70%;
    animation-delay: 1s;
    animation-duration: 11s;
}

.particle:nth-child(5) {
    left: 80%;
    top: 40%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 90%;
    top: 80%;
    animation-delay: 5s;
    animation-duration: 10s;
}

.particle:nth-child(7) {
    left: 35%;
    top: 85%;
    animation-delay: 2.5s;
    animation-duration: 14s;
}

.particle:nth-child(8) {
    left: 55%;
    top: 15%;
    animation-delay: 3.5s;
    animation-duration: 8s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        transform: translate(30px, -40px);
        opacity: 0.3;
    }

    90% {
        opacity: 0.5;
    }
}

/* ============= BREADCRUMBS ============= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    justify-content: center;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-text-white);
}

.breadcrumb .current {
    color: var(--color-text-white);
}

/* ============= STATS BAR ============= */
.stats-bar {
    background: var(--color-bg-cream);
    padding: var(--space-6) 0;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 var(--space-4);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-brand-green);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

/* ============= MISSION STRIP ============= */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

.mission-left {
    display: flex;
    gap: var(--space-4);
}

.mission-accent {
    width: 4px;
    background: var(--color-brand-green);
    border-radius: 2px;
    flex-shrink: 0;
    align-self: stretch;
}

.mission-heading {
    color: var(--color-text-white);
}

.mission-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
}

.mission-body {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* ============= STEPPER ============= */
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: var(--space-2);
}

.stepper-line {
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-brand-green);
    background: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-brand-green);
    margin-bottom: var(--space-3);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.step-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    max-width: 220px;
    line-height: 1.6;
}

/* ============= TECH STRIP ============= */
.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.tech-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 300ms ease;
    cursor: pointer;
}

.tech-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.tech-logo span {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* ============= CTA BANNER ============= */
.cta-banner {
    background: var(--color-brand-green);
    padding: var(--space-8) 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
            transparent 0,
            transparent 20px,
            rgba(255, 255, 255, 0.03) 20px,
            rgba(255, 255, 255, 0.03) 40px);
}

.cta-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    z-index: 2;
}

.cta-heading {
    color: var(--color-text-white);
    font-size: 36px;
}

.cta-body {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: var(--space-2);
}

/* ============= FOOTER ============= */
.footer {
    background: var(--color-bg-dark);
    padding: var(--space-8) 0 var(--space-4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-2);
}

.footer-logo .logo-icon,
.footer-logo .logo-img {
    font-size: 24px;
}

.footer-logo .logo-img {
    height: 48px;
    width: auto;
}

.footer-logo-text {
    color: var(--color-text-white);
    font-size: 16px;
    font-weight: 700;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a,
.footer-col span {
    color: var(--color-text-muted);
    font-size: 14px;
    transition: color 200ms ease;
}

.footer-col a:hover {
    color: var(--color-text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: var(--space-2);
}

.footer-social a {
    color: var(--color-text-secondary);
    transition: color 200ms ease;
}

.footer-social a:hover {
    color: var(--color-text-white);
}

/* ============= LAYOUT ============= */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: start;
}

.two-col-55-45 {
    grid-template-columns: 55% 45%;
}

.two-col-45-55 {
    grid-template-columns: 45% 55%;
}

/* ============= ABOUT PAGE ============= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: var(--color-brand-green-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
}

.value-icon .material-symbols-outlined {
    font-size: 28px;
    color: var(--color-brand-green);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.team-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 250ms ease;
}

.team-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}

.team-avatar {
    height: 380px;
    background: var(--color-bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-avatar .material-symbols-outlined {
    font-size: 64px;
    color: var(--color-text-secondary);
    opacity: 0.4;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.team-info {
    padding: var(--space-3);
}

.team-name {
    font-size: 18px;
    font-weight: 600;
}

.team-role {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
}

.geo-illustration {
    background: var(--color-bg-cream);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.geo-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ============= SERVICE DETAIL ============= */
.card-grid-2-large .card {
    padding: 40px;
}

.card-grid-2-large .card-icon {
    font-size: 56px;
}

.card-grid-2-large .card-title {
    font-size: 24px;
    font-weight: 600;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4) var(--space-6);
}

.capability {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.capability .material-symbols-outlined {
    font-size: 32px;
    color: var(--color-brand-green);
}

.capability h4 {
    font-size: 18px;
    font-weight: 600;
}

.capability p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Service hero badge */
.service-icon-badge {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(46, 125, 50, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
}

.service-icon-badge .material-symbols-outlined {
    font-size: 40px;
    color: #4CAF50;
}

/* ============= BLOG PAGE ============= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.blog-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 300ms ease;
}

.blog-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}

.blog-thumbnail {
    height: 200px;
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.blog-thumbnail-accent {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-thumbnail-accent .material-symbols-outlined {
    font-size: 100px;
    color: var(--color-brand-green);
}

.blog-content {
    padding: var(--space-3);
}

.blog-date {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

.blog-title {
    font-size: 18px;
    font-weight: 600;
    margin: var(--space-1) 0 var(--space-2);
    line-height: 1.4;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-6) 0 0;
}

.page-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 200ms ease;
    border: none;
    background: transparent;
    font-family: var(--font-family);
}

.page-num:hover {
    color: var(--color-brand-green);
    background: var(--color-brand-green-light);
}

.page-num.active {
    background: var(--color-brand-green);
    color: var(--color-text-white);
}

.page-dots {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.blog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.filter-pill {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    transition: all 200ms ease;
    background: var(--color-bg-cream);
    color: var(--color-text-secondary);
}

.filter-pill:hover {
    background: var(--color-brand-green-light);
    color: var(--color-brand-green);
}

.filter-pill.active {
    background: var(--color-brand-green);
    color: var(--color-text-white);
}

/* ============= CONTACT PAGE ============= */
.contact-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: var(--space-6);
}

.contact-info-block {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
}

.contact-info-block .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-brand-green);
    margin-top: 2px;
}

.contact-info-text h5 {
    font-size: 16px;
    font-weight: 500;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.contact-info-text a {
    color: var(--color-brand-green);
}

.contact-info-text a:hover {
    text-decoration: underline;
}

.map-placeholder {
    height: 300px;
    background: var(--color-bg-cream);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-4);
    position: relative;
    overflow: hidden;
}

.map-placeholder .material-symbols-outlined {
    font-size: 48px;
    color: var(--color-brand-green);
    opacity: 0.5;
}

.contact-form {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: var(--space-3);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-text-primary);
    background: var(--color-bg-white);
    transition: border-color 200ms ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-brand-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
}

/* ============= FADE ANIMATIONS ============= */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* staggered animations within containers */
.fade-up.visible .card:nth-child(1),
.fade-up.visible .step:nth-child(2) {
    transition-delay: 50ms;
}

.fade-up.visible .card:nth-child(2),
.fade-up.visible .step:nth-child(3) {
    transition-delay: 100ms;
}

.fade-up.visible .card:nth-child(3),
.fade-up.visible .step:nth-child(4) {
    transition-delay: 150ms;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .section {
        padding: var(--space-8) 0;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 80vh;
        padding: var(--space-8) var(--space-2);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        width: 45%;
    }

    .card-grid-3,
    .card-grid-2 {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .stepper {
        flex-direction: column;
        gap: var(--space-4);
    }

    .stepper-line {
        display: none;
    }

    .step {
        flex-direction: row;
        text-align: left;
        gap: var(--space-2);
    }

    .step-circle {
        flex-shrink: 0;
    }

    .tech-logos {
        gap: var(--space-3);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-2);
    }

    .two-col,
    .two-col-55-45,
    .two-col-45-55 {
        grid-template-columns: 1fr;
    }

    .values-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta-heading {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .container {
        padding: 0 var(--space-2);
    }

    .stat-item {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Client Logo Carousel
   ======================================== */
.client-carousel-section {
    padding: 48px 0;
    overflow: hidden;
    background: var(--color-bg-cream);
}

.client-carousel-section .section-header {
    margin-bottom: 32px;
}

.client-carousel-wrapper {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.client-carousel-track {
    display: flex;
    width: max-content;
    will-change: transform;
}


.client-carousel-track.paused {
    animation-play-state: paused !important;
}

.client-logo-item {
    flex: 0 0 auto;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 0 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.client-logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(80%);
    opacity: 0.7;
    transition: filter 300ms ease, opacity 300ms ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   Card Hover Glow
   ======================================== */
.card {
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.card:hover {
    box-shadow: 0 16px 48px rgba(46, 125, 50, 0.15);
    transform: translateY(-6px);
}

.capability {
    transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
    border-radius: 12px;
    padding: 24px;
}

.capability:hover {
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 500ms ease, transform 500ms ease;
}
.scale-in.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }

/* ========================================
   Gradient Text Shimmer
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, #2E7D32, #66BB6A, #2E7D32);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ========================================
   Button Shine Sweep
   ======================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
    transition: left 600ms ease;
}

.btn-ghost-dark:hover,
.btn-ghost-white:hover {
    box-shadow: 0 0 24px rgba(46, 125, 50, 0.3);
}

/* ========================================
   Image Hover Zoom
   ======================================== */
.card .card-img {
    transition: transform 500ms ease;
    overflow: hidden;
}

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

/* ========================================
   Service Badge Pulse
   ======================================== */
.service-icon-badge {
    animation: badge-pulse 2s ease-in-out infinite alternate;
}

@keyframes badge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    100% { box-shadow: 0 0 0 16px rgba(76, 175, 80, 0); }
}

/* ========================================
   Stats Counter Anim
   ======================================== */
.stat-number.animate {
    animation: stat-pop 600ms ease forwards;
}

@keyframes stat-pop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ========================================
   CTA Shimmer
   ======================================== */
.cta-banner {
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: cta-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cta-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ========================================
   Form Focus Glow + Success
   ======================================== */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
    border-color: var(--color-brand-green);
}

.form-success { display: none; text-align: center; padding: 48px 24px; }
.form-success.show { display: block; animation: success-pop 500ms ease; }
.form-success .material-symbols-outlined { font-size: 64px; color: var(--color-brand-green); margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--color-text-secondary); }

@keyframes success-pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========================================
   Floating Glow Orbs
   ======================================== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    animation: orb-float 8s ease-in-out infinite alternate;
}

.glow-orb-green { background: #4CAF50; width: 300px; height: 300px; }
.glow-orb-blue { background: #1565C0; width: 250px; height: 250px; animation-delay: -4s; animation-duration: 10s; }

@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.15); }
}

/* ========================================
   Typing Cursor
   ======================================== */
.typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--color-brand-green);
    margin-left: 4px;
    animation: cursor-blink 0.7s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========================================
   Section Divider Glow
   ======================================== */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-brand-green), transparent);
    border: none;
    margin: 0;
    opacity: 0.3;
}

/* ========================================
   Tech Logo Hover Float
   ======================================== */
.tech-logo {
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.tech-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Eyebrow Pulsing Dot
   ======================================== */
.eyebrow {
    position: relative;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-brand-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.4; transform: translateY(-50%) scale(0.6); }
}

/* ========================================
   Reveal Section (for whole blocks)
   ======================================== */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   Footer Link Underline
   ======================================== */
.footer-col a {
    position: relative;
    display: inline-block;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-brand-green);
    transition: width 250ms ease;
}

.footer-col a:hover::after { width: 100%; }
.footer-col a:hover { color: var(--color-brand-green); }

/* ========================================
   Nav Link Glow on Active
   ======================================== */
.nav-link.active {
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

/* ============================================================
   CASE STUDIES — Hub Page & Detail Pages
   ============================================================ */

/* ---------- Hub: Case Study Cards ---------- */
.case-study-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-bg-dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 350ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1)),
                box-shadow 350ms ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.case-study-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(46,125,50,0.18), 0 8px 24px rgba(0,0,0,0.15);
}
.case-study-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.case-study-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}
.case-study-card:hover .case-study-card-image img {
    transform: scale(1.06);
}
.case-study-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85) 100%);
}
.case-study-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(46,125,50,0.85);
    color: #fff;
    backdrop-filter: blur(8px);
}
.case-study-card-body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.case-study-card-client {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4CAF50;
    margin-bottom: 8px;
}
.case-study-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}
.case-study-card-desc {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}
.case-study-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    transition: gap 200ms ease;
}
.case-study-card:hover .case-study-card-link { gap: 12px; }

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

/* Featured card (larger, first card spans 2 cols on homepage) */
.case-study-grid-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}
.case-study-grid-featured .case-study-card:first-child {
    grid-row: 1 / 3;
}
.case-study-grid-featured .case-study-card:first-child .case-study-card-image {
    height: 100%;
    min-height: 300px;
}

/* ---------- Detail Page: Overview Section ---------- */
.cs-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}
.cs-overview-text {
    color: var(--color-text-secondary);
    font-size: 17px;
    line-height: 1.8;
}
.cs-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cs-meta-item {
    padding: 20px;
    border-radius: 12px;
    background: var(--color-bg-cream);
    border: 1px solid var(--color-border);
}
.cs-meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-green);
    margin-bottom: 6px;
}
.cs-meta-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* ---------- Detail Page: Challenge / Solution ---------- */
.cs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}
.cs-col h3 {
    margin-bottom: var(--space-3);
}
.cs-col p, .cs-col ul {
    color: var(--color-text-secondary);
    line-height: 1.8;
}
.cs-col ul {
    padding-left: 20px;
    list-style: disc;
}
.cs-col ul li {
    margin-bottom: 8px;
}
.cs-col ul li::marker {
    color: var(--color-brand-green);
}

/* ---------- Detail Page: Feature Grid ---------- */
.cs-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}
.cs-feature {
    padding: 28px 24px;
    border-radius: 14px;
    background: var(--color-bg-dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 300ms ease, transform 300ms ease;
}
.cs-feature:hover {
    border-color: rgba(46,125,50,0.3);
    transform: translateY(-4px);
}
.cs-feature .material-symbols-outlined {
    font-size: 28px;
    color: #4CAF50;
    margin-bottom: 16px;
    display: block;
}
.cs-feature h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 8px;
}
.cs-feature p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.65;
}

/* ---------- Detail Page: Results / Metrics ---------- */
.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}
.cs-result {
    text-align: center;
    padding: 32px 16px;
    border-radius: 14px;
    background: rgba(46,125,50,0.08);
    border: 1px solid rgba(46,125,50,0.15);
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.cs-result:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(46,125,50,0.12);
}
.cs-result-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-brand-green);
    line-height: 1;
    margin-bottom: 8px;
}
.cs-result-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ---------- Detail Page: Tech Stack ---------- */
.cs-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.cs-tech-pill {
    padding: 10px 22px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    transition: all 250ms ease;
}
.cs-tech-pill:hover {
    background: rgba(46,125,50,0.15);
    border-color: rgba(46,125,50,0.4);
    color: #4CAF50;
}

/* ---------- Detail Page: Testimonial ---------- */
.cs-testimonial {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-6) var(--space-4);
}
.cs-testimonial blockquote {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    font-style: italic;
    margin-bottom: var(--space-3);
    position: relative;
}
.cs-testimonial blockquote::before {
    content: '"';
    font-size: 80px;
    font-weight: 700;
    color: rgba(46,125,50,0.2);
    position: absolute;
    top: -24px;
    left: -16px;
    line-height: 1;
}
.cs-testimonial cite {
    font-style: normal;
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ---------- Homepage: Case Study Preview ---------- */
.cs-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .case-study-grid { grid-template-columns: 1fr; }
    .case-study-grid-featured { grid-template-columns: 1fr; }
    .cs-overview { grid-template-columns: 1fr; }
    .cs-two-col { grid-template-columns: 1fr; }
    .cs-feature-grid { grid-template-columns: 1fr 1fr; }
    .cs-results-grid { grid-template-columns: 1fr 1fr; }
    .cs-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .cs-feature-grid { grid-template-columns: 1fr; }
    .cs-results-grid { grid-template-columns: 1fr 1fr; }
    .cs-meta { grid-template-columns: 1fr; }
}