/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO STYLES — Black & White Tech Aesthetic
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Monochrome Palette - High-End Fashion */
    --black: #000000;
    --black-rich: #0a0a0a;
    --black-soft: #111111;
    --gray-darkest: #161616;
    --gray-darker: #1c1c1c;
    --gray-dark: #222222;
    --gray-medium: #333333;
    --gray: #444444;
    --gray-light: #666666;
    --gray-lighter: #888888;
    --gray-soft: #aaaaaa;
    --gray-pale: #cccccc;
    --gray-snow: #e5e5e5;
    --white-off: #f0f0f0;
    --white: #fafafa;
    --snow: #ffffff;

    /* Accent - Pure White for highlights */
    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.7);
    --accent-subtle: rgba(255, 255, 255, 0.15);
    --accent-ghost: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-display: 'Playfair Display', serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-y: auto;
}

body {
    font-family: var(--font-sans);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: none;
}

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

ul {
    list-style: none;
}

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

/* ═══════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════ */

.cursor {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--white);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    opacity: 1;
    border-width: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   NOISE OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.03;
    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");
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: invert(1);
    transition: var(--transition-smooth);
    opacity: 0.95;
}

.logo-img:hover {
    opacity: 1;
    transform: scale(1.08);
    filter: invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--snow);
    transition: width var(--transition-smooth);
}

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

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

.nav-link.active {
    color: var(--snow);
}

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

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-menu-btn span {
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: var(--transition-fast);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 0 8rem;
    overflow: hidden;
    background-image: url('background-hp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Spotlight Effect - Subtle for background image */
.spotlight {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 40%,
        transparent 70%
    );
    z-index: 3;
}

/* Matrix Background Canvas */
#matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
}

/* Snow Effect */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: var(--white);
    font-size: 1rem;
    opacity: 0;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        opacity: 0;
        transform: translateY(-10px) rotate(0deg);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Street Light */
.street-light {
    position: absolute;
    right: 12%;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.light-post {
    width: 4px;
    height: 250px;
    background: linear-gradient(180deg, var(--gray-medium) 0%, var(--gray-dark) 100%);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.light-arm {
    width: 60px;
    height: 3px;
    background: var(--gray-medium);
    position: absolute;
    bottom: 250px;
    left: -30px;
    border-radius: 2px;
}

.light-lamp {
    width: 20px;
    height: 25px;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--gray-medium) 100%);
    position: absolute;
    bottom: 225px;
    left: -40px;
    border-radius: 3px 3px 8px 8px;
}

.light-glow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 500px;
    background: radial-gradient(ellipse at top center, rgba(255, 250, 240, 0.08) 0%, rgba(255, 250, 240, 0.03) 30%, transparent 70%);
    pointer-events: none;
}

/* Name Glow - disabled, using lamp glow instead */
.name-glow {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

/* Floating Geometric Shapes - Hidden for cleaner look */
.floating-shapes {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.shape-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 5%;
    border-radius: 50%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    top: 15%;
    right: 15%;
    animation-delay: -10s;
    animation-duration: 18s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 10%;
    border-radius: 50%;
    animation-delay: -7s;
    animation-duration: 22s;
}

.shape-5 {
    width: 30px;
    height: 30px;
    top: 50%;
    right: 25%;
    transform: rotate(45deg);
    animation-delay: -3s;
    animation-duration: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-40px) rotate(270deg);
        opacity: 0.5;
    }
}

/* Glowing Orbs - Hidden for cleaner look */
.orb {
    display: none;
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 50%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: pulse 12s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    bottom: -150px;
    left: -150px;
    animation: pulse 15s ease-in-out infinite reverse;
}

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

/* Code Tags */
.code-tag {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--gray-light);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.code-tag.closing {
    animation-delay: 1.6s;
}

/* Typing Cursor */
.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--white);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    z-index: 10;
    animation: scan 5s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Glitch Effect on Title */
.hero-title.glitch {
    position: relative;
}

