:root {
    /* Design Tokens */
    --bg: #fbf1c7;
    --text: #3c3836;
    --text-muted: #7c6f64;
    --accent: #9d0006;
    
    /* Typography */
    --font-main: 'EB Garamond', serif;
    
    /* Layout */
    --container-max: 1440px;
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease, padding 0.4s ease;
    padding: 2rem 0;
}

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

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 1.5rem;
    }
}

.hero-title-wrapper {
    position: relative;
    width: 100%;
}

.hero-info {
    position: absolute;
    top: 2rem;
    right: 0;
    max-width: 350px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 400;
    text-align: right;
    padding-top: 4rem;
    padding-right: 6rem;
}

.hero-main {
    padding-top: 25vh;
}

.hero-title {
    font-size: clamp(3.5rem, 15vw, 16rem);
    line-height: 0.85;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 18vw; /* Slightly larger on very small screens to maintain impact */
        line-height: 0.9;
    }
}

.work-section {
    padding: 6rem 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.portfolio-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .portfolio-works-grid {
        gap: 2rem;
        margin-top: 2rem;
    }
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.work-description {
    font-size: 1rem;
    color: var(--text-muted);
}

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

.tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background: #ebdbb2;
    border-radius: 4px;
}

/* About Section */
.about-section {
    padding: 12rem 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text {
    font-size: 1.75rem;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 3rem;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid var(--text);
    padding-bottom: 0.25rem;
    display: inline-block;
}

/* Footer */
footer {
    padding: 6rem 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}


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

.footer-left p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container, .hero-container, .about-section, footer .footer-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 0;
    }

    .nav-container, .hero-container, .about-section, footer .footer-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-title {
        font-size: 16vw;
    }
    
    .hero-title-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    .hero-info {
        position: static;
        max-width: 100%;
        text-align: left;
    }

    .hero-description {
        text-align: left;
        font-size: 1rem;
        padding-right: 0;
        padding-top: 0;
    }
    
    .hero-main {
        padding-top: 15vh;
    }
    
    .about-section {
        padding: 6rem 1.5rem;
    }

    .about-content {
        display: block; /* Stack naturally */
    }
    
    .about-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .about-text {
        font-size: 1.15rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-grid {
        display: block; /* Stack naturally without grid or flex */
    }

    .about-column {
        margin-bottom: 3rem; /* Add spacing between stacked columns */
    }

    .about-column:last-child {
        margin-bottom: 0;
    }
}


/* About Section Enhancements */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
}

.about-column h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-list a {
    font-size: 1.1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}
