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

:root {
    --color-base: #F8FBF9;
    --color-primary: #3c7546;
    --color-accent1: #5a9668;
    --color-accent2: #2d5a37;
    --color-accent3: #7eb88e;
    --color-link: #1B80CF;
    --color-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(60, 117, 70, 0.18);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--color-base);
    color: var(--color-accent2);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background with organic shapes */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 15% 25%, rgba(60, 117, 70, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(90, 150, 104, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 45% 85%, rgba(126, 184, 142, 0.05) 0%, transparent 50%);
    animation: drift 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes drift {

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

    33% {
        transform: translate(3%, 3%) rotate(1deg);
    }

    66% {
        transform: translate(-3%, 3%) rotate(-1deg);
    }
}

/* Fixed minimalist nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

nav .nav-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

nav .logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

nav .logo a {
    color: inherit;
    text-decoration: none;
}

nav .nav-links {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    flex-wrap: wrap;
}

nav .nav-links a {
    color: var(--color-accent2);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav .nav-links a::before {
    content: "";
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.3s ease;
}

nav .nav-links a:hover {
    color: var(--color-primary);
}

nav .nav-links a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* Hero section */
.hero {
    margin-top: 70px;
    padding: 5rem 2rem 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-accent2);
    margin-bottom: 3rem;
    font-weight: 500;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Animated SVG - Book with quote marks */
.hero-svg {
    width: 320px;
    height: 320px;
    margin: 0 auto 3rem;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(60, 117, 70, 0.15);
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(60, 117, 70, 0.2);
}

.section-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-white);
    fill: none;
    stroke-width: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* Quote cards */
.quotes-grid {
    display: grid;
    gap: 2rem;
}

.quote-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '" ';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 12rem;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
}

.quote-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quote-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(60, 117, 70, 0.15);
    border-color: var(--color-accent1);
}

.quote-card:hover::after {
    opacity: 1;
}

.quote-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-accent2);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.quote-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: right;
    font-style: normal;
}

.quote-author::before {
    content: "— ";
    color: var(--color-accent1);
}

/* Masonry-like layout for varied heights */
@supports (grid-template-rows: masonry) {
    .quotes-grid {
        grid-template-rows: masonry;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Fallback for browsers without masonry */
@supports not (grid-template-rows: masonry) {
    .quotes-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--color-accent2) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 1;
    margin-top: 6rem;
}

footer .footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

footer .language-grid {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    list-style: none;
}

footer .language-grid a {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

footer .language-grid a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

footer .language-grid .highlight a {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

footer .license {
    text-align: right;
}

footer .license a {
    color: var(--color-white);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

footer .license a:hover {
    opacity: 1;
}

footer .copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 968px) {
    nav .nav-links {
        gap: 0.2rem;
    }

    nav .nav-links a {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-svg {
        width: 260px;
        height: 260px;
    }

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

    .main-content {
        padding: 2rem 1.5rem 4rem;
    }

    .quote-card {
        padding: 2rem;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer .license {
        text-align: left;
    }
}

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

    nav .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    nav .nav-links {
        width: 100%;
        justify-content: center;
    }

    .hero {
        margin-top: 100px;
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-svg {
        width: 200px;
        height: 200px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .main-content {
        padding: 1.5rem 1rem 3rem;
    }

    .quote-card {
        padding: 1.5rem;
    }

    .quote-text {
        font-size: 1.05rem;
    }

    .quote-author {
        font-size: 0.9rem;
    }
}

/* Animation for quote reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.quote-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.quote-card:nth-child(1) {
    animation-delay: 0.1s;
}

.quote-card:nth-child(2) {
    animation-delay: 0.2s;
}

.quote-card:nth-child(3) {
    animation-delay: 0.3s;
}

.quote-card:nth-child(4) {
    animation-delay: 0.4s;
}

.quote-card:nth-child(5) {
    animation-delay: 0.5s;
}
