/* =============================================
   ANKIT SHARMA PORTFOLIO — style.css
   ============================================= */

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

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray: #666; /* Improved from #888 for better contrast */
    --yellow: #FFD700; /* Bright yellow for AS logo */
    --border: 1px solid rgba(10, 10, 10, 0.13);
    --clip-corner: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    --clip-corner-sm: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%)
}

/* ── MOBILE & TOUCH OPTIMIZATIONS ── */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Touch-friendly tap targets (minimum 44x44px) */
a, button, .hero-btn, .nav-pill-link, .social-icon-btn, .footer-social {
    min-height: 44px;
    touch-action: manipulation;
}

/* Prevent text selection on interactive elements */
.nav-pill-link, .hero-btn, .service-card, .project-item, .social-icon-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ── GEOMETRIC HERO PATTERN (removed) ── */

/* ── XVS-STYLE CUT-CORNER BOXES ──  */

/* Service cards */
.service-card {
    clip-path: var(--clip-corner);
}

/* Fallback for browsers without clip-path support */
@supports not (clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)) {
    .service-card,
    .project-item,
    .hero-btn,
    .skill-item,
    .social-icon-btn,
    .form-btn {
        border-radius: 4px;
    }
}

/* cut-corner arrow indicator */
.service-card::after {
    content: '↗';
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 11px;
    line-height: 1;
    opacity: 0;
    transform: translate(4px, -4px);
    transition: opacity .3s, transform .3s;
    z-index: 2
}

.service-card:hover::after {
    opacity: .7;
    transform: translate(0, 0)
}

/* Project items */
.project-item {
    clip-path: var(--clip-corner)
}

.project-item::after {
    content: '↗';
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 13px;
    opacity: 0;
    transform: translate(6px, -6px);
    transition: opacity .3s, transform .3s;
    z-index: 2
}

.project-item:hover::after {
    opacity: .65;
    transform: translate(0, 0)
}

/* Hero buttons */
.hero-btn {
    clip-path: var(--clip-corner-sm)
}

/* Skill items */
.skill-item {
    clip-path: var(--clip-corner-sm)
}

/* Social icon buttons */
.social-icon-btn {
    clip-path: var(--clip-corner-sm)
}

/* Footer */
.form-btn {
    clip-path: var(--clip-corner-sm)
}

html {
    scroll-behavior: smooth;
}

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

body {
    background: var(--white);
    color: var(--black);
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    cursor: auto; /* Fallback cursor */
}

/* Hide cursor only when custom cursor is active (non-touch devices) */
body:not(.touch-device) {
    cursor: none;
}

/* ══════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════ */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--black);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    z-index: 100000;
    font-size: 14px;
    font-weight: 700;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
.nav-pill-link:focus-visible,
.service-card:focus-visible,
.project-item:focus-visible,
.skill-item:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 4px;
}

.form-field:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}

/* Ensure focus is visible on custom cursor elements */
body:not(.touch-device) a:focus-visible,
body:not(.touch-device) button:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 4px;
}

/* ══════════════════════════════════════
   SK ILLUSTRATION PORTFOLIO STYLE
══════════════════════════════════════ */

/* ── STROKE / OUTLINED TEXT ── */
.stroke-text {
    -webkit-text-stroke: 1.5px var(--black);
    color: transparent;
    font-style: normal
}

/* ── SORA FONT FOR BODY TEXT ── */
.hero-tagline,
.about-text,
.contact-desc,
.service-desc,
.project-cat {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    color: #555; /* Better contrast than previous #888 in some contexts */
}

/* ── HERO SUBTITLE SORA LINE ── */
.hero-name .line.sora-sub {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--black);
    line-height: 1.2
}

.hero-name .line.sora-sub .stroke-text {
    font-size: inherit
}

/* ── HARD OFFSET BOX-SHADOW (SK signature) ── */
.hero-btn {
    box-shadow: 4px 4px 0 0 var(--black)
}

.hero-btn:hover {
    box-shadow: 2px 2px 0 0 var(--black);
    transform: translate(2px, 2px)
}

.hero-btn-primary:hover {
    background: var(--black);
    color: var(--white)
}

.social-icon-btn {
    box-shadow: 4px 4px 0 0 var(--black)
}

.social-icon-btn:hover {
    box-shadow: 1px 1px 0 0 var(--black);
    transform: translateY(-3px) translate(3px, 0)
}

.service-card {
    box-shadow: 5px 5px 0 0 var(--black)
}

.skill-item {
    box-shadow: 3px 3px 0 0 var(--black)
}

.skill-item:hover {
    box-shadow: 1px 1px 0 0 var(--black);
    transform: translate(2px, 2px)
}

.form-btn {
    box-shadow: 4px 4px 0 0 var(--black)
}

.form-btn:hover {
    box-shadow: 1px 1px 0 0 var(--black);
    transform: translate(3px, 3px);
    opacity: 1
}

