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

:root {
    --bg-top: #1b2735;
    --bg-mid: #090a0f;
    --bg-bottom: #0a0e1a;
    --text-main: #e6e6e6;
    --text-soft: #cfd6df;
    --text-muted: #aeb7c1;
    --white: #ffffff;
    --accent: #9cc9ff;
    --accent-strong: #7fb2ff;
    --card-bg-1: rgba(255, 255, 255, 0.08);
    --card-bg-2: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 70px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(27, 39, 53, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* Hero */
.hero {
    margin-bottom: 56px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.subtitle {
    color: var(--accent);
    font-size: 1.14rem;
    max-width: 820px;
    margin-bottom: 24px;
}

.intro {
    max-width: 760px;
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.intro-secondary {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Email */
.email-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--text-muted);
}

.email-display svg {
    width: 18px;
    height: 18px;
}

.email-display a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.email-display a:hover {
    color: #c9e0ff;
    text-decoration: underline;
}

/* Social */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(127, 178, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.social-btn .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Sections */
section {
    margin-top: 84px;
}

section h2 {
    font-size: 1.95rem;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 780px;
    margin-bottom: 36px;
}

/* Current Focus */
.focus-list {
    max-width: 900px;
    margin-top: 28px;
}

.focus-item {
    display: flex;
    align-items: flex-start;
    padding: 26px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.focus-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.focus-left {
    flex: 0 0 42%;
    padding-right: 40px;
}

.focus-right {
    flex: 1;
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.focus-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.focus-desc {
    font-size: 0.94rem;
    color: #b8c0c8;
    line-height: 1.6;
    padding-top: 2px;
}

.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Cards */
.projects-grid {
    display: grid;
    gap: 24px;
    margin-top: 28px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card,
.step {
    border-radius: 14px;
    background: linear-gradient(145deg, var(--card-bg-1), var(--card-bg-2));
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px var(--shadow);
}

.project-tech {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag,
.tech-tag {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(127, 178, 255, 0.18);
}

.tag {
    background: rgba(127, 178, 255, 0.15);
    color: var(--accent);
}

.tech-tag {
    background: rgba(127, 178, 255, 0.1);
    color: var(--accent-strong);
}

/* Projects */
.project-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-card:nth-child(4) .project-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-card:nth-child(5) .project-image {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.22rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
    word-break: break-word;
}

.project-description {
    font-size: 0.95rem;
    color: #b8c0c8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-links {
    margin-top: 18px;
}

.project-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.project-links a:hover {
    color: #c9e0ff;
    text-decoration: underline;
}

/* Pipeline */
.pipeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 760px;
    margin: 0 auto;
}

.step {
    position: relative;
    padding: 24px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(127, 178, 255, 0.3);
}

.step::after {
    content: "↓";
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    color: var(--accent-strong);
    font-size: 1.4rem;
}

.step:last-child::after {
    display: none;
}

.step-title {
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.step ul {
    list-style: none;
    padding-left: 0;
}

.step li {
    font-size: 0.95rem;
    color: #d0d7df;
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}

.step li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-strong);
}

/* Footer */
footer {
    margin-top: 100px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.86rem;
    color: #9aa5b1;
}

/* Mobile menu */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 72%;
        max-width: 300px;
        background: rgba(15, 23, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .hamburger {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 8px 0;
    }
}

@media (max-width: 640px) {
    .focus-item {
        flex-direction: column;
    }

    .focus-left {
        padding-right: 0;
    }

    .focus-right {
        padding-left: 0;
        border-left: none;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .container {
        padding: 44px 20px 72px;
    }

    h1 {
        font-size: 2.25rem;
    }

    section h2 {
        font-size: 1.65rem;
    }

    .subtitle {
        font-size: 1rem;
    }

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

    .project-image {
        height: 150px;
    }

    .social-links {
        gap: 10px;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }
}