/* =========================================
   VARIABLES
   ========================================= */
:root {
    --bg-primary: #0d0d0d;
    --bg-card: #141414;
    --text-primary: #f0ece4;
    --text-secondary: #8a8478;
    --accent-gold: #c9a96e;
    --accent-teal: #4a7c6f;
    --border: #2a2a2a;
    --font-heading: 'Cormorant Garamond', serif;
    --font-mono: 'DM Mono', monospace;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: transparent;
    transition: background 0.2s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger .bar {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 1.2vw, 0.92rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.hero-about {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    width: 280px;
    height: 340px;
    flex-shrink: 0;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    outline: 2px solid var(--accent-gold);
    outline-offset: 8px;
}

/* Buttons */
.btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* =========================================
   SHARED SECTION STYLES
   ========================================= */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    text-align: center;
    margin-bottom: 3rem;
}

/* =========================================
   ABOUT
   ========================================= */
.about-body {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-body p {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* =========================================
   PROJECTS
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease;
}

.project-card:hover {
    border-color: var(--accent-gold);
}

.project-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    transition: color 0.2s ease;
}

.project-card:hover .project-title {
    color: var(--accent-gold);
}

.project-outcome {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.project-tags, .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-primary);
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid var(--border);
    padding: 3px 10px;
    letter-spacing: 0.03em;
}

.project-links {
    display: flex;
    gap: 1.2rem;
}

.project-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-gold);
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: var(--text-primary);
}

/* =========================================
   SKILLS
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.skill-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.skill-category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.contact-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-gold);
}

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

.contact-form .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    text-align: center;
}

.footer-line {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.5rem;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    /* Mobile nav */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Hero */
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        width: 200px;
        height: 240px;
        margin: 0 auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    /* Sections */
    .section {
        padding: 3rem 1.5rem;
    }

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

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

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