.hero-title.glitch::before,
.hero-title.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.hero-title.glitch::before {
    left: 3px;
    text-shadow: -3px 0 rgba(255, 255, 255, 0.7);
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.hero-title.glitch::after {
    left: -3px;
    text-shadow: 3px 0 rgba(255, 255, 255, 0.7);
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0%, 85%, 100% { transform: translate(0); }
    86% { transform: translate(-5px, -2px); }
    87% { transform: translate(5px, 2px); }
    88% { transform: translate(-3px, 1px); }
    89% { transform: translate(0); }
    90% { transform: translate(3px, -1px); }
}

@keyframes glitch-anim-2 {
    0%, 80%, 100% { transform: translate(0); }
    81% { transform: translate(5px, 2px); }
    82% { transform: translate(-5px, -1px); }
    83% { transform: translate(3px, 1px); }
    84% { transform: translate(-3px, -2px); }
}

.hero-content {
    text-align: left;
    z-index: 5;
    position: relative;
    max-width: 800px;
}

.hero-text {
    margin-bottom: 2rem;
}

.typing-text {
    color: var(--gray-soft);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
    padding-right: 1rem;
    overflow: visible;
}

.hero-title .title-first {
    display: block;
    font-style: italic;
    font-weight: 500;
    opacity: 0;
    transform: translateY(40px);
    margin-bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.7) 0%,
        rgba(255,255,255,1) 20%,
        rgba(255,240,220,1) 40%,
        rgba(255,210,160,1) 50%,
        rgba(255,240,220,1) 60%,
        rgba(255,255,255,1) 80%,
        rgba(255,255,255,0.7) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        revealTitle 1.2s ease forwards 0.6s,
        shimmerText 5s ease-in-out infinite 2s,
        waveMotion 6s ease-in-out infinite 2s;
    text-shadow: 0 0 60px rgba(255, 220, 180, 0.3);
}

/* Wave Motion Animation */
@keyframes waveMotion {
    0%, 100% {
        transform: translateY(0) skewX(0deg);
        filter: brightness(1);
    }
    25% {
        transform: translateY(-3px) skewX(0.5deg);
        filter: brightness(1.1);
    }
    50% {
        transform: translateY(0) skewX(0deg);
        filter: brightness(1.2);
    }
    75% {
        transform: translateY(3px) skewX(-0.5deg);
        filter: brightness(1.1);
    }
}

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

@keyframes shimmerText {
    0%, 100% {
        background-position: 100% center;
    }
    50% {
        background-position: 0% center;
    }
}
.hero-title .line:nth-child(3) .word { animation-delay: 1.1s; }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

.hero-scroll span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-lighter);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gray-lighter), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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


/* Hero Subtitle - AI & Software Engineer */
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(180, 180, 190, 0.85);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.1s;
  position: relative;
  display: block;         
  text-align: left;        
  margin-left: 0;          
}

/* Hero Tagline */
.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.3s;
}

/* Hero Icons - Minimal Style */
.hero-icons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

.icon-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-medium);
    border-radius: 50%;
    color: var(--gray-light);
    transition: var(--transition-smooth);
    position: relative;
    background: transparent;
}

.icon-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.icon-link:hover {
    color: var(--snow);
    border-color: var(--snow);
    background: var(--snow);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-link:hover svg {
    stroke: var(--black);
}

/* Subtitle Lines */
.subtitle-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-light), transparent);
    vertical-align: middle;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION COMMON STYLES
   ═══════════════════════════════════════════════════════════════ */

section {
    padding: 8rem 4rem;
}