/* ── VIEWPORT EDGE GLOW (SK background) ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 0% 50%, rgba(180, 200, 255, .08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(180, 200, 255, .08) 0%, transparent 70%)
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--black);
    z-index: 99999;
    transition: width .05s linear;
    transform-origin: left
}

/* ── NOISE / GRAIN TEXTURE ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99990;
    pointer-events: none;
    opacity: .028;
    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-size: 200px 200px
}

/* ── MAGNETIC BUTTON (transform-ready) ── */
.hero-btn {
    will-change: transform;
    transition: all .3s ease, transform .15s ease
}

/* ── HERO IMAGE PARALLAX CONTAINER ── */
.hero-image-wrapper {
    will-change: transform
}
/* ── CLIP-PATH WIPE REVEAL (about image) ── */
/* Removed - video should display without clip-path animation */

/* ── CURSOR (with fallback) ── */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    top: 0;
    left: 0;
    transition: width .22s, height .22s, background .22s;
    display: none; /* Hidden by default, shown via JS on non-touch devices */
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(10, 10, 10, .35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    top: 0;
    left: 0;
    transition: width .22s, height .22s;
    display: none; /* Hidden by default, shown via JS on non-touch devices */
}

/* Touch devices should have normal cursor on buttons */
.touch-device .hero-btn,
.touch-device button,
.touch-device a {
    cursor: pointer !important;
}

/* Show custom cursor on non-touch devices */
body:not(.touch-device) .cursor,
body:not(.touch-device) .cursor-follower {
    display: block;
}

.cursor.expand {
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 10, .1)
}

.cursor-follower.expand {
    width: 60px;
    height: 60px
}

.cursor.contrast {
    background: #ffffff;
    mix-blend-mode: difference;
    opacity: 0.95;
}

.cursor-follower.contrast {
    border-color: rgba(255, 255, 255, 0.7);
    mix-blend-mode: difference;
}

/* ── PARTICLE EXPLOSION EFFECT ── */
.particle-explosion {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* ── LOADER ── */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center
}

.loader-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 10vw, 100px);
    color: var(--white);
    letter-spacing: 8px
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 22px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .3s, border-bottom .3s
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color .3s, box-shadow .15s, transform .15s;
    border: 2px solid var(--black);
    padding: 6px 14px;
    box-shadow: 4px 4px 0 0 var(--yellow)
}

.nav-logo:hover {
    box-shadow: 1px 1px 0 0 var(--yellow);
    transform: translate(3px, 3px)
}

/* ── MORPHIC NAV PILL ── */
.nav-pill {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 10, 10, 0.10);
    border-radius: 14px;
    padding: 4px;
    gap: 2px
}

.nav-pill-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #0a0a0a;
    border-radius: 10px;
    font-family: 'Space Mono', monospace;
    transition: background .3s, color .3s, transform .2s;
    white-space: nowrap
}

.nav-pill-link:hover {
    background: rgba(10, 10, 10, 0.07)
}

.nav-pill-link.active {
    background: #0a0a0a;
    color: #ffffff;
    font-weight: 600
}

/* Hero-zone: glass pill on white nav */
nav.hero-zone {
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(10, 10, 10, 0.07)
}

nav.hero-zone .nav-logo {
    color: #0a0a0a
}

/* Scrolled: frosted white nav with shadow */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: var(--border);
    box-shadow: 0 4px 24px rgba(10, 10, 10, 0.10)
}

nav.scrolled .nav-logo,
nav.scrolled .nav-pill-link:not(.active) {
    color: #0a0a0a
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 48px 80px;
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-bottom: var(--border);
    gap: 60px
}

/* Decorative background elements - positioned in corners */
#hero::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 3%;
    width: 100px;
    height: 100px;
    background: var(--yellow);
    opacity: 0.08;
    border-radius: 50%;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 3%;
    width: 75px;
    height: 75px;
    border: 2px solid var(--black);
    opacity: 0.06;
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Decorative circle doodles */
.doodle-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Hero section doodles - positioned in empty spaces */
.doodle-1 {
    top: 8%;
    left: 3%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--yellow);
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.doodle-2 {
    bottom: 8%;
    right: 5%;
    width: 60px;
    height: 60px;
    background: var(--yellow);
    opacity: 0.12;
    animation: float 10s ease-in-out infinite 2s;
}

.doodle-3 {
    top: 10%;
    right: 8%;
    width: 70px;
    height: 70px;
    border: 2px solid var(--black);
    opacity: 0.08;
    animation: float 12s ease-in-out infinite 1s;
}

.doodle-4 {
    bottom: 15%;
    left: 5%;
    width: 55px;
    height: 55px;
    background: var(--black);
    opacity: 0.06;
    animation: float 9s ease-in-out infinite 3s;
}

.doodle-5 {
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border: 2px solid var(--yellow);
    opacity: 0.14;
    transform: translate(-140%, -70%);
    animation: float 7s ease-in-out infinite 1.2s;
}

.doodle-6 {
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    border: 2px solid var(--black);
    opacity: 0.07;
    transform: translate(30%, 40%);
    animation: float 8s ease-in-out infinite 2.6s;
}

/* About section doodles - positioned in empty spaces */
.doodle-about-1 {
    top: 10%;
    right: 5%;
    width: 90px;
    height: 90px;
    border: 2px solid var(--yellow);
    opacity: 0.13;
    animation: float 11s ease-in-out infinite;
}

