/* ============================================
   MUNRAITO — Black & White Premium Design
   ============================================ */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;

    --font-primary: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Animated Background Gradient --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,255,255,0.025) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255,255,255,0.015) 0%, transparent 60%);
    animation: bgShift 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bgShift {
    0% {
        background:
            radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,255,255,0.025) 0%, transparent 50%),
            radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255,255,255,0.015) 0%, transparent 60%);
    }
    33% {
        background:
            radial-gradient(ellipse 70% 60% at 70% 30%, rgba(255,255,255,0.035) 0%, transparent 50%),
            radial-gradient(ellipse 50% 50% at 20% 70%, rgba(255,255,255,0.02) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255,255,255,0.015) 0%, transparent 60%);
    }
    66% {
        background:
            radial-gradient(ellipse 60% 70% at 40% 60%, rgba(255,255,255,0.03) 0%, transparent 50%),
            radial-gradient(ellipse 80% 40% at 80% 20%, rgba(255,255,255,0.025) 0%, transparent 50%),
            radial-gradient(ellipse 40% 50% at 30% 40%, rgba(255,255,255,0.02) 0%, transparent 60%);
    }
    100% {
        background:
            radial-gradient(ellipse 50% 50% at 60% 40%, rgba(255,255,255,0.04) 0%, transparent 50%),
            radial-gradient(ellipse 70% 50% at 30% 60%, rgba(255,255,255,0.02) 0%, transparent 50%),
            radial-gradient(ellipse 60% 60% at 70% 70%, rgba(255,255,255,0.015) 0%, transparent 60%);
    }
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* --- Ambient Orbs --- */
.ambient-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.07;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--white);
    top: -10%;
    left: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--white);
    bottom: -10%;
    right: -5%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--white);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
    opacity: 0.04;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(60px, 40px); }
    50% { transform: translate(30px, 80px); }
    75% { transform: translate(-20px, 40px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-50px, -30px); }
    50% { transform: translate(-20px, -70px); }
    75% { transform: translate(30px, -40px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 30%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Grid Background --- */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
    max-width: 100%;
    margin: 0;
    padding: 0 clamp(2rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: var(--gray-400);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease-out-expo);
}

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

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

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-menu-btn span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.nav-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--gray-500);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-link:hover {
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    z-index: 1;
    overflow: hidden;
}

/* Hero Background Image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 50%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 50%, transparent 85%);
    opacity: 0.35;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-label-line {
    width: 40px;
    height: 1px;
    background: var(--gray-500);
}

.hero-label-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: heroWordReveal 1.2s var(--ease-out-expo) forwards;
}

.hero-title-word[data-delay="1"] {
    animation-delay: 0.15s;
}

.hero-title-accent {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
}

@keyframes heroWordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 0.6s forwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 0.8s forwards;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
    border-radius: inherit;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-text, .btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    transition: transform 0.4s var(--ease-out-expo);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--gray-400);
    border: 1px solid var(--gray-800);
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--gray-500);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 1.2s forwards;
}

.scroll-indicator {
    width: 1px;
    height: 60px;
    background: var(--gray-800);
    position: relative;
    overflow: hidden;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -30px; }
    100% { top: 60px; }
}

.scroll-text {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: shapeFloat 20s linear infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -5%;
    animation-duration: 25s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    top: 60%;
    right: -3%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    border-radius: 0;
    transform: rotate(45deg);
    animation-duration: 30s;
    animation-delay: -10s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 10%;
    animation-duration: 15s;
    animation-delay: -3s;
}

@keyframes shapeFloat {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
    padding: clamp(4rem, 10vw, 8rem) 0;
}

/* Subtle gradient backgrounds for depth */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.01) 50%, transparent 100%);
}

.works {
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.008) 40%, rgba(255,255,255,0.015) 60%, transparent 100%);
}

.skills {
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.01) 50%, transparent 100%);
}

.contact {
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-number {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gray-700), transparent);
}

/* Reveal Animation */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.about-large {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--gray-100);
}