.page-section {
    min-height: 100vh;
    padding-top: 10rem;
    padding-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 5;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #d4a574;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION - TERMINAL STYLE
   ═══════════════════════════════════════════════════════════════ */

.about {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(2px 2px at 30% 60%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(2px 2px at 70% 40%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 25% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 35%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 5% 55%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 45%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 55% 85%, rgba(255,255,255,0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: starFieldTwinkle 4s ease-in-out infinite;
}

/* Stars background for all sections */
.work::before,
.projects-section::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 50%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 70% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 10%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 15% 60%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 45% 15%, rgba(255,255,255,0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: starFieldTwinkle 4s ease-in-out infinite;
}

@keyframes starFieldTwinkle {
    0%, 100% { opacity: 0.5; }
    25% { opacity: 0.8; }
    50% { opacity: 1; }
    75% { opacity: 0.7; }
}

/* About Layout */
.about-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}

/* About Photo Section */
.about-photo-section {
    position: sticky;
    top: 8rem;
}

.photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.photo-frame-artistic {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 1.5rem;
}

.photo-frame-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.photo-frame-svg circle {
    stroke: rgba(255, 255, 255, 0.1);
}

.rotating-dash {
    transform-origin: center;
    stroke: rgba(189, 147, 249, 0.3) !important;
}

.about-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.photo-frame-artistic:hover .about-photo {
    transform: translate(-50%, -50%) scale(1.03);
    border-color: rgba(189, 147, 249, 0.5);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(189, 147, 249, 0.2);
}

.photo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.photo-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #f8f8f2;
    margin-bottom: 1rem;
}

.label-bracket {
    color: #bd93f9;
}

.photo-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #50fa7b;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(80, 250, 123, 0.4);
    border-radius: 20px;
    background: rgba(80, 250, 123, 0.1);
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #50fa7b;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(80, 250, 123, 0.8);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(80, 250, 123, 0.8); }
    50% { opacity: 0.6; box-shadow: 0 0 20px rgba(80, 250, 123, 0.4); }
}

.terminal-container {
    max-width: 100%;
}

.terminal {
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

.terminal-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-close { background: #ff5f57; border-color: #e0443e; }
.btn-minimize { background: #febc2e; border-color: #d4a028; }
.btn-maximize { background: #28c840; border-color: #1aab29; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #6272a4;
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.prompt {
    color: #50fa7b;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.5);
}

.directory {
    color: #8be9fd;
    font-weight: bold;
}

.command {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8f8f2;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    animation: commandShine 3s ease-in-out infinite;
}

@keyframes commandShine {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 25px rgba(255, 255, 255, 0.3); }
}

.terminal-output {
    padding: 12px 0 24px 24px;
    color: rgba(248, 248, 242, 0.9);
    border-left: 2px solid #bd93f9;
    margin-left: 8px;
    margin-bottom: 16px;
}

.terminal-output .highlight {
    color: #ff79c6;
    background: rgba(255, 121, 198, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    text-shadow: 0 0 8px rgba(255, 121, 198, 0.4);
}

.terminal-output .highlight::after {
    display: none;
}

.about-output p {
    margin-bottom: 4px;
}

.passion-output {
    border-left-color: #50fa7b;
}

.passion-text {
    color: #50fa7b;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    text-shadow: 0 0 15px rgba(80, 250, 123, 0.3);
}

/* Skills Grid */
.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-item {
    background: rgba(139, 233, 253, 0.1);
    border: 1px solid rgba(139, 233, 253, 0.4);
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #8be9fd;
    transition: var(--transition-fast);
}

.skill-item:hover {
    background: rgba(139, 233, 253, 0.2);
    border-color: rgba(139, 233, 253, 0.7);
    color: #f8f8f2;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.3);
}

.skill-item.soft {
    color: #ff79c6;
    background: rgba(255, 121, 198, 0.1);
    border-color: rgba(255, 121, 198, 0.4);
}

.skill-item.soft:hover {
    border-color: rgba(255, 121, 198, 0.7);
    color: #f8f8f2;
    box-shadow: 0 0 15px rgba(255, 121, 198, 0.3);
}

/* JSON Output Styling */
.hobbies-output {
    border-left-color: #ffb86c;
}

.json-output {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #f8f8f2;
}

.json-key {
    color: #8be9fd;
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.3);
}

.json-value {
    color: #50fa7b;
    text-shadow: 0 0 6px rgba(80, 250, 123, 0.3);
}

.json-string {
    color: #f1fa8c;
}

/* Terminal Cursor */
.terminal-body .cursor-blink {
    color: #50fa7b;
    animation: blink 1s step-end infinite;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.8);
}

/* Scan effect on terminal */
.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 0, 0, 0.05) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

.terminal {
    position: relative;
}

/* Glow effect */
.terminal::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(189, 147, 249, 0.1) 50%,
        transparent 70%
    );
    border-radius: 8px;
    pointer-events: none;
    animation: shimmer 4s infinite;
}

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

/* ═══════════════════════════════════════════════════════════════
   WORK / EXPERIENCE SECTION
   ═══════════════════════════════════════════════════════════════ */

.work {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-dark), transparent);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.2) 70%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.experience-card {
    position: relative;
    padding: 2.5rem;
    padding-left: 4rem;
    background: var(--gray-darkest);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    margin-left: 2rem;
    transition: var(--transition-smooth);
    overflow: hidden;
}

/* Animated gradient border on hover */
.experience-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--snow) 50%, transparent 60%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-smooth);
}

.experience-card:hover::after {
    opacity: 1;
    animation: borderShine 2s linear infinite;
}