.doodle-about-2 {
    bottom: 10%;
    left: 5%;
    width: 70px;
    height: 70px;
    background: var(--yellow);
    opacity: 0.1;
    animation: float 9s ease-in-out infinite 1.5s;
}

.doodle-about-3 {
    bottom: 12%;
    right: 8%;
    width: 55px;
    height: 55px;
    border: 2px solid var(--black);
    opacity: 0.09;
    animation: float 10s ease-in-out infinite 2.5s;
}

/* Section doodles - single accents per section */
.doodle-skills-1 {
    top: 32%;
    right: 6%;
    width: 54px;
    height: 54px;
    border: 2px solid var(--yellow);
    opacity: 0.11;
    animation: float 9s ease-in-out infinite 1.4s;
}

.doodle-services-1 {
    top: 42%;
    right: 4%;
    width: 58px;
    height: 58px;
    border: 2px solid var(--black);
    opacity: 0.06;
    animation: float 10s ease-in-out infinite 0.8s;
}

.doodle-projects-1 {
    top: 55%;
    right: 6%;
    width: 46px;
    height: 46px;
    background: var(--yellow);
    opacity: 0.09;
    animation: float 8s ease-in-out infinite 1.1s;
}

.doodle-contact-1 {
    top: 16%;
    right: 3%;
    width: 62px;
    height: 62px;
    border: 2px solid var(--yellow);
    opacity: 0.1;
    animation: float 11s ease-in-out infinite 2.2s;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(100px, 20vw, 300px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(10, 10, 10, .04);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: -5px;
    z-index: 0
}

.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 20px
}

.hero-greeting {
    font-size: 16px;
    font-family: 'Sora', sans-serif;
    letter-spacing: 1px;
    color: #555;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 12px;
    opacity: 0;
    text-align: left;
    position: relative;
    display: inline-block;
    padding-bottom: 0
}

.hero-greeting::after {
    display: none
}

.hero-name {
    font-family: 'Sora', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--black);
    margin-bottom: 16px;
    text-align: left
}

/* "Hello, I'm" — light thin line */
.hero-hello {
    font-family: 'Sora', sans-serif;
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 300;
    color: var(--black);
    letter-spacing: -1px;
    line-height: 1.15
}

/* "ANKIT Sharma" — heavy bold line */
.hero-name-bold {
    font-family: 'Sora', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 800;
    color: var(--black);
    letter-spacing: -2px;
    line-height: 1.05
}

.hero-script-bold {
    font-size: clamp(48px, 8vw, 120px);
    display: block;
    line-height: 1.05;
    white-space: nowrap;
}

/* Ankit Sharma — Satisfy handwritten script with shimmer */
.hero-script-name {
    font-family: 'Satisfy', cursive;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: 1px;
    white-space: nowrap;
    background: linear-gradient(90deg,
            #0a0a0a 0%,
            #0a0a0a 30%,
            #aaaaaa 50%,
            #0a0a0a 70%,
            #0a0a0a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmerText 2.5s linear infinite
}

@keyframes shimmerText {
    0% {
        background-position: 200% center
    }

    100% {
        background-position: -200% center
    }
}

.hero-name .line {
    display: block;
    transform: translateY(0);
    opacity: 1
}

.hero-name .line.serif {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: clamp(48px, 8.5vw, 120px);
    color: rgba(10, 10, 10, .75)
}

.hero-tagline {
    font-size: 13px;
    line-height: 2;
    color: #555; /* Improved contrast */
    max-width: 480px;
    margin: 0 0 24px;
    opacity: 0;
    text-align: left
}

.hero-animated-text {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    opacity: 0;
    justify-content: flex-start
}

.hero-animated-text span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(22px, 3vw, 36px);
    letter-spacing: 2px;
    color: var(--black)
}

.hero-animated-text .dot {
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    justify-content: flex-start
}

.hero-btn {
    padding: 14px 32px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .4s ease;
    cursor: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-btn-primary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    transition: all 0.4s ease;
}

.hero-btn-secondary {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    transition: all 0.4s ease;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: -40px;
}

 .hero-image-box {
  position: relative;
  width: min(75vw, 900px);
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  opacity: 1;
  transform: scale(1);
}

.hero-image-box img,
.hero-image-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
    transition: filter .4s ease
}

.hero-image-box:hover img,
.hero-image-box:hover video {
    filter: none
}

.hero-image-box::before {
    display: none
}

.hero-image-frame {
    display: none;
}

.hero-image-tag {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--black);
    padding: 10px 24px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    border: 2px solid var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700
}

.hero-image-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .4)
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, .4)
    }

    70% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0)
    }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    z-index: 2;
    opacity: 0
}

.scroll-line {
    width: 56px;
    height: 1px;
    background: rgba(10, 10, 10, .18);
    display: inline-block;
    position: relative;
    overflow: hidden
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, .5);
    animation: lineAnim 2.2s ease infinite
}

@keyframes lineAnim {
    0% {
        left: -100%
    }

    100% {
        left: 100%
    }
}

