/* ===========================
   Variables & Reset
=========================== */

:root {
    --accent:        #ffaa00;
    --accent-dim:    rgba(255, 170, 0, 0.12);
    --accent-glow:   rgba(255, 170, 0, 0.25);
    --white:         #ffffff;
    --bg:            #0e0e0e;
    --bg-surface:    #131313;
    --bg-card:       #181818;
    --bg-card-top:   #1e1e1e;
    --border:        #232323;
    --border-soft:   #1d1d1d;
    --text-muted:    #909090;
    --text-dim:      #555555;
    --font:          Verdana, Geneva, Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
}

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

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

/* ===========================
   Layout
=========================== */

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===========================
   Header
=========================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(14, 14, 14, 0.82);
    border-bottom: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo {
    height: 30px;
    width: auto;
}

.brand-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

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

/* ===========================
   Button
=========================== */

.btn {
    display: inline-block;
    padding: 11px 26px;
    background-color: var(--accent);
    color: #000000;
    font-family: var(--font);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===========================
   Section Labels & Titles
=========================== */

.section-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 10px;
    font-weight: bold;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

/* ===========================
   Hero
=========================== */

.hero {
    position: relative;
    padding: 110px 0 100px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/herobg.png');
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.2) saturate(0.6);
    transform: scale(1.05);
    z-index: 0;
}

/* Bottom fade from bg into next section */
.hero-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 52px;
}

.hero-logo {
    height: 128px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 0 28px var(--accent-glow));
}

.hero-content {
    max-width: 520px;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    color: var(--accent);
    line-height: 1.0;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    text-shadow: 0 0 48px rgba(255, 170, 0, 0.28);
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 400px;
    line-height: 1.75;
}

/* ===========================
   About
=========================== */

.about {
    padding: 80px 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.about-text {
    color: var(--text-muted);
    max-width: 580px;
    font-size: 14px;
    line-height: 1.8;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

/* ===========================
   Projects
=========================== */

.projects {
    padding: 80px 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.project-card {
    position: relative;
    display: block;
    background: linear-gradient(160deg, var(--bg-card-top) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    padding: 32px 28px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 0px var(--accent), 0 8px 40px rgba(255, 170, 0, 0.07);
}

.project-card-icon {
    position: absolute;
    top: 18px;
    right: 20px;
    height: 34px;
    width: auto;
    opacity: 0.75;
}

.project-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.project-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.72;
}

/* ===========================
   GitHub
=========================== */

.github {
    padding: 80px 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.github-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.github-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ===========================
   Footer
=========================== */

.footer {
    padding: 32px 0;
    background-color: var(--bg);
    border-top: 1px solid var(--border-soft);
}

.footer-text {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .hero-logo {
        height: 84px;
    }

    .hero-title {
        font-size: 38px;
    }

    .nav {
        gap: 20px;
    }

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