/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-surface: #1a1a1a;
    --color-text: #ffffff;
    --color-text-secondary: #999999;
    --color-accent: #d4a574;
    --color-border: rgba(255, 255, 255, 0.1);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Courier New', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    border-bottom-color: var(--color-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: 0.5px;
    font-family: var(--font-serif);
    transition: color 0.3s;
}
.logo:hover {
    color: var(--color-text);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 3px 0;
    transition: all 0.3s ease;
}

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

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    letter-spacing: 2px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: color 0.3s, background 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
    bottom: -2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
    background: rgba(212, 165, 116, 0.08);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title .highlight-italic {
    color: var(--color-accent);
    font-style: italic;
    font-weight: 600;
}

.hero-title .ampersand {
    color: var(--color-text-secondary);
    font-style: normal;
}

.hero-title .period {
    color: var(--color-accent);
}

/* Section Base Styles */
.section {
    padding: 8rem 2rem;
    border-top: 1px solid var(--color-border);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    font-weight: 400;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-right: 1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 3rem 2.5rem;
}

.card-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.skill-item {
    margin-bottom: 2.5rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-item h4 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.skill-item p {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

/* Timeline (Experience) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--color-accent);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.description {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

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

.tag {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
}

.project-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: var(--color-surface);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-description {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

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

.project-tags .tag {
    font-size: 0.65rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.contact-tagline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.4;
    margin-bottom: 3rem;
}

.contact-tagline .highlight-italic {
    color: var(--color-accent);
    font-style: italic;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-accent);
}

.icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-accent);
}

.social-link .icon {
    width: 18px;
    height: 18px;
}

.footer {
    text-align: right;
    padding-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1.25rem 1.5rem;
    }
    
    .section {
        padding: 6rem 1.5rem;
    }
    
    .timeline-item {
        grid-template-columns: 150px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 80vh;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .subtitle {
        font-size: 0.65rem;
        margin-bottom: 2rem;
    }
    
    .skill-card {
        padding: 2rem 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .contact-social {
        align-items: flex-start;
    }
}

/* Print Styles */
@media print {
    .nav, .menu-toggle {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}