/* ── HERO DECORATIVE ELEMENTS ── */
.hero-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(10, 10, 10, .08)
}

.hero-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px
}

.hero-circle-2 {
    width: 250px;
    height: 250px;
    bottom: 100px;
    left: -80px
}

.hero-circle-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 15%;
    background: rgba(10, 10, 10, .03)
}

.hero-line {
    position: absolute;
    background: rgba(10, 10, 10, .06)
}

.hero-line-1 {
    width: 1px;
    height: 200px;
    top: 20%;
    left: 10%
}

.hero-line-2 {
    width: 150px;
    height: 1px;
    bottom: 30%;
    right: 15%
}

.hero-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--black);
    border-radius: 50%
}

.hero-dot-1 {
    top: 25%;
    right: 20%
}

.hero-dot-2 {
    bottom: 40%;
    left: 25%
}

.hero-dot-3 {
    top: 60%;
    right: 30%
}

.hero-grid {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 120px;
    height: 120px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    opacity: .3
}

.hero-grid span {
    width: 6px;
    height: 6px;
    background: rgba(10, 10, 10, .15);
    border-radius: 50%
}

/* ── SCRIBBLE EFFECTS ── */
.scribble {
    position: absolute;
    pointer-events: none;
    z-index: 1
}

.scribble-underline {
    width: clamp(120px, 15vw, 200px);
    height: auto
}

.scribble-circle {
    width: clamp(60px, 8vw, 100px);
    height: auto
}

.scribble-arrow {
    width: clamp(40px, 5vw, 70px);
    height: auto
}

.scribble-star {
    width: clamp(30px, 4vw, 50px);
    height: auto
}

.scribble svg {
    width: 100%;
    height: auto
}

.scribble path,
.scribble circle,
.scribble line {
    stroke: var(--black);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawScribble 1.5s ease forwards
}

.scribble-delay-1 path,
.scribble-delay-1 circle {
    animation-delay: .3s
}

.scribble-delay-2 path,
.scribble-delay-2 circle {
    animation-delay: .6s
}

.scribble-delay-3 path,
.scribble-delay-3 circle {
    animation-delay: .9s
}

@keyframes drawScribble {
    to {
        stroke-dashoffset: 0
    }
}

.scribble-hero-1 {
    top: 18%;
    right: 25%
}

.scribble-hero-2 {
    bottom: 20%;
    left: 8%
}

.scribble-hero-3 {
    top: 35%;
    left: 42%
}

.scribble-about {
    top: -30px;
    right: 20%
}

.scribble-skills {
    top: 20px;
    left: 5%
}

/* ── ABOUT ── */
#about {
    padding: 120px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    border-bottom: var(--border);
    position: relative;
    overflow: hidden
}

/* About section decorative circles - positioned in corners */
#about::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 3%;
    width: 85px;
    height: 85px;
    border: 2px solid var(--yellow);
    opacity: 0.12;
    border-radius: 50%;
    z-index: 0;
    animation: float 7s ease-in-out infinite;
}

#about::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 3%;
    width: 65px;
    height: 65px;
    background: var(--black);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
    animation: float 9s ease-in-out infinite reverse;
}

.about-left {
    text-align: left;
    order: 2;
}

.about-visual {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 600px;
}

.about-label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 24px;
    text-align: left;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px
}

.about-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black)
}

.about-heading {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(34px, 4.5vw, 62px);
    line-height: 1.1;
    margin-bottom: 32px;
    text-align: left
}

.about-heading .stroke-text {
    -webkit-text-stroke: 0;
    color: var(--black);
    font-weight: 700;
}

.about-heading strong {
    font-family: 'DM Serif Display', serif;
    font-weight: 700;
}

.about-heading em {
    font-style: italic;
    color: var(--gray)
}

.about-text {
    font-size: 13px;
    line-height: 2.2;
    color: #444; /* Improved contrast from #555 */
    margin-bottom: 16px;
    max-width: 460px;
    text-align: left
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 48px;
    border: var(--border)
}

.stat {
    padding: 22px 16px;
    border-right: var(--border);
    text-align: center
}

.stat:last-child {
    border-right: none
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    line-height: 1;
    display: block
}

.stat-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 4px;
    display: block
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%
}

.about-img-box {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 8px;
}

.about-illustration-img {
    animation: floatAbout 6s ease-in-out infinite;
}

.about-img-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@keyframes floatAbout {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-15px)
    }
}

.about-tag-float {
    position: absolute;
    top: -18px;
    right: -18px;
    background: var(--black);
    color: var(--white);
    padding: 10px 18px;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase
}

.about-tag-float::before {
    content: '●';
    margin-right: 8px;
    font-size: 7px;
    color: #4ade80
}

/* ── SKILLS ── */
#skills {
    background: var(--white);
    border-bottom: var(--border);
    overflow: hidden
}

.skills-inner {
    padding: 100px 48px;
    position: relative;
    overflow: hidden
}

/* Skills section decorative circles - positioned in corners */
.skills-inner::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 4%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--yellow);
    opacity: 0.11;
    border-radius: 50%;
    z-index: 0;
    animation: float 9.5s ease-in-out infinite;
}

