/* ==================== ROOT & VARIABLES ==================== */
:root {
    --primary: #00f5d4;
    --primary-dark: #00c4a7;
    --secondary: #7b2cbf;
    --accent: #f72585;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-2: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    --gradient-3: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow-glow: 0 0 40px rgba(0, 245, 212, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(0, 245, 212, 0.25);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fluid typography */
    --fs-xs: clamp(0.75rem, 2vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 2.5vw, 1rem);
    --fs-md: clamp(1rem, 3vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 3.5vw, 1.5rem);
    --fs-xl: clamp(1.5rem, 4vw, 2rem);
    --fs-2xl: clamp(2rem, 5vw, 3rem);
    --fs-3xl: clamp(2.5rem, 7vw, 4.5rem);
    --fs-hero: clamp(2.5rem, 8vw, 5.5rem);
    
    /* Spacing */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 2vw, 1rem);
    --space-md: clamp(1rem, 3vw, 1.5rem);
    --space-lg: clamp(1.5rem, 4vw, 2.5rem);
    --space-xl: clamp(2rem, 5vw, 4rem);
    --space-2xl: clamp(3rem, 8vw, 6rem);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    perspective: 1px;
    overflow-x: hidden;
    touch-action: manipulation;
}

/* Prevent zoom on input focus (iOS) */
input, select, textarea, button {
    font-size: 16px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loaded {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Custom cursor is now handled via CSS cursor property */
@media (hover: hover) and (pointer: fine) {
    /* Cursor styles applied globally above */
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

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

button {
    border: none;
    background: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* ==================== INTRO SCREEN ==================== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    pointer-events: none;
}

/* Intro Background */
.intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.cyber-lines span {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
    animation: cyber-line 3s ease-in-out infinite;
}

.cyber-lines span:nth-child(1) { top: 10%; width: 30%; left: 5%; animation-delay: 0s; }
.cyber-lines span:nth-child(2) { top: 25%; width: 20%; right: 10%; animation-delay: 0.3s; }
.cyber-lines span:nth-child(3) { top: 40%; width: 40%; left: 20%; animation-delay: 0.6s; }
.cyber-lines span:nth-child(4) { top: 55%; width: 25%; right: 5%; animation-delay: 0.9s; }
.cyber-lines span:nth-child(5) { top: 70%; width: 35%; left: 10%; animation-delay: 1.2s; }
.cyber-lines span:nth-child(6) { top: 85%; width: 20%; right: 15%; animation-delay: 1.5s; }
.cyber-lines span:nth-child(7) { top: 15%; width: 15%; right: 30%; animation-delay: 1.8s; }
.cyber-lines span:nth-child(8) { top: 45%; width: 30%; left: 50%; animation-delay: 2.1s; }
.cyber-lines span:nth-child(9) { top: 75%; width: 25%; right: 25%; animation-delay: 2.4s; }
.cyber-lines span:nth-child(10) { top: 90%; width: 40%; left: 30%; animation-delay: 2.7s; }

@keyframes cyber-line {
    0%, 100% { opacity: 0.1; transform: scaleX(0.5); }
    50% { opacity: 0.5; transform: scaleX(1); }
}

/* Data Streams */
.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    animation: data-stream 4s linear infinite;
}

.stream-1 { left: 20%; animation-delay: 0s; }
.stream-2 { left: 50%; animation-delay: 1.5s; }
.stream-3 { left: 80%; animation-delay: 3s; }

@keyframes data-stream {
    0% { top: -100px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Intro Content */
.intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    isolation: isolate;
}

/* 3D Logo Container */
.logo-3d-container {
    width: 300px;
    height: 150px;
    perspective: 1000px;
    cursor: grab;
    isolation: isolate;
}

.logo-3d-container:active {
    cursor: grabbing;
}

.logo-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    animation: logo-rotate 10s linear infinite;
}

.logo-3d.dragging {
    animation: none;
}

@keyframes logo-rotate {
    0% { transform: rotateY(0deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

.logo-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    backface-visibility: hidden;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.logo-face.front { transform: translateZ(75px); }
.logo-face.back { transform: rotateY(180deg) translateZ(75px); }
.logo-face.right { transform: rotateY(90deg) translateZ(150px); }
.logo-face.left { transform: rotateY(-90deg) translateZ(150px); }
.logo-face.top { transform: rotateX(90deg) translateZ(75px); }
.logo-face.bottom { transform: rotateX(-90deg) translateZ(75px); }

/* Make sides narrower */
.logo-face.right,
.logo-face.left {
    width: 150px;
    left: 50%;
    margin-left: -75px;
}

.logo-face.top,
.logo-face.bottom {
    height: 150px;
    top: 50%;
    margin-top: -75px;
}

.intro-tagline {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    animation: tagline-glow 2s ease-in-out infinite alternate;
}

@keyframes tagline-glow {
    0% { opacity: 0.5; text-shadow: none; }
    100% { opacity: 1; text-shadow: 0 0 10px rgba(0, 245, 212, 0.3); }
}

/* Enter Button */
.intro-enter {
    position: relative;
    padding: var(--space-sm) var(--space-xl);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glitch {
    position: relative;
    display: inline-block;
}

.btn-glitch::before,
.btn-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.intro-enter:hover .btn-glitch::before {
    animation: glitch-btn-1 0.3s infinite;
    color: var(--accent);
    opacity: 0.8;
}

.intro-enter:hover .btn-glitch::after {
    animation: glitch-btn-2 0.3s infinite;
    color: var(--secondary);
    opacity: 0.8;
}

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

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

.btn-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    pointer-events: none;
}

.btn-border::before,
.btn-border::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-border::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.btn-border::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.intro-enter:hover .btn-border::before {
    top: -8px;
    left: -8px;
}

.intro-enter:hover .btn-border::after {
    bottom: -8px;
    right: -8px;
}

.intro-enter:hover {
    text-shadow: 0 0 20px var(--primary);
    transform: scale(1.05);
}

/* Scroll Down Hint */
.scroll-down-hint {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    font-size: var(--fs-lg);
    color: var(--primary);
    text-align: center;
    animation: bounce-down 1.5s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(0, 245, 212, 0.8);
    letter-spacing: 3px;
    z-index: 9999;
    font-weight: 600;
}

@keyframes bounce-down {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(10px); 
        opacity: 1;
    }
}

.intro-hint {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    opacity: 0.5;
    animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Intro Particles */
.intro-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 245, 212, 0.5), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(247, 37, 133, 0.5), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(123, 44, 191, 0.5), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(0, 245, 212, 0.5), transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(247, 37, 133, 0.3), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(123, 44, 191, 0.3), transparent),
        radial-gradient(1px 1px at 30% 90%, rgba(0, 245, 212, 0.3), transparent),
        radial-gradient(1px 1px at 70% 10%, rgba(247, 37, 133, 0.3), transparent);
    background-size: 100% 100%;
    animation: particles-float 20s linear infinite;
}

@keyframes particles-float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(5deg); }
}

