* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.65;
    padding: 24px;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

/* Hanging sticker - top right corner */
.hanging-sticker {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 100px;
    height: auto;
    transform: rotate(-3deg);
    filter: drop-shadow(4px 6px 12px rgba(0, 0, 0, 0.5));
    z-index: 100;
    pointer-events: none;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hanging-sticker:hover {
    transform: rotate(0deg) scale(1.05);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hanging-sticker {
        transform: none;
        transition: none;
    }
    .hanging-sticker:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .hanging-sticker {
        width: 100px;
        top: 16px;
        right: 16px;
    }
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #1f1f1f;
    margin-bottom: 8px;
}

header nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #2a2a2a;
    display: block;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

header nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

header nav a:hover {
    color: #fff;
}

header nav a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero .tagline {
    color: #888;
    margin-bottom: 28px;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 580px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
    background: #222;
    border-color: #444;
}

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

.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
}

/* About Section */
#about {
    margin-bottom: 70px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.about-text h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #3b82f6;
    margin-top: 8px;
    border-radius: 2px;
}

.about-text .lead {
    color: #3b82f6;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 18px;
}

.about-text .skills {
    margin-top: 28px;
}

.about-image {
    position: sticky;
    top: 24px;
}

.about-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #262626;
    background: #141414;
    display: block;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    border-color: #2e2e2e;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #181818;
    border-bottom: 1px solid #262626;
}

.project-card .card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-card p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: #181818;
    border: 1px solid #2a2a2a;
    color: #888;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-links {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #222;
}

/* Contact */
#contact {
    padding-top: 10px;
}

#contact p {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 12px;
}

#contact a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

#contact a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

#contact a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 3px;
}

/* Footer */
footer {
    border-top: 1px solid #1f1f1f;
    padding-top: 24px;
    color: #555;
    font-size: 0.82rem;
    text-align: center;
}

.wip-note {
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-image {
        position: static;
    }

    .about-img {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    header nav {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    header nav ul {
        gap: 20px;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    section {
        margin-bottom: 50px;
    }

    h2 {
        font-size: 1.4rem;
    }

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

    .project-card {
        padding: 22px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}