/* ========================================
   ENHANCED MOBILE-FIRST CSS REFACTOR
   WITH DUAL MODE SUPPORT - LIGHT MODE DEFAULT
   ======================================== */

/* CSS Variables - Light Mode (Default) */
:root {
    /* Colors - Light Mode Default */
    --primary-red: #e30613;
    --primary-black: #000000;
    --primary-white: #ffffff;
    --dark-green: #005a3c;
    --dark-green-hover: #004530;
    
    /* Grays - Light Mode */
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f5f5f5;
    
    /* Text colors */
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    
    /* Border colors */
    --border-color: #e5e7eb;
    --border-dark: #000000;
    
    /* Shadows - Light Mode */
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-green: 0 4px 20px rgba(0,90,60,0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Borders */
    --border-black: 2px solid var(--border-dark);
    --border-radius: 8px;
    --border-radius-large: 16px;
    
    /* Typography */
    --font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --line-height: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    --navbar-height: 70px;
    
    /* Z-index scale */
    --z-cookie: 9999;
    --z-modal: 2000;
    --z-navbar: 1000;
    --z-tooltip: 100;
    --z-dropdown: 50;
    
    /* Mode indicator */
    --mode: 'light';
}

/* ========================================
   DARK MODE VARIABLES (data-theme="dark")
   - Consistent naming
   - Gray scale: 50 = lightest … 900 = darkest
   - Backwards-compatible with your tokens
   ======================================== */
:root[data-theme="dark"] {
  /* Core colors */
  --primary-red: #ff4757;
  --primary-black: #000000;  /* keep true to name */
  --primary-white: #ffffff;  /* keep true to name */
  --dark-green: #00a86b;
  --dark-green-hover: #00d084;

  /* Grays (50 lightest → 900 darkest) */
  --gray-50:  #f4f4f5;
  --gray-100: #e4e4e7;
  --gray-200: #d4d4d8;
  --gray-300: #a1a1aa;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;

  /* Semantic gray aliases (consistent with names) */
  --gray-light:  #e0e0e0;
  --gray-medium: #a0a0a0;
  --gray-dark:   #2a2a2a;

  /* Surfaces */
  --bg-primary:   #111827; /* page/background */
  --bg-secondary: #1f2937; /* cards/sections */
  --bg-tertiary:  #374151; /* elevated/inputs */

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted:     #9ca3af;

  /* Borders */
  --border-color: #2a2a2a;  /* subtle on dark */
  --border-dark:  #000000;  /* strong/active */

  /* Shadows (use subtle glow for depth on dark) */
  --shadow:        0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-hover:  0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-green:  0 4px 20px rgba(0, 168, 107, 0.28);
  --shadow-ambient: 0 0 0 1px rgba(255, 255, 255, 0.04);

  /* Mode indicator (usable in content:) */
  --mode: dark;
}

/* Automatic Dark Mode removed - we want light mode as default
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        -- Colors, backgrounds, etc. removed to force light mode default
    }
}
*/

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */

.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: var(--z-tooltip);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 60px;
    justify-content: center;
}

/* Navigation Theme Toggle - when in header */
.nav-theme-toggle {
    position: static;
    transform: none;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 12px;
    min-width: auto;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: none;
}

.nav-theme-toggle:hover {
    background: var(--bg-secondary);
    transform: none;
    box-shadow: var(--shadow);
}

.nav-theme-toggle .theme-toggle-icon {
    font-size: 1rem;
}

.nav-theme-toggle .theme-toggle-text {
    display: inline-block;
    font-size: 0.85rem;
    margin-left: 4px;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.theme-toggle-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: none;
}

/* Show text on larger screens */
@media (min-width: 1024px) {
    .theme-toggle {
        min-width: auto;
        padding: 12px 16px;
    }
    
    .theme-toggle-text {
        display: block;
    }
}

/* Light mode specific toggle styling (now default) */
:root .theme-toggle {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

:root .theme-toggle:hover {
    background: var(--bg-secondary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Dark mode specific toggle styling (now alternative) */
:root[data-theme="dark"] .theme-toggle {
    background: var(--bg-secondary);
    border-color: var(--dark-green);
}

:root[data-theme="dark"] .theme-toggle:hover {
    background: var(--dark-green);
    color: var(--primary-white);
}

/* Dark mode for navigation theme toggle */
:root[data-theme="dark"] .nav-theme-toggle {
    background: transparent;
    border-color: var(--dark-green);
    color: var(--text-primary);
}

:root[data-theme="dark"] .nav-theme-toggle:hover {
    background: var(--dark-green);
    color: var(--primary-white);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition);
}


* {
    margin: 0;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: var(--font-size-large);
    letter-spacing: -0.02em;
    overflow-x: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Theme transition animation */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Light mode enhancements (now default) */
:root .hero-title {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
}

:root .navbar {
    background: var(--bg-primary);
    backdrop-filter: none;
}

:root .logo-img {
    filter: none;
}

/* Dark mode enhancements (now alternative) */
:root[data-theme="dark"] .hero-title {
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--primary-red) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root[data-theme="dark"] .navbar {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
}

:root[data-theme="dark"] .logo-img {
    filter: brightness(1.2) contrast(0.9);
}

/* Container */
.container {
    max-width: 1200px;
    padding: 0 80px;
}

/* Hidden Breadcrumbs for SEO */
.breadcrumbs-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Logo Styles */
.logo-img {
    height: 60px;
    width: auto;
}

.footer-logo {
    margin-bottom: 1rem;
}

/* Text colors */
.text-green {
    color: var(--dark-green);
}

.text-red {
    color: var(--primary-red);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-dark);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
.navbar {
    background: var(--primary-white);
    box-shadow: var(--shadow);
    border-bottom: var(--border-black);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    flex-direction: row;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-red); /* Changed from green to red */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red); /* Changed from green to red */
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Word Lid Button Special Styling */
.btn-lid {
    background: var(--dark-green);
    color: var(--primary-white) ;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-lid:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-lid::after {
    display: none;
}

.btn-lid-large {
    background: var(--dark-green);
    color: var(--primary-white);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-lid-large:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Navigation Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 5px;
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    border-bottom: 1px solid var(--gray-medium);
}

.nav-dropdown-menu li:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0;
}

.nav-dropdown-menu a:hover {
    background: var(--gray-light);
    color: var(--primary-red);
    border-radius: 0;
}

.nav-dropdown-menu a::after {
    display: none;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0;
        padding-left: 20px;
    }
    
    .nav-dropdown-menu a {
        padding: 8px 0;
        border-bottom: none;
    }
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-accent {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--primary-white);
}

.btn-primary:hover {
    background: #c00510;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-white);
    border: 2px solid var(--dark-green);
}
/* CTA card buttons hover - red */
.cta-card .btn-secondary:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--primary-white);
}

/* Button secondary hover - make red */
.btn-secondary:hover {
    background: var(--primary-red); /* Changed from green to red */
    color: var(--primary-white);
    border-color: var(--primary-red);
    box-shadow: 0 4px 20px rgba(227, 6, 19, 0.3); /* Red shadow */
}
.btn-accent {
    background: var(--dark-green);
    color: var(--primary-white);
}

.btn-accent:hover {
    background: var(--dark-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* Hero Section */
/* Hero Section - Darker Text/Content */
.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
    border-bottom: var(--border-black);
}

.text-black {
    font-size: 21px;
    color: var(--primary-black);
    font-weight: bold;
}

.text-red {
    font-size: 21px;
    color: var(--primary-red);
    font-weight: bold;
}

.text-red-bold {
    color: var(--primary-red);
    font-size: 33px;
    font-weight: 900; /* Bold */
    letter-spacing: -2.0px;
    
}

.text-green-bold {
    font-size: 33px;
    color: var(--dark-green);
    font-weight: 900; /* Bold */
    letter-spacing: -2.0px;
}

.hero-content {
    flex: 1;
    padding: 0.5rem 2rem 4rem 2rem; /* Reduced top padding even more (was 1rem) */
    z-index: 2;
    position: relative;
}

/* Hero title styling */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    margin-top: -1.5rem; /* More negative margin to move further up (was -1rem) */
    animation: slideInLeft 0.8s ease;
    line-height: 0.9;
    letter-spacing: -2.0px;
}

.hero-title .text-black-large {
    color: var(--primary-black);
    display: block;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -2.0px;
 
}