/* Mobile Intro */
@media (max-width: 768px) {
    .logo-3d-container {
        width: 200px;
        height: 100px;
    }
    
    .logo-face.front { transform: translateZ(50px); }
    .logo-face.back { transform: rotateY(180deg) translateZ(50px); }
    .logo-face.right { transform: rotateY(90deg) translateZ(100px); width: 100px; margin-left: -50px; }
    .logo-face.left { transform: rotateY(-90deg) translateZ(100px); width: 100px; margin-left: -50px; }
    .logo-face.top { transform: rotateX(90deg) translateZ(50px); height: 100px; margin-top: -50px; }
    .logo-face.bottom { transform: rotateX(-90deg) translateZ(50px); height: 100px; margin-top: -50px; }
    
    .intro-tagline {
        font-size: var(--fs-sm);
        letter-spacing: 2px;
    }
}

/* ==================== LOADING SCREEN ==================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xl);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 245, 212, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 245, 212, 0.8)); }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto var(--space-sm);
}

.loader-progress {
    width: 0;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loader-text {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ==================== 3D SCENE BACKGROUND ==================== */
.scene-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    overflow: hidden;
}

/* 3D Floating Cubes */
.floating-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: cube-float 20s ease-in-out infinite;
}

.cube-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.cube-2 {
    top: 60%;
    right: 15%;
    width: 40px;
    height: 40px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.cube-3 {
    bottom: 20%;
    left: 20%;
    width: 30px;
    height: 30px;
    animation-delay: -14s;
    animation-duration: 18s;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 245, 212, 0.3);
    background: rgba(0, 245, 212, 0.05);
    backdrop-filter: blur(2px);
}

