:root {
    --bg: #ffffff;
    --text: #1f1f1f;
    --muted: #555;
    --primary: #44a346;
    --primary-2: #2f7e30;
    --surface: #f7f7f7;
    --card: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 24px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
    --bg: #0a0d0f;
    --text: #f0f2f5;
    --muted: #b0b4b8;
    --primary: #5bc76a;
    --primary-2: #3d9e4a;
    --surface: #1a1f24;
    --card: #1e2329;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
header {
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
    height: 40px;
}

header .logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: #6CC04A;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6CC04A;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-header {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-header.sign-up {
    background: transparent;
    color: #6CC04A;
    border: 2px solid #6CC04A;
}

.btn-header.sign-up:hover {
    background: #6CC04A;
    color: #fff;
}

.btn-header.order-now {
    background: #6CC04A;
    color: #fff;
    border: 2px solid #6CC04A;
}

.btn-header.order-now:hover {
    background: #5cb13a;
    border-color: #5cb13a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 192, 74, 0.3);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    width: 36px;
    height: 28px;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}
.theme-toggle {
    border: none;
    background: var(--surface);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
}

nav .theme-toggle {
    margin-left: 20px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}
.skip-link:focus { top: 10px; }

/* Hero */
.hero {
    min-height: 30vh;
    background: radial-gradient(120% 80% at 30% 30%, var(--primary) 0%, var(--primary-2) 60%, #1b4d1c 100%);
    color: white;
    text-align: left;
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; max-width: 1200px; margin: 0 auto; gap: 24px; }

.hero h1 {
    font-size: clamp(38px, 6vw, 62px);
    margin-bottom: 15px;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-sub { opacity: 0.9; }
.hero-rotator { height: 28px; margin-top: 8px; }
#rotator { font-weight: 700; }

.cta-group { 
    display: inline-flex; 
    gap: 14px; 
    margin-top: 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cta-btn:hover { 
    background: #f0f0f0; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-btn.ghost { 
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; 
    color: #fff; 
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.cta-btn.ghost:hover { 
    background: rgba(255,255,255,0.15); 
    border-color: #fff;
}

/* Dark mode styles */
[data-theme="dark"] .cta-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(91, 199, 106, 0.3);
}

[data-theme="dark"] .cta-btn:hover {
    background: #4ab75a;
    box-shadow: 0 4px 14px rgba(91, 199, 106, 0.4);
}

[data-theme="dark"] .cta-btn.ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
}

[data-theme="dark"] .cta-btn.ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

.decor .blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.28; }
.decor .b1 { width: 240px; height: 240px; background: #78d37f; left: -60px; top: 20%; animation: float 12s infinite ease-in-out; }
.decor .b2 { width: 160px; height: 160px; background: #b6f0ba; right: 10%; top: 10%; animation: float 14s infinite ease-in-out reverse; }
.decor .b3 { width: 180px; height: 180px; background: #3aa14e; right: 20%; bottom: -60px; animation: float 16s infinite ease-in-out; }

.hero-visual { display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.phone-mock { width: 240px; height: 520px; border-radius: 36px; background: var(--card); box-shadow: 0 20px 40px rgba(0,0,0,0.35); position: relative; transform-style: preserve-3d; transition: transform 0.2s ease; }
.phone-mock::after { content: ""; position: absolute; inset: 10px; border-radius: 28px; border: 2px solid rgba(0,0,0,0.06); }
.phone-mock img { width: 100%; height: 100%; object-fit: contain; border-radius: 30px; display: block; }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-20px) } }


/* Sections */
section {
    padding: 70px 40px;
    min-height: 30vh;
    display: grid;
    align-content: center;
}

/* Problem-Solution */
.problem-solution .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    padding: 25px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.green {
    background: #44a346;
    color: white;
}

/* Overview Grid */
.overview h2, .impact h2, .workflow h2, .features h2, .testimonials h2, .faq h2, .cta h2 {
    text-align: center;
    margin-bottom: 20px;
}

.section-text {
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.box {
    padding: 24px;
    background: var(--card);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.1));
}

.box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(91, 199, 106, 0.3);
}

.box h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.box p {
    color: var(--muted);
    line-height: 1.6;
}

/* Impact */
.features-grid, .impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card, .impact-card {
    background: var(--card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(68, 163, 70, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.1));
}

.feature-card:hover, .impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14), 0 10px 24px rgba(68, 163, 70, 0.18);
    border-color: rgba(91, 199, 106, 0.28);
}

.feature-content, .impact-content {
    padding: 24px;
    background: var(--card);
}

.feature-card h3, .impact-card h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p, .impact-card p {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.feature-card .list.mini li, .impact-card .list.mini li {
    color: var(--muted);
    position: relative;
    padding-left: 24px;
}

.feature-card .list.mini li:before, .impact-card .list.mini li:before {
    content: '✓';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.impact .count { font-size: 42px; font-weight: 700; color: var(--primary); }


/* Workflow Steps */
.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    width: 200px;
}

.step span {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 20px;
    line-height: 45px;
    margin-bottom: 10px;
}
/* Remove default list styling from all cards */
.feature-card ul,
.workflow-card ul,
.box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Add custom bullet styling for feature and workflow cards */
.feature-card .list.mini li,
.workflow .list.mini li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.feature-card .list.mini li:before,
.workflow .list.mini li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Remove any remaining bullet points from other list items */
ul {
    list-style: none;
    padding-left: 0;
}

/* Ensure consistent spacing for list items */
li {
    margin-bottom: 6px;
}

/* Contact Section */
#cta {
    padding: 80px 0;
    background: var(--bg);
    color: var(--text);
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

#cta .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

#cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    transition: color 0.3s ease;
}

#cta h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    transition: background 0.3s ease;
}

#cta .section-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    transition: color 0.3s ease;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.1));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(68, 163, 70, 0.12);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--card);
    border: 2px solid var(--card-border, #e0e0e0);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(91, 199, 106, 0.3);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

.cta-btn {
    background: #44a346;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #3d903f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 163, 70, 0.3);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: var(--muted);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--card);
    padding: 0 8px;
    font-size: 0.9rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--card);
}

@media (max-width: 768px) {
    #cta {
        padding: 60px 0;
    }
    
    #cta h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.testimonials .slider { position: relative; max-width: 900px; margin: 0 auto; }
.testimonials .slide { display: none; text-align: center; padding: 20px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.testimonials .slide.active { display: block; }
.testimonials .author { margin-top: 10px; color: var(--muted); }
.slider-controls { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.slider-controls button { width: 40px; height: 40px; border: none; border-radius: 8px; background: var(--surface); color: var(--text); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--surface); }
.dots button.active { background: var(--primary); }



/* Footer */
footer {
    background: var(--surface);
    color: var(--text);
    padding: 60px 40px 30px;
    border-top: 1px solid var(--card-border, rgba(0,0,0,0.08));
}

.footer-inner { 
    max-width: 1100px; 
    margin: 0 auto;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px; 
    align-items: start; 
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 35px;
    margin-bottom: 12px;
}

.footer-brand .footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-brand p { 
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-links h4, .footer-contact h4 { 
    font-size: 1rem; 
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-links ul { 
    list-style: none; 
    margin: 0;
    padding: 0; 
    display: grid; 
    gap: 12px; 
}

.footer-links a { 
    text-decoration: none; 
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-links a:hover { 
    color: var(--primary); 
}

.footer-contact .mail { 
    display: inline-block; 
    margin-bottom: 8px;
    color: var(--muted); 
    text-decoration: none; 
    transition: color 0.2s ease;
}

.footer-contact .mail:hover { 
    color: var(--primary); 
}

.footer-contact p { 
    color: var(--muted); 
}

.footer-social { 
    margin-top: 20px; 
    display: inline-flex; 
    gap: 12px; 
}

.footer-social a { 
    display: inline-flex; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--card-border, rgba(0,0,0,0.1));
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover { 
    transform: translateY(-2px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-bottom { 
    padding-top: 24px; 
    border-top: 1px solid var(--card-border, rgba(0,0,0,0.1)); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px; 
    flex-wrap: wrap; 
    font-size: 0.9rem;
}

.footer-bottom .copy, .footer-bottom .credit { 
    color: var(--muted); 
}

/* --- Scroll Animations --- */

/* Default state for all reveal items */
.reveal {
    opacity: 0;
}

/* Generic fade-in-up for sections that don't have custom animations */
.reveal.is-visible {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom animation for Overview section */
#overview.reveal .overview-media,
#overview.reveal .box {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#overview.reveal .overview-media {
    transform: translateX(-50px);
}

#overview.reveal .box {
    transform: translateX(50px);
}

#overview.reveal.is-visible .overview-media,
#overview.reveal.is-visible .box {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger for overview boxes */
#overview.reveal.is-visible .box:nth-child(1) { transition-delay: 0.15s; }
#overview.reveal.is-visible .box:nth-child(2) { transition-delay: 0.25s; }
#overview.reveal.is-visible .box:nth-child(3) { transition-delay: 0.35s; }


/* Custom animation for Features section cards */
.features.reveal .feature-card {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.features.reveal.is-visible .feature-card {
    opacity: 1;
    transform: scale(1);
}

/* Stagger for feature cards */
.features.reveal.is-visible .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features.reveal.is-visible .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features.reveal.is-visible .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features.reveal.is-visible .feature-card:nth-child(4) { transition-delay: 0.4s; }


/* Custom animation for Workflow timeline */
.workflow.timeline .workflow-card {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.workflow.timeline .workflow-card:nth-child(odd) {
    transform: translateX(-40px);
}

.workflow.timeline .workflow-card:nth-child(even) {
    transform: translateX(40px);
}

.workflow.timeline.is-visible .workflow-card {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger for timeline cards */
.workflow.timeline.is-visible .workflow-card:nth-child(1) { transition-delay: 0.15s; }
.workflow.timeline.is-visible .workflow-card:nth-child(2) { transition-delay: 0.3s; }
.workflow.timeline.is-visible .workflow-card:nth-child(3) { transition-delay: 0.45s; }
.workflow.timeline.is-visible .workflow-card:nth-child(4) { transition-delay: 0.6s; }


/* Custom animation for CTA section */
#cta.reveal .contact-form {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#cta.reveal.is-visible .contact-form {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.portals-grid, .arch-grid, .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.portal-card, .tech-card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 20px; }
.list { margin: 10px 0 0 20px; }

@media (max-width: 900px) {
    nav { position: fixed; inset: 0 0 auto auto; right: 20px; top: 70px; background: var(--card); padding: 16px; border-radius: 12px; box-shadow: var(--shadow); display: none; flex-direction: column; align-items: flex-start; }
    nav.open { display: flex; }
    .menu-toggle { display: inline-flex; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { margin-top: 24px; }
    nav .theme-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Team Section */
.team {
    background: var(--surface);
    padding: 80px 40px;
    text-align: center;
}

.team h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.team-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.team-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
    padding: 20px 0;
}

.team-card {
    flex: 0 0 300px;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(68, 163, 70, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.1));
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.14), 0 12px 28px rgba(68, 163, 70, 0.18);
    border-color: rgba(91, 199, 106, 0.28);
}

.team-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-content {
    padding: 24px;
    text-align: left;
}

.team-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-bio {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Slider Controls */
.team-prev,
.team-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: 3px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(68, 163, 70, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.team-prev {
    left: 20px;
}

.team-next {
    right: 20px;
}

.team-prev:hover,
.team-next:hover {
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 32px rgba(68, 163, 70, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.team-prev:active,
.team-next:active {
    transform: translateY(-50%) scale(1.05);
}

/* Arrow icon styling */
.team-prev svg,
.team-next svg {
    width: 24px;
    height: 24px;
    stroke-width: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Dark mode adjustments */
[data-theme="dark"] .team-prev,
[data-theme="dark"] .team-next {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: var(--card);
    box-shadow: 0 8px 24px rgba(91, 199, 106, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .team-prev:hover,
[data-theme="dark"] .team-next:hover {
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow: 0 12px 32px rgba(91, 199, 106, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team {
        padding: 60px 20px;
    }
    
    .team h2 {
        font-size: 2rem;
    }
    
    .team-slider {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .team-container {
        gap: 16px;
        padding: 20px 20px;
    }
    
    .team-card {
        flex: 0 0 280px;
    }
    
    .team-prev,
    .team-next {
        width: 40px;
        height: 40px;
    }
    
    .team-prev {
        left: 10px;
    }
    
    .team-next {
        right: 10px;
    }
    
    .team-content h3 {
        font-size: 1.25rem;
    }
    
    .team-role {
        font-size: 0.85rem;
    }
    
    .team-bio {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .team-card {
        flex: 0 0 250px;
    }
    
    .team-image {
        height: 280px;
    }
    
    .team-content {
        padding: 20px;
    }
}

/* Animation for team cards */
.team.reveal .team-card {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.team.reveal.is-visible .team-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger animation for team cards */
.team.reveal.is-visible .team-card:nth-child(1) { transition-delay: 0.1s; }
.team.reveal.is-visible .team-card:nth-child(2) { transition-delay: 0.2s; }
.team.reveal.is-visible .team-card:nth-child(3) { transition-delay: 0.3s; }
.team.reveal.is-visible .team-card:nth-child(4) { transition-delay: 0.4s; }
.team.reveal.is-visible .team-card:nth-child(5) { transition-delay: 0.5s; }
.team.reveal.is-visible .team-card:nth-child(6) { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

.overview { background: radial-gradient(900px 300px at 10% 10%, #eef8f1 0%, #ffffff 60%); }
.features { background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%); }
.workflow { background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%); }
.impact { background: var(--surface); }
.features .features-grid, .impact .impact-grid, .workflow .steps { max-width: 1100px; margin: 0 auto; }

.reveal h2, .reveal .section-text { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.is-visible h2, .reveal.is-visible .section-text { opacity: 1; transform: translateY(0); }

.overview-media { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.overview-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(68,163,70,0.25), rgba(47,126,48,0.1)); }
.overview-media img { width: 100%; height: auto; display: block; }
.overview-points { display: grid; gap: 16px; }

@media (max-width: 900px) {
    .overview-grid { grid-template-columns: 1fr; }
}

.feature-media { position: relative; height: 160px; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.feature-content { padding: 20px; }
.list.mini { margin: 8px 0 0 18px; }
.list.mini li { margin-bottom: 6px; }

@media (max-width: 600px) {
    .feature-media { height: 140px; }
}

/* Workflow redesigned cards */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Timeline Container */
.workflow.timeline .workflow-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 40px 0;
}

/* The central timeline bar */
.workflow.timeline .workflow-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 4px;
    background: var(--surface);
    border-radius: 2px;
}

/* Timeline Card Styling */
.workflow.timeline .workflow-card {
    width: calc(50% - 40px); /* Half width minus spacing */
    margin-bottom: 50px;
    position: relative;
}

/* Position cards on either side of the timeline */
.workflow.timeline .workflow-card:nth-child(odd) {
    align-self: flex-start;
    margin-right: 40px;
}

.workflow.timeline .workflow-card:nth-child(even) {
    align-self: flex-end;
    margin-left: 40px;
}



.workflow.timeline .workflow-card::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--bg);
    border-radius: 50%;
}

/* Position the timeline dots correctly */
.workflow.timeline .workflow-card:nth-child(odd)::after {
    right: -60px; /* (width of card margin + half of dot width) */
}

.workflow.timeline .workflow-card:nth-child(even)::after {
    left: -60px; /* (width of card margin + half of dot width) */
}

/* Adjust for medium screens */
@media (max-width: 1200px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

/* Adjust for small screens */
@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .workflow.timeline .workflow-grid::before {
        left: 20px;
        transform: translateX(0);
    }

        .workflow.timeline .workflow-card,
    .workflow.timeline .workflow-card:nth-child(odd),
    .workflow.timeline .workflow-card:nth-child(even) {
        width: 100%;
        align-self: auto;
        margin: 0 0 30px 0;
        padding-left: 40px;
    }

    .workflow.timeline .workflow-card::after {
        left: 10px;
        right: auto;
    }
}

.workflow-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(68, 163, 70, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
}

.workflow-grid > .workflow-card {
    height: 100%;
}

.workflow-media {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.workflow-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.workflow-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.workflow-content h3 {
    color: var(--text);
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.workflow-content p {
    color: var(--muted);
    margin: 0 0 16px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.workflow .list.mini {
    margin: 0 0 0 20px;
    padding: 0;
}

.workflow .list.mini li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 24px;
    color: var(--muted);
    line-height: 1.5;
}

.workflow .list.mini li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.workflow.reveal .workflow-card { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.workflow.reveal.is-visible .workflow-card { opacity: 1; transform: translateY(0); animation: spinY 12s ease-in-out infinite; }
.workflow.reveal.is-visible .workflow-card:nth-child(1) { transition-delay: 0.05s; }
.workflow.reveal.is-visible .workflow-card:nth-child(2) { transition-delay: 0.1s; }
.workflow.reveal.is-visible .workflow-card:nth-child(3) { transition-delay: 0.15s; }
.workflow.reveal.is-visible .workflow-card:nth-child(4) { transition-delay: 0.2s; }

/* Hover and animation effects */
.workflow-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16), 0 10px 24px rgba(68, 163, 70, 0.16);
    border-color: rgba(91, 199, 106, 0.24);
}

.workflow-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Animation for workflow cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workflow.reveal.is-visible .workflow-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.workflow.reveal.is-visible .workflow-card:nth-child(1) { animation-delay: 0.1s; }
.workflow.reveal.is-visible .workflow-card:nth-child(2) { animation-delay: 0.2s; }
.workflow.reveal.is-visible .workflow-card:nth-child(3) { animation-delay: 0.3s; }
.workflow.reveal.is-visible .workflow-card:nth-child(4) { animation-delay: 0.4s; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { text-align: center; }
  .footer-links ul { justify-items: center; }
  .footer-bottom { justify-content: center; }

  .team .member-card { width: 88vw; flex-basis: 88vw; margin: 0 auto; }
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .impact-card,
[data-theme="dark"] .workflow-card,
[data-theme="dark"] .box,
[data-theme="dark"] .team-card,
[data-theme="dark"] .contact-form {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    border-color: var(--card-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(91, 199, 106, 0.12);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .impact-card:hover,
[data-theme="dark"] .workflow-card:hover,
[data-theme="dark"] .team-card:hover,
[data-theme="dark"] .box:hover,
[data-theme="dark"] .contact-form:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 12px 28px rgba(91, 199, 106, 0.18);
}

[data-theme="dark"] .badge {
    background: rgba(91, 199, 106, 0.22);
    color: #e6f8ea;
    border: 1px solid rgba(91, 199, 106, 0.35);
}

