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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.display {
    font-family: 'Space Grotesk', sans-serif;
}

/* ═══════ NAVIGATION ═══════ */
.nav-toggle {
    display: none;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .nav {
        padding: 0 48px;
    }
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
}

.nav-logo span {
    color: #4f46e5;
}

.nav-links {
    display: none;
    gap: 36px;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #4f46e5;
    border-radius: 1px;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #111;
}

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

.nav-cta {
    font-size: 12px;
    font-weight: 600;
    padding: 9px 22px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s;
    display: none;
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-block;
    }
}

.nav-cta:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    padding: 8px;
}

@media (min-width: 768px) {
    .nav-burger {
        display: none;
    }
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #111;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.nav-toggle:checked~.mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.nav-toggle:checked~.nav .nav-burger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle:checked~.nav .nav-burger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked~.nav .nav-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

.mobile-menu a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #999;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #111;
}

/* ═══════ HERO ═══════ */
.hero {
    padding: 160px 24px 100px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 180px 48px 120px;
    }
}

.hero-bg-circle {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg-circle-2 {
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: #f5f3ff;
    border: 1px solid #e9e5ff;
    border-radius: 100px;
    margin-bottom: 32px;
    animation: fade-up 0.6s ease-out;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.hero-badge-text {
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
    letter-spacing: 0.02em;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0a0a0a;
    margin-bottom: 8px;
    animation: fade-up 0.6s ease-out 0.1s both;
}

.hero-name .highlight {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: #888;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    animation: fade-up 0.6s ease-out 0.2s both;
}

.hero-desc {
    max-width: 540px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fade-up 0.6s ease-out 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fade-up 0.6s ease-out 0.4s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary .arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.btn-primary:hover .arrow {
    transform: translateX(3px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: #111;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.btn-outline .dl-icon {
    transition: transform 0.3s;
}

.btn-outline:hover .dl-icon {
    transform: translateY(2px);
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════ SECTION COMMON ═══════ */
.section {
    padding: 96px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 120px 0;
    }
}

.section-header {
    margin-bottom: 56px;
}

.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4f46e5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: #4f46e5;
    border-radius: 2px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0a0a0a;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    color: #888;
    font-size: 16px;
    max-width: 500px;
    line-height: 1.7;
}

/* ═══════ TECH BAR ═══════ */
.tech-bar {
    padding: 48px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.tech-track {
    display: flex;
    gap: 48px;
    animation: scroll-tech 25s linear infinite;
    width: max-content;
}

.tech-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-tech {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #bbb;
    white-space: nowrap;
}

/* ═══════ SKILLS ═══════ */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-card {
    padding: 32px 28px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.skill-card:hover {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.skill-card:nth-child(1) .skill-icon {
    background: #ede9fe;
}

.skill-card:nth-child(2) .skill-icon {
    background: #dbeafe;
}

.skill-card:nth-child(3) .skill-icon {
    background: #d1fae5;
}

.skill-card:nth-child(4) .skill-icon {
    background: #fef3c7;
}

.skill-card:nth-child(5) .skill-icon {
    background: #fce7f3;
}

.skill-card:nth-child(6) .skill-icon {
    background: #e0e7ff;
}

.skill-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.skill-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.skill-tag {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    transition: all 0.25s;
}

.skill-card:hover .skill-tag {
    background: #eee;
}

/* ═══════ PROJECTS ═══════ */
.projects-section {
    background: #fafafa;
}

.projects-list {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.5s;
}

.project-card:hover {
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.project-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.project-number {
    position: absolute;
    top: 20px;
    left: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.1em;
}

.project-category {
    position: absolute;
    bottom: 20px;
    left: 24px;
    display: flex;
    gap: 8px;
}

.project-cat-tag {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-body {
    padding: 28px 28px 32px;
}

@media (min-width: 768px) {
    .project-body {
        padding: 32px 36px 36px;
    }
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.project-card:hover .project-title {
    color: #4f46e5;
}

.project-desc {
    color: #777;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 600px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.project-tech span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    padding: 4px 12px;
    background: #f7f7f7;
    border-radius: 6px;
    border: 1px solid #eee;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 12px;
}

.project-link .link-arrow {
    transition: transform 0.3s;
}

.project-link:hover .link-arrow {
    transform: translateX(3px);
}

/* ═══════ CTA ═══════ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: #0a0a0a;
    border-radius: 28px;
    padding: 64px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-box {
        padding: 80px 64px;
        border-radius: 32px;
    }
}

.cta-box-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-desc {
    color: #777;
    font-size: 15px;
    max-width: 440px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-ghost-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.btn-ghost-dark:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost-dark .btn-icon {
    transition: transform 0.3s;
}

.btn-ghost-dark:hover .btn-icon {
    transform: translateX(3px);
}

.cta-email-display {
    display: block;
    margin-top: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #555;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.cta-email-display:hover {
    color: #999;
}

/* ═══════ FOOTER ═══════ */
.footer {
    padding: 48px 0;
    border-top: 1px solid #f0f0f0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: #bbb;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    background: #fff;
}

.footer-socials a:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

::selection {
    background: rgba(79, 70, 229, 0.15);
    color: #111;
}