.about-large em {
    font-style: italic;
    -webkit-text-stroke: 1px var(--white);
    color: transparent;
}

.about-body {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-400);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 0.5rem;
}

.stat {
    border-left: 1px solid var(--gray-800);
    padding-left: 1.5rem;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--gray-500);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* --- Works Section --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.work-card {
    position: relative;
    cursor: pointer;
    group: work;
}

.work-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gray-950);
    border: 1px solid var(--gray-800);
}

.work-card-placeholder {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Unique patterns for each project */
.placeholder-pattern {
    position: absolute;
    inset: 0;
    transition: transform 0.6s var(--ease-out-expo);
}

.p1 {
    background:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.05) 0%, transparent 40%),
        linear-gradient(135deg, var(--gray-900) 0%, var(--gray-950) 100%);
}

.p1::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    top: 20%;
    left: 15%;
}

.p1::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: 15%;
    right: 20%;
}

.p2 {
    background: linear-gradient(45deg, var(--gray-900), var(--gray-950));
}

.p2::before {
    content: '';
    position: absolute;
    inset: 20%;
    border: 1px solid rgba(255,255,255,0.06);
    transform: rotate(45deg);
}

.p2::after {
    content: '';
    position: absolute;
    inset: 30%;
    border: 1px solid rgba(255,255,255,0.04);
    transform: rotate(45deg);
}

.p3 {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(255,255,255,0.03) 30px,
            rgba(255,255,255,0.03) 31px
        ),
        linear-gradient(180deg, var(--gray-900), var(--gray-950));
}

.p3::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    top: 50%;
    left: 20%;
}

.p4 {
    background:
        radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%),
        var(--gray-950);
}

.p4::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 60%;
    background: rgba(255,255,255,0.06);
    top: 20%;
    left: 50%;
}

.p4::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 1px;
    background: rgba(255,255,255,0.06);
    top: 50%;
    left: 20%;
}

.work-card:hover .placeholder-pattern {
    transform: scale(1.05);
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.work-card:hover .work-card-overlay {
    opacity: 1;
}

.work-card-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out-expo);
}

.work-card:hover .work-card-view {
    transform: translateY(0);
}

.work-card-info {
    padding: 1.25rem 0.25rem;
}

.work-card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.work-card-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--gray-500);
}

/* --- Skills Section --- */
.skills-marquee {
    margin-bottom: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

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

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
}

.skill-item {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: default;
}

.skill-item:hover {
    -webkit-text-stroke: 1px var(--white);
    color: transparent;
}

.skill-divider {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--gray-700);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem;
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out-expo);
    background: var(--gray-950);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    border-color: var(--gray-600);
    transform: translateY(-4px);
}

.skill-card-icon {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.skill-card:hover .skill-card-icon {
    color: var(--white);
}

.skill-card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.skill-card-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-500);
}

/* --- Contact Section --- */
.contact-content {
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.contact-text {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--gray-300);
}

.contact-email {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border: 1px solid var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--gray-800);
    padding: 2rem 0;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.footer-made {
    font-size: 0.75rem;
    color: var(--gray-600);
    letter-spacing: 0.05em;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Page Loader --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow: hidden;
}

.loader-text span {
    display: inline-block;
    animation: loaderReveal 0.6s var(--ease-out-expo) forwards;
    opacity: 0;
    transform: translateY(100%);
}

@keyframes loaderReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-menu-btn {
        display: flex;
    }

    .hero-title-accent {
        -webkit-text-stroke: 1.5px var(--white);
    }

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

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat {
        flex: 1;
        min-width: 120px;
    }

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

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

    .hero-cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* --- Selection --- */
::selection {
    background: var(--white);
    color: var(--black);
}

/* --- Focus styles --- */
:focus-visible {
    outline: 2px solid var(--gray-400);
    outline-offset: 4px;
}

/* --- Smooth transitions for theme consistency --- */
* {
    -webkit-tap-highlight-color: transparent;
}
