/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    /* Colors - Strictly Black & White */
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f8f8f8;
    --gray-200: #e8e8e8;
    --gray-300: #d0d0d0;
    --gray-400: #a0a0a0;
    --gray-500: #707070;
    --gray-600: #505050;
    --gray-700: #303030;
    --gray-800: #1a1a1a;
    --gray-900: #0a0a0a;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-body: 'Karla', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Container */
    --container-max: 1400px;
    --container-padding: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-slower: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s var(--transition-slower) forwards;
}

.fade-in.delay-1 { animation-delay: 0.15s; }
.fade-in.delay-2 { animation-delay: 0.3s; }
.fade-in.delay-3 { animation-delay: 0.45s; }
.fade-in.delay-4 { animation-delay: 0.6s; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    animation: slideDown 0.6s var(--transition-slower);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--black);
    transition: all var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    text-align: center;
}

.mobile-menu-links li {
    margin: 2rem 0;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl) var(--container-padding);
    position: relative;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero-greeting {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto var(--space-md) auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid var(--black);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gray-800);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: var(--container-padding);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-scroll span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--gray-300);
    transform-origin: top;
    animation: expandLine 1.5s ease-in-out infinite alternate;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: var(--space-xl) 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-200);
}

.section-number {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-400);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--gray-100);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.about-image {
    position: sticky;
    top: 120px;
}

.image-frame {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    filter: grayscale(100%);
    transition: filter var(--transition-slow);
}

.image-frame:hover {
    filter: grayscale(0%);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

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

.about-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--black);
    margin-bottom: var(--space-xs);
}

.about-text p:not(.about-lead) {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ============================================
   PROJECTS SECTION - TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--gray-300);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-lg);
}

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

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 9px;
    height: 9px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-marker {
    background: var(--black);
    transform: translateX(-50%) scale(1.3);
}

.timeline-date {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.timeline-content {
    padding: var(--space-md);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    border-color: var(--black);
    transform: translateX(8px);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.timeline-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    transition: all var(--transition-fast);
}

.timeline-tags span:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    background: var(--black);
    color: var(--white);
}

.skills .section-header {
    border-bottom-color: var(--gray-700);
}

.skills .section-number {
    color: var(--gray-500);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.skill-category {
    padding: var(--space-md);
    border: 1px solid var(--gray-700);
}

.skill-category-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--gray-700);
}

.skill-list li {
    font-size: 0.9375rem;
    color: var(--gray-300);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-800);
    transition: all var(--transition-fast);
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.certifications {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-700);
}

.certifications-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-800);
}

.cert-name {
    font-size: 1rem;
    color: var(--gray-300);
}

.cert-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.contact-text {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 400px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.contact-link:first-child {
    border-top: 1px solid var(--gray-200);
}

.contact-link:hover {
    padding-left: 1rem;
    background: var(--gray-100);
}

.contact-link-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.contact-link-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--gray-200);
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }

    .hero-scroll {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-content {
        grid-template-columns: 250px 1fr;
        gap: var(--space-md);
    }

    .about-image {
        position: relative;
        top: 0;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
        --space-xl: 5rem;
        --space-lg: 3rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding-top: var(--space-xl);
        min-height: auto;
    }

    .hero-name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .desktop-break {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .about-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
    }

    .timeline-item:hover .timeline-content {
        transform: translateX(0);
    }

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

    .cert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .project-info {
        padding: var(--space-sm);
    }

    .project-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   SCROLL ANIMATIONS (JS-triggered)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-slower);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

