/* Carl Haugen — Bold Creative Portfolio */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #ffffff;
    --text-dim: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.45);
    --border: rgba(255,255,255,0.2);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: #1a1a1a;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(180, 80, 20, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(200, 90, 30, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(120, 50, 10, 0.4) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
a:visited { color: inherit; }
a:link { color: inherit; }
img { max-width: 100%; display: block; }

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 100;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-name {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    transition: color 0.15s;
    text-transform: uppercase;
}

.nav-links a:hover { color: var(--text); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.2s;
}

.hamburger.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.hamburger.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #1a1a1a;
    background-image: radial-gradient(ellipse at center, #c0440a 0%, #1a1a1a 70%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu a {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero load-in */
.hero-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-fade.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.hero-line {
    height: 1px;
    background: var(--border);
    margin-bottom: 40px;
}

.hero-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.signature-img {
    max-width: 340px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    opacity: 0.85;
}

.hero-main {
    position: relative;
}

.hero-main h1 {
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.hero-arrow {
    position: absolute;
    right: 0;
    bottom: 60px;
    font-size: 3rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.hero-links {
    display: flex;
    gap: 32px;
}

.hero-links a {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    transition: color 0.15s;
}

.hero-links a:hover { color: var(--text); }

/* Sections */
.section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section h2 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
}

/* Experience */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.exp-item:first-child { border-top: 1px solid var(--border); }

.exp-date {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding-top: 4px;
}

.exp-item h3 {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.exp-item p {
    font-size: 0.9375rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Projects */
.project-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.15s;
}

.project-item:first-child { border-top: 1px solid var(--border); }

a.project-item:hover { opacity: 0.6; }

.project-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.project-item p {
    font-size: 0.9375rem;
    color: var(--text-dim);
}

.arrow {
    font-size: 1.5rem;
    color: var(--text);
}

/* Contact */
.contact-desc {
    font-size: 1.0625rem;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    gap: 32px;
}

.contact-links a {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    transition: color 0.15s;
}

.contact-links a:hover { color: var(--text); }

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer .container-wide {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav scroll */
.nav.scrolled {
    border-bottom: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .container-wide { padding: 0 24px; }
    .nav { padding: 0 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { min-height: auto; padding: 120px 0 60px; }
    .hero-main h1 { font-size: clamp(3rem, 16vw, 6rem); }
    .hero-arrow { font-size: 2rem; bottom: 30px; }
    .signature-img { max-width: 240px; }
    .exp-item { grid-template-columns: 1fr; gap: 4px; }
    .section h2 { font-size: 2.5rem; }
    .contact-links { flex-direction: column; gap: 16px; }
    .hero-top, .hero-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