.skills-inner::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 4%;
    width: 60px;
    height: 60px;
    background: var(--black);
    opacity: 0.06;
    border-radius: 50%;
    z-index: 0;
    animation: float 7.5s ease-in-out infinite reverse;
}

.skills-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px
}

.skills-label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--black);
    text-align: left;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px
}

.skills-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black)
}

.skills-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    line-height: .9;
    letter-spacing: -2px;
    text-align: left;
    margin-top: 8px
}

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

.skill-item {
    padding: 36px 20px;
    border: 2px solid var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: background .25s, color .25s;
    cursor: none;
    position: relative;
    min-height: 160px
}

.skill-item:hover {
    background: var(--black)
}

.skill-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    color: var(--black);
    transition: color .25s
}

.skill-icon svg text {
    fill: currentColor !important;
    stroke: none !important
}

/* SK style: outline icons with stroke */
.skill-icon svg rect,
.skill-icon svg path,
.skill-icon svg circle,
.skill-icon svg polygon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5
}

.skill-name {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--black);
    text-align: center;
    transition: color .25s
}

.skill-item:hover .skill-icon svg {
    color: var(--white)
}

.skill-item:hover .skill-name {
    color: var(--white)
}

.skills-ticker-wrap {
    white-space: nowrap;
    padding: 32px 0;
    border-top: var(--border);
    overflow: hidden;
    margin-top: 20px
}

.skills-ticker {
    display: inline-flex;
    gap: 48px;
    animation: ticker 25s linear infinite;
    will-change: transform
}

.skills-ticker span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 4vw, 54px);
    letter-spacing: 2px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(10, 10, 10, .12)
}

.skills-ticker span.filled {
    color: rgba(10, 10, 10, .7);
    -webkit-text-stroke: 0
}

@keyframes ticker {
    0% {
        transform: translateX(0)
    }

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

/* ── SERVICES ── */
#services {
    padding: 120px 48px;
    border-bottom: var(--border);
    position: relative;
    overflow: hidden
}

/* Services section decorative circles - positioned in corners */
#services::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 3%;
    width: 85px;
    height: 85px;
    border: 2px solid var(--yellow);
    opacity: 0.11;
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

#services::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 3%;
    width: 65px;
    height: 65px;
    background: var(--yellow);
    opacity: 0.08;
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite reverse;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px
}

.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--black);
    text-align: left;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black)
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    line-height: .9;
    letter-spacing: -2px;
    text-align: left;
    margin-top: 8px
}

.section-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 96px;
    color: rgba(10, 10, 10, .06);
    line-height: 1
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: var(--border);
    border-left: var(--border)
}

.service-card {
    padding: 28px 20px;
    border-right: var(--border);
    border-bottom: var(--border);
    position: relative;
    overflow: hidden;
    cursor: none;
    transition: color .35s;
    text-align: left
}

/* ODD cards — white bg, black text */
.service-card:nth-child(odd) {
    background: #ffffff;
    color: #0a0a0a
}

/* EVEN cards — black bg, white text */
.service-card:nth-child(even) {
    background: #0a0a0a;
    color: #ffffff
}

.service-card:nth-child(even) .service-desc {
    color: rgba(255, 255, 255, 0.55)
}

.service-card:nth-child(even) .service-num {
    color: rgba(255, 255, 255, 0.08)
}

.service-card:nth-child(even) .service-tag {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7)
}

/* Wipe overlay */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    z-index: 0
}

.service-card:nth-child(odd)::before {
    background: #0a0a0a
}

.service-card:nth-child(even)::before {
    background: #ffffff
}

.service-card:hover::before {
    transform: scaleY(1)
}

.service-card>* {
    position: relative;
    z-index: 1
}

/* ODD hover → white to black */
.service-card:nth-child(odd):hover {
    color: #ffffff
}

.service-card:nth-child(odd):hover .service-desc {
    color: rgba(255, 255, 255, .55)
}

.service-card:nth-child(odd):hover .service-num {
    color: rgba(255, 255, 255, .08)
}

.service-card:nth-child(odd):hover .service-tag {
    border-color: rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .7)
}

/* EVEN hover → black to white */
.service-card:nth-child(even):hover {
    color: #0a0a0a
}

.service-card:nth-child(even):hover .service-desc {
    color: rgba(10, 10, 10, .6)
}

.service-card:nth-child(even):hover .service-num {
    color: rgba(10, 10, 10, .09)
}

.service-card:nth-child(even):hover .service-tag {
    border-color: rgba(10, 10, 10, .2);
    color: rgba(10, 10, 10, .7)
}

.service-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: rgba(10, 10, 10, .09);
    display: block;
    margin-bottom: 14px;
    transition: color .35s
}

.service-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 12px
}

.service-title {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left
}

.service-desc {
    font-size: 11px;
    line-height: 1.8;
    color: #666; /* Better contrast */
    transition: color .35s;
    text-align: left
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    justify-content: flex-start
}

.service-tag {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid currentColor;
    opacity: .55
}

.service-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    width: 36px;
    height: 36px;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(-45deg);
    transition: transform .3s;
    z-index: 1
}