@keyframes borderShine {
    0% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.experience-card::before {
    content: '★';
    position: absolute;
    left: -2rem;
    top: 2.3rem;
    width: 20px;
    height: 20px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    transform: translateX(-50%);
    transition: var(--transition-smooth);
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    animation: starGlow 2s ease-in-out infinite;
}

@keyframes starGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
        transform: translateX(-50%) scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.6);
        transform: translateX(-50%) scale(1.2);
    }
}

/* Pulse ring animation */
.experience-card:hover::before {
    color: #fff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 50px rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) scale(1.3);
}

.experience-card:hover {
    background: linear-gradient(135deg, var(--gray-darker) 0%, var(--gray-darkest) 100%);
    border-color: var(--gray-medium);
    transform: translateX(10px) scale(1.01);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
}

/* Stagger animation for cards */
.experience-card:nth-child(1) { transition-delay: 0s; }
.experience-card:nth-child(2) { transition-delay: 0.05s; }
.experience-card:nth-child(3) { transition-delay: 0.1s; }
.experience-card:nth-child(4) { transition-delay: 0.15s; }
.experience-card:nth-child(5) { transition-delay: 0.2s; }

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.exp-company {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-icon {
    color: var(--snow);
    font-size: 1rem;
    transition: var(--transition-fast);
    display: inline-block;
}

.experience-card:hover .company-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-3px); }
}

.exp-company h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
}

.experience-card:hover .exp-company h3 {
    letter-spacing: 0.02em;
}

.exp-date {
    flex-shrink: 0;
}

.date-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--snow);
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--gray-medium);
    border-radius: 20px;
    transition: var(--transition-fast);
}

.experience-card:hover .date-badge {
    background: var(--snow);
    color: var(--black);
    border-color: var(--snow);
}

.exp-role {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-pale);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
}

.exp-role::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--snow);
    transition: var(--transition-smooth);
}

.experience-card:hover .exp-role::after {
    width: 100%;
}

.exp-role.secondary {
    color: var(--gray-lighter);
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.role-timeline {
    font-size: 0.7rem;
    color: var(--gray-lighter);
    margin-left: 0.5rem;
    text-transform: none;
}

.exp-details {
    list-style: none;
    margin-bottom: 1.5rem;
}

.exp-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-lighter);
    font-size: 0.9rem;
    line-height: 1.6;
}

.exp-details li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray-light);
    font-size: 0.75rem;
}

.highlight-stat {
    color: var(--snow);
    font-weight: 700;
    background: linear-gradient(90deg, var(--snow), var(--gray-pale));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 0.25rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--gray-medium);
    border-radius: 20px;
    color: var(--gray-lighter);
    transition: var(--transition-fast);
}

.experience-card:hover .exp-tags span {
    border-color: var(--snow);
    color: var(--snow);
}

.experience-card:hover .exp-tags span:hover {
    background: var(--snow);
    color: var(--black);
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════════════════════ */

.projects-section {
    background: var(--black);
    position: relative;
    overflow: hidden;
}

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

.project-card {
    background: var(--gray-darkest);
    border: 1px solid var(--gray-dark);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-color: var(--gray-medium);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--gray) 0%, var(--gray-medium) 100%);
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 3rem;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.project-card:hover .project-icon {
    transform: scale(1.2);
    opacity: 0.8;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--snow);
    color: var(--black);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.project-link svg {
    width: 14px;
    height: 14px;
}

.project-link:hover {
    background: var(--white);
    transform: scale(1.05);
}

.project-link.disabled {
    background: var(--gray-medium);
    color: var(--gray-lighter);
    cursor: default;
}

.project-info {
    padding: 1.5rem;
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gray-lighter);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin: 0.5rem 0 0.75rem;
    line-height: 1.3;
}

.project-desc {
    font-size: 0.875rem;
    color: var(--gray-lighter);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--gray-medium);
    border-radius: 2px;
    color: var(--gray-soft);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */

.contact {
    background-image: url('background-contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-y: auto;
}

.contact-layout {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-layout .section-number {
    margin-bottom: 0.5rem;
}

.contact-layout .section-title {
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 800px;
    position: relative;
    z-index: 5;
    margin-left: 0;
}

.contact-text {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.contact-email-link {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #ffd9a0;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-email-link:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 220, 160, 0.5);
}

.contact-social {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffd9a0;
    transition: var(--transition-fast);
}

.contact-social:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 220, 160, 0.5);
}

.resume-link {
    display: inline-block;
}

/* Keep old styles for backwards compatibility */
.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-style: italic;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-medium);
    transition: var(--transition-smooth);
    margin-bottom: 4rem;
}

