/* Theme Variables */
:root {
    --color-primary: #A8C8E8;
    --color-secondary: #F5E6A3;
    --color-dark: #1A1A2E;
    --color-surface: #F9F7F4;
}

/* Global */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--color-surface);
    color: var(--color-dark);
}

/* Navbar */
#navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(249, 247, 244, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Hero */
.hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(168, 200, 232, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(245, 230, 163, 0.30) 0%, transparent 55%),
        var(--color-surface);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.hero-line {
    width: 0;
    height: 1px;
    background: var(--color-dark);
    transition: width 1.2s ease 0.6s;
}

.hero-line.visible {
    width: 4rem;
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Section Divider */
.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-dark);
    opacity: 0.45;
}

/* About */

/* Experience */
.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-dark);
    flex-shrink: 0;
    margin-top: 6px;
}

/* Contact */
.form-input {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 46, 0.2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--color-dark);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: var(--color-dark);
}

.form-input::placeholder {
    color: rgba(26, 26, 46, 0.35);
}

.form-input.error {
    border-bottom-color: #e57373;
}

.field-error {
    font-size: 0.75rem;
    color: #e57373;
    margin-top: 4px;
    display: none;
}

.field-error.visible {
    display: block;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--color-dark);
    color: var(--color-surface);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
}

.btn-submit:hover {
    background: rgba(26, 26, 46, 0.85);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-dark);
    color: var(--color-surface);
    padding: 0.9rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 9999;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

accent-tag {
    display: inline-block;
    background: var(--color-secondary);
    padding: 0.15rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-animate {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
}

.hero-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-animate:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-animate:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-animate:nth-child(4) {
    animation-delay: 0.7s;
}

.hero-animate:nth-child(5) {
    animation-delay: 0.9s;
}