.hero-title .text-black {
    color: var(--primary-black);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.hero-title .text-mixed {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    margin-top: -0.2rem;
}

.hero-title .text-red {
    color: var(--primary-red);
}

.hero-title .text-green {
    color: var(--dark-green);
    font-weight: 900; /* Extra bold for "Groen!" */
}

/* Green button for "Doe Mee" */
.btn-green {
    background: var(--dark-green);
    color: var(--primary-white);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-green:hover {
    background: var(--dark-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.hero-subtitle.text-green-bold {
    color: var(--dark-green);
    font-weight: 700;
}


/* Make red text portions even bolder */
.hero-title .text-red,
.hero-title span {
    font-size: 33px;
    color: #000000; /* Darker red */
    font-weight: 900;
    letter-spacing: -2.0px;
}

.hero-subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 23px;
    color: #555; /* Very dark gray/almost black */
    margin-bottom: 2rem;
   /* max-width: 600px;
    animation: slideInLeft 1s ease;  */
    opacity: 1;
  /*  line-height: 1.7;
    letter-spacing: -1.5px; */
}

/* Update secondary button in hero if using btn-secondary class */
.hero-buttons .btn-secondary {
    background: var(--dark-green);
    color: var(--primary-white);
    border: 2px solid var(--dark-green);
}

.hero-buttons .btn-secondary:hover {
    background: var(--dark-green-hover);
    color: var(--primary-white);
    box-shadow: var(--shadow-green);
}

/* Footer logo container for proper aspect ratio */
.footer-logo-container {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo {
    display: block;
    width: auto;
    height: 60px;
    max-width: 200px;
    object-fit: contain;
}

/* Darker button styles */
.hero-buttons .btn-primary {
    background: #c00510; /* Darker red */
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    background: #a00410; /* Even darker on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: #000000; /* Black text */
    border: 2px solid #000000; /* Black border */
    font-weight: 700;
}

.hero-buttons .btn-secondary:hover {
    background: #000000;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: #000000 0px solid;
}

.hero-logo {
    max-width: 400px;
    border: #027226 4px solid;
    width: 100%;
    height: auto;
    opacity: 1; /* Full opacity for darker appearance */
    animation: slideInRight 1s ease;
    filter: contrast(1.2) brightness(0.9); /* Higher contrast, slightly darker */
}

/* Alternative darker text options */

/* Option 1: With dark overlay on text area only */

.hero-content {
    background: var(--bg-primary);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}


/* Option 2: Darker text with more weight */

.hero-title {
    color: var(--text-primary);
    font-weight: 900;
    -webkit-text-stroke: 1px var(--text-primary);
}


/* Option 3: High contrast version */
/*
.hero-title {
    color: #000000;
    text-shadow: 
        1px 1px 0 rgba(0,0,0,0.1),
        2px 2px 0 rgba(0,0,0,0.05);
    mix-blend-mode: multiply;
}
*/

@media (max-width: 768px) {
  .hero-content {
        padding: 2rem 2rem 3rem 2rem; /* Adjusted for mobile */
    }
    
    .hero-title {
        margin-top: -0.5rem; /* Less negative margin on mobile */
    }
    
    .hero-subtitle {
        margin-bottom: 2.5rem; /* Slightly less on mobile */
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    .hero-title .text-black-large {
        font-size: 3rem; /* Smaller on mobile but still large */
        letter-spacing: -3px;
    }
    
    .hero-title .text-mixed {
        font-size: 2.8rem;
        margin-top: -0.1rem;
    }
    
    .hero-subtitle {
        font-size: 21px;
        color: var(--primary-black);
        font-weight: 700;
    }
}
/* App Promotion Section */
.app-promotion {
    padding: 5rem 0;
    background: var(--primary-white);
    position: relative;
    overflow: hidden;
    border-top: var(--border-black);
    border-bottom: var(--border-black);
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
    font-weight: bolder;
}

.app-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
    font-weight: bold;
}

.app-text p strong {
    color: var(--gray-dark);
    font-weight: 900;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.store-badge {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.app-store-btn:hover .store-badge,
.google-play-btn:hover .store-badge {
    transform: scale(1.05);
}

/* Phone Mockup */
.app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-interface {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--dark-green);
    color: white;
    border-bottom: var(--border-black);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-item {
    background: var(--gray-light);
    padding: 20px 15px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-item:hover {
    background: var(--dark-green);
    color: white;
    transform: translateX(5px);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--primary-red);
    color: var(--primary-white);
    border-bottom: var(--border-black);
    
}
/* Stats Section Title - if you have an h2 */
.stats h2 {
  font-size: 2rem; /* Increased from default */
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

/* Themes Section */
.themes {
    padding: 5rem 0;
    background: var(--gray-light);
    border-bottom: var(--border-black);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray-dark);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.theme-card {
    background: var(--primary-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: var(--border-black); /* Add black border to cards */
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
/* Fix Duurzaamheid card to be same size as others */
.theme-card-featured {
    grid-column: span 1; /* Changed from span 2 to span 1 */
    background: var(--primary-white);
    border: var(--border-black); /* Keep consistent black border */
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--dark-green);
    opacity: 0;
    transition: var(--transition);
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.theme-card:hover::before {
    opacity: 1;
}

.theme-card-featured {
    grid-column: span 1; /* Override any featured card to be same size */
    border: var(--border-black); /* Same border as others */
}

.theme-card[data-theme="wonen"] .theme-icon { color: var(--primary-red); }
.theme-card[data-theme="economie"] .theme-icon { color: #ff9800; }
.theme-card[data-theme="veiligheid"] .theme-icon { color: #2196f3; }
.theme-card[data-theme="duurzaam"] .theme-icon { color: var(--dark-green); 
}
.theme-card[data-theme="democratie"] .theme-icon { color: #9c27b0; }
.theme-card[data-theme="cultuur"] .theme-icon { color: #e91e63; }
.theme-card[data-theme="duurzaam"] {
    grid-column: span 1; /* Force single column */
}
.theme-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.theme-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.theme-card p {
    color: #666;
    margin-bottom: 1rem;
}

.theme-expand {
    background: none;
    border: none;
    color: var(--dark-green);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-expand:hover {
    transform: translateX(5px);
}

/* Theme details - Start hidden/collapsed */
.theme-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-medium);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Active state - Show when expanded */
.theme-details.active {
    display: block;
    opacity: 1;
    max-height: 500px;
    animation: slideDown 0.3s ease;
}

.theme-details ul {
    list-style: none;
}

.theme-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.theme-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dark-green);
    font-weight: bold;
}

.theme-details li strong {
    color: var(--dark-green);
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background: var(--primary-white);
    border-bottom: var(--border-black);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.stadsdeel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stadsdeel-btn {
    padding: 1rem;
    background: var(--primary-white);
    border: var(--border-black); /* Changed to black border */
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.stadsdeel-btn:hover {
    background: var(--primary-red);
    color: var(--primary-white);
    border-color: var(--primary-red);
}

.stadsdeel-btn.active {
    background: var(--dark-green);
    color: var(--primary-white);
    border-color: var(--dark-green);
}

.stadsdeel-info {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stadsdeel-info h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
}

/* News Section */
.news {
    padding: 5rem 0;
    background: var(--gray-light);
    border-bottom: var(--border-black);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--primary-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: var(--border-black);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card.featured {
    grid-column: span 2;
}

.news-image {
    height: 200px;
    background: var(--primary-red);
    position: relative;
}

.news-image.green-bg {
    background: var(--dark-green);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
}

.news-content h3 {
    margin: 0.5rem 0;
    color: var(--gray-dark);
}

.news-link {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: var(--transition);
}

.news-link:hover {
    transform: translateX(5px);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: var(--dark-green);
    color: var(--primary-white);
    border-bottom: var(--border-black);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border: var(--border-black);
}

.cta-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-card p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Newsletter */
.newsletter {
    padding: 3rem 0;
    background: var(--gray-dark);
    color: var(--primary-white);
    border-bottom: var(--border-black);
}

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

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 3rem 0 1rem;
    border-top: var(--border-black);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--dark-green);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    padding: 0.5rem 0;
}

.footer-column a {
    color: var(--primary-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--dark-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

.event-card {
    background: rgba(0, 90, 60, 0.1);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--dark-green);
}

.event-date {
    display: inline-block;
    background: var(--dark-green);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.partner-link {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.partner-link p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

/* Partner link - make CyberSecurityAD.com red */
.partner-link a {
    color: var(--primary-white); /* Changed from green to red */
    font-weight: 600;
}

.partner-link a:hover {
    color: #ff0011; /* Darker red on hover */
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--dark-green);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

        /* Critical font-face declarations for immediate use - Fixed URLs */
        @font-face {
            font-family: 'Montserrat';
            font-style: normal;
            font-weight: 400;
            font-display: swap;
            src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        


        
        /* Critical CSS variables and resets */
        :root {
            --va-green: #005a3c;
            --va-red: #e30613;
        }
        
        * {
            margin: 0;
            padding: 0;
          
        }
        
        html {
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        body {
            margin: 0;
            font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            font-weight: 400;
            line-height: 1.6;
            color: #333;
        }
        
        /* Prevent layout shift for hero section */
        .hero {
            min-height: 60vh;
            display: flex;
            align-items: center;
        }
        
        /* Prevent FOUC for buttons */
        .btn-primary, .btn-secondary {
            display: inline-block;
            padding: 0.8rem 1.2rem;
            border-radius: 0.5rem;
            text-decoration: none;
            font-weight: 600;
        }
        
        .btn-primary {
            background: var(--va-green);
            color: #fff;
        }
        
        .btn-secondary {
            border: 2px solid var(--va-green);
            color: var(--va-green);
            background: transparent;
        }
        
        /* Hide elements until fonts load */
        .fonts-loading * {
            opacity: 0.98;
        }
        
        .fonts-loaded * {
            opacity: 1;
            transition: opacity 0.1s ease-in;
        }




/* Hero buttons - add more space above */
.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 1.2s ease;
    margin-top: 6rem; /* Add extra margin to push buttons down */
}


.modal-content {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    border: var(--border-black);
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark-green);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-green);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(0, 90, 60, 0.1);
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-logo {
        max-width: 250px;
    }

    .app-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-mockup {
        margin-top: 2rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
    
    .app-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .theme-card-featured {
        grid-column: span 1;
    }

    .news-card.featured {
        grid-column: span 1;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {

    .hero-content {
        padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    }
    
    .hero-title {
        margin-top: 0; /* No negative margin on small screens */
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-top: 0.5rem;
        flex-direction: column;
    }
    .hero-title .text-black-large {
        font-size: 3rem;
        letter-spacing: -3px;
    }
    
    .hero-title .text-mixed {
        font-size: 2.8rem;
        margin-top: 0;
    }
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-green {
        width: 100%;
        text-align: center;
    }
}
    
    .hero-subtitle {
        font-size: 21px;
        font-weight: 600;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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


/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--dark-green);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .newsletter,
    .social-links,
    .modal,
    .cookie-banner {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .section-title {
        page-break-after: avoid;
    }

    .theme-card,
    .news-card {
        page-break-inside: avoid;
    }
}

/* SEO-friendly hidden text for crawlers */
.seo-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Structured data microformat helpers */
[itemscope] {
    border: none;
}

[itemprop] {
    display: inline;
}

.canvas-container {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: var(--border-black);
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    border: var(--border-black);
}

.event-card {
    background: rgba(0, 90, 60, 0.1);
    padding: 1rem;
    border-radius: 5px;
    border: var(--border-black);
}

/* App Promotion Section - Enhanced Styling */
.app-promotion {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    border-top: var(--border-black);
    border-bottom: var(--border-black);
}

.app-promotion::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 90, 60, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

.app-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
    line-height: 1.2;
}

.app-title .text-red {
    display: block;
    margin-top: 0.5rem;
}

.app-intro {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--dark-green);
}

.lead-text {
    font-size: 21px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.download-section {
    text-align: center;
    padding-top: 1rem;
}

.download-text {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.app-btn-ios {
    background: #000;
    color: white;
}

.app-btn-ios:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.app-btn-android {
    background: #3DDC84;
    color: white;
}

.app-btn-android:hover {
    background: #2eca72;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61,220,132,0.3);
}

.app-icon {
    width: 20px;
    height: 20px;
}

.app-divider {
    margin: 3rem 0;
    border: none;
    border-top: 2px solid var(--gray-light);
    position: relative;
}

.app-divider::after {
    content: '✦';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    color: var(--dark-green);
    font-size: 1.2rem;
}

.app-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.app-subtitle .text-green {
    color: var(--dark-green);
    font-weight: 900;
}


.app-highlights {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-highlights li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(90deg, rgba(0, 90, 60, 0.05) 0%, transparent 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.app-highlights li:hover {
    background: linear-gradient(90deg, rgba(0, 90, 60, 0.1) 0%, rgba(0, 90, 60, 0.05) 100%);
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.app-highlights strong {
    color: var(--dark-green);
    display: block;
    margin-bottom: 0.25rem;
}

.app-highlights span {
    color: #666;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
/* Feature Card Styling - Red Border with Green Hover */
.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

/* Red border for all feature cards */
.feature-red-border {
    border: 3px solid var(--primary-red);
}

/* Green border on hover */
.feature-red-border:hover {
    border-color: var(--dark-green);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 90, 60, 0.2);
}

/* Special styling for contact cards */
.feature-contact.feature-red-border {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.feature-contact.feature-red-border:hover {
    background: linear-gradient(135deg, rgba(0, 90, 60, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: var(--dark-green);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h4 {
    color: var(--gray-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Enhanced Phone Mockup */
.app-mockup {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 100px;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.3),
        inset 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 5px;
    background: #333;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-interface {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: linear-gradient(135deg, var(--dark-green) 0%, #007050 100%);
    color: white;
    border-bottom: var(--border-black);
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.app-logo {
    background: white;
    color: var(--dark-green);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.9rem;
}

.app-menu-items {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.app-item {
    background: var(--gray-light);
    padding: 18px 15px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.app-item:hover {
    background: linear-gradient(135deg, var(--dark-green) 0%, #007050 100%);
    color: white;
    transform: translateX(5px);
    border-color: var(--dark-green);
}

.item-icon {
    font-size: 1.3rem;
    min-width: 30px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .app-mockup {
        position: static;
        margin-top: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .app-btn {
        width: 100%;
        justify-content: center;
    }
    
    .phone-frame {
        width: 280px;
        height: 560px;
    }
}
.text-red-bold {
    color: var(--primary-red);
    font-weight: 900;
}

.app-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
    line-height: 1.3;
}


.features-title {
    font-size: 1.3rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.feature-contact {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.02) 0%, rgba(0, 90, 60, 0.02) 100%);
    border: 2px solid var(--gray-light);
}

.feature-contact:hover {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.05) 0%, rgba(0, 90, 60, 0.05) 100%);
}

/* Updated phone mockup for buurt-app */
.app-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-green) 100%);
    border-bottom: var(--border-black);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.app-item {
    background: var(--gray-light);
    padding: 16px 15px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.app-item-alert {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: var(--primary-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(227, 6, 19, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

.item-badge {
    position: absolute;
    right: 15px;
    background: var(--primary-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.app-highlights {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.app-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.app-highlights li:hover {
    border-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 90, 60, 0.1);
}

.highlight-icon {
    font-size: 1.8rem;
    min-width: 35px;
    text-align: center;
}

.app-highlights strong {
    color: var(--gray-dark);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.app-highlights span {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-highlights {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional SEO-Optimized Styles */

/* Visually hidden but available for screen readers */
/* Visually hidden for SEO */
.visually-hidden {
    position: absolute ;
    width: 1px ;
    height: 1px ;
    padding: 0 ;
    margin: -1px ;
    overflow: hidden ;
    clip: rect(0,0,0,0) ;
    white-space: nowrap ;
    border: 0 ;
}

/* Mark tag styling for SEO emphasis */
mark {
    background: linear-gradient(135deg, rgba(0, 90, 60, 0.1) 0%, rgba(227, 6, 19, 0.1) 100%);
    color: var(--dark-green);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}



.stats-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item dt {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.stat-item dd {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
}


.app-store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Mark tag for SEO emphasis */
mark {
    background: rgba(0, 90, 60, 0.1);
    color: var(--dark-green);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Data elements styling */
data {
    font-weight: 700;
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .stats-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Additional CSS for SEO optimization */

/* Visually hidden but available for SEO/Screen readers */
.visually-hidden,
.seo-content {
    position: absolute ;
    width: 1px ;
    height: 1px ;
    padding: 0 ;
    margin: -1px ;
    overflow: hidden ;
    clip: rect(0,0,0,0) ;
    white-space: nowrap ;
    border: 0 ;
}

/* SEO H3 specific styling */
.app-subtitle-seo {
    /* Hidden from view but indexed by search engines */
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


.feature-card h4 {
    color: var(--gray-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-contact {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.02) 0%, rgba(0, 90, 60, 0.02) 100%);
    border: 2px solid var(--gray-light);
}

.feature-contact:hover {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.05) 0%, rgba(0, 90, 60, 0.05) 100%);
}


/* Features grid updated for 9 items */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Feature Card Styling - Enhanced Visual Effects */
.feature-card.feature-hover-reveal {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 3px solid var(--dark-green);
    box-shadow: 0 4px 6px rgba(0, 90, 60, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Feature icon styling */
.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
    opacity: 0.9;
}

/* Feature title */
.feature-card h4 {
    color: var(--gray-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    transition: all 0.4s ease;
}

/* Hide description by default */
.feature-card .feature-description {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 0.5rem;
    margin-top: 0.5rem;
    visibility: hidden;
    width: 100%;
    text-align: center;
}

/* Hover state - Show description and change border to red */
.feature-card.feature-hover-reveal:hover {
    border-color: var(--primary-red);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 24px rgba(227, 6, 19, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
    background: #fafafa;
    padding-bottom: 2.5rem;
}

/* Show description on hover */
.feature-card.feature-hover-reveal:hover .feature-description {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    position: static;
}

/* Adjust icon on hover */
.feature-card.feature-hover-reveal:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    opacity: 1;
    color: var(--primary-red);
}

/* Adjust title on hover */
.feature-card.feature-hover-reveal:hover h4 {
    color: var(--primary-red);
    transform: scale(1.05);
    margin-bottom: 0.5rem;
}

/* Special styling for contact cards */
.feature-card.feature-contact {
    background: rgba(0, 90, 60, 0.02);
}

.feature-card.feature-contact:hover {
    background: rgba(227, 6, 19, 0.03);
}

/* Add subtle animation effect */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 4px 6px rgba(0, 90, 60, 0.1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 90, 60, 0.2);
    }
    100% {
        box-shadow: 0 4px 6px rgba(0, 90, 60, 0.1);
    }
}

.feature-card.feature-hover-reveal:not(:hover) {
    animation: pulseGreen 3s infinite subtle;
}

/* Focus state for accessibility */
.feature-card.feature-hover-reveal:focus {
    outline: 3px solid var(--dark-green);
    outline-offset: 2px;
}

/* Active state */
.feature-card.feature-hover-reveal:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card.feature-hover-reveal {
        min-height: 100px;
    }
    
    .feature-card .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h4 {
        font-size: 1rem;
    }
    
    /* Show descriptions on mobile (no hover) */
    .feature-card .feature-description {
        position: static;
        opacity: 0.8;
        transform: none;
        visibility: visible;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
}

/* Enhanced visual depth */
.features-grid {
    position: relative;
    padding: 1rem;
    background: rgba(0, 90, 60, 0.01);
    border-radius: 15px;
}

/* Add decorative element */
.features-grid::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(0, 90, 60, 0.05);
    border-radius: 20px;
    z-index: -1;
}

/* Hide feature grid - keep for SEO */
.features-grid-hidden {
    display: none;
}

.visually-hidden {
    position: absolute ;
    width: 1px ;
    height: 1px ;
    padding: 0 ;
    margin: -1px ;
    overflow: hidden ;
    clip: rect(0,0,0,0) ;
    white-space: nowrap ;
    border: 0 ;
}

/* Enhanced Phone Mockup Styling */
.app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin: 0 auto;
    max-width: 400px;
}

.phone-frame {
    width: 360px;
    height: 720px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        0 15px 30px rgba(0,0,0,0.3),
        inset 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 5px;
    background: #333;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-interface {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--dark-green);
    color: white;
    border-bottom: var(--border-black);
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-logo {
    background: white;
    color: var(--dark-green);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.9rem;
}

.app-menu-items {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    background: white;
}

/* Scrollbar styling */
.app-menu-items::-webkit-scrollbar {
    width: 4px;
}

.app-menu-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.app-menu-items::-webkit-scrollbar-thumb {
    background: var(--dark-green);
    border-radius: 2px;
}

.app-item {
    background: white;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    position: relative;
    font-weight: 500;
}

/* Primary features with green border */
.app-item-primary {
    border-color: var(--dark-green);
    background: rgba(0, 90, 60, 0.02);
}

.app-item-primary:hover {
    background: var(--dark-green);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 90, 60, 0.3);
}

/* Contact features with red accent */
.app-item-contact {
    border-color: var(--primary-red);
    background: rgba(227, 6, 19, 0.02);
}

.app-item-contact:hover {
    background: var(--primary-red);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

/* Regular items */
.app-item:hover {
    background: #f0f0f0;
    border-color: var(--dark-green);
    transform: translateX(3px);
}

.item-icon {
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

/* Divider line */
.app-divider-line {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

/* Active state indicator */
.app-item::after {
    content: '';
    position: absolute;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--dark-green);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-item:hover::after {
    opacity: 1;
}

/* Responsive for different screen sizes */
@media (max-width: 768px) {
    .app-mockup {
        max-width: 320px;
    }
    
    .phone-frame {
        width: 300px;
        height: 600px;
    }
    
    .app-item {
        font-size: 12px;
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .app-mockup {
        max-width: 280px;
        padding: 1rem;
    }
    
    .phone-frame {
        width: 260px;
        height: 520px;
    }
    
    .app-item {
        font-size: 11px;
        padding: 10px 8px;
        gap: 8px;
    }
    
    .item-icon {
        font-size: 1rem;
    }
}
/* App Features Section Layout */
.app-features-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Feature Card Styling */
.feature-card {
    background: white;
    border: 3px solid var(--dark-green);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.15);
}

/* Feature Icon */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

/* H3 for SEO - styled smaller for visual hierarchy */
.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: var(--primary-red);
}

/* Feature Description */
.feature-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    opacity: 0.9;
}

/* Contact cards special styling */
.feature-contact {
    background: rgba(227, 6, 19, 0.02);
}

.feature-contact:hover {
    background: rgba(227, 6, 19, 0.05);
}
/* Phone Mockup with Hover Tooltips */
.phone-frame {
    width: 360px;
    height: 720px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        0 15px 30px rgba(0,0,0,0.3),
        inset 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
}

/* App Item with Tooltip */
.app-item {
    background: white;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    position: relative;
    font-weight: 500;
}

/* UPDATED: Tooltip positioned to the LEFT of phone */
.app-tooltip {
    position: absolute;
    right: calc(100% + 380px); /* Position to the left of the phone frame */
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-green);
    color: white;
    padding: 15px;
    border-radius: 10px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 90, 60, 0.3);
}

/* Arrow pointing to the right (towards the phone) */
.app-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--dark-green);
}

.app-tooltip strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.app-tooltip p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Show tooltip on hover */
.app-item:hover .app-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* UPDATED: Main Description Box - Positioned to LEFT of phone on hover */
.app-description-box {
    position: absolute;
    left: -350px; /* Position to the left of the phone */
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-green);
    color: white;
    padding: 25px;
    border-radius: 15px;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px rgba(0, 90, 60, 0.4);
    z-index: 100;
}

/* Arrow pointing to the right (towards the phone) */
.app-description-box::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 12px solid transparent;
    border-left-color: var(--dark-green);
}

.app-description-content {
    text-align: left; /* Changed from center to left for better readability */
}

.app-description-content p {
    margin: 0.5rem 0;
    font-size: 14px;
    line-height: 1.6;
    color: white;
}

.app-description-content p:first-child {
    font-size: 15px;
    margin-bottom: 0.75rem;
}

.app-description-content strong {
    font-weight: 700;
    color: white;
}

.app-description-content em {
    font-style: italic;
    opacity: 0.95;
}

/* Show main description on phone hover - positioned LEFT */
.phone-frame:hover .app-description-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px); /* Slight movement for smooth animation */
}

/* Alternative: Show description on mockup hover */
.app-mockup:hover .app-description-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

/* Enhanced hover states for app items */
.app-item:hover {
    background: linear-gradient(135deg, rgba(0, 90, 60, 0.05) 0%, rgba(0, 90, 60, 0.02) 100%);
    border-color: var(--dark-green);
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    /* On smaller screens, position description below the phone */
    .app-description-box {
        left: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(-50%) translateY(100%);
        width: 90%;
        max-width: 400px;
    }
    
    .app-description-box::after {
        left: 50%;
        top: -12px;
        bottom: auto;
        transform: translateX(-50%);
        border-left-color: transparent;
        border-bottom-color: var(--dark-green);
    }
    
    .phone-frame:hover .app-description-box,
    .app-mockup:hover .app-description-box {
        transform: translateX(-50%) translateY(calc(100% + 20px));
    }
    
    .app-description-content {
        text-align: center;
    }
}

@media (max-width: 1200px) {
    .app-tooltip {
        right: calc(100% + 320px); /* Adjust for smaller screens */
        width: 200px;
    }
}

@media (max-width: 1024px) {
    .app-tooltip {
        right: calc(100% + 20px); /* Closer to phone on tablets */
        width: 180px;
    }
}

@media (max-width: 768px) {
    /* On mobile, show tooltip below the item */
    .app-tooltip {
        left: 0;
        right: auto;
        top: calc(100% + 10px);
        transform: translateY(0);
        width: calc(100% - 20px);
    }
    
    .app-tooltip::after {
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left-color: transparent;
        border-right-color: transparent;
        border-bottom-color: var(--dark-green);
    }
    
    .app-item:hover .app-tooltip {
        transform: translateY(0) translateX(0);
    }
    
    /* Description box on mobile - below phone */
    .app-description-box {
        position: static;
        margin-top: 2rem;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .app-description-box::after {
        display: none;
    }
    
    .app-description-content {
        text-align: center;
    }
    
    .app-description-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .app-description-content p {
        font-size: 12px;
    }
}

/* Animation for smooth appearance */
@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(-5px);
    }
}

@keyframes fadeInDescription {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(0);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(-10px);
    }
}

.app-item:hover .app-tooltip {
    animation: fadeInTooltip 0.3s ease forwards;
}

.phone-frame:hover .app-description-box {
    animation: fadeInDescription 0.4s ease forwards;
}

/* Special styling for contact items */
.app-item[data-feature="handhaving"],
.app-item[data-feature="gemeenteraad"] {
    border-color: rgba(227, 6, 19, 0.2);
}

.app-item[data-feature="handhaving"]:hover .app-tooltip,
.app-item[data-feature="gemeenteraad"]:hover .app-tooltip {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c00510 100%);
}

.app-item[data-feature="handhaving"] .app-tooltip::after,
.app-item[data-feature="gemeenteraad"] .app-tooltip::after {
    border-left-color: var(--primary-red);
}

/* Highlight effect on hover */
.app-item:hover .item-icon {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Different tooltip colors for different features */
.app-item[data-feature="buurtacties"]:hover .app-tooltip,
.app-item[data-feature="netwerk"]:hover .app-tooltip,
.app-item[data-feature="stadskaart"]:hover .app-tooltip,
.app-item[data-feature="campagnes"]:hover .app-tooltip {
    background: linear-gradient(135deg, var(--dark-green) 0%, #007050 100%);
}

/* Special hover effects for different app items */
.app-item[data-feature="handhaving"]:hover,
.app-item[data-feature="gemeenteraad"]:hover {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.05) 0%, rgba(227, 6, 19, 0.02) 100%);
    border-color: var(--primary-red);
}

/* Ensure phone frame stays above description but below tooltips */
.phone-frame {
    position: relative;
    z-index: 10;
}

.app-mockup {
    position: relative;
    z-index: 10;
}

/* App divider styling enhancement */
.app-divider {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid var(--gray-light);
    position: relative;
}

.app-divider::after {
    content: '✦';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    color: var(--dark-green);
    font-size: 1.2rem;
}
/* Enhanced App Description Box styling */
.app-description-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-description-box.visible {
    opacity: 1;
    visibility: visible;
}

.app-description-box.active-feature {
    background: linear-gradient(135deg, var(--dark-green) 0%, #007050 100%);
}

.description-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.description-title {
    font-size: 16px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.description-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.description-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-style: italic;
}

/* Smooth content transition */
.app-description-content {
    transition: all 0.3s ease;
}

/* Highlight effect when item is hovered */
.app-item:hover {
    background: linear-gradient(135deg, rgba(0, 90, 60, 0.1) 0%, rgba(0, 90, 60, 0.05) 100%);
    border-color: var(--dark-green);
    transform: translateX(5px);
}

/* Special styling for contact features */
.app-item[data-feature="handhaving"]:hover,
.app-item[data-feature="gemeenteraad"]:hover {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1) 0%, rgba(227, 6, 19, 0.05) 100%);
    border-color: var(--primary-red);
}

/* Different background for contact features in description */
.app-item[data-feature="handhaving"]:hover ~ .app-description-box,
.app-item[data-feature="gemeenteraad"]:hover ~ .app-description-box {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c00510 100%);
}
/* CSS-only toggle using checkbox hack */
.theme-expand-checkbox {
    display: none;
}

.theme-expand-label {
    display: inline-block;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--dark-green);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-expand-label::after {
    content: ' →';
}

.theme-expand-checkbox:checked ~ .theme-expand-label::after {
    content: ' ←';
}

.theme-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-medium);
}

.theme-expand-checkbox:checked ~ .theme-details {
    display: block;
    animation: slideDown 0.3s ease;
}
.standpunt-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--dark-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.program-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 10px;
}

.program-intro .lead-text {
    font-size: 21px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.program-download {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(0, 90, 60, 0.05) 0%, 
        rgba(227, 6, 19, 0.05) 100%);
    border-radius: 10px;
}
html {
    /* Use system font initially */
    font-family: system-ui, -apple-system, sans-serif;
}

/* When fonts are loaded, switch to Montserrat */
html.fonts-loaded body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* Optional: Add subtle transition */
body {
    transition: font-family 0.1s ease-in-out;
}
/* Font-face declarations removed - using Google Fonts CSS instead */




/* Ultra Compact Phone Frame - All items visible */
.phone-frame-compact {
  max-height: 300px;
  overflow: visible;
  position: relative;
}

.phone-frame-compact .phone-screen {
  max-height: 300px;
  display: flex;
  flex-direction: column;
}

.phone-frame-compact .app-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.phone-frame-compact .app-header {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 13px;
  min-height: 35px;
}

.phone-frame-compact .app-menu-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 5px 0;
  overflow: visible;
}

.phone-frame-compact .app-item {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 0; /* Allow items to shrink */
  font-size: 13px;
}

.phone-frame-compact .app-item .item-icon {
  font-size: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}

.phone-frame-compact .app-item span:not(.item-icon) {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Adjust tooltips for smaller size */
.phone-frame-compact .app-tooltip {
  font-size: 12px;
  padding: 8px;
  max-width: 180px;
}
/* Features Section */
.features {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.features .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 44px;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--va-green);
  font-weight: 700;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* CTA Section */
.features-cta {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.cta-text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 500;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-app-store, .btn-google-play {
  transition: transform 0.3s ease;
}

.btn-app-store:hover, .btn-google-play:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .features .section-title {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 20px;
  }
}
/* App Showcase Section */
.app-showcase {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f8f5 100%);
  overflow: hidden;
  position: relative;
  border-bottom: #000000 solid 3px;
  border-top: #000000 solid 3px;
}

/* Animated Title */
.app-hero {
  text-align: center;
  margin-bottom: 80px;
}

.app-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.animated-slide {
  display: block;
  animation: slideIn 0.8s ease-out;
}

.animated-slide:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight-animated {
  background: linear-gradient(90deg, var(--va-green), var(--va-red));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient 3s ease infinite;
}

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


/* Download Section */
.app-download-section {
  text-align: center;
  margin-top: 80px;
  padding: 60px;
  background: var(--va-red);
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 3px solid var(--va-white);
}

.download-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--primary-white);
}

.pulse-text {
  display: inline-block;
  color: yellow;
  animation: pulse 2s ease infinite;
  font-weight: 900;
  font-size: 55px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: #000;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-3px);
}

.btn-icon {
  fill: white;
}

.btn-text {
  text-align: left;
}

.btn-small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
}

.btn-large {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

/* App Statistics */
.app-stats {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border: var(--border-black);
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--va-black);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
}

/* Responsive */
@media (max-width: 1024px) {
  .app-interactive-showcase {
    grid-template-columns: 1fr;
  }
  
  .features-interactive {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
  }
  
  .feature-item {
    position: static;
  }
}

@media (max-width: 768px) {
  .app-title {
    font-size: 2rem;
  }
  
  .phone-frame {
    width: 280px;
    height: 560px;
  }
  
  .download-buttons {
    flex-direction: column;
  }
  
  .app-stats {
    gap: 30px;
  }
}

/* ... existing styles ... */

/* ========================================
   APP SHOWCASE - INTERACTIVE FEATURES
   ======================================== */

.app-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f8f5 100%);
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #000000;
    border-top: 3px solid #000000;
}

.app-hero {
    text-align: center;
    margin-bottom: 80px;
}

.app-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}



/* Phone Container - Center Column */
.phone-container {
    grid-column: 2;
    position: relative;
    z-index: 10;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: #333;
    border-radius: 10px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* Screen Content */
.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen-content.active {
    opacity: 1;
}

.screen-center {
    text-align: center;
}

.screen-logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.screen-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.feature-display {
    text-align: center;
    padding: 20px;
}

.feature-emoji {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
}

.feature-display h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.feature-display p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}


/* Left Column Features */
.features-left {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-end;
    padding-right: 0px;
}

/* Right Column Features */
.features-right {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    padding-left: 0px;
}

/* Feature Items - Uniform Styling */
.feature-item {
    pointer-events: auto;
    width: 100%;
    max-width: 350px;
}

/* Feature Bubble - Consistent Size and Style */
.feature-bubble {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid #e30613;
    min-height: 100px;
    width: 100%;
    position: relative;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Hover Effects */
.feature-bubble:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #005a3c;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f5 100%);
}

.feature-bubble.active {
    background: #005a3c;
    color: white;
    border-color: #005a3c;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 90, 60, 0.3);
}

.feature-bubble.active .feature-icon {
    transform: scale(1.1);
}

.feature-bubble.active .feature-info h3 {
    color: rgb(113, 0, 0);
}

/* Feature Icon */
.feature-icon {
    font-size: 44px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Feature Info */
.feature-info {
    flex: 1;
    min-width: 0;
}

.feature-info h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #000000;
    margin: 0;
    transition: color 0.3s ease;
}

/* Connection Lines (Optional) */
.feature-bubble::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item.left .feature-bubble::after {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.feature-item.right .feature-bubble::after {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.feature-bubble:hover::after {
    opacity: 0.5;
}

/* Improved Positioning for 6 Features */
.feature-item:nth-child(1),
.feature-item:nth-child(2),
.feature-item:nth-child(3) {
    justify-self: end;
}

.feature-item:nth-child(4),
.feature-item:nth-child(5),
.feature-item:nth-child(6) {
    justify-self: start;
}

/* Alternative: Explicit positioning for perfect alignment */


.feature-item {
    position: absolute;
    pointer-events: auto;
    width: 350px;
}

/* Left side - evenly spaced */
.feature-item:nth-child(1) {
    left: 0;
    top: 20%;
    transform: translateY(-50%);
}

.feature-item:nth-child(2) {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.feature-item:nth-child(3) {
    left: 0;
    top: 80%;
    transform: translateY(-50%);
}

/* Right side - evenly spaced */
.feature-item:nth-child(4) {
    right: 0;
    top: 20%;
    transform: translateY(-50%);
}

.feature-item:nth-child(5) {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.feature-item:nth-child(6) {
    right: 0;
    top: 80%;
    transform: translateY(-50%);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .app-interactive-showcase {
        gap: 40px;
    }
    
    .feature-item {
        width: 300px;
    }
    
    .feature-bubble {
        padding: 16px;
        min-height: 90px;
    }
    
    .feature-icon {
        font-size: 44px;
        width: 40px;
        height: 40px;
    }
    
    .feature-info h3 {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .feature-item {
        width: 260px;
    }
    
    .feature-bubble {
        gap: 12px;
    }
}

@media (max-width: 992px) {
    /* Stack layout for tablets */
    .app-interactive-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .phone-container {
        grid-column: 1;
        margin: 0 auto;
    }
    
    .features-interactive {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
        padding: 0 20px;
    }
    
    .feature-item {
        position: static;
        width: 100%;
        transform: none;
        max-width: none;
    }
    
    .feature-bubble::after {
        display: none;
    }
}

@media (max-width: 640px) {
    /* Single column for mobile */
    .features-interactive {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .phone-frame {
        width: 280px;
        height: 560px;
    }
    
    .feature-bubble {
        min-height: 80px;
        padding: 16px;
    }
    
    .feature-icon {
        font-size: 44px;
        width: 36px;
        height: 36px;
    }
    
    .feature-info h3 {
        font-size: 18px;
    }
}

/* Animation for feature selection */
@keyframes featureSelect {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.feature-bubble.selecting {
    animation: featureSelect 0.4s ease;
}

/* Smooth transitions for screen changes */
.screen-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.95);
}

.screen-content.active {
    transform: scale(1);
}

/* Optional: Add numbering or labels */
.feature-bubble::before {
    content: attr(data-number);
    position: absolute;
    top: -10px;
    right: 20px;
    background: #e30613;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-bubble:hover::before {
    opacity: 1;
}

/* Ensure proper stacking */
.phone-container {
    z-index: 20;
}

.feature-item {
    z-index: 10;
}

.feature-bubble {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}


/* ========================================
   APP SHOWCASE - INTERACTIVE FEATURES (FINAL OVERRIDE)
   ======================================== */



.app-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f8f5 100%);
    overflow: visible;
    position: relative;
    border-bottom: 3px solid #000000;
    border-top: 3px solid #000000;
}

.app-hero {
    text-align: center;
    margin-bottom: 60px;
}

.app-tagline {
    font-family: "Montserrat", "sans-serif";
    font-size: 21px;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;

}

/* Interactive Showcase Container - Fixed Layout */
.app-interactive-showcase {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 750px;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Container - Ensure proper centering and spacing */
.phone-container {
    position: relative;
    z-index: 30; /* Lower z-index so bubbles can appear above */
    margin: 0 400px; /* Add horizontal margin to create space for bubbles */
}

/* Feature Items - Adjust positioning to avoid overlap */
.feature-item {
    position: absolute;
    pointer-events: auto;
    width: 280px;
    z-index: 40; /* Higher z-index than phone */
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Reposition features with proper spacing from phone */
.feature-item:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-500px, 0); /* Move left of phone */
}

.feature-item:nth-child(2) {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-500px, 0); /* Move left of phone */
}

.feature-item:nth-child(3) {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-500px, 0); /* Move left of phone */
}

.feature-item:nth-child(4) {
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%) translate(500px, 0); /* Move right of phone */
}

.feature-item:nth-child(5) {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) translate(500px, 0); /* Move right of phone */
}

.feature-item:nth-child(6) {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%) translate(500px, 0); /* Move right of phone */
}

/* Feature Bubble - Ensure they're not hidden behind phone */
.feature-bubble {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e30613;
    min-height: 80px;
    width: 100%;
    position: relative;
    opacity: 1 ;
    visibility: visible ;
    z-index: 41 ; /* Ensure bubbles are above phone */
}

/* Responsive adjustments - stack vertically on smaller screens */
@media (max-width: 1400px) {
    .phone-container {
        margin: 0 350px ; /* Reduce margin for smaller screens */
    }
    
    .feature-item:nth-child(1),
    .feature-item:nth-child(2),
    .feature-item:nth-child(3) {
        transform: translate(-50%, -50%) translate(-420px, 0) ;
    }
    
    .feature-item:nth-child(4),
    .feature-item:nth-child(5),
    .feature-item:nth-child(6) {
        transform: translate(-50%, -50%) translate(420px, 0) ;
    }
}

@media (max-width: 1200px) {
    .phone-container {
        margin: 0 300px ;
    }
    
    .feature-item {
        width: 240px ;
    }
    
    .feature-item:nth-child(1),
    .feature-item:nth-child(2),
    .feature-item:nth-child(3) {
        transform: translate(-50%, -50%) translate(-380px, 0) ;
    }
    
    .feature-item:nth-child(4),
    .feature-item:nth-child(5),
    .feature-item:nth-child(6) {
        transform: translate(-50%, -50%) translate(380px, 0) ;
    }
}
/* Ensure articles are visible */
article.feature-item {
    display: block ;
    opacity: 1 ;
    visibility: visible ;
}

/* Download Section positioning */

.app-download-section {
    position: relative ;
    z-index: 5 ;
    margin-top: 60px ; 
    text-align: center ;
    margin-top: 80px ;
    padding: 60px ;
    background: rgb(113, 4, 4) ;
    border-radius: 30px ;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) ;
    border: 3px solid var(--primary-red) ;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
    .feature-item {
        width: 240px ;
    }
    
    .feature-item:nth-child(1) {
        transform: translate(-50%, -50%) translate(0, -300px) ;
    }
    
    .feature-item:nth-child(2) {
        transform: translate(-50%, -50%) translate(260px, -150px) ;
    }
    
    .feature-item:nth-child(3) {
        transform: translate(-50%, -50%) translate(260px, 150px) ;
    }
    
    .feature-item:nth-child(4) {
        transform: translate(-50%, -50%) translate(0, 300px) ;
    }
    
    .feature-item:nth-child(5) {
        transform: translate(-50%, -50%) translate(-260px, 150px) ;
    }
    
    .feature-item:nth-child(6) {
        transform: translate(-50%, -50%) translate(-260px, -150px) ;
    }
    
    .feature-bubble {
        padding: 12px ;
        min-height: 75px ;
    }
    
    .feature-icon {
        font-size: 44px ;
        width: 32px ;
        height: 32px ;
    }
    
    .feature-info h3 {
        font-size: 18px ;
        font-weight: 700 ;
    }
}

@media (max-width: 992px) {
    /* Grid layout for tablets */
    .app-interactive-showcase {
        min-height: auto ;
    }
    
    .features-interactive {
        position: static ;
        display: grid ;
        grid-template-columns: repeat(2, 1fr) ;
        gap: 20px ;
        margin-top: 40px ;
        padding: 0 20px ;
        width: 100% ;
        height: auto ;
    }
    
    .feature-item {
        position: static ;
        width: 100% ;
        transform: none ;
        max-width: 100% ;
    }
}

@media (max-width: 640px) {
    .features-interactive {
        grid-template-columns: 1fr ;
        gap: 16px ;
        padding: 0 16px ;
    }
    
    .phone-frame {
        width: 280px ;
        height: 560px ;
    }
    
    .feature-bubble {
        min-height: 70px ;
        padding: 12px ;
    }
}

/* Animation */
@keyframes fadeInFeature {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-item {
    animation: fadeInFeature 0.5s ease forwards ;
}

.feature-item:nth-child(1) { animation-delay: 0.1s ; }
.feature-item:nth-child(2) { animation-delay: 0.2s ; }
.feature-item:nth-child(3) { animation-delay: 0.3s ; }
.feature-item:nth-child(4) { animation-delay: 0.4s ; }
.feature-item:nth-child(5) { animation-delay: 0.5s ; }
.feature-item:nth-child(6) { animation-delay: 0.6s ; }



/* Socialist Party Banner Section */
.sp-banner {
    background: #E60000; /* SP Red background */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-top: 120px; /* Add margin to push it below the fixed navbar */
}

.sp-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-banner-title {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 66px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    margin-top: -25px;
}

.sp-text-white {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 66px;
    color: white;
    display: block;
    margin-bottom: -10px; /* Tighten spacing */
    font-weight: 900;
}
.sp-text-green-bold {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: rgb(4, 92, 27);
    display: block;
    margin-bottom: -10px; /* Tighten spacing */
    font-weight: 900;
}
.sp-text-highlight {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: inline-block;
    background: #FFC107; /* Bright yellow */
    color: #000000; /* Black text */
    padding: 8px 20px;
    font-weight: 900;
    transform: rotate(-2.0deg); /* Slight tilt, right side up */
    margin-top: 10px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* Responsive */
@media (max-width: 768px) {
    .sp-banner-title {
        font-size: 2.5rem;
    }
    
    .sp-text-highlight {
        padding: 6px 15px;
    }
}

@media (max-width: 480px) {
    .sp-banner-title {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }
    
    .sp-text-highlight {
        transform: rotate(-1deg);
        padding: 5px 12px;
    }
}
/* ========================================
   HERO TITLE STYLING — NON-CONSOLIDATED
   (elke klasse apart gedefinieerd)
   ======================================== */

/* ========== LARGE TITLES ========== */

/* Black large */
.hero-title .text-black-large {
    color: var(--primary-black) ;
    display: block ;
    font-size: 88px ;   /* <— pas desktop hero-grootte aan */
    font-weight: 900 ;
    margin-bottom: 1rem ;
    letter-spacing: -2.5px ;
    line-height: 0.8 ;
}

/* Green large */
.hero-title .text-green-large {
    color: #01410b ;
    display: block ;
    font-size: 111px ;   /* <— pas desktop hero-grootte aan */
    font-weight: 900 ;
    margin-bottom: 1rem ;
    letter-spacing: -1.5px ;
    line-height: 0.8 ;
}

/* Red large */
.hero-title .text-red-large {
    color: var(--primary-red, #e30613) ;
    display: block ;
    font-size: 111px ;   /* <— pas desktop hero-grootte aan */
    font-weight: 900 ;
    margin-bottom: 1rem ;
    letter-spacing: -1.5px ;
    line-height: 0.8 ;
}

/* ========== BOLD SLOGANS ========== */

/* Green bold */
.hero-title .text-green-bold {
    color: var(--dark-green, #034103) ;
    font-weight: 900 ;
    display: block ;
    font-size: 3rem ;    /* <— pas desktop slogan-grootte aan */
    line-height: 1.2 ;
    margin-top: 0.5rem ;
    letter-spacing: -2px ;
}

/* Green bold (last child tweak) */
.hero-title .text-green-bold:last-child {
    font-size: 3rem ;
    letter-spacing: -2px ;
    margin-top: 0.2rem ;
}

/* Red bold */
.hero-title .text-red-bold {
    color: var(--primary-red, #e30613) ;
    font-weight: 900 ;
    display: block ;
    font-size: 3rem ;    /* <— pas desktop slogan-grootte aan */
    line-height: 1.2 ;
    margin-top: 0.5rem ;
    letter-spacing: -2px ;
}

/* Red bold (last child tweak) */
.hero-title .text-red-bold:last-child {
    font-size: 3rem ;
    letter-spacing: -2px ;
    margin-top: 0.2rem ;
}

/* Black bold (optioneel, symmetrie met kleuren) */
.hero-title .text-black-bold {
    color: var(--primary-black) ;
    font-weight: 900 ;
    display: block ;
    font-size: 3rem ;    /* <— pas desktop slogan-grootte aan */
    line-height: 1.2 ;
    margin-top: 0.5rem ;
    letter-spacing: -2px ;
}

/* Black bold (last child tweak) */
.hero-title .text-black-bold:last-child {
    font-size: 3rem ;
    letter-spacing: -3px ;
    margin-top: 0.2rem ;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .hero-title .text-black-large { font-size: 3.5rem ; }
    .hero-title .text-green-large { font-size: 3.5rem ; }
    .hero-title .text-red-large   { font-size: 3.5rem ; }

    .hero-title .text-green-bold  { font-size: 1.8rem ; }
    .hero-title .text-red-bold    { font-size: 1.8rem ; }
    .hero-title .text-black-bold  { font-size: 1.8rem ; }

    .hero-title .text-green-bold:last-child { font-size: 2rem ; }
    .hero-title .text-red-bold:last-child   { font-size: 2rem ; }
    .hero-title .text-black-bold:last-child { font-size: 2rem ; }
}

@media (max-width: 480px) {
    .hero-title .text-black-large {
        font-size: 2.5rem ;
        letter-spacing: -1px ;
    }
    .hero-title .text-green-large {
        font-size: 2.5rem ;
        letter-spacing: -1px ;
    }
    .hero-title .text-red-large {
        font-size: 2.5rem ;
        letter-spacing: -1px ;
    }

    .hero-title .text-green-bold { font-size: 1.3rem ; }
    .hero-title .text-red-bold   { font-size: 1.3rem ; }
    .hero-title .text-black-bold { font-size: 1.3rem ; }

    .hero-title .text-green-bold:last-child { font-size: 1.5rem ; }
    .hero-title .text-red-bold:last-child   { font-size: 1.5rem ; }
    .hero-title .text-black-bold:last-child { font-size: 1.5rem ; }
}
.text-green-large {
    font-size: 55px ; /* or 2.06rem */
    color: #035505 ; /* or your green color */
    font-weight: 900 ;
    letter-spacing: -2.5px ;
}

.text-red-large {
    font-size: 44px ; /* or 2.06rem */
    color: #c7170b ; /* or your red color */
    font-weight: 800 ;    
    letter-spacing: -2.5px ;
}
.sp-banner-title {
  display: flex ;
  flex-direction: column ;
  align-items: center ;
}

.sp-text-white,
.sp-text-highlight {
  display: inline-block ;
  text-align: center ;
  white-space: nowrap ; /* prevent wrapping */
}

/* Highlight line — scaled text */
.sp-text-highlight {
  background: #FFC107 ;
  color: #000 ;
  padding: 8px 20px ;
  font-weight: 900 ;
  transform: rotate(-1.5deg) ;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2) ;
  margin-top: 10px ;

  font-size: clamp(3rem, 8vw, 5.5rem) ; /* auto-resize */
}

/* === Nieuws-melder === */
.va-news{position:fixed;right:1rem;bottom:1rem;max-width:360px;width:92vw;z-index:9999;
  background:#111;color:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.1);padding:.9rem .9rem 0.75rem;display:flex;flex-direction:column;gap:.5rem}
.va-news.hidden{display:none}
@media (max-width:640px){.va-news{left:1rem;right:1rem;bottom:.75rem;max-width:none}}
.va-news-head{display:flex;align-items:center;gap:.5rem;font-weight:700}
.va-news-bell{filter:saturate(0) brightness(1.2)}
.va-news-close{position:absolute;top:.25rem;right:.45rem;background:transparent;border:0;color:#fff;
  font-size:1.25rem;line-height:1;cursor:pointer;opacity:.8}
.va-news-close:hover{opacity:1}
.va-news-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.6rem}
.va-news-item{display:grid;grid-template-columns:64px 1fr;gap:.6rem;align-items:center}
.va-news-thumb{width:64px;height:40px;border-radius:8px;object-fit:cover;border:1px solid rgba(255,255,255,.08)}
.va-news-title{margin:0;font-size:.95rem;line-height:1.25}
.va-news-meta{font-size:.8rem;opacity:.8;margin-top:.15rem}
.va-news-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.3rem}
.va-news-btn{background:#232323;border:1px solid #3a3a3a;color:#fff;padding:.45rem .7rem;border-radius:10px;cursor:pointer}
.va-news-primary{background:#E60000;border-color:#E60000}
.va-news a{color:#fff;text-decoration:none}
.va-news a:hover{text-decoration:underline}
@media (prefers-reduced-motion:no-preference){
  .va-news{transform:translateY(10px);opacity:0;transition:transform .25s ease,opacity .25s ease}
  .va-news.show{transform:translateY(0);opacity:1}
}

.va-footer-location{margin:2rem 0;padding:1.25rem;border:1px solid #e8e8e8;border-radius:16px;background:#fafafa}
.va-footer-wrap{display:grid;grid-template-columns:1.2fr 1fr;gap:1.25rem;align-items:start}
.va-footer-title{margin:0 0 .5rem;font-size:1.05rem}
.va-address{font-style:normal;line-height:1.5;margin:.5rem 0 1rem}
.va-contact-list{list-style:none;margin:0 0 1rem;padding:0;display:grid;gap:.35rem}
.va-contact-list a{text-decoration:none}
.va-cta-row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
.va-btn{display:inline-block;padding:.55rem .9rem;border-radius:10px;border:1px solid #d9d9d9;background:#fff;text-decoration:none;font-weight:600}
.va-link{text-decoration:none}
.va-map{aspect-ratio:16/9;border-radius:12px;overflow:hidden;border:1px solid #e6e6e6;background:#f4f4f4}
.va-map iframe{width:100%;height:100%;border:0}
.va-map-note{display:block;margin-top:.5rem;color:#666}
@media (max-width:800px){.va-footer-wrap{grid-template-columns:1fr}}

.footer-location {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}
.footer-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.footer-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px;
}
@media (max-width: 800px) {
  .footer-location-grid {
    grid-template-columns: 1fr;
  }
}
.topic-clusters {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.topic-cluster h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.topic-cluster h3 a {
  color: #005a3c;
  text-decoration: none;
}

.cluster-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cluster-links li {
  margin-bottom: 0.25rem;
}

.cluster-links a {
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.cluster-links a:hover {
  color: #005a3c;
  text-decoration: underline;
}

.news-topics-tags {
  margin-top: 0.5rem;
}

.topic-tag {
  display: inline-block;
  background: #e5f7e5;
  color: #005a3c;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.topic-tag a {
  color: inherit;
  text-decoration: none;
}

.related-content {
  text-align: center;
}

.theme-detail-link {
  font-weight: 600;
  color: #005a3c;
  text-decoration: none;
}

.theme-detail-link:hover {
  text-decoration: underline;
}
.program-clusters {
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.cluster-nav h3 {
    color: #005a3c;
    margin-bottom: 1rem;
    text-align: center;
}

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

.cluster-link {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #005a3c;
    border-radius: 8px;
    text-decoration: none;
    color: #005a3c;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.cluster-link:hover {
    background: #005a3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 90, 60, 0.2);
}

.related-topics {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #005a3c;
}

.related-topics a {
    color: #005a3c;
    text-decoration: none;
    font-weight: 500;
}

.related-topics a:hover {
    text-decoration: underline;
}

.featured-label {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    animation: pulse 2s infinite;
}

.program-download-enhanced {
    margin-top: 3rem;
    background: linear-gradient(135deg, #005a3c 0%, #007a52 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.download-main {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-primary-large {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #005a3c;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.related-resources h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #e9ecef;
}

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

.resource-column {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.resource-column h5 {
    color: #e9ecef;
    margin-bottom: 1rem;
}

.resource-column ul {
    list-style: none;
    padding: 0;
}

.resource-column li {
    margin-bottom: 0.5rem;
}

.resource-column a {
    color: #b8e6d3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-column a:hover {
    color: white;
    text-decoration: underline;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .cluster-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive-topic {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.archive-topic h3 a {
  color: #005a3c;
  text-decoration: none;
  margin-bottom: 1rem;
  display: block;
}

.archive-articles {
  margin: 1rem 0;
}

.archive-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.archive-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.archive-item a {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.archive-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.archive-content h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #212529;
}

.archive-content p {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.archive-content time {
  font-size: 0.75rem;
  color: #adb5bd;
}

.topic-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #005a3c;
}

.topic-link a {
  color: #005a3c;
  font-weight: 600;
  text-decoration: none;
}

.topic-link a:hover {
  text-decoration: underline;
}

.all-news-cta {
  text-align: center;
  margin: 3rem 0;
}

.btn-all-news {
  display: inline-block;
  padding: 1rem 2rem;
  background: #005a3c;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-all-news:hover {
  background: #007a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 90, 60, 0.3);
}

@media (max-width: 768px) {
  .archive-item {
    flex-direction: column;
  }
  
  .archive-thumb {
    width: 100%;
    height: 120px;
  }
}
.program-clusters {
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.cluster-nav h3 {
    color: #005a3c;
    margin-bottom: 1rem;
    text-align: center;
}

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

.cluster-link {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #005a3c;
    border-radius: 8px;
    text-decoration: none;
    color: #005a3c;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.cluster-link:hover {
    background: #005a3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 90, 60, 0.2);
}

.related-topics {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #005a3c;
}

.related-topics a {
    color: #005a3c;
    text-decoration: none;
    font-weight: 500;
}

.related-topics a:hover {
    text-decoration: underline;
}

.featured-label {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    animation: pulse 2s infinite;
}

.program-download-enhanced {
    margin-top: 3rem;
    background: linear-gradient(135deg, #005a3c 0%, #007a52 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.download-main {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-primary-large {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #005a3c;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.related-resources h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #e9ecef;
}

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

.resource-column {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.resource-column h5 {
    color: #e9ecef;
    margin-bottom: 1rem;
}

.resource-column ul {
    list-style: none;
    padding: 0;
}

.resource-column li {
    margin-bottom: 0.5rem;
}

.resource-column a {
    color: #b8e6d3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-column a:hover {
    color: white;
    text-decoration: underline;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .cluster-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
}
.features-interactive {
  position: relative;
  padding: 2rem 0;
}

.feature-item {
  margin: 2rem 0;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInFromLeft 0.8s ease forwards;
}

.feature-item.right {
  transform: translateX(50px);
  animation: slideInFromRight 0.8s ease forwards;
}

.feature-bubble {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 90, 60, 0.1);
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
}

.feature-bubble:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 64px rgba(0, 90, 60, 0.2);
  border-color: #005a3c;
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.feature-info h3 {
  color: #005a3c;
  margin-bottom: 1rem;
  text-align: center;
}

.feature-info h3 a {
  color: inherit;
  text-decoration: none;
}

.feature-info h3 a:hover {
  text-decoration: underline;
}

.feature-info p {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-links {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.feature-links a {
  color: #005a3c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.feature-links a:hover {
  color: #007a52;
  text-decoration: underline;
}

.features-integration {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  text-align: center;
}

.integration-title {
  color: #005a3c;
  margin-bottom: 1.5rem;
}

.integration-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.flow-step {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid #005a3c;
  font-weight: 600;
}

.flow-step a {
  color: #005a3c;
  text-decoration: none;
}

.flow-arrow {
  color: #005a3c;
  font-weight: bold;
  font-size: 1.2rem;
}

.features-cta-section {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  border: 2px solid #005a3c;
}

.cta-title {
  text-align: center;
  color: #005a3c;
  margin-bottom: 2rem;
}

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

.cta-item {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.cta-item h4 a {
  color: #005a3c;
  text-decoration: none;
}

.platform-stats {
  background: linear-gradient(135deg, #005a3c 0%, #007a52 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  text-align: center;
}

.stats-title {
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b8e6d3;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.stat-label a {
  color: inherit;
  text-decoration: none;
}

.stat-label a:hover {
  text-decoration: underline;
}

.stats-note {
  font-size: 0.8rem;
  opacity: 0.8;
}

.stats-note a {
  color: #b8e6d3;
  text-decoration: none;
}

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .integration-flow {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
  
  .cta-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.news-enhanced {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.news-topic-navigation {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-nav-title {
  color: #005a3c;
  margin-bottom: 1.5rem;
  text-align: center;
}

.news-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.news-topic-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  color: #495057;
  transition: all 0.3s ease;
}

.news-topic-link:hover,
.news-topic-link.featured-topic {
  background: #005a3c;
  color: white;
  border-color: #005a3c;
  transform: translateY(-2px);
}

.news-grid-enhanced {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card-main {
  grid-column: 1;
  grid-row: 1 / 3;
}

.featured-secondary {
  grid-column: 2 / 4;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive-topic {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.archive-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.archive-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.btn-all-news {
  display: inline-block;
  padding: 1rem 2rem;
  background: #005a3c;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-all-news:hover {
  background: #007a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 90, 60, 0.3);
}

@media (max-width: 768px) {
  .news-grid-enhanced {
    grid-template-columns: 1fr;
  }
  
  .news-card-main {
    grid-column: 1;
    grid-row: auto;
  }
  
  .featured-secondary {
    grid-column: 1;
  }
}
/* Fix 1: Ensure body and html allow full content */
html, body {
    height: auto ; /* Remove any height restrictions */
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto ; /* Ensure vertical scrolling works */
}

/* Fix 2: Remove height restrictions from main sections */
.hero {
    min-height: calc(100vh - 70px);
    height: auto ; /* Remove fixed height */
    overflow: visible ; /* Ensure content isn't cut off */
}

.app-promotion,
.themes,
.news,
.news-enhanced,
.app-showcase {
    height: auto ;
    min-height: auto ;
    overflow: visible ;
}

/* Fix 3: Ensure interactive showcase doesn't cut content */
.app-interactive-showcase {
    min-height: 750px ;
    height: auto ; /* Allow content to expand */
    overflow: visible ;
}

/* Fix 4: Fix any container overflow issues */
.container {
    max-width: 1200px;
    padding: 0 80px;
    width: 100%;
    overflow: visible ;
}

/* Fix 5: Ensure phone frame doesn't interfere */
.phone-frame {
    position: relative ;
    z-index: 10 ; /* Lower z-index */
}

/* Fix 6: Debug - temporarily show section boundaries */
section {
    border: 1px solid rgba(255, 0, 0, 0.1) ; /* Temporary debug border */
    margin-bottom: 2rem ;
    overflow: visible ;
}

/* ========================================
   ENSURE DARK MODE WORKS FOR MAJOR SECTIONS
   ======================================== */

/* Force html and body to use dark mode variables */
:root[data-theme="dark"] html {
    background: var(--bg-primary);
    color: var(--text-primary);
}

:root[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Force major sections to respect theme variables */
:root[data-theme="dark"] section,
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .app-promotion,
:root[data-theme="dark"] .features {
    background: var(--bg-primary);
    color: var(--text-primary);
}

:root[data-theme="dark"] .container {
    background: transparent;
    color: var(--text-primary);
}

/* Ensure all major content areas respect dark mode */
:root[data-theme="dark"] main,
:root[data-theme="dark"] .hero-content,
:root[data-theme="dark"] .app-text,
:root[data-theme="dark"] .canvas-container {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Dark mode for cards and components */
:root[data-theme="dark"] .theme-card,
:root[data-theme="dark"] .news-card,
:root[data-theme="dark"] .feature-item {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Ensure text elements respect dark mode */
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] p,
:root[data-theme="dark"] span:not(.sp-text-highlight) {
    color: var(--text-primary);
}

/* ========================================
   AGGRESSIVE DARK MODE ENFORCEMENT
   ======================================== */

/* Override any hardcoded white backgrounds */
:root[data-theme="dark"] div:not(.sp-text-highlight):not(.phone-screen),
:root[data-theme="dark"] section:not(.sp-text-highlight),
:root[data-theme="dark"] article:not(.sp-text-highlight),
:root[data-theme="dark"] header:not(.sp-text-highlight),
:root[data-theme="dark"] footer:not(.sp-text-highlight) {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Force dark backgrounds for common containers */
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .hero-content,
:root[data-theme="dark"] .app-promotion,
:root[data-theme="dark"] .features,
:root[data-theme="dark"] .news-section,
:root[data-theme="dark"] .download-section {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Ensure all text is visible in dark mode (but not buttons) */
:root[data-theme="dark"] p,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] span:not(.sp-text-highlight),
:root[data-theme="dark"] div:not(.btn):not(.sp-text-highlight),
:root[data-theme="dark"] li,
:root[data-theme="dark"] td,
:root[data-theme="dark"] th {
    color: var(--text-primary);
}

/* Exceptions for elements that should keep their colors */
:root[data-theme="dark"] .sp-text-highlight,
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .text-red,
:root[data-theme="dark"] .text-green {
    color: initial;
}

/* ========================================
   FORCE DARK MODE WITH !IMPORTANT
   ======================================== */

/* Force dark mode on fundamental elements */
:root[data-theme="dark"] html {
    background: #111827 !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] body {
    background: #111827 !important;
    color: #ffffff !important;
}

/* Force dark mode on all major containers */
:root[data-theme="dark"] div,
:root[data-theme="dark"] section,
:root[data-theme="dark"] article,
:root[data-theme="dark"] header,
:root[data-theme="dark"] main,
:root[data-theme="dark"] .container,
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .hero-content,
:root[data-theme="dark"] .app-showcase,
:root[data-theme="dark"] .app-promotion,
:root[data-theme="dark"] .features,
:root[data-theme="dark"] .themes,
:root[data-theme="dark"] .stats {
    background: #111827 !important;
    color: #ffffff !important;
}

/* Force dark mode on text elements */
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] p,
:root[data-theme="dark"] span:not(.sp-text-highlight):not(.theme-toggle-icon):not(.theme-toggle-text),
:root[data-theme="dark"] li,
:root[data-theme="dark"] td,
:root[data-theme="dark"] th {
    color: #ffffff !important;
}

/* Force dark mode on cards and components */
:root[data-theme="dark"] .theme-card,
:root[data-theme="dark"] .news-card,
:root[data-theme="dark"] .feature-item,
:root[data-theme="dark"] .feature-bubble,
:root[data-theme="dark"] .app-interactive-showcase,
:root[data-theme="dark"] .phone-container {
    background: #1f2937 !important;
    color: #ffffff !important;
    border-color: #374151 !important;
}

/* Force navbar dark mode */
:root[data-theme="dark"] .navbar,
:root[data-theme="dark"] .nav-content,
:root[data-theme="dark"] .nav-menu {
    background: #111827 !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] .nav-menu a {
    color: #ffffff !important;
}

/* Keep buttons and special elements with their intended colors */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .btn-green,
:root[data-theme="dark"] .btn-red,
:root[data-theme="dark"] .sp-text-highlight,
:root[data-theme="dark"] .text-red-bold,
:root[data-theme="dark"] .text-green-bold,
:root[data-theme="dark"] .text-green-large,
:root[data-theme="dark"] .text-red-large {
    background: initial !important;
    color: initial !important;
}

/* Force theme toggle button to be visible */
:root[data-theme="dark"] .theme-toggle {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