.contact-email:hover {
    gap: 2rem;
    border-bottom-color: var(--snow);
}

.contact-email:hover .email-arrow {
    transform: translateX(0.5rem);
}

.email-arrow {
    transition: var(--transition-smooth);
}

.contact-links {
    display: flex;
    gap: 3rem;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-lighter);
    position: relative;
    transition: var(--transition-fast);
}

.social-link::before {
    content: '[';
    margin-right: 0.25rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.social-link::after {
    content: ']';
    margin-left: 0.25rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--snow);
}

.social-link:hover::before,
.social-link:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
    padding: 2rem 4rem;
    border-top: 1px solid var(--gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-lighter);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-time {
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .nav {
        padding: 1.5rem 2rem;
    }

    section {
        padding: 6rem 2rem;
    }

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

    .about-photo-section {
        position: static;
    }

    .terminal-body {
        padding: 16px;
        font-size: 0.8rem;
    }

    .hero-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
    }

    .experience-card {
        padding: 1.5rem;
        padding-left: 2.5rem;
    }

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

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

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

    .hero {
        padding: 0 2rem;
        align-items: flex-end;
        padding-bottom: 15vh;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-icons {
        justify-content: center;
    }

    .scene {
        right: 5%;
        width: 250px;
        height: 300px;
        opacity: 0.7;
    }

    .lamp-post {
        height: 200px;
    }

    .lamp-arm {
        width: 50px;
        bottom: 200px;
        left: -45px;
    }

    .lamp-head {
        width: 20px;
        height: 28px;
        bottom: 190px;
        left: -55px;
    }

    .lamp-glow {
        left: -120px;
        width: 250px;
        height: 220px;
    }

    .bench {
        width: 80px;
        height: 45px;
    }

    .bench-seat {
        width: 80px;
        height: 6px;
        bottom: 18px;
    }

    .bench-back {
        width: 70px;
        height: 22px;
        bottom: 24px;
    }

    .sitting-figure {
        left: 15px;
        bottom: 24px;
        transform: scale(0.7);
    }

    .hero-title {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .photo-frame-artistic {
        width: 180px;
        height: 180px;
    }

    .about-photo {
        width: 140px;
        height: 140px;
        filter: grayscale(0%) contrast(1);
    }

    .photo-overlay {
        width: 140px;
        height: 140px;
    }

    .experience-timeline::before {
        display: none;
    }

    .experience-card {
        margin-left: 0;
        padding-left: 1.5rem;
    }

    .experience-card::before {
        display: none;
    }

    .exp-header {
        flex-direction: column;
    }

    .terminal-body {
        padding: 12px;
        font-size: 0.75rem;
    }

    .terminal-output {
        padding: 8px 0 16px 12px;
    }

    .skill-item {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .json-output {
        font-size: 0.7rem;
    }

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

    .project-index {
        padding-top: 0;
    }

    .contact-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    section {
        padding: 4rem 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project {
        padding: 2rem 1rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS ON SCROLL (to be triggered by JS)
   ═══════════════════════════════════════════════════════════════ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════════
   ATMOSPHERIC SCENE - Street Lamp, Bench, Sitting Figure
   ═══════════════════════════════════════════════════════════════ */

/* Stars Container */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.star {
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Star variations */
.star.twinkle {
    animation: starTwinkle 2s ease-in-out infinite;
}

.star.shine {
    animation: starShine 3s ease-in-out infinite;
}

.star.pulse {
    animation: starPulse 4s ease-in-out infinite;
}

.star.drift {
    animation: starDrift 8s ease-in-out infinite, starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes starShine {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.5), 0 0 8px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 220, 180, 0.6), 0 0 30px rgba(255, 200, 150, 0.3);
    }
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.3);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    75% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes starDrift {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(3px, -2px);
    }
    50% {
        transform: translate(-2px, 3px);
    }
    75% {
        transform: translate(2px, 2px);
    }
}

/* Shooting Stars - Soft gliding streak */
.shooting-star {
    position: absolute;
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.8) 80%,
        rgba(255, 255, 255, 1) 100%
    );
    border-radius: 50%;
    transform: rotate(135deg);
    opacity: 0;
    pointer-events: none;
    filter: blur(0.5px);
}

.shooting-star::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -2px;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
}

