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

:root {
    --text-light: #FDFBF7;
    --text-light-muted: rgba(253, 251, 247, 0.85);
    --overlay-dark: rgba(43, 37, 33, 0.45);
    --primary-accent: #8A1F1F;
    --secondary-accent: #C6A15B;
}

body {
    font-family: 'Noto Serif', Georgia, serif;
    color: var(--text-light);
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.nav.scrolled {
    background-color: rgba(43, 37, 33, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--secondary-accent);
}

/* Full-bleed image sections */
.section-image {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(43, 37, 33, 0.85) 0%,
        rgba(43, 37, 33, 0.4) 20%,
        rgba(43, 37, 33, 0.4) 80%,
        rgba(43, 37, 33, 0.85) 100%
    );
}

.hero .section-overlay {
    background: linear-gradient(
        to bottom,
        rgba(43, 37, 33, 0.35) 0%,
        rgba(43, 37, 33, 0.4) 80%,
        rgba(43, 37, 33, 0.85) 100%
    );
}

.section-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 32px;
    max-width: 900px;
}

/* Typography */
h1 {
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 12px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.compiling {
    color: var(--text-light-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: flex;
    gap: 80px;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-item {
    text-align: center;
}

/* Contact Form */
.contact-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(253, 251, 247, 0.3);
    border-radius: 6px;
    background-color: rgba(253, 251, 247, 0.1);
    color: var(--text-light);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FDFBF7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background-color: #2B2521;
    color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(253, 251, 247, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-accent);
    background-color: rgba(253, 251, 247, 0.15);
}

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

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-light);
    background-color: var(--primary-accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: #7a1a1a;
}

.btn:active {
    transform: scale(0.98);
}

.email-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Footer */
.footer {
    padding: 32px;
    text-align: center;
    background-color: rgba(43, 37, 33, 0.95);
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-content {
        padding: 40px 20px;
    }

    .thesis-grid {
        flex-direction: column;
        gap: 40px;
    }

    .section-image {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 16px;
    }

    h1 {
        font-size: 2.25rem;
    }
}