.cube-face.front { transform: translateZ(30px); }
.cube-face.back { transform: rotateY(180deg) translateZ(30px); }
.cube-face.right { transform: rotateY(90deg) translateZ(30px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(30px); }
.cube-face.top { transform: rotateX(90deg) translateZ(30px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(30px); }

.cube-2 .cube-face.front,
.cube-2 .cube-face.back,
.cube-2 .cube-face.right,
.cube-2 .cube-face.left,
.cube-2 .cube-face.top,
.cube-2 .cube-face.bottom { transform: translateZ(20px); }

.cube-2 .cube-face.back { transform: rotateY(180deg) translateZ(20px); }
.cube-2 .cube-face.right { transform: rotateY(90deg) translateZ(20px); }
.cube-2 .cube-face.left { transform: rotateY(-90deg) translateZ(20px); }
.cube-2 .cube-face.top { transform: rotateX(90deg) translateZ(20px); }
.cube-2 .cube-face.bottom { transform: rotateX(-90deg) translateZ(20px); }

.cube-2 .cube-face {
    border-color: rgba(247, 37, 133, 0.3);
    background: rgba(247, 37, 133, 0.05);
}

@keyframes cube-float {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0) rotateZ(0);
    }
    25% {
        transform: translateY(-30px) rotateX(90deg) rotateY(90deg) rotateZ(45deg);
    }
    50% {
        transform: translateY(0) rotateX(180deg) rotateY(180deg) rotateZ(90deg);
    }
    75% {
        transform: translateY(30px) rotateX(270deg) rotateY(270deg) rotateZ(135deg);
    }
}

/* 3D Floating Pyramid */
.floating-pyramid {
    position: absolute;
    top: 30%;
    right: 10%;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: pyramid-float 15s ease-in-out infinite;
}

.pyramid-face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid rgba(123, 44, 191, 0.2);
    transform-origin: 50% 100%;
}

.pyramid-face.face-1 { transform: rotateY(0deg) rotateX(30deg) translateZ(15px); }
.pyramid-face.face-2 { transform: rotateY(90deg) rotateX(30deg) translateZ(15px); }
.pyramid-face.face-3 { transform: rotateY(180deg) rotateX(30deg) translateZ(15px); }
.pyramid-face.face-4 { transform: rotateY(270deg) rotateX(30deg) translateZ(15px); }

@keyframes pyramid-float {
    0%, 100% {
        transform: translateY(0) rotateY(0);
    }
    50% {
        transform: translateY(-40px) rotateY(180deg);
    }
}

/* 3D Floating Rings */
.floating-ring {
    position: absolute;
    border: 2px solid rgba(0, 245, 212, 0.2);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.ring-1 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 5%;
    animation: ring-rotate 12s linear infinite;
}

.ring-2 {
    width: 70px;
    height: 70px;
    bottom: 30%;
    right: 8%;
    border-color: rgba(247, 37, 133, 0.2);
    animation: ring-rotate 8s linear infinite reverse;
}

@keyframes ring-rotate {
    0% { transform: rotateX(70deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateZ(360deg); }
}

/* 3D Floating Sphere */
.floating-sphere {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 70%;
    left: 60%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 245, 212, 0.3), transparent 70%);
    box-shadow: 
        inset -10px -10px 30px rgba(0, 0, 0, 0.3),
        inset 10px 10px 30px rgba(0, 245, 212, 0.1),
        0 0 30px rgba(0, 245, 212, 0.2);
    animation: sphere-float 10s ease-in-out infinite;
}

@keyframes sphere-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* Hide 3D elements on mobile for performance */
@media (max-width: 768px) {
    .scene-3d {
        display: none;
    }
}

/* ==================== CUSTOM CURSOR (Desktop Only) ==================== */
.cursor,
.cursor-follower {
    display: none;
}

