:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    --text-color: #333;
    --font-scale: 1;
}

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

body,
html {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.location-info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: var(--bg-overlay);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    pointer-events: none;
    /* Let clicks pass through to map if needed, though it's high up */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.controls-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: auto;
    max-width: 95%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.file-input {
    display: none;
}

.file-label {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.file-label:hover {
    background-color: #0056b3;
}

#file-name {
    font-size: 0.85rem;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.progress-container {
    position: relative;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -10px;
    padding: 10px 20px 0px 20px;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.05); */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    pointer-events: none;
    /* Don't interfere with clicks */
    min-width: 40px;
    text-align: center;
}

#time-start {
    margin-right: 10px;
}

#time-end {
    margin-left: 10px;
}

.time-tooltip {
    position: absolute;
    top: -30px;
    /* Above the bar */
    left: 0;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.2s, left 0.1s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-container:hover .time-tooltip,
.progress-container:active .time-tooltip {
    opacity: 1;
}

#progress-bar {
    width: 100%;
    cursor: pointer;
    height: 6px;
    /* Slightly thicker for better visibility */
    background: rgba(0, 0, 0, 0.1);
    /* Fallback */
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    transition: background 0.1s;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.1s;
}

#progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: center;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

.control-btn.active {
    color: #fff;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.4);
}

.control-btn.small-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
}

.control-btn.small-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.control-select {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 0 10px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    height: 36px;
    font-family: inherit;
    font-weight: 500;
    margin: 0 5px;
}

.control-select:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.control-select:focus {
    border-color: var(--primary-color);
}

/* Top UI Container */
.top-ui-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    width: 100%;
    pointer-events: none;
    /* Allow clicks to pass through to map */
}

/* Location Info */
.location-info {
    /* Reset absolute positioning */
    position: static;
    transform: none;
    top: auto;
    left: auto;

    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    /* Re-enable clicks */
    transition: all 0.3s ease;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: calc(14px * var(--font-scale));
    color: #333;
}

.info-item i {
    color: var(--primary-color);
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.playback-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.transport-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.speed-control label {
    font-size: 0.9rem;
}

#speed-range {
    width: 100px;
    cursor: pointer;
}

#speed-display {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 30px;
    text-align: right;
}

.speed-control input[type="range"] {
    width: 80px;
    height: 4px;
    border-radius: 2px;
}

/* Weetjes Container */
.weetjes-container {
    /* Reset absolute positioning */
    position: static;
    transform: none;
    top: auto;
    left: auto;

    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: auto;
    /* Allow growth */
    min-width: 300px;
    /* Minimum width */
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
    pointer-events: auto;
    /* Re-enable clicks */
}

.weetje-content {
    font-size: calc(16px * var(--font-scale));
    font-weight: 700;
    /* Bold */
    color: #000;
    /* Pure black for contrast */
    display: flex;
    align-items: center;
}

.weetje-content i {
    color: #f1c40f;
    /* Yellow for lightbulb */
    font-size: 18px;
    margin-right: 12px;
    /* Added spacing */
}

/* Demografie Charts */
.demografie-container {
    /* Reset absolute positioning */
    position: static;
    transform: none;
    top: auto;
    left: auto;

    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    /* Reduced padding */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 350px;
    /* Slightly narrower */
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
    pointer-events: auto;
    /* Re-enable clicks */

    font-size: 11px;
    /* Smaller font */
    text-align: left;
}

.demografie-header {
    font-size: calc(13px * var(--font-scale));
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread them out */
    gap: 10px;
    cursor: pointer;
    /* Make it look clickable */
}

#demografie-charts {
    display: none;
    /* Hidden by default */
}

.header-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-stat i {
    color: var(--primary-color);
    font-size: 12px;
}

.chart-group {
    margin-bottom: 6px;
    /* Reduced margin */
}

.chart-title {
    font-weight: bold;
    margin-bottom: 2px;
    /* Reduced margin */
    color: #555;
    font-size: calc(11px * var(--font-scale));
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    /* Reduced margin */
    line-height: 1.2;
}

.chart-label {
    width: 110px;
    /* Increased from 90px */
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: calc(11px * var(--font-scale));
}

.chart-bar-container {
    flex-grow: 1;
    width: 60px;
    /* Limit max width of bars */
    background: #eee;
    height: 6px;
    /* Thinner bars */
    border-radius: 3px;
    overflow: hidden;
    margin: 0 6px;
}

.chart-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.chart-value {
    width: 35px;
    text-align: right;
    font-size: calc(11px * var(--font-scale));
    color: #666;
}

/* Accordion Styles */
.demo-section {
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    transition: color 0.2s;
}

.demo-header:hover {
    color: var(--primary-color);
}

.demo-content {
    padding-bottom: 10px;
    display: none;
    /* Collapsed by default */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .controls-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        bottom: 20px;
        width: 90%;
    }

    .playback-controls {
        width: 100%;
        justify-content: space-between;
    }

    .speed-control {
        width: 100%;
        justify-content: space-between;
        margin-top: 0;
    }

    .location-info {
        top: 10px;
        width: 95%;
        flex-direction: column;
        gap: 5px;
    }

    .weetjes-container {
        top: 100px;
        width: 95%;
    }
}

/* Settings Panel */
.settings-panel {
    position: absolute;
    bottom: 90px;
    /* Above controls */
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    /* Reduced padding */
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 20000;
    width: 260px;
    /* Slightly wider */
    max-width: calc(100vw - 40px);
    /* Ensure it fits on mobile */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

.settings-panel h3 {
    margin-top: 0;
    margin-bottom: 8px;
    /* Reduced margin */
    font-size: 15px;
    /* Reduced font size */
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    /* Reduced padding */
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    /* Reduced margin */
    gap: 10px;
}

.setting-item.vertical {
    flex-direction: column;
    align-items: flex-start;
}

.setting-label {
    font-size: 13px;
    /* Reduced font size */
    color: #555;
    flex-grow: 1;
}

.setting-item input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    flex-shrink: 0;
    transform: scale(0.9);
    /* Scale down slightly */
    transform-origin: right center;
}

/* Layers Grid */
.layers-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.layers-grid .setting-item {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
}

.layers-grid .setting-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 600px) {
    .settings-panel {
        right: 50%;
        transform: translateX(50%);
        bottom: 140px;
        width: 90%;
    }
}

/* Map Style Container (Bottom) */
.map-style-container {
    position: relative;
    top: auto;
    right: auto;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    color: var(--text-color);
}

.map-style-container:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.map-style-icon {
    color: inherit;
    font-size: 1.5rem;
    pointer-events: none;
    margin-right: 0;
}

.map-style-container .control-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    appearance: none;
}

/* Animated Route */
.animated-route {
    transition: stroke-opacity 10s ease-out, stroke-width 10s ease-out;
    stroke-opacity: 1;
    /* Default start */
    stroke-width: 6px;
}

.route-flash {
    stroke-opacity: 1 !important;
    stroke-width: 6px !important;
}

.route-dim {
    stroke-opacity: 0.5 !important;
    stroke-width: 4px !important;
}

.route-hidden {
    stroke-opacity: 0 !important;
    stroke-width: 4px !important;
}

/* Upload Modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 10px;
}

.modal-content p {
    color: #666;
    margin-bottom: 30px;
}

.file-input-wrapper-large {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-modal {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Area Labels on Map */
.area-label {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.8);
}

.file-label-large i {
    font-size: 3rem;
}

/* LANDING PAGE STYLES */
:root {
    --primary-gradient: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
    --surface-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-blue: #e3f2fd;
    --accent-green: #e8f5e9;
    --accent-purple: #f3e5f5;
}

.landing-body {
    overflow-y: auto;
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
.landing-nav {
    font-family: 'Outfit', sans-serif;
}

/* Navigation */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0061ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a:not(.nav-btn) {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.nav-links a:not(.nav-btn):hover {
    color: #2c3e50;
}

.nav-btn {
    padding: 12px 30px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.nav-btn:hover {
    border-color: #bdc3c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #2c3e50 !important;
}

/* Hero Section */
.landing-hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 160px 20px 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 600px;
    margin-bottom: 100px;
    /* Space for floating card */
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 24px;
}

.landing-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

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

.cta-button {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button.primary {
    background: #0061ff;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 97, 255, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 97, 255, 0.4);
    background: #0056e0;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Floating Upload Card */
.upload-card-floating {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    margin-top: 60px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.upload-card-floating:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.upload-icon-wrapper i {
    font-size: 2.5rem;
    color: #0061ff;
}

.upload-card-floating h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.upload-card-floating p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.supported-formats {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.supported-formats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Features Section */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

/* Expanded Landing Page Styles */

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Layer Badges */
.layer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.layer-badge {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.layer-badge:hover {
    transform: translateY(-2px);
    border-color: #0061ff;
    color: #0061ff;
    box-shadow: 0 5px 15px rgba(0, 97, 255, 0.15);
}

.layer-badge i {
    color: #0061ff;
}

/* Gradient Text for Emphasis */
.text-gradient {
    background: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Feature Grid Enhanced */
.feature-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0061ff;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

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

.detail-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.detail-list li::before {
    content: "•";
    color: #0061ff;
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* Feature Rows */
.feature-section-large {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.feature-section-large:nth-child(even) {
    background: white;
}

.feature-section-large:nth-child(odd) {
    background: #f8f9fa;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.02);
}

/* Stats Counter */
.stats-section {
    background: var(--text-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #60efff;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .feature-row {
        flex-direction: column;
        text-align: center;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .stats-grid {
        gap: 40px;
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.bg-blue {
    background: var(--accent-blue);
    color: #0061ff;
}

.bg-green {
    background: var(--accent-green);
    color: #00c853;
}

.bg-purple {
    background: var(--accent-purple);
    color: #aa00ff;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Steps Section */
.steps-section {
    background: white;
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.steps-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.steps-intro {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mockup-window {
    background: #f1f3f5;
    border-radius: 12px;
    padding: 20px;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.mockup-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
}

.mockup-header span:nth-child(1) {
    background: #ff5f57;
}

.mockup-header span:nth-child(2) {
    background: #febc2e;
}

.mockup-header span:nth-child(3) {
    background: #28c840;
}

.mockup-body {
    flex: 1;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
.landing-footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: 60px;
    background: white;
}

/* Hamburger Menu Default Hidden */
.hamburger-menu {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .landing-title {
        font-size: 2.5rem;
    }

    .landing-hero {
        padding-top: 120px;
    }

    .steps-section {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 20px;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .hamburger-menu {
        display: block;
        font-size: 1.5rem;
        color: #2c3e50;
        cursor: pointer;
        padding: 5px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

/* User System Styles */
.user-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #e74c3c;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

.modal h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.modal input,
.modal select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

.modal button {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    font-size: 16px;
}

.modal p {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.modal a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Primary Nav Button */
.nav-btn-primary {
    background: #3498db !important;
    color: white !important;
    border: 1px solid #3498db !important;
    margin-left: 10px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.nav-btn-primary:hover {
    background: #2980b9 !important;
    color: white !important;
    border-color: #2980b9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* Password Toggle Styles */
.input-with-icon {
    position: relative;
    width: 100%;
    margin: 8px 0;
}

.input-with-icon input {
    margin: 0 !important;
    /* Override modal input margin */
    padding-right: 40px !important;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    transition: color 0.2s;
    z-index: 5;
}

.toggle-password:hover {
    color: var(--primary-color);
}