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

:root {
    /* Dark background */
    --bg: #0f0f0f;
    --bg-card: #181818;
    --bg-card-hover: #1f1f1f;

    /* Brighter text */
    --text: #b8b8b8;
    --text-dim: #6b6b6b;
    --text-bright: #f5f5f5;

    /* Accent - Warm amber/gold (sophisticated, pops but not harsh) */
    --accent: #d4a574;
    --accent-soft: rgba(212, 165, 116, 0.12);

    /* Typography - Poppins */
    --font: 'Poppins', -apple-system, sans-serif;

    /* Focus */
    --focus-ring: 0 0 0 2px var(--accent);
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
    outline: none;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

/* ==========================================
   Header
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1.5rem, 5vw, 3rem);
}

.logo {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    padding: 0.25rem;
}

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

.nav a {
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: color 0.2s;
    padding: 0.25rem;
}

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

/* ==========================================
   Main
   ========================================== */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ==========================================
   Hero
   ========================================== */
.hero {
    padding-top: 80px;
    padding-bottom: 3rem;
}

.hero-intro {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding-top: 1.5rem;
}

.hero-art {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
}

.art-shape {
    width: 100%;
    height: 100%;
    animation: artFloat 8s ease-in-out infinite;
}

@keyframes artFloat {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(3deg) scale(1.02);
    }
}

.art-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.8;
}

.art-thin {
    stroke-width: 0.5;
    opacity: 0.5;
}

.art-dot {
    fill: var(--accent);
    opacity: 0.6;
}

.art-rect {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.75;
    opacity: 0.6;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.hero-role {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text);
    max-width: 400px;
    margin-bottom: 1rem;
}

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

.hero-social a {
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: color 0.2s;
    padding: 0.25rem;
}

.hero-social a:hover {
    color: var(--accent);
}

/* ==========================================
   Sections
   ========================================== */
.section {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* ==========================================
   Work Grid
   ========================================== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.work-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.work-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-soft);
    transform: translateY(-2px);
}

.work-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.work-tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-arrow {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: all 0.2s;
}

.work-card:hover .work-arrow {
    transform: translate(2px, -2px);
    color: var(--accent);
}

.work-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.work-card p {
    font-size: 0.85rem;
    color: var(--text);
    flex: 1;
    margin-bottom: 1rem;
}

.work-tech {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ==========================================
   About
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.about-bio p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

.exp-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.exp-item:first-child {
    padding-top: 0;
}

.exp-company {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.15rem;
}

.exp-details {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ==========================================
   Contact
   ========================================== */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-email {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-bright);
    transition: color 0.2s;
}

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

.contact-links {
    display: flex;
    gap: 1.5rem;
}

.contact-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

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

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 3rem clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .hero-intro {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-art {
        width: 70px;
        height: 70px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .nav {
        gap: 1rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}