.shooting-star.animate {
    animation: shootingStar 2s ease-out forwards;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: rotate(135deg) translate(0, 0);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: rotate(135deg) translate(500px, 0);
    }
}

/* Scene Container - Hidden when using background image */
.scene {
    display: none;
    position: absolute;
    right: 10%;
    bottom: 0;
    width: 400px;
    height: 450px;
    z-index: 4;
    pointer-events: none;
}

/* Street Lamp */
.lamp {
    position: absolute;
    right: 50px;
    bottom: 0;
    z-index: 5;
}

.lamp-post {
    width: 6px;
    height: 320px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #1a1a1a 100%);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.lamp-arm {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2a2a2a, #3a3a3a);
    position: absolute;
    bottom: 320px;
    left: -75px;
    border-radius: 2px;
    transform-origin: right center;
    transform: rotate(-5deg);
}

.lamp-head {
    width: 30px;
    height: 40px;
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 30%, #2a2a2a 100%);
    position: absolute;
    bottom: 310px;
    left: -90px;
    border-radius: 5px 5px 15px 15px;
    box-shadow: 0 5px 20px rgba(255, 200, 100, 0.3);
}

.lamp-light {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: linear-gradient(180deg, #fff9e6 0%, #ffcc66 100%);
    border-radius: 0 0 10px 10px;
    box-shadow:
        0 0 20px rgba(255, 200, 100, 0.8),
        0 0 40px rgba(255, 200, 100, 0.5),
        0 0 60px rgba(255, 180, 80, 0.3);
    animation: lampFlicker 4s ease-in-out infinite;
}

@keyframes lampFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
    52% { opacity: 1; }
    54% { opacity: 0.85; }
    56% { opacity: 1; }
}

/* Lamp Glow - Warm Light Cone */
.lamp-glow {
    position: absolute;
    bottom: 0;
    left: -200px;
    width: 400px;
    height: 350px;
    background: radial-gradient(
        ellipse 60% 80% at 50% 10%,
        rgba(255, 210, 120, 0.15) 0%,
        rgba(255, 200, 100, 0.08) 30%,
        rgba(255, 180, 80, 0.03) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 3;
}

/* Bench Area */
.bench-area {
    position: absolute;
    bottom: 0;
    left: 50px;
    z-index: 4;
}

/* Bench */
.bench {
    position: relative;
    width: 120px;
    height: 60px;
}

.bench-seat {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 120px;
    height: 8px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 2px;
}

.bench-back {
    position: absolute;
    bottom: 33px;
    left: 5px;
    width: 110px;
    height: 30px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 3px 3px 0 0;
    transform: rotate(-5deg);
    transform-origin: bottom center;
}

.bench-leg {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 25px;
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-radius: 0 0 2px 2px;
}

.bench-leg.leg-1 { left: 10px; }
.bench-leg.leg-2 { right: 10px; }

.bench-arm {
    position: absolute;
    bottom: 25px;
    width: 8px;
    height: 25px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 2px 2px 0 0;
}

.bench-arm.arm-1 { left: 0; }
.bench-arm.arm-2 { right: 0; }

/* Sitting Figure Silhouette */
.sitting-figure {
    position: absolute;
    bottom: 33px;
    left: 30px;
    z-index: 5;
}

.figure-head {
    width: 22px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    bottom: 55px;
    left: 10px;
}

.figure-hair {
    position: absolute;
    bottom: 60px;
    left: 5px;
    width: 32px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 50% 50% 30% 30%;
    transform: rotate(-5deg);
}

/* Long flowing hair */
.figure-hair::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -8px;
    width: 20px;
    height: 45px;
    background: #1a1a1a;
    border-radius: 0 0 40% 20%;
    transform: rotate(15deg);
}

.figure-body {
    width: 30px;
    height: 35px;
    background: #1a1a1a;
    border-radius: 10px 10px 5px 5px;
    position: absolute;
    bottom: 22px;
    left: 8px;
    transform: rotate(-5deg);
}

.figure-legs {
    position: absolute;
    bottom: 0;
    left: 5px;
    width: 35px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 5px;
}

/* Legs crossed effect */
.figure-legs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 25px;
    height: 12px;
    background: #1a1a1a;
    border-radius: 0 0 10px 0;
}

/* Ground Glow - Warm light reflection */
.ground-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 200, 100, 0.05) 50%,
        rgba(255, 180, 80, 0.08) 100%
    );
    pointer-events: none;
}
