:root {
    /* White/Light Theme Colors */
    --bg-color: #f8fafc;
    /* Very light slate/gray */
    --text-primary: #1e293b;
    --text-secondary: #64748b;

    /* Light Glassmorphism */
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.5);
    --card-shadow-default: rgba(148, 163, 184, 0.15);
    --primary-glow: rgba(56, 189, 248, 0.4);

    /* Icon Colors (Vibrant on light bg) */
    --c-blue: #2563eb;
    --c-purple: #7c3aed;
    --c-green: #059669;
    --c-orange: #d97706;
    --c-pink: #db2777;
    --c-teal: #0d9488;
    --c-yellow: #ca8a04;
    --c-red: #dc2626;
    --c-cyan: #0891b2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Abstract Background Shapes (Light Theme) */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Slightly less blur for light background */
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(248, 250, 252, 0) 70%);
    top: -200px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(248, 250, 252, 0) 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(248, 250, 252, 0) 70%);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--c-blue);
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.3));
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-blue);
    border-radius: 2px;
    box-shadow: 0 1px 4px var(--c-blue);
}

.admin-footer-link {
    color: rgba(100, 116, 139, 0.4) !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.admin-footer-link:hover {
    color: var(--c-blue) !important;
}

/* Sections & Grouping */
.section-wrapper {
    width: 100%;
}

.section-wrapper:nth-child(even) {
    background-color: #f1f3f4;
}

.section-wrapper:nth-child(even) .card {
    background: rgba(255, 255, 255, 0.9);
}

.section-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 3rem 3%;
}

.section-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-blue);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--c-blue);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 4rem 0;
    /* Remove horizontal padding here as section-content handles it */
    width: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid System */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Glassmorphism Cards (Light) */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px var(--card-shadow-default), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #fff;
    box-shadow: 0 20px 40px rgba(100, 116, 139, 0.15), 0 0 20px var(--hover-color, rgba(56, 189, 248, 0.2));
}

.card:hover::before {
    opacity: 0.5;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

/* Give the icons a slightly stronger background in light mode so they stand out */
.card:hover .card-icon {
    transform: scale(1.1) rotate(2deg);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

/* Icon Colors (Light mode adjusted) */
.card-icon.blue {
    color: var(--c-blue);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.card-icon.purple {
    color: var(--c-purple);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.card-icon.green {
    color: var(--c-green);
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.card-icon.orange {
    color: var(--c-orange);
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.card-icon.pink {
    color: var(--c-pink);
    background: rgba(219, 39, 119, 0.1);
    border: 1px solid rgba(219, 39, 119, 0.15);
}

.card-icon.teal {
    color: var(--c-teal);
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.card-icon.yellow {
    color: var(--c-yellow);
    background: rgba(202, 138, 4, 0.1);
    border: 1px solid rgba(202, 138, 4, 0.15);
}

.card-icon.red {
    color: var(--c-red);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.card-icon.cyan {
    color: var(--c-cyan);
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.15);
}

/* Set individual shadow hover colors based on the icon color */
.card:has(.card-icon.blue):hover {
    --hover-color: rgba(37, 99, 235, 0.15);
}

.card:has(.card-icon.purple):hover {
    --hover-color: rgba(124, 58, 237, 0.15);
}

.card:has(.card-icon.green):hover {
    --hover-color: rgba(5, 150, 105, 0.15);
}

.card:has(.card-icon.orange):hover {
    --hover-color: rgba(217, 119, 6, 0.15);
}

.card:has(.card-icon.pink):hover {
    --hover-color: rgba(219, 39, 119, 0.15);
}

.card:has(.card-icon.teal):hover {
    --hover-color: rgba(13, 148, 136, 0.15);
}

.card:has(.card-icon.yellow):hover {
    --hover-color: rgba(202, 138, 4, 0.15);
}

.card:has(.card-icon.red):hover {
    --hover-color: rgba(220, 38, 38, 0.15);
}

.card:has(.card-icon.cyan):hover {
    --hover-color: rgba(8, 145, 178, 0.15);
}

/* For older browser compatibility where :has isn't supported, we can fallback to nth-child just in case, or directly style the card */

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

/* Footer (Light Mode) */
.footer {
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 5%;
    margin-top: auto;
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
}

.footer-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-links a,
.cookies a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links a:hover,
.cookies a:hover {
    color: var(--c-blue);
}

.separator {
    color: rgba(100, 116, 139, 0.3);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 1.25rem;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .nav {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }

    .hero-section {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-content {
        padding: 2.5rem 5%;
    }

    .section-header {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card {
        padding: 2rem 1.5rem;
        align-items: center;
        /* Center content on mobile for better aesthetics */
        text-align: center;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 1rem;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .footer {
        padding: 2.5rem 5%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .section-content {
        padding: 2rem 1rem;
    }
}