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

:root {
    /* Light nature palette */
    --cream: #fdfbf7;
    --soft-green: #d4e7c5;
    --sage: #9db88f;
    --forest: #4a7c59;
    --earth: #8b7355;
    --sky: #e8f4f8;
    --paper: #f9f6f0;
    --ink: #2d3748;
    --ink-light: #4a5568;
    --accent: #6b9080;
    --shadow: rgba(74, 124, 89, 0.15);
    --shadow-strong: rgba(74, 124, 89, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--soft-green) 50%, var(--sky) 100%);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Organic background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(157, 184, 143, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(107, 144, 128, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(212, 231, 197, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(157, 184, 143, 0.2);
    padding: 1.25rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.06);
}

.nav-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.nav-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.nav-title a {
    color: var(--forest);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-title a:hover {
    color: var(--accent);
}

.nav-subtitle {
    font-size: 1.05rem;
    color: var(--ink-light);
    font-weight: 500;
}

.nav-subtitle a {
    color: var(--ink-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-subtitle a:hover {
    color: var(--forest);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb li {
    position: relative;
}

.breadcrumb li:not(:last-child)::after {
    content: '→';
    margin-left: 0.5rem;
    color: var(--sage);
    font-weight: 300;
}

.breadcrumb a {
    color: var(--ink-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.breadcrumb a:hover {
    color: var(--forest);
    background: rgba(212, 231, 197, 0.3);
}

/* Main Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 160px 2.5rem 5rem;
    position: relative;
    z-index: 1;
}

/* Hero Section - More Adventurous */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--forest);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(74, 124, 89, 0.1);
}

/* Animated SVG Hero */
.hero-svg-container {
    margin: 3rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 350px;
}

.hero-svg {
    filter: drop-shadow(0 8px 24px rgba(74, 124, 89, 0.15));
}

/* Floating elements animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-15px) rotate(2deg);
    }

    66% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

@keyframes sway {

    0%,
    100% {
        transform: translateX(0px) rotate(0deg);
    }

    50% {
        transform: translateX(5px) rotate(3deg);
    }
}

.hero-description {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--ink-light);
    line-height: 1.9;
    padding: 3rem;
    background: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(157, 184, 143, 0.25);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(74, 124, 89, 0.08);
}

/* Section Styling */
.section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: var(--forest);
    position: relative;
    padding-left: 2rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    background: linear-gradient(180deg, var(--forest), var(--sage));
    border-radius: 3px;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    position: relative;
}

/* Featured items take more space */
.card-link.featured {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .card-link.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card with 3D depth effect */
.card {
    background: var(--paper);
    border: 2px solid rgba(157, 184, 143, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 4px 6px rgba(74, 124, 89, 0.05),
        0 1px 3px rgba(74, 124, 89, 0.08);
}

/* Organic background pattern */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 184, 143, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

/* 3D hover effect */
.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(74, 124, 89, 0.15),
        0 10px 20px rgba(74, 124, 89, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: var(--sage);
}

/* Icon with organic shape */
.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--soft-green), var(--sage));
    border-radius: 50% 40% 50% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 20px rgba(157, 184, 143, 0.25);
    animation: morphShape 8s ease-in-out infinite;
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 50% 40% 50% 40%;
    }

    25% {
        border-radius: 40% 50% 40% 50%;
    }

    50% {
        border-radius: 50% 50% 40% 40%;
    }

    75% {
        border-radius: 40% 40% 50% 50%;
    }
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 30px rgba(157, 184, 143, 0.4);
    border-radius: 40% 50% 40% 50%;
}

/* Featured cards have larger icons */
.featured .card-icon {
    width: 120px;
    height: 120px;
    font-size: 4rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--forest);
    line-height: 1.3;
}

.featured .card-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card-description {
    font-size: 1.05rem;
    color: var(--ink-light);
    line-height: 1.7;
    flex-grow: 1;
}

.featured .card-description {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Category badges */
.card-category {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(157, 184, 143, 0.2);
    color: var(--forest);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(157, 184, 143, 0.2);
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.language-selector a {
    padding: 0.75rem 1.75rem;
    background: var(--paper);
    border: 2px solid rgba(157, 184, 143, 0.3);
    border-radius: 12px;
    color: var(--ink-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.language-selector a:hover,
.language-selector a.active {
    background: var(--soft-green);
    border-color: var(--sage);
    color: var(--forest);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 184, 143, 0.3);
}

.copyright {
    font-size: 0.95rem;
    color: var(--ink-light);
    margin-bottom: 1.5rem;
}

.license img {
    height: 31px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.license img:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-title {
        font-size: 1.4rem;
    }

    .nav-subtitle {
        font-size: 0.95rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .container {
        padding: 200px 1.5rem 3rem;
    }

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

    .hero-svg-container {
        height: 250px;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
        padding-left: 1.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
    }
}