.service-card:hover .service-arrow {
    transform: scale(1) rotate(0)
}

/* ── PROJECTS ── */
#projects {
    padding: 120px 48px;
    border-bottom: var(--border);
    position: relative;
    overflow: hidden
}

/* Projects section decorative circles - positioned in corners */
#projects::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 4%;
    width: 90px;
    height: 90px;
    border: 2px solid var(--black);
    opacity: 0.06;
    border-radius: 50%;
    z-index: 0;
    animation: float 9s ease-in-out infinite;
}

#projects::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 4%;
    width: 55px;
    height: 55px;
    background: var(--yellow);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
    animation: float 7s ease-in-out infinite reverse;
}

.projects-list {
    display: flex;
    flex-direction: column
}

.project-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    padding: 36px 0;
    border-bottom: var(--border);
    gap: 36px;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: color .35s, padding-left .35s
}

.project-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    z-index: 0
}

.project-item:hover::before {
    transform: scaleX(1)
}

.project-item>* {
    position: relative;
    z-index: 1
}

.project-item:hover {
    color: var(--white);
    padding-left: 20px
}

.project-item:hover .project-cat {
    color: rgba(245, 245, 240, .42)
}

.project-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--gray);
    transition: color .3s;
    padding-left: 8px
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.project-name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(22px, 3.5vw, 44px);
    line-height: 1.05
}

.project-cat {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    transition: color .3s
}

.project-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.project-tag {
    padding: 5px 12px;
    border: 1px solid currentColor;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .65
}

.project-arrow {
    font-size: 22px;
    transition: transform .3s;
    padding-right: 8px
}

.project-item:hover .project-arrow {
    transform: translateX(6px) rotate(-45deg)
}

/* ── CONTACT ── */
#contact {
    padding: 80px 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden
}

/* Contact section decorative circles - positioned in corners */
#contact::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 3%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--yellow);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
    animation: float 11s ease-in-out infinite;
}

#contact::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 3%;
    width: 70px;
    height: 70px;
    background: var(--black);
    opacity: 0.04;
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
}

.contact-bg-text {
    position: absolute;
    bottom: -50px;
    left: -10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(90px, 17vw, 230px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(10, 10, 10, .04);
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -4px
}

/* ── CONTACT TOP (SK centered heading) ── */
.contact-top {
    text-align: center;
    margin-bottom: 64px
}

.contact-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px
}

.contact-eyebrow {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--black);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    white-space: nowrap;
    margin-bottom: 16px
}

.contact-eyebrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black)
}

.contact-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 9vw, 120px);
    line-height: .95;
    letter-spacing: -2px;
    margin-bottom: 48px;
    text-align: left
}

.contact-heading em {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: clamp(42px, 8vw, 110px)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 32px
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left
}

.contact-desc {
    font-size: 13px;
    line-height: 2.1;
    color: #444; /* Improved contrast from #555 */
    margin-bottom: 32px;
    max-width: 380px;
    text-align: left
}

.contact-info .social-icons-row {
    margin-top: 0
}

.social-icons-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

/* SK exact: icon-only squares, 48px, 2px border, filled black */
.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--black);
    border-radius: 4px;
    text-decoration: none;
    color: var(--white);
    background: var(--black);
    transition: background .2s, color .2s;
    cursor: none;
    margin-top: 0;
    flex-shrink: 0
}

.social-icon-btn span {
    display: none
}

.social-icon-btn:hover {
    background: var(--white);
    color: var(--black)
}

.social-icon-btn svg {
    transition: transform .2s
}

.social-icon-btn:hover svg {
    transform: scale(1.1)
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left
}

.form-field {
    border: 1.5px solid rgba(10, 10, 10, .18);
    padding: 14px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    background: transparent;
    color: var(--black);
    outline: none;
    transition: border-color .25s, background .25s;
    resize: none;
    width: 100%;
    text-align: left
}

.form-field::placeholder {
    color: rgba(10, 10, 10, .28);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase
}

.form-field:focus {
    border-color: var(--black);
    background: rgba(10, 10, 10, .03)
}

.form-btn {
    padding: 18px 32px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity .25s, box-shadow .15s, transform .15s;
    white-space: nowrap
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-btn:hover:not(:disabled) {
    opacity: .85
}

/* Form status messages */
.form-status {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    display: none;
}

.form-status:not(:empty) {
    display: block;
}

.form-status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Particle animation for button clicks */
.particle-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    animation: particleBurst 0.8s ease-out forwards;
}

@keyframes particleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

/* SK-style: button + icons on same line at bottom of form */
.form-bottom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: nowrap
}

.form-bottom-row .social-icons-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0
}

/* ── FOOTER ── */
footer {
    padding: 28px 48px;
    border-top: var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    letter-spacing: 1px;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.55)
}

.footer-socials {
    display: flex;
    gap: 20px;
    align-items: center
}

.footer-social {
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color .25s, transform .25s;
    cursor: none
}

.footer-social:hover {
    color: #ffffff;
    transform: translateY(-2px)
}

