/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    transition: background-color 300ms ease, color 300ms ease;
}

/* Color System */
:root {
    /* Primary Colors */
    --primary-500: #b3d234;
    --primary-700: #8fb91a;
    --primary-100: #f4f8e6;

    /* Neutral Colors */
    --neutral-900: #111827;
    --neutral-700: #374151;
    --neutral-500: #6B728D;
    --neutral-200: #E5E7EB;
    --neutral-100: #F3F4F6;
    --neutral-50: #F9FAFB;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Shadows */
    --shadow-md: 0 4px 12px rgba(0, 87, 255, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 87, 255, 0.1);
}

/* Dark Mode Color Variables */
.dark-mode {
    /* Dark Mode Colors */
    --primary-500: #b3d234;
    --primary-700: #8fb91a;
    --primary-100: rgba(179, 210, 52, 0.15);

    /* Dark Mode Neutrals */
    --neutral-50: #0A0A0A;
    --neutral-100: #1A1A1A;
    --neutral-200: #2A2A2A;
    --neutral-500: #A3A3A3;
    --neutral-700: #E5E5E5;
    --neutral-900: #FFFFFF;

    /* Dark Mode Shadows */
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Dark Mode Background */
.dark-mode body {
    background-color: var(--neutral-50);
    color: var(--neutral-700);
}

/* Dark Mode Gradients */
.dark-mode .cta-section {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.dark-mode .footer {
    background: var(--neutral-100);
    border-top: 1px solid var(--neutral-200);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 {
    font-size: 64px;
    line-height: 1.2;
}

h2 {
    font-size: 48px;
    line-height: 1.2;
}

h3 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* Spacing System */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.alt-bg {
    background-color: white;
}

/* Navigation */
.nav {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: 16px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* SVG Logo Styles - Header */
.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-logo-light {
    display: block !important;
}

.nav-logo-dark {
    display: none !important;
}

/* Dark mode logo switching */
.dark-mode .nav-logo-light {
    display: none !important;
}

.dark-mode .nav-logo-dark {
    display: block !important;
}

.dark-mode .nav {
    background: var(--neutral-100);
    border-bottom-color: var(--neutral-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 16px;
    transition: color 250ms ease;
}

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

.dark-mode .nav-links a {
    color: var(--neutral-700);
}

.dark-mode .nav-links a:hover {
    color: var(--primary-500);
}

.dark-mode-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 250ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    background: var(--neutral-100);
    color: var(--primary-500);
}

.dark-mode .dark-mode-toggle:hover {
    background: var(--neutral-200);
    color: var(--primary-500);
}

/* Hamburger Menu */
.hamburger-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 250ms ease;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.hamburger-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--neutral-700);
    border-radius: 2px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.dark-mode .hamburger-toggle {
    color: var(--neutral-700);
}

.dark-mode .hamburger-toggle span {
    background-color: var(--neutral-700);
}

/* Hamburger animation when active */
.hamburger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-cta {
    background: var(--primary-500);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 250ms ease;
}

.nav-cta:hover {
    background: var(--primary-700);
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--neutral-50);
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
}

/* Video background styles - separate from image styles */
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: blur(3px);
}

/* Overlay to darken video background */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.80);
}

/* Dark mode hero title */
.dark-mode .hero-title {
    color: rgba(255, 255, 255, 0.60);
}

.hero-subtitle {
    font-size: 20px;
    color: #ddd;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-500);
    color: #000;
    font-weight: 600;
    border: 2px solid var(--primary-700);
    box-shadow: 0 4px 12px rgba(179, 210, 52, 0.2);
}