/* Custom cursor using CSS - cannot be blocked by z-index */
@media (hover: hover) and (pointer: fine) {
    /* Create cursor as SVG data URI */
    * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%2300f5d4'/%3E%3C/svg%3E") 6 6, auto !important;
    }
    
    a, button, [role="button"], .btn, .skill-card, .contact-link, 
    .social-link, .social-icon, .magnetic, .intro-enter, 
    .logo-3d-container, .hamburger, .nav-link, .back-to-top {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23f72585'/%3E%3C/svg%3E") 10 10, pointer !important;
    }
}

/* ==================== PARTICLE CANVAS ==================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* ==================== BACKGROUND ANIMATION ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@media (max-width: 768px) {
    .grid-lines {
        background-size: 40px 40px;
    }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.floating-shapes span {
    position: absolute;
    display: block;
    background: var(--gradient-1);
    opacity: 0.05;
    animation: float 25s infinite;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    will-change: transform;
}

.floating-shapes span:nth-child(1) {
    width: min(300px, 40vw);
    height: min(300px, 40vw);
    top: 10%;
    left: 10%;
}

.floating-shapes span:nth-child(2) {
    width: min(200px, 30vw);
    height: min(200px, 30vw);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
    background: var(--gradient-2);
}

.floating-shapes span:nth-child(3) {
    width: min(150px, 25vw);
    height: min(150px, 25vw);
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.floating-shapes span:nth-child(4) {
    width: min(250px, 35vw);
    height: min(250px, 35vw);
    top: 40%;
    left: 50%;
    animation-delay: -15s;
    background: var(--gradient-2);
}

.floating-shapes span:nth-child(5) {
    width: min(180px, 28vw);
    height: min(180px, 28vw);
    bottom: 10%;
    right: 30%;
    animation-delay: -20s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-30px, 100px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(80px, 50px) rotate(270deg) scale(1.05);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .floating-shapes span,
    .grid-lines,
    .loader-progress,
    .floating-cube,
    .floating-pyramid,
    .floating-ring,
    .floating-sphere,
    .text-3d,
    .orbit-ring,
    .hologram-effect::before {
        animation: none;
    }
    
    .scene-3d {
        display: none;
    }
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-sm) 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: var(--space-xs) 5%;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo .logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-lg);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    margin: -10px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(80px + var(--space-xl)) 5% var(--space-xl);
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    gap: var(--space-xl);
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.greeting {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.greeting .line {
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.greeting .text {
    font-size: var(--fs-sm);
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.name {
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    perspective: 500px;
}

.first-name {
    display: block;
    color: var(--text-primary);
}

/* 3D Text Effect */
.text-3d {
    display: inline-block;
    transform-style: preserve-3d;
    animation: text-3d-float 6s ease-in-out infinite;
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
}

.text-3d-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 245, 212, 0.3))
            drop-shadow(0 4px 8px rgba(247, 37, 133, 0.2));
}

@keyframes text-3d-float {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    25% {
        transform: translateY(-5px) rotateX(2deg) rotateY(-2deg);
    }
    50% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    75% {
        transform: translateY(-5px) rotateX(-2deg) rotateY(2deg);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s infinite;
    color: var(--primary);
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-2 0.3s infinite;
    color: var(--accent);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(25% 0 58% 0); transform: translate(2px, -2px); }
    20% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(40% 0 61% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(92% 0 1% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(43% 0 1% 0); transform: translate(2px, -2px); }
}

.last-name {
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-md);
    font-family: 'JetBrains Mono', monospace;
}

.static-text {
    color: var(--text-secondary);
}

.dynamic-text {
    color: var(--accent);
    font-weight: 600;
}

.cursor-blink {
    color: var(--primary);
    animation: blink 0.8s infinite;
}

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

.tagline {
    font-size: var(--fs-md);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Social Links */
.hero-socials {
    display: none;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icon:hover,
.social-icon:active {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icon:hover i,
.social-icon:active i {
    color: var(--bg-dark);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 50px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-dark);
}

.btn-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.btn-primary:hover .btn-glow,
.btn-primary:active .btn-glow {
    top: -100%;
    left: 100%;
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.3);
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

.btn-secondary {
    border: 2px solid var(--text-muted);
    color: var(--text-primary);
    background: transparent;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 245, 212, 0.3);
    transform: scale(0);
    pointer-events: none;
}

.btn-secondary:hover,
.btn-secondary:active {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
    flex: 0 0 auto;
    perspective: 1000px;
}

.image-container {
    position: relative;
    width: clamp(250px, 35vw, 350px);
    height: clamp(250px, 35vw, 350px);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.image-container:hover {
    transform: rotateY(5deg) rotateX(-5deg);
}

/* Hologram Effect */
.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
    animation: morphing 8s ease-in-out infinite;
}

.hologram-effect::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 245, 212, 0.03) 2px,
        rgba(0, 245, 212, 0.03) 4px
    );
    animation: hologram-scan 4s linear infinite;
}