/* ── RESPONSIVE ── */
/* ── TABLET: 768px - 900px ── */
@media(max-width:900px) {
    /* Hide some decorative doodles on smaller screens */
    .doodle-2, .doodle-3, .doodle-5, .doodle-6, .doodle-about-2, .doodle-about-3,
    .doodle-skills-1, .doodle-services-1, .doodle-projects-1, .doodle-contact-1 {
        display: none;
    }

    nav {
        padding: 18px 24px
    }

    .nav-pill {
        gap: 2px
    }

    .nav-pill-link {
        padding: 7px 14px;
        font-size: 10px;
        letter-spacing: 1px
    }

    .nav-links {
        gap: 20px
    }

    #hero {
        grid-template-columns: 1fr;
        padding: 100px 24px 80px;
        text-align: center
    }

    .hero-content {
        align-items: center
    }

    .hero-name {
        font-size: clamp(40px, 8vw, 56px)
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%
    }

    .hero-animated-text {
        justify-content: center
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px
    }

    .hero-btn {
        min-width: 140px;
        padding: 14px 24px
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 24px;
        justify-content: center;
        margin-left: 0;
    }

    .hero-image-box {
        width: clamp(300px, 85%, 600px)
    }

    .hero-scroll {
        left: 50%;
        transform: translateX(-50%)
    }

    .hero-elements {
        display: none
    }

    #about,
    #services,
    #projects,
    #contact {
        padding: 80px 24px
    }

    .skills-inner {
        padding: 60px 24px
    }

    .skills-header {
        margin-bottom: 40px
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }

    .section-num {
        display: none
    }

    #about {
        grid-template-columns: 1fr
    }

    .about-left {
        order: 1;
    }

    .about-heading {
        font-size: clamp(32px, 6vw, 48px)
    }

    .about-visual {
        display: none
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .stat:nth-child(2) {
        border-right: none
    }

    .stat:nth-child(3) {
        border-right: var(--border);
        border-top: var(--border)
    }

    .stat:nth-child(4) {
        border-right: none;
        border-top: var(--border)
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .service-card {
        padding: 32px
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 56px
    }

    .project-item {
        grid-template-columns: 52px 1fr 24px
    }

    .project-stack {
        display: none
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 14px
    }

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

/* ── MOBILE: 540px - 768px ── */
@media(max-width:768px) {
    .nav-pill {
        padding: 3px;
        gap: 1px
    }

    .nav-pill-link {
        padding: 6px 10px;
        font-size: 9px;
        letter-spacing: 0.5px
    }

    .hero-name {
        font-size: clamp(36px, 10vw, 48px)
    }

    .hero-tagline {
        font-size: 12px;
        line-height: 2
    }

    .hero-animated-text {
        font-size: 10px;
        gap: 8px
    }

    .hero-btn {
        font-size: 11px;
        padding: 12px 20px;
        min-width: 130px
    }

    .about-heading {
        font-size: clamp(28px, 7vw, 40px);
        margin-bottom: 24px
    }

    .about-text {
        font-size: 12px;
        line-height: 2
    }

    .section-label {
        font-size: 10px
    }

    .section-heading {
        font-size: clamp(32px, 6vw, 44px)
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }

    .service-card {
        padding: 28px
    }

    .service-num {
        font-size: 48px
    }

    .service-name {
        font-size: 20px
    }

    .service-desc {
        font-size: 12px
    }

    .project-item {
        grid-template-columns: 40px 1fr;
        padding: 20px
    }

    .project-num {
        font-size: 14px
    }

    .project-name {
        font-size: 18px
    }

    .contact-heading {
        font-size: clamp(32px, 7vw, 44px)
    }

    .social-icons-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px
    }

    .social-icon-btn {
        width: 100%;
        height: 100px
    }
}

/* ── SMALL MOBILE: under 540px ── */
@media(max-width:540px) {
    /* Hide all extra decorative doodles on mobile */
    .doodle-circle {
        display: none;
    }

    nav {
        padding: 14px 16px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px
    }

    .nav-logo {
        font-size: 22px;
        padding: 4px 10px;
        box-shadow: 3px 3px 0 0 var(--yellow)
    }

    .nav-logo:hover {
        box-shadow: 1px 1px 0 0 var(--yellow)
    }

    .nav-pill {
        width: 100%;
        justify-content: space-between;
        order: 2
    }

    .nav-pill-link {
        padding: 8px 6px;
        font-size: 8px;
        letter-spacing: 0.3px;
        flex: 1
    }

    #hero {
        padding: 90px 16px 60px
    }

    .hero-name {
        font-size: clamp(32px, 11vw, 42px)
    }

    .hero-hello {
        font-size: 14px
    }

    .hero-tagline {
        font-size: 11px;
        line-height: 1.8;
        padding: 0 8px
    }

    .hero-animated-text {
        font-size: 9px;
        gap: 6px
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 10px
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        font-size: 12px;
        padding: 14px 20px
    }

    .hero-image-box {
        width: 400px
    }

    .hero-scroll {
        font-size: 9px
    }

    #about,
    #services,
    #projects,
    #contact {
        padding: 60px 16px
    }

    .about-heading {
        font-size: clamp(26px, 8vw, 36px);
        margin-bottom: 20px
    }

    .about-text {
        font-size: 11px;
        line-height: 1.9;
        margin-bottom: 12px
    }

    .about-stats {
        grid-template-columns: 1fr;
        margin-top: 32px
    }

    .stat {
        border-right: none !important;
        border-top: var(--border);
        padding: 20px 16px
    }

    .stat:first-child {
        border-top: none
    }

    .stat-num {
        font-size: 28px
    }

    .stat-label {
        font-size: 10px
    }

    .section-label {
        font-size: 9px;
        letter-spacing: 2px
    }

    .section-heading {
        font-size: clamp(28px, 7vw, 38px)
    }

    .skills-inner {
        padding: 50px 16px
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .skill-item {
        padding: 16px 12px;
        font-size: 11px
    }

    .services-grid {
        gap: 16px
    }

    .service-card {
        padding: 24px 20px
    }

    .service-num {
        font-size: 40px
    }

    .service-name {
        font-size: 18px;
        margin-bottom: 8px
    }

    .service-desc {
        font-size: 11px;
        line-height: 1.8
    }

    .project-item {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 12px
    }

    .project-num {
        display: none
    }

    .project-name {
        font-size: 16px;
        margin-bottom: 6px
    }

    .project-desc {
        font-size: 11px;
        line-height: 1.7
    }

    .project-cat {
        font-size: 9px
    }

    .contact-heading {
        font-size: clamp(28px, 8vw, 38px)
    }

    .contact-desc {
        font-size: 11px;
        line-height: 1.9
    }

    .social-icons-row {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .social-icon-btn {
        width: 100%;
        height: 88px
    }

    .social-icon-svg {
        width: 32px;
        height: 32px
    }

    .social-icon-label {
        font-size: 12px
    }

    .form-group {
        margin-bottom: 16px
    }

    .form-group label {
        font-size: 10px;
        margin-bottom: 6px
    }

    .form-group input,
    .form-group textarea {
        font-size: 13px;
        padding: 12px;
        border-width: 1.5px
    }

    .form-group textarea {
        min-height: 140px
    }

    .form-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 11px
    }

    .form-status {
        font-size: 11px;
        padding: 10px
    }

    footer {
        padding: 32px 16px;
        font-size: 10px
    }

    .footer-socials {
        gap: 16px
    }

    .footer-social {
        width: 38px;
        height: 38px
    }

    .footer-social svg {
        width: 18px;
        height: 18px
    }

    /* Scroll progress bar */
    #scroll-progress {
        height: 3px
    }
}

