/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #111111;
    --color-surface-hover: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-text-dim: #444444;
    --color-border: #222222;
    --color-accent: #333333;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}
body {
    overflow-x: hidden;
    overflow-y: auto;
}
body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    background: var(--color-bg); 
    color: var(--color-text); 
    line-height: 1.6; 
    cursor: none;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== Section Base ===== */
.section {
    width: 100vw;
    width: 100dvw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 4rem 0;
    overflow-x: hidden;
}

/* Full height sections - snap immediately */
.section-full {
    height: 100vh;
    height: 100dvh;
}

/* Work section - natural height, scroll through content */
.section-auto {
    height: auto;
    min-height: auto;
    padding: 6rem 0;
}

/* ===== SVG Background ===== */
.svg-bg-effects { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.svg-bg-effects svg { position: absolute; }
.svg-blob { width: 600px; height: 600px; top: -100px; right: -100px; opacity: 0.6; }
.svg-sphere { width: 300px; height: 300px; bottom: 10%; left: 5%; animation: rotateSphere 20s linear infinite, floatSphere 8s ease-in-out infinite; }
.svg-cube { width: 120px; height: 120px; top: 30%; right: 15%; animation: floatCube 6s ease-in-out infinite; }
.svg-rings { width: 350px; height: 350px; top: 60%; right: 10%; }
@keyframes rotateSphere { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatSphere { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-30px) rotate(180deg); } }
@keyframes floatCube { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ===== Cursor (Fixed) ===== */
.cursor {
    width: 10px; height: 10px; background: #fff; border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}
.cursor-follower {
    width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
.cursor.hover, .cursor-follower.hover { 
    width: 60px; height: 60px; 
    border-color: rgba(255,255,255,0.8); 
    background: rgba(255,255,255,0.05);
}

/* Cursor Invert Effect for Buttons */
.cursor-follower.invert {
    background: #fff;
    border-color: #fff;
    mix-blend-mode: difference;
}

/* Cursor always on top, even in modal */
.cursor, .cursor-follower {
    z-index: 2147483647 !important; /* Maximum z-index */
}

/* Cursor visibility in modal - keep normal style */
body.modal-open .cursor,
body:has(.modal.active) .cursor {
    z-index: 2147483647 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.modal-open .cursor-follower,
body:has(.modal.active) .cursor-follower {
    z-index: 2147483647 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== Navigation ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 3rem; mix-blend-mode: difference;
}
.nav-brand { font-size: 1.5rem; font-weight: 800; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-link { 
    font-size: 0.875rem; font-weight: 500; text-transform: uppercase; 
    letter-spacing: 0.1em; position: relative; 
}
.nav-link::after { 
    content: ''; position: absolute; bottom: -4px; left: 0; 
    width: 0; height: 1px; background: #fff; transition: width 0.3s; 
}
.nav-link:hover::after { width: 100%; }
.nav-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 100000; }
.nav-menu-btn span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }
.mobile-menu { 
    position: fixed; inset: 0; background: var(--color-bg); z-index: 99998;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; transform: translateX(100%); transition: transform 0.5s var(--ease-out);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-link { font-size: 2rem; font-weight: 700; }

/* ===== Hero ===== */
#hero { position: relative; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.shape { position: absolute; opacity: 0.08; border: 1px solid rgba(255,255,255,0.2); }
.shape-1 { width: 400px; height: 400px; top: 5%; left: -5%; animation: floatShape1 10s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; bottom: 15%; right: 10%; border-radius: 50%; animation: floatShape2 12s ease-in-out infinite; }
.shape-3 { width: 200px; height: 200px; top: 50%; right: 25%; transform: rotate(45deg); animation: floatShape3 8s ease-in-out infinite; }
@keyframes floatShape1 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(30px, -30px) rotate(5deg); } }
@keyframes floatShape2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20px, -40px) scale(1.1); } }
@keyframes floatShape3 { 0%, 100% { transform: translate(0, 0) rotate(45deg); } 50% { transform: translate(20px, -20px) rotate(55deg); } }