.hologram-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 245, 212, 0.1) 0%,
        transparent 50%,
        rgba(247, 37, 133, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .hologram-effect::after {
    opacity: 1;
}

@keyframes hologram-scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(33.33%); }
}

/* 3D Orbit Ring around Profile */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    width: 120%;
    height: 120%;
    border: 2px solid rgba(0, 245, 212, 0.3);
    border-radius: 50%;
    z-index: 4;
    animation: orbit-rotate 8s linear infinite;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
}

@keyframes orbit-rotate {
    0% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); }
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    z-index: 2;
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 8s ease-in-out infinite;
    animation-delay: 0.5s;
    opacity: 0.5;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.2) 0%, transparent 70%);
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

/* Image Rings */
.image-rings span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 50%;
    animation: ring-pulse 3s ease-out infinite;
}

.image-rings span:nth-child(1) {
    width: 110%;
    height: 110%;
    animation-delay: 0s;
}

.image-rings span:nth-child(2) {
    width: 130%;
    height: 130%;
    animation-delay: 0.5s;
}

.image-rings span:nth-child(3) {
    width: 150%;
    height: 150%;
    animation-delay: 1s;
}

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

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

.floating-badge,
.floating-badge-2 {
    position: absolute;
    width: clamp(45px, 8vw, 60px);
    height: clamp(45px, 8vw, 60px);
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: bounce 2s ease-in-out infinite;
}

.floating-badge {
    bottom: 20px;
    right: -20px;
}

.floating-badge-2 {
    top: 20px;
    left: -20px;
    background: var(--gradient-1);
    animation-delay: 0.5s;
}

.floating-badge i,
.floating-badge-2 i {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: white;
}