/* ── MOBILE LANDSCAPE MODE ── */
@media(max-width:900px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 24px 60px
    }

    .hero-image-wrapper {
        display: none
    }

    nav {
        padding: 12px 20px
    }

    .nav-pill-link {
        padding: 6px 12px;
        font-size: 10px
    }
}

/* ── TABLET (iPad) SPECIFIC ── */
@media(min-width:768px) and (max-width:1024px) {
    .nav-pill-link {
        padding: 8px 16px;
        font-size: 11px
    }

    .hero-btn {
        min-width: 160px;
        padding: 16px 28px;
        font-size: 12px
    }

    .service-card {
        padding: 36px
    }

    .social-icons-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px
    }
}

/* ── PREVENT INPUT ZOOM ON iOS ── */
@media(max-width:768px) {
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px !important;
    }
}

/* ── IMPROVE FORM INPUTS ON MOBILE ── */
@media(max-width:540px) {
    .form-group input:focus,
    .form-group textarea:focus {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
}

/* ── FIX NAVBAR ON VERY SMALL SCREENS ── */
@media(max-width:360px) {
    .nav-logo {
        font-size: 20px;
        padding: 3px 8px;
        letter-spacing: 1px
    }

    .nav-pill-link {
        padding: 8px 4px;
        font-size: 7px;
        letter-spacing: 0.2px
    }

    .hero-name {
        font-size: 28px
    }

    .hero-btn {
        font-size: 11px;
        padding: 12px 16px
    }
}

/* ── CUSTOM CURSOR ── */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
}

.custom-cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--black);
    outline: none;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    will-change: transform;
    opacity: 0.35;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.custom-cursor.on-dark {
    background: var(--white);
    border-color: var(--white);
}

.custom-cursor.grow {
    width: 50px;
    height: 50px;
    opacity: 0.45;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* Show default cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* ── 404 PAGE ── */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 6% 80px;
    background: radial-gradient(circle at 15% 20%, #f8f1e3 0%, #ffffff 45%, #f6f6f6 100%);
}

.error-page,
.error-page * {
    cursor: auto !important;
}

.error-card {
    max-width: 760px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.error-code {
    font-size: clamp(64px, 10vw, 120px);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--black);
    margin-bottom: 16px;
}

.error-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    margin-bottom: 12px;
}

.error-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 28px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .hero-btn {
    min-width: 170px;
}

.error-projects {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.error-project-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 16px;
    text-align: left;
}

.error-project-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.error-project-card a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 540px) {
    .error-card {
        padding: 32px 22px;
    }
}