.hero-content { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.hero-tag { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; opacity: 0; animation: fadeIn 0.8s 0.5s forwards; }
.tag-line { width: 50px; height: 1px; background: #fff; }
.tag-text { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-text-muted); }
.hero-title { font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.title-line { display: block; will-change: transform, opacity; }
.title-line.highlight { color: transparent; -webkit-text-stroke: 2px #fff; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
.hero-desc { max-width: 450px; font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 2rem; will-change: transform, opacity; }

/* Hero Buttons */
.hero-buttons { display: flex; align-items: center; gap: 1rem; will-change: transform, opacity; }

.social-btn {
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: #fff; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.social-btn::before {
    content: ''; position: absolute; inset: 0; background: #fff;
    transform: scale(0); border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-btn svg { width: 20px; height: 20px; position: relative; z-index: 1; transition: color 0.3s; }
.social-btn:hover { transform: scale(1.1); border-color: #fff; }
.social-btn:hover::before { transform: scale(1); }
.social-btn:hover svg { color: #000; }

/* Button Primary with Zoom Invert Effect */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1rem 2rem; background: #fff; color: #000;
    font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: #000; transform: scale(0); border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover { transform: scale(1.05); color: #fff; }
.btn-primary:hover::before { transform: scale(1); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; transition: color 0.3s; }
.btn-arrow { width: 18px; height: 18px; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow { transform: translate(3px, -3px); }

.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0; animation: fadeIn 0.8s 1.2s forwards; z-index: 10; }
.scroll-hint span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-text-muted); }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, #fff, transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 
    0% { transform: scaleY(0); transform-origin: top; } 
    50% { transform: scaleY(1); transform-origin: top; } 
    50.1% { transform: scaleY(1); transform-origin: bottom; } 
    100% { transform: scaleY(0); transform-origin: bottom; } 
}

/* ===== Section Header ===== */
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.section-number { font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }

/* ===== About Section - Premium Design ===== */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 5rem; 
    align-items: center; 
}

.about-image-wrap { 
    position: relative; 
    perspective: 1000px;
}

.about-image-frame { 
    position: relative; 
    display: inline-block;
}

.about-image { 
    position: relative; 
    width: 380px; 
    aspect-ratio: 4/5; 
    border-radius: 20px; 
    overflow: hidden; 
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.about-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrap:hover .about-image img { 
    transform: scale(1.08); 
}

/* Animated border frame */
.image-shadow-frame {
    position: absolute;
    inset: -15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 28px;
    z-index: 1;
    pointer-events: none;
    animation: framePulse 3s ease-in-out infinite;
}

@keyframes framePulse {
    0%, 100% { 
        border-color: rgba(255,255,255,0.1);
        transform: scale(1);
    }
    50% { 
        border-color: rgba(255,255,255,0.3);
        transform: scale(1.02);
    }
}

/* Corner accents */
.image-shadow-frame::before,
.image-shadow-frame::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
}

.image-shadow-frame::before {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.image-shadow-frame::after {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Experience floating badge */
.experience-badge { 
    position: absolute; 
    bottom: 30px; 
    right: -40px;
    padding: 1rem 1.5rem; 
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    color: #000;
    border-radius: 16px;
    font-size: 0.875rem; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.1em; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 10;
}

.experience-badge span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Ensure all sections have proper spacing for animations */
.section {
    overflow-x: hidden;
}

/* Smooth initial state for all animated elements */
.hero-title .title-line,
.hero-desc,
.hero-buttons,
.about-content h3,
.about-content p,
.about-stats .stat-item,
.service-card,
.work-item,
.work-content,
.skill-orbit-item,
.tech-item,
.testimonial-nav,
.contact-text,
.contact-item {
    will-change: transform, opacity;
}

.about-heading { 
    font-size: clamp(1.75rem, 3vw, 2.5rem); 
    font-weight: 800; 
    line-height: 1.2; 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.02em;
    will-change: transform, opacity;
}
.about-text { 
    font-size: 1.1rem; 
    color: var(--color-text-muted); 
    margin-bottom: 1.25rem; 
    line-height: 1.8;
    will-change: transform, opacity;
}
.about-stats { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.stat-item { 
    text-align: center; 
    padding: 1.25rem 1.5rem; 
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    min-width: 100px;
}
.stat-item:hover { 
    transform: translateY(-8px); 
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.stat-number { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 800; 
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}
.stat-label { 
    font-size: 0.75rem; 
    color: var(--color-text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
}

/* ===== Slide In Animation Classes ===== */
/* Initial state for animated elements */
[data-animate] {
    opacity: 0;
    will-change: transform, opacity;
}

/* Slide Up - from bottom */
[data-animate="up"] {
    transform: translateY(60px);
}

/* Slide Down - from top */
[data-animate="down"] {
    transform: translateY(-60px);
}

/* Slide Left - from right */
[data-animate="left"] {
    transform: translateX(60px);
}

/* Slide Right - from left */
[data-animate="right"] {
    transform: translateX(-60px);
}

/* Scale Up */
[data-animate="scale"] {
    transform: scale(0.8);
}

/* Rotate In */
[data-animate="rotate"] {
    transform: rotate(-10deg) scale(0.9);
}

/* Blur In */
[data-animate="blur"] {
    filter: blur(10px);
    transform: translateY(30px);
}

/* Simple Fade In - no transform */
[data-animate="fade"] {
    opacity: 0;
    transform: none;
}

/* Visible state - animated */
[data-animate].is-visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) rotate(0) !important;
    filter: blur(0) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Stagger delays for children */
[data-animate].delay-100 { transition-delay: 0.1s !important; }
[data-animate].delay-200 { transition-delay: 0.2s !important; }
[data-animate].delay-300 { transition-delay: 0.3s !important; }
[data-animate].delay-400 { transition-delay: 0.4s !important; }
[data-animate].delay-500 { transition-delay: 0.5s !important; }

/* ===== Services Section (New) ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { 
    padding: 2.5rem; background: var(--color-surface);
    border-radius: 20px; border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transform: translateX(-100%); transition: transform 0.6s;
}
.service-card:hover::before { transform: translateX(100%); }
.service-card:hover { 
    transform: translateY(-10px); 
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.service-card.featured { 
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border-color: rgba(255,255,255,0.2);
}
.service-number { 
    font-size: 0.875rem; font-weight: 700; color: var(--color-text-muted);
    margin-bottom: 1.5rem; opacity: 0.5;
}
.service-icon { width: 56px; height: 56px; margin-bottom: 1.5rem; color: #fff; }
.service-icon svg { width: 100%; height: 100%; }
.service-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.service-desc { color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.service-list li { 
    font-size: 0.9rem; color: var(--color-text-muted); 
    padding: 0.4rem 0; border-bottom: 1px solid var(--color-border);
}
.service-list li:last-child { border-bottom: none; }

/* ===== Work Section - New Design ===== */
.work-showcase { display: flex; flex-direction: column; gap: 4rem; }
.work-item { 
    display: grid; grid-template-columns: 1.2fr 0.8fr; 
    gap: 3rem; align-items: center; cursor: pointer;
}
.work-item.reverse { grid-template-columns: 0.8fr 1.2fr; }
.work-item.reverse .work-image-wrap { order: 2; }
.work-item.reverse .work-content { order: 1; text-align: right; }

.work-image-wrap { 
    position: relative; border-radius: 16px; overflow: hidden;
    aspect-ratio: 16/10; 
}
.work-image-wrap img { 
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-item:hover .work-image-wrap img { transform: scale(1.05); }
.work-overlay { 
    position: absolute; inset: 0; 
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, transparent 60%);
    opacity: 0.6; transition: opacity 0.3s;
}
.work-item:hover .work-overlay { opacity: 0.8; }

.work-content { padding: 1rem 0; }
.work-category { 
    font-size: 0.75rem; text-transform: uppercase; 
    letter-spacing: 0.15em; color: var(--color-text-muted);
    display: block; margin-bottom: 0.75rem;
}
.work-title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.work-desc { color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.work-link { 
    font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; position: relative; display: inline-block;
}
.work-link::after { 
    content: ''; position: absolute; bottom: -4px; left: 0; 
    width: 0; height: 1px; background: #fff; transition: width 0.3s;
}
.work-item:hover .work-link::after { width: 100%; }

/* ===== Skills Section - Orbital Design ===== */
.skills-orbit { 
    display: flex; justify-content: center; gap: 3rem; 
    margin-bottom: 4rem; flex-wrap: wrap;
}
.skill-orbit-item { 
    text-align: center; transition: transform 0.3s;
}
.skill-circle { 
    width: 140px; height: 140px; border-radius: 50%;
    background: conic-gradient(#fff var(--percent), var(--color-border) 0);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; position: relative;
}
.skill-circle::before {
    content: ''; position: absolute; inset: 8px;
    background: var(--color-bg); border-radius: 50%;
}
.skill-percent { 
    font-size: 1.5rem; font-weight: 700; position: relative; z-index: 1;
}
.skill-orbit-item h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.skill-orbit-item p { font-size: 0.875rem; color: var(--color-text-muted); }

.tech-stack { 
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.tech-item { 
    padding: 0.75rem 1.5rem; background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: 100px;
    font-size: 0.875rem; font-weight: 500;
    transition: all 0.3s;
}
.tech-item:hover { 
    background: #fff; color: #000; 
    transform: translateY(-3px);
}

/* ===== Testimonials Section ===== */
.testimonials-container { max-width: 800px; margin: 0 auto; position: relative; }
.testimonial-card { 
    padding: 3rem; background: var(--color-surface);
    border-radius: 24px; border: 1px solid var(--color-border);
    display: none;
    opacity: 0;
    transform: translateX(50px);
}
.testimonial-card.active { 
    display: block; 
    opacity: 1;
    transform: translateX(0);
}
.quote-icon { 
    font-size: 4rem; line-height: 1; color: rgba(255,255,255,0.1);
    margin-bottom: 1rem; font-family: Georgia, serif;
}
.testimonial-text { 
    font-size: 1.25rem; line-height: 1.8; margin-bottom: 2rem;
    font-style: italic; color: var(--color-text);
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-info h4 { font-weight: 600; margin-bottom: 0.25rem; }
.author-info span { font-size: 0.875rem; color: var(--color-text-muted); }
.testimonial-nav { 
    display: flex; justify-content: center; align-items: center;
    gap: 2rem; margin-top: 2rem;
}
.testimonial-prev, .testimonial-next { 
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--color-surface); border: 1px solid var(--color-border);
    color: #fff; cursor: pointer; transition: all 0.3s;
}
.testimonial-prev:hover, .testimonial-next:hover { 
    background: #fff; color: #000; border-color: #fff;
}
.testimonial-dots { display: flex; gap: 0.75rem; }
.testimonial-dots .dot { 
    width: 8px; height: 8px; border-radius: 50%; 
    background: var(--color-border); cursor: pointer; transition: all 0.3s;
}
.testimonial-dots .dot.active { background: #fff; transform: scale(1.3); }

/* ===== Contact Section ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-heading { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.contact-desc { color: var(--color-text-muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-item { display: flex; flex-direction: column; }
.info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.info-value { font-weight: 600; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { 
    display: flex; align-items: center; gap: 1.25rem;
    padding: 1.25rem; background: var(--color-surface);
    border-radius: 12px; border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-item:hover { 
    border-color: rgba(255,255,255,0.15); 
    transform: translateX(10px); 
    background: var(--color-surface-hover);
}
.contact-icon { 
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border-radius: 12px;
    font-weight: 700; font-size: 1.1rem; transition: all 0.3s;
}
.contact-item:hover .contact-icon { background: #fff; color: #000; }
.contact-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.contact-value { font-weight: 600; font-size: 1.05rem; }

/* ===== Modal ===== */
.modal { 
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; opacity: 0; visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal.active {
    cursor: none; /* Only hide default cursor when modal is active */
}
.modal.active { opacity: 1; visibility: visible; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px); }
.modal-content { 
    position: relative; 
    width: 100%; 
    max-width: 700px; 
    max-height: 90vh;
    background: var(--color-surface); 
    border-radius: 20px; 
    overflow: hidden;
    transform: scale(0.8) rotateX(-10deg); 
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}
.modal.active .modal-content { transform: scale(1) rotateX(0); opacity: 1; }
.modal-close { 
    position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px;
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; color: #fff; font-size: 1.25rem; cursor: pointer; z-index: 10;
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #fff; color: #000; transform: rotate(90deg); }
.modal-image { 
    height: 220px;
    overflow: hidden; 
    flex-shrink: 0;
}
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { 
    padding: 1.5rem 2rem 2rem; 
    flex: 1;
}
.modal-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-text-muted); }
.modal-title { font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0 0.75rem; }
.modal-desc { 
    color: var(--color-text-muted); 
    line-height: 1.6; 
    margin-bottom: 1.25rem; 
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modal-details { 
    display: flex; 
    gap: 2rem; 
    padding-top: 1.25rem; 
    border-top: 1px solid var(--color-border); 
}
.detail-item { display: flex; flex-direction: column; gap: 0.25rem; }
.detail-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.detail-value { font-weight: 600; font-size: 0.95rem; }

/* Body scroll lock when modal open */
/* Modal scroll lock handled by JS via inline styles */

/* ===== Footer ===== */
.footer { height: auto; min-height: auto; scroll-snap-align: none; padding: 1.5rem 0; border-top: 1px solid var(--color-border); }
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer span { font-size: 0.875rem; color: var(--color-text-muted); }
.back-to-top { 
    width: 44px; height: 44px; background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: 50%;
    color: #fff; cursor: pointer; transition: all 0.3s; font-size: 1.2rem;
}
.back-to-top:hover { background: #fff; color: #000; transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-wrap { order: -1; text-align: center; }
    .about-image { margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr; }
    .work-item, .work-item.reverse { grid-template-columns: 1fr; }
    .work-item.reverse .work-image-wrap, .work-item.reverse .work-content { order: unset; text-align: left; }
    .skills-orbit { gap: 2rem; }
    .skill-circle { width: 120px; height: 120px; }
}

@media (max-width: 768px) {
    html, body {
        scroll-snap-type: none;
        overflow-y: auto;
    }
    .section, .section-full, .section-auto {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    body { cursor: auto; }
    .cursor, .cursor-follower, .svg-bg-effects { display: none !important; }
    .nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-menu-btn { display: flex; }
    .hero-title { font-size: clamp(2rem, 10vw, 3.5rem); }
    .hero-buttons { flex-wrap: wrap; }
    .skill-circle { width: 100px; height: 100px; }
    .skill-percent { font-size: 1.25rem; }
    .testimonial-card { padding: 2rem; }
    .testimonial-text { font-size: 1.1rem; }
    .modal { padding: 1rem; }
    .modal-info { padding: 1.5rem; }
    .modal-title { font-size: 1.5rem; }
    .modal-details { flex-wrap: wrap; gap: 1.5rem; }
    .section { min-height: auto; padding: 5rem 0; }
    .work-title { font-size: 1.5rem; }
    .experience-badge { right: 10%; }
    .image-shadow-frame { inset: 15px -15px -15px 15px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .section, .section-full, .section-auto {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .about-image { width: 280px; }
    .image-shadow-frame { inset: 15px -15px -15px 15px; }
    .about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .stat-item { padding: 0.75rem; }
    .skill-circle { width: 80px; height: 80px; }
    .skill-percent { font-size: 1rem; }
    .tech-item { padding: 0.5rem 1rem; font-size: 0.8rem; }
}
