/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    --bg-color: #faf7f0;       /* Rich, soft cream background */
    --text-color: #1c1a17;     /* Warm dark charcoal */
    --text-muted: #726e64;     /* Medium warm gray for metadata and body copy */
    --accent-color: #c0ab89;   /* Muted gold/sand accent */
    --border-color: #e5dfd3;   /* Soft warm line separator */
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', 'Inter', -apple-system, sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

/* Screen reader only utility (SEO & accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

li {
    list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.2;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   Hero Section (Full Screen Cover)
   ========================================================================== */
.full-screen-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
    position: relative;
    background-color: var(--bg-color);
    background-image: url('assets/hello.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    border-bottom: 1px solid var(--border-color);
}

.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
}

.hero-handwriting-container {
    margin-bottom: var(--space-sm);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-handwriting {
    max-width: min(100%, 480px);
    width: 100%;
    height: auto;
    mix-blend-mode: multiply; /* Make white backgrounds disappear */
    filter: contrast(106%) brightness(98%);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-color);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transition: var(--transition-fast);
}

.hero-scroll-btn:hover {
    color: var(--accent-color);
}

.scroll-arrow {
    transition: transform 0.3s ease;
}

.hero-scroll-btn:hover .scroll-arrow {
    transform: translateY(4px);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-xl);
    align-items: center;
}

.slider-container {
    position: relative;
    aspect-ratio: 4/5;
    background-color: #f3f0e8;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.about-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-slides .about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(98%);
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.about-slides .about-image.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.about-slides .buzz-image {
    object-position: center 35%;
}

.about-slides .tux-image {
    object-position: center 15%;
    transform: scale(1.15);
    transform-origin: center 15%;
}

.slider-container:hover .about-slides .about-image.active {
    transform: scale(1.02);
}

.slider-container:hover .about-slides .tux-image.active {
    transform: scale(1.18);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(250, 247, 240, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    opacity: 0;
}

.slider-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.prev-btn {
    left: var(--space-sm);
}

.next-btn {
    right: var(--space-sm);
}

.slider-dots {
    position: absolute;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(28, 26, 23, 0.3); /* Darker/thicker opacity */
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot:hover {
    background: rgba(28, 26, 23, 0.6);
}

.slider-dot.active {
    background: var(--text-color);
    transform: scale(1.3); /* Thicker and more pronounced active state */
}

.about-text-container {
    max-width: 600px;
}

.about-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.35;
    color: var(--text-color);
    margin-bottom: var(--space-md);
}

.about-text {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: var(--space-sm);
}




/* ==========================================================================
   Experience Section (Timeline)
   ========================================================================== */
.experience-section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.experience-section .section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    margin-top: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 1px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
    display: grid;
    grid-template-columns: 0.35fr 0.65fr;
    gap: var(--space-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(var(--space-md) * -1 - 4.5px);
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color); /* Thicker border */
    transition: var(--transition-fast);
}

.timeline-item:hover::before {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
}

.timeline-company {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.timeline-bullets {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.timeline-bullets li {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding-left: var(--space-sm);
}

.timeline-bullets li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ==========================================================================
   Education & Volunteering Section
   ========================================================================== */
.edu-vol-section {
    padding: var(--space-xl) var(--space-md);
    background-color: var(--bg-color);
}

.edu-vol-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.edu-container, .vol-container {
    display: flex;
    flex-direction: column;
}

.edu-item, .vol-item {
    margin-bottom: var(--space-md);
    padding: 0;
    background-color: transparent;
}

.edu-school, .vol-event {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.edu-degree, .vol-role {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2px;
}

.edu-status, .vol-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.contact-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.contact-description {
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    max-width: 450px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-link {
    font-size: 1.1rem;
    font-weight: 400;
    align-self: flex-start;
    position: relative;
    padding-bottom: 2px;
    transition: var(--transition-fast);
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    transition: var(--transition-fast);
}

.social-link:hover::after {
    background-color: var(--text-color);
}

/* Floating Label Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-label {
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Floating logic */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 0.05em;
}

/* Animated focus bar */
.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: var(--transition-smooth);
}

.form-input:focus ~ .form-line {
    width: 100%;
}

.submit-button {
    align-self: flex-start;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.5s;
}

.submit-button:hover::after {
    left: 100%;
}

.submit-button:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.submit-button:hover .arrow-icon {
    transform: translateX(4px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.form-feedback {
    font-size: 0.9rem;
    margin-top: var(--space-xs);
    transition: var(--transition-fast);
}

.form-feedback.success {
    color: #556b2f;
}

.form-feedback.error {
    color: #8b0000;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-md);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-to-top-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition-fast);
}

.back-to-top-btn:hover {
    color: var(--text-color);
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection Observer Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --space-xl: 4.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .edu-vol-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Drawer */
    .menu-toggle {
        display: flex;
        z-index: 101;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-md);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        transition: var(--transition-smooth);
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle.active .menu-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .menu-bar:nth-child(2) {
        transform: translateY(-8px) rotate(-45deg);
    }
    

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    .timeline-item::before {
        left: -24px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ==========================================================================
   Socials Sliver Section
   ========================================================================== */
.socials-sliver {
    padding: var(--space-sm) var(--space-md);
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sliver-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

.sliver-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.sliver-link:hover {
    color: var(--text-color);
    letter-spacing: 0.18em;
}

.sliver-divider {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 300;
    pointer-events: none;
}

