* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --caliste-green: #8FBC8F;
    --caliste-dark: #6B8E6B;
    --caliste-light: #B8D4B8;
    --apricot-white: #FDE8CD;
    --apricot-warm: #F5D5A8;
    --apricot-deep: #E8C18A;
    --cream: #FFF8F0;
    --charcoal: #2C3E2B;
    --text-dark: #2E3A2C;
    --text-light: #5A6B55;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--apricot-white) 0%, var(--cream) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* DARK MODE */
body.dark {
    background: linear-gradient(135deg, #1a2a1a 0%, #2c3e2b 100%);
    color: var(--apricot-white);
}

body.dark header {
    background: rgba(26, 42, 26, 0.95);
    border-bottom: 2px solid var(--caliste-green);
}

body.dark .logo h1 {
    color: var(--caliste-light);
}

body.dark .logo h1 span {
    color: var(--apricot-white);
}

body.dark nav a {
    color: var(--apricot-white);
}

body.dark nav a:hover {
    color: var(--caliste-green);
}

body.dark #darkModeBtn {
    background: var(--caliste-dark);
    color: var(--apricot-white);
}

body.dark .bio-card,
body.dark .timeline-content,
body.dark .card {
    background: rgba(44, 62, 43, 0.85);
    border-color: var(--caliste-light);
}

body.dark .bio-label,
body.dark .timeline-year,
body.dark .skill p span {
    color: var(--caliste-light);
}

body.dark .bar {
    background: #3a4a3a;
}

body.dark .skill-bar {
    background: var(--caliste-green);
}

body.dark .btn:hover {
    background: var(--caliste-light);
    color: var(--charcoal);
}

body.dark footer {
    background: var(--charcoal);
    color: var(--apricot-white);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--caliste-light);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--caliste-dark);
}

.logo h1 span {
    color: var(--apricot-deep);
    font-size: 2rem;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--caliste-green);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--caliste-green);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

#darkModeBtn {
    background: var(--caliste-light);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--charcoal);
}

#darkModeBtn:hover {
    background: var(--caliste-green);
    transform: scale(1.02);
}

/* SECTIONS */
section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--caliste-dark);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--apricot-deep);
    border-radius: 2px;
}

/* BIODATA */
.bio-card {
    display: flex;
    gap: 3rem;
    background: white;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--caliste-light);
    transition: transform 0.3s ease;
}

.bio-card:hover {
    transform: translateY(-5px);
}

.bio-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--caliste-green);
}

.bio-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.bio-info h2 span {
    color: var(--caliste-green);
}

.tagline {
    color: var(--caliste-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.bio-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.bio-label {
    font-weight: 600;
    color: var(--caliste-dark);
    display: inline-block;
    min-width: 80px;
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--caliste-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--caliste-green);
    border: 2px solid var(--apricot-white);
}

.timeline-year {
    min-width: 110px;
    font-weight: 700;
    color: var(--caliste-green);
}

.timeline-content {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    flex: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--caliste-dark);
    margin-bottom: 0.3rem;
}

.institution {
    color: var(--apricot-deep);
    font-weight: 500;
}

.timeline-content ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

/* SKILLS */
.skills-container {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill p span {
    color: var(--caliste-green);
    font-weight: 700;
}

.bar {
    background: #e0d5c5;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.skill-bar {
    background: var(--caliste-green);
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 1s ease;
}

/* PORTFOLIO */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--caliste-light);
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1rem 1rem 0.5rem;
    color: var(--caliste-dark);
}

.card p {
    padding: 0 1rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    margin: 0 1rem 1.2rem 1rem;
    padding: 0.5rem 1.2rem;
    background: var(--caliste-green);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--caliste-dark);
    transform: scale(1.02);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--apricot-warm);
    color: var(--text-dark);
    border-top: 2px solid var(--caliste-light);
}

/* ANIMATION */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .bio-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .bio-details {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        flex-direction: column;
    }
    .timeline-year {
        margin-left: 1rem;
    }
    .timeline::before {
        left: 0.5rem;
    }
    .timeline-item::before {
        left: -1.2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2rem 1rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}