.btn-primary:hover {
    background: var(--primary-700);
    color: #000;
    border-color: #8fb91a;
    transform: scale(0.98);
    box-shadow: 0 6px 20px rgba(179, 210, 52, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--neutral-900);
    border: 2px solid var(--neutral-200);
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dark mode button improvements */
.dark-mode .btn-primary {
    background: var(--primary-500);
    color: #000 !important;
    font-weight: 600;
    border: 2px solid var(--primary-700);
    box-shadow: 0 4px 12px rgba(179, 210, 52, 0.2);
}

.dark-mode .btn-primary:hover {
    background: var(--primary-700);
    color: #000 !important;
    border-color: #8fb91a;
    box-shadow: 0 6px 20px rgba(179, 210, 52, 0.4);
}

.dark-mode .btn-secondary {
    background: var(--neutral-100);
    color: var(--neutral-900);
    border: 2px solid var(--neutral-200);
    font-weight: 500;
}

.dark-mode .btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

/* CTA section buttons */
.cta-section .btn-primary {
    background: white;
    color: var(--primary-500) !important;
    font-weight: 600;
    border: 2px solid white;
}

.cta-section .btn-primary:hover {
    background: var(--neutral-50);
    color: var(--primary-700) !important;
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 500;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 32px auto;
    border-radius: 16px;
    overflow: hidden;
    background: var(--neutral-50);
    padding: 16px;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: hue-rotate(-15deg) saturate(0.9) brightness(0.95);
}

.section-subtitle {
    font-size: 18px;
    color: var(--neutral-500);
    margin-top: 16px;
}

/* Context Grid */
.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.context-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.context-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.dark-mode .context-card {
    background: var(--neutral-100);
    box-shadow: var(--shadow-md);
}

.dark-mode .context-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Dark mode for all cards */
.dark-mode .pillar-card,
.dark-mode .advantage-card,
.dark-mode .governance-item {
    background: var(--neutral-100);
    box-shadow: var(--shadow-md);
}

.dark-mode .pillar-card:hover,
.dark-mode .advantage-card:hover,
.dark-mode .governance-item:hover {
    box-shadow: var(--shadow-lg);
}

/* Dark mode alt background */
.dark-mode .alt-bg {
    background-color: var(--neutral-50);
}

.dark-mode .section {
    background-color: transparent;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.card-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-500);
}

.context-card h3 {
    margin-bottom: 16px;
}

/* Pillars Grid - układ 2x2 */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.pillar-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pillar-card h3 {
    margin-bottom: 16px;
}

.pillar-card p {
    margin-bottom: 24px;
}

.pillar-image {
    width: 100%;
    height: 200px;
    margin-bottom: 24px;
    background: var(--neutral-50);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 33%;
    filter: hue-rotate(-15deg) saturate(0.9) brightness(0.95);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
}

.feature-list i {
    width: 16px;
    height: 16px;
    color: var(--primary-500);
    flex-shrink: 0;
}

/* Advantage Content */
.advantage-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}

.advantage-text h3 {
    margin-bottom: 24px;
}

.advantage-image {
    width: 100%;
    height: 300px;
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--neutral-50);
    padding: 16px;
    overflow: hidden;
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: hue-rotate(-15deg) saturate(0.9) brightness(0.95);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.advantage-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Governance Grid */
.governance-grid {
    display: grid;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.governance-item {
    display: flex;
    gap: 24px;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.governance-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.governance-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.governance-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-500);
}

.governance-content h4 {
    margin-bottom: 12px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-500);
}