.pulse {
    animation: bounce 2s ease-in-out infinite, pulse-badge 2s ease-in-out infinite;
}

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

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(247, 37, 133, 0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease 1.5s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

.scroll-indicator span {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bounce-arrow {
    font-size: 0.8rem;
    color: var(--primary);
    animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* ==================== SECTIONS COMMON ==================== */
section {
    padding: var(--space-2xl) 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
    color: var(--primary);
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
}

.section-tag.closing {
    text-align: center;
    margin-top: var(--space-xl);
    margin-bottom: 0;
}

.section-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.tech-frame {
    position: relative;
    padding: 20px;
}

.tech-frame img {
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary);
    border-style: solid;
    transition: var(--transition);
}

.tech-frame:hover .frame-corner {
    width: 40px;
    height: 40px;
}

.frame-corner.top-left { top: 0; left: 0; border-width: 3px 0 0 3px; }
.frame-corner.top-right { top: 0; right: 0; border-width: 3px 3px 0 0; }
.frame-corner.bottom-left { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.frame-corner.bottom-right { bottom: 0; right: 0; border-width: 0 3px 3px 0; }

.frame-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-frame:hover .frame-glow {
    opacity: 1;
}

.about-text h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    font-size: var(--fs-sm);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
    padding: var(--space-sm);
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-xs);
    background: rgba(0, 245, 212, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    color: var(--primary);
    font-size: 1rem;
}

.stat-number {
    font-size: var(--fs-xl);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== SKILLS SECTION ==================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

/* 3D Card Container */
.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.4s ease;
}

.card-3d:hover .card-3d-inner {
    transform: translateY(-5px);
}

/* 3D Card Glow Effect */
.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-3d:hover .card-glow {
    opacity: 0.4;
}

/* 3D Icon Effect */
.icon-3d {
    transition: transform 0.4s ease;
}

.card-3d:hover .icon-3d {
    transform: scale(1.1);
}

.skill-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 
        0 0 30px rgba(0, 245, 212, 0.2),
        0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

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

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover .card-shine {
    left: 100%;
}

.skill-icon {
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    background: rgba(0, 245, 212, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.skill-card:hover .skill-icon {
    background: var(--gradient-1);
    transform: scale(1.1) rotate(5deg);
}

.skill-icon i {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--primary);
    transition: var(--transition);
}

.skill-card:hover .skill-icon i {
    color: var(--bg-dark);
}

.skill-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.skill-tags span {
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 500;
    transition: var(--transition);
}

.tag-animate:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.skill-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: var(--bg-darker);
}

.projects-container {
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(0, 245, 212, 0.1);
}

.project-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-icon-large {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon-large {
    transform: scale(1.1);
    opacity: 0.5;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-link i {
    font-size: 2rem;
}

.project-content {
    padding: var(--space-lg);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.project-tags .tag {
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 500;
}

.project-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.algorithm-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-left: 3px solid var(--primary);
}

.algo-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.algo-item:last-child {
    margin-bottom: 0;
}

.algo-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.algo-icon i {
    color: var(--primary);
    font-size: 1rem;
}

.algo-text h4 {
    font-size: var(--fs-sm);
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.algo-text p {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.project-tech span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: var(--fs-xs);
}

.project-tech i {
    color: var(--primary);
}

.project-btn {
    width: 100%;
    justify-content: center;
}

/* Projects Mobile */
@media (max-width: 768px) {
    .project-image {
        height: 180px;
    }
    
    .project-icon-large {
        font-size: 3.5rem;
    }
    
    .algo-item {
        flex-direction: column;
    }
    
    .algo-icon {
        width: 35px;
        height: 35px;
    }
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    font-size: var(--fs-sm);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-link:hover,
.contact-link:active {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.link-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-link:hover .link-icon,
.contact-link:active .link-icon {
    background: var(--gradient-1);
}

.link-icon i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);
}

.contact-link:hover .link-icon i,
.contact-link:active .link-icon i {
    color: var(--bg-dark);
}

.link-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.link-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.link-value {
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-arrow {
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-link:hover .link-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* Terminal */
.terminal {
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: #2a2a3e;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27ca40; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.terminal-body {
    padding: var(--space-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
    line-height: 1.8;
}

.terminal-body p {
    margin-bottom: 0.5rem;
}

.prompt { color: var(--primary); }
.command { color: var(--text-primary); }
.output {
    color: var(--text-secondary);
    padding-left: var(--space-sm);
}

.status-available {
    color: #27ca40;
}

.highlight-output {
    color: var(--accent);
}

.typing-cursor {
    animation: blink 0.8s infinite;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 245, 212, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:active {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.4);
}

.back-to-top i {
    color: var(--bg-dark);
    font-size: 1.2rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark);
    padding: var(--space-xl) 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-lg);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.social-link:hover,
.social-link:active {
    background: var(--gradient-1);
    transform: translateY(-5px);
}

.social-link i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover i,
.social-link:active i {
    color: var(--bg-dark);
}

.copyright {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-align: center;
}

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

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: var(--space-lg);
    }

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

    .greeting {
        justify-content: center;
    }

    .tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-socials {
        display: flex;
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-text {
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-links {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: var(--fs-lg);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .mobile-menu-overlay {
        display: block;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .hero {
        padding-top: calc(70px + var(--space-lg));
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
    }

    .image-container {
        width: clamp(200px, 60vw, 280px);
        height: clamp(200px, 60vw, 280px);
    }

    .scroll-indicator {
        display: none;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .stat {
        padding: var(--space-xs);
    }

    .stat-icon {
        width: 35px;
        height: 35px;
    }

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

    .terminal {
        margin: 0 -2%;
        border-radius: 10px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 480px) {
    section {
        padding: var(--space-xl) 4%;
    }

    .navbar {
        padding: var(--space-xs) 4%;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-link {
        padding: var(--space-sm);
    }

    .link-value {
        font-size: var(--fs-xs);
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Touch targets */
@media (pointer: coarse) {
    .btn,
    .nav-link,
    .social-link,
    .contact-link,
    .back-to-top {
        min-height: 48px;
        min-width: 48px;
    }
}
