:root {
    --sage: #6b8f71; /* Sage green */
    --sage-light: #e8f0e8; /* Light sage */
    --sage-deep: #3d5a40; /* Deep forest */
    --terra: #c4724b; /* Terracotta */
    --terra-light: #fce8d8; /* Light terracotta */
    --terra-glow: rgba(196, 114, 75, 0.12);
    --bg: #faf9f6; /* Warm off-white */
    --bg-alt: #f0efe8; /* Warm stone */
    --surface: #ffffff;
    --text: #3d3d3d;
    --text-muted: #7a7a7a;
    --text-light: #b0b0a8;
    --heading: #2d3a2e; /* Dark green-gray */
    --border: #e0ddd4;
    --radius: 14px;
    --heading-font: 'Fraunces', serif;
    --body-font: 'Work Sans', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 18px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 32px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.7;
    padding-top: 68px;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--heading);
    line-height: 1.2;
}

a {
    color: var(--sage);
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(250,249,246,0.96);
    backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--sage);
    color: white;
    border-radius: 10px;
    font-size: 0.85rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--sage-deep);
    background: var(--sage-light);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--heading);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 80px 0 40px;
    background: linear-gradient(170deg, var(--sage-light) 0%, var(--bg) 60%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--sage) 0.8px, transparent 0.8px);
    background-size: 40px 40px;
    opacity: 0.06;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 48px;
    align-items: center;
    padding-bottom: 40px;
}

.hero-avatar {
    flex-shrink: 0;
}

.hero-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface);
    box-shadow: 0 8px 30px rgba(59,90,64,0.12);
}

.hero-content {
    flex: 1;
}

.hero-tag {
    display: inline-block;
    padding: 5px 16px;
    background: var(--terra-light);
    color: var(--terra);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    color: var(--heading);
}

.hero-subtitle {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sage-deep);
    margin-bottom: 16px;
    font-style: italic;
}

.hero-bio {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--body-font);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-terra {
    background: var(--terra);
    color: white;
    box-shadow: 0 4px 14px rgba(196,114,75,0.25);
}

.btn-terra:hover {
    background: #a85d3a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(196,114,75,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--sage-deep);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--sage);
    background: var(--sage-light);
    color: var(--sage-deep);
}

.hero-socials-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

.hero-socials-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-socials-row a:hover {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(107,143,113,0.2);
}

/* ============ SECTIONS ============ */
.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 44px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '◆';
    color: var(--terra);
    font-size: 0.7rem;
    margin-right: 12px;
    vertical-align: middle;
}

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 44px;
    align-items: start;
}

.about-prose p {
    margin-bottom: 18px;
    line-height: 1.9;
    color: var(--text);
}

.about-facts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: all 0.3s ease;
}

.fact-card:hover {
    border-color: var(--sage);
    transform: translateX(4px);
}

.fact-card i {
    font-size: 1rem;
    color: var(--sage);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.fact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--terra);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.fact-value {
    display: block;
    font-weight: 500;
    color: var(--heading);
    font-size: 0.92rem;
}

/* ============ TIMELINE ============ */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}

.tl-item {
    position: relative;
    padding: 0 0 36px 32px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -25px; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--sage);
    border: 3px solid var(--bg-alt);
    z-index: 1;
}

.tl-period {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--terra);
    background: var(--terra-light);
    padding: 3px 12px;
    border-radius: 14px;
    margin-bottom: 8px;
}

.tl-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.tl-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============ SKILLS CARDS ============ */
.skills-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--sage);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-light), var(--terra-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--sage-deep);
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============ HOBBIES ============ */
.hobby-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.hobby-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px 26px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--heading);
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.hobby-item:hover {
    border-color: var(--terra);
    background: var(--terra-light);
    transform: translateY(-2px);
}

.hobby-item i {
    color: var(--terra);
    font-size: 1rem;
}

/* ============ PRODUCT CARD ============ */
.product-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    max-width: 720px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-logo img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.product-details h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--heading);
}

.product-details p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ============ CONTACT ============ */
.contact-box {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    background: var(--surface);
    padding: 52px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-box p {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 28px;
    line-height: 1.8;
}

/* ============ FOOTER ============ */
footer {
    text-align: center;
    padding: 36px 0;
    background: var(--heading);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ============ SCROLL TOP ============ */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 99;
    border: none; outline: none;
    background: var(--sage);
    color: white;
    cursor: pointer;
    width: 44px; height: 44px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(107,143,113,0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn[style*="display: flex"],
#scrollTopBtn[style*="display: block"] {
    display: flex !important;
}

#scrollTopBtn:hover {
    background: var(--sage-deep);
    transform: translateY(-4px);
}

/* ============ ANIMATIONS ============ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%; top: 60px;
        flex-direction: column;
        background: rgba(250,249,246,0.99);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        padding: 20px 0;
        gap: 4px;
    }

    .nav-menu.active { left: 0; }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-avatar img {
        width: 150px;
        height: 150px;
    }

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

    .hero-bio { margin: 0 auto 28px; }

    .hero-actions { justify-content: center; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .skills-cards {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 1fr;
        padding: 32px;
        text-align: center;
    }

    .section { padding: 64px 0; }
    .contact-box { padding: 32px; }
}

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

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

    .btn { width: 100%; justify-content: center; text-align: center; }

    .hobby-row { flex-direction: column; align-items: stretch; }
}