.cta-section .btn-primary:hover {
    background: var(--neutral-50);
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-info {
    margin-top: 32px;
    font-size: 16px;
    opacity: 0.8;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info strong {
    color: white;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-200);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.dark-mode .footer-column a {
    color: var(--neutral-500);
}

.dark-mode .footer-column p {
    color: var(--neutral-500);
}

.dark-mode .footer-brand p {
    color: var(--neutral-500);
}

.dark-mode .footer-bottom {
    color: var(--neutral-500);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--neutral-200);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 250ms ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: 32px;
    text-align: center;
    color: var(--neutral-500);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .advantage-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .nav-links {
        gap: 24px;
    }
}

@media (max-width: 768px) {

    /* Typography Scale */
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    body {
        font-size: 16px;
    }

    /* Spacing */
    .section {
        padding: 64px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Navigation - handled in Mobile Navigation section below */

    /* Hero */
    .hero {
        min-height: 100vh;
        margin-top: 0;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    /* Video background on mobile */
    .hero-background video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    /* Grid Adjustments */
    .context-grid,
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .governance-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .governance-item .governance-icon {
        margin: 0 auto;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h4 {
        text-align: center;
    }

    .footer-column a {
        text-align: center;
    }

    /* Image Responsive Adjustments */
    .pillar-image {
        height: 180px;
    }

    .advantage-image {
        height: 220px;
        margin: 24px auto;
    }

    .section-image {
        height: 220px;
        max-width: 100%;
    }

    .section-image img {
        height: 100%;
    }

    /* Dark mode mobile adjustments - handled in Mobile Navigation section below */

    .logo-img {
        height: 28px;
    }

    .footer-logo {
        height: 64px;
    }
}

/* Mobile Navigation - Hamburger Menu */
@media (max-width: 768px) {

    /* Navigation Layout - Logo left, hamburger right */
    .nav-content {
        padding: 8px 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile logo adjustments */
    .nav-logo img {
        height: 32px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 0;
        justify-content: flex-end;
    }

    /* Show hamburger menu */
    .hamburger-toggle {
        display: flex;
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    /* Hide ALL menu items on mobile (they're in the expanded menu) */
    .nav-links a:not(.hamburger-toggle),
    .nav-links .dark-mode-toggle,
    .nav-links .nav-cta {
        display: none !important;
    }

    /* Mobile menu overlay when hamburger is active */
    .nav-links.mobile-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        z-index: 1000 !important;
        transition: all 300ms ease !important;
        display: flex !important;
    }

    /* Show dark mode toggle and CTA button in expanded menu */
    .nav-links.mobile-open .dark-mode-toggle,
    .nav-links.mobile-open .nav-cta {
        display: flex !important;
    }

    .dark-mode .nav-links.mobile-open {
        background: rgba(26, 26, 26, 0.98) !important;
    }

    /* Show navigation menu items ONLY when mobile menu is open */
    .nav-links.mobile-open a:not(.hamburger-toggle):not(.dark-mode-toggle):not(.nav-cta) {
        display: block !important;
        font-size: 24px !important;
        font-weight: 600 !important;
        color: var(--neutral-700) !important;
        text-decoration: none !important;
        transition: color 250ms ease !important;
    }

    .dark-mode .nav-links.mobile-open a:not(.hamburger-toggle):not(.dark-mode-toggle):not(.nav-cta) {
        color: var(--neutral-700) !important;
    }

    .nav-links.mobile-open a:not(.hamburger-toggle):not(.dark-mode-toggle):not(.nav-cta):hover {
        color: var(--primary-500) !important;
    }

    .nav-links.mobile-open .nav-cta {
        margin-top: 2rem;
        font-size: 18px;
    }

    .nav-links.mobile-open .dark-mode-toggle {
        order: -1;
        margin-bottom: 1rem;
        width: 48px !important;
        height: 48px !important;
        padding: 8px !important;
    }
}

@media (max-width: 480px) {

    /* Even more compact layout for very small screens */
    /* Very small mobile logo adjustments */
    .nav-logo img {
        height: 28px;
    }

    .nav-links {
        gap: 4px;
    }

    .hamburger-toggle {
        width: 28px;
        height: 28px;
        padding: 2px;
    }

    .dark-mode-toggle {
        width: 28px;
        height: 28px;
        padding: 2px;
        min-width: 28px;
    }

    .nav-cta {
        font-size: 9px;
        padding: 4px 6px;
        white-space: nowrap;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .hero {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .context-card,
    .pillar-card,
    .advantage-card {
        padding: 24px;
    }

    .governance-item {
        padding: 24px;
    }

    /* Additional Image Responsive Adjustments */
    .pillar-image {
        height: 150px;
    }

    .advantage-image {
        height: 150px;
        margin: 16px auto;
    }

    .section-image {
        height: 150px;
        max-width: 100%;
    }

    .section-image img {
        height: 100%;
    }

    .contact-info {
        font-size: 14px;
    }

    /* Dark mode small mobile adjustments */
    .dark-mode .logo-img {
        height: 24px;
    }

    .dark-mode .footer-logo {
        height: 64px;
    }

    /* Ensure hero text colors remain consistent in dark mode */
    .dark-mode .hero-title {
        color: rgba(255, 255, 255, 0.60);
    }

    .dark-mode .hero-subtitle {
        color: var(--neutral-500);
    }
}

/* Animation Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .context-card:hover,
    .pillar-card:hover,
    .advantage-card:hover,
    .governance-item:hover {
        transform: none;
    }
}

/* Contact Form Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.contact-modal.active {
    display: flex;
}

/* 3D Flip Container */
.contact-modal-flipper {
    position: relative;
    max-width: 800px;
    width: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.contact-modal.active .contact-modal-flipper {
    animation: modalEntry 0.4s ease-out;
}

@keyframes modalEntry {
    from {
        transform: scale(0.95) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Flip animation */
.contact-modal-flipper.flipped {
    transform: rotateY(180deg);
}

.contact-modal-content {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Front side (form) */
.contact-modal-front {
    transform: rotateY(0deg);
}

/* Back side (success message) */
.contact-modal-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
}

/* Scrollable content area within modal */
.contact-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
    /* Compensate for padding-right */
}

/* Custom scrollbar for webkit browsers */
.contact-modal-body::-webkit-scrollbar {
    width: 6px;
}

.contact-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.contact-modal-body::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 3px;
}

.contact-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* Dark mode scrollbar */
.dark-mode .contact-modal-body::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
}

.dark-mode .contact-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--neutral-200);
}

.contact-modal-header h2 {
    color: var(--primary-500);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--neutral-600);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 250ms ease;
}

.close-modal:hover {
    background: var(--neutral-100);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Two column layout for form fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row .form-group {
    margin: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--neutral-700);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--neutral-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(179, 211, 54, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-actions button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 250ms ease;
}

.form-actions .btn-primary {
    background: var(--primary-500);
    color: white;
    transition: all 250ms ease;
}

.form-actions .btn-primary:hover {
    background: white;
    color: var(--primary-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-actions .btn-secondary {
    background: var(--neutral-200);
    color: var(--neutral-700);
}

.form-actions .btn-secondary:hover {
    background: var(--neutral-300);
}

/* Success Message (back side of modal) */
.success-message {
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.success-icon {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* 
.success-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-500);
    opacity: 0.2;
    filter: blur(10px);
    animation: successPulse 2s infinite;
}
*/

/* Lottie replaces CSS animation */


.success-message h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-500);
    margin: 0;
    animation: successSlideIn 0.6s ease-out 0.3s both;
}

.success-message p {
    font-size: 18px;
    color: var(--neutral-600);
    margin: 0;
    animation: successSlideIn 0.6s ease-out 0.5s both;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message button {
    margin-top: 16px;
    padding: 12px 32px;
    animation: successSlideIn 0.6s ease-out 0.7s both;
}

/* Dark mode contact form */
.dark-mode .contact-modal-content {
    background: var(--neutral-100);
    color: var(--neutral-800);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .contact-modal-header {
    border-bottom-color: var(--neutral-300);
}

.dark-mode .contact-modal-header h2 {
    color: var(--primary-600);
    font-weight: 700;
}

.dark-mode .close-modal {
    color: var(--neutral-600);
}

.dark-mode .close-modal:hover {
    background: var(--neutral-200);
}

.dark-mode .form-group label {
    color: var(--neutral-700);
    font-weight: 600;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
    color: var(--neutral-800);
}

.dark-mode .form-group input:focus,
.dark-mode .form-group textarea:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(179, 211, 54, 0.3);
    background: var(--neutral-500);
}

.dark-mode .form-actions .btn-secondary {
    background: var(--neutral-300);
    color: var(--neutral-700);
}

.dark-mode .form-actions .btn-secondary:hover {
    background: var(--neutral-400);
}

/* Dark mode success message */
.dark-mode .success-message h3 {
    color: var(--primary-400);
}

.dark-mode .success-message p {
    color: var(--neutral-700);
}

/* Mobile contact form */
@media (max-width: 768px) {
    .contact-modal {
        padding: 12px;
    }

    .contact-modal-flipper {
        max-width: none;
        width: calc(100vw - 24px);
    }

    .contact-modal-content {
        padding: 24px;
        max-height: 92vh;
    }

    .success-message {
        padding: 40px 24px;
    }

    .success-message h3 {
        font-size: 24px;
    }

    .success-icon {
        width: 64px;
        height: 64px;
    }

    .success-icon i {
        width: 36px;
        height: 36px;
    }

    .contact-modal-header h2 {
        font-size: 20px;
    }

    /* Single column on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group {
        gap: 8px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 8px;
    }

    .form-actions button {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger animation delays for different elements */
.scroll-animate:nth-child(1) {
    transition-delay: 0ms;
}

.scroll-animate:nth-child(2) {
    transition-delay: 100ms;
}

.scroll-animate:nth-child(3) {
    transition-delay: 200ms;
}

.scroll-animate:nth-child(4) {
    transition-delay: 300ms;
}

.scroll-animate:nth-child(5) {
    transition-delay: 400ms;
}

.scroll-animate:nth-child(6) {
    transition-delay: 500ms;
}

.scroll-animate:nth-child(7) {
    transition-delay: 600ms;
}

.scroll-animate:nth-child(8) {
    transition-delay: 700ms;
}

/* Different animation directions for variety */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Fade in with scale effect */
.scroll-animate-fade {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-fade.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    .scroll-animate,
    .scroll-animate-left,
    .scroll-animate-right,
    .scroll-animate-fade {
        opacity: 1;
        transform: none;
        transition: none;
    }
}