:root {
    --deep-blue: #0f2554;
    --ocean-teal: #00b4d8;
    --sunset-orange: #ff6b35;
    --warm-coral: #f77f00;
    --soft-white: #fefefe;
    --light-bg: #f8f9fc;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--soft-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* SPLIT HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px); /* Assuming header height is 80px */
    gap: 0;
}

.hero-content {
    padding: 4rem 3rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--deep-blue), #1a4070);
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--ocean-teal), var(--sunset-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent; /* Standard property */
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 60ch; /* Improves readability */
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content */
    gap: 0.625rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sunset-orange), var(--warm-coral));
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--deep-blue);
}

.btn-secondary:hover, .btn-secondary:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.hero-visual {
    background: linear-gradient(135deg, var(--ocean-teal), var(--deep-blue));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-image {
    position: relative;
    z-index: 1;
    font-size: 15rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

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

/* STATS BAR */
.stats-bar {
    background: var(--light-bg);
    padding: 3rem 2rem;
}

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

.stat {
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--ocean-teal), var(--deep-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* COMMON SECTION STYLES */
.features, .categories, .map-section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    color: var(--ocean-teal);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 65ch;
    margin: 0 auto;
}

/* FEATURES - BENTO GRID */
.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    /* More responsive grid with auto-fit */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.15);
    border-color: var(--ocean-teal);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--ocean-teal);
}

.feature-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CATEGORIES */
.categories {
    background: var(--light-bg);
}

.categories-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    /* Responsive grid: 4 columns on desktop, 2 on tablet, 1 on mobile */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none; /* Remove underline from link */
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: var(--deep-blue); /* Ensure text color is consistent */
}

.category-card:hover, .category-card:focus {
    border-color: var(--ocean-teal);
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
    outline: none;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon, .category-card:focus .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-weight: 600;
}
.category-group {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* MAP */
.map-section {
    padding-bottom: 0; /* To connect with footer */
}

.map-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    height: 550px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 3rem 1.5rem;
        text-align: center;
    }
    
    .hero-badge {
        margin: 0 auto 2rem;
    }

    .hero-visual {
        min-height: 300px;
        grid-row: 1; /* Move visual to the top on mobile */
    }

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

    .btn {
        width: 100%;
    }

    .features, .categories, .map-section {
        padding: 3rem 1rem;
    }

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

    .map-container {
        height: 400px;
    }
}

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