/* ================================
   CSS Variables & Theme
   ================================ */
:root {
    /* Light Theme (Default) */
    --bg-primary: #fafbfc;
    --bg-secondary: #f0f2f5;
    --bg-tertiary: #e4e7eb;
    --text-primary: #0a0a0f;
    --text-secondary: #3d3d4e;
    --text-muted: #6b6b7b;
    --accent-primary: #7c3aed;
    --accent-secondary: #a78bfa;
    --accent-tertiary: #c4b5fd;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);
    --accent-gradient-hover: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    --neon-glow: 0 0 20px rgba(124, 58, 237, 0.5), 0 0 40px rgba(124, 58, 237, 0.3), 0 0 60px rgba(124, 58, 237, 0.1);
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-bg-solid: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 60px rgba(124, 58, 237, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(250, 251, 252, 0.85);
    --overlay-bg: rgba(10, 10, 15, 0.9);
    
    /* Gradient Colors */
    --gradient-1: #7c3aed;
    --gradient-2: #ec4899;
    --gradient-3: #06b6d4;
    --gradient-4: #10b981;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-max-width: 1300px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-muted: #7a7a8c;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(26, 26, 37, 0.8);
    --card-bg-solid: #1a1a25;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 60px rgba(124, 58, 237, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
    --navbar-bg: rgba(10, 10, 15, 0.9);
    --overlay-bg: rgba(0, 0, 0, 0.95);
}

/* ================================
   Reset & Base Styles
   ================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
    cursor: none;
}

/* Hide default cursor on interactive elements */
a, button, input, textarea, select {
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor.hover {
    transform: scale(2.5);
    background: var(--accent-secondary);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    opacity: 0.5;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-secondary);
    opacity: 0.3;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 20s infinite;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: none;
    border: none;
    background: none;
}

/* ================================
   Preloader - Enhanced
   ================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--gradient-1);
    animation: spin3D 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    border-right-color: var(--gradient-2);
    animation: spin3D 2s linear infinite reverse;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    border-bottom-color: var(--gradient-3);
    animation: spin3D 1s linear infinite;
}

.loader-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin3D {
    0% { transform: rotateX(35deg) rotateY(0deg); }
    100% { transform: rotateX(35deg) rotateY(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ================================
   Container & Section
   ================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -1px;
}

.section-title::after {
    display: none;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.title-decoration span {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    animation: decorPulse 2s ease-in-out infinite;
}

.title-decoration span:nth-child(2) {
    width: 40px;
    border-radius: 10px;
    animation-delay: 0.2s;
}

.title-decoration span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes decorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ================================
   Navigation - Enhanced
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.logo:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-normal);
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Theme Toggle - Enhanced */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    margin-left: 15px;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(180deg) scale(1.1);
    box-shadow: var(--neon-glow);
}

.theme-toggle i {
    font-size: 1.1rem;
    position: absolute;
    transition: all var(--transition-normal);
}

.theme-toggle .fa-sun {
    color: #f59e0b;
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.theme-toggle .fa-moon {
    color: #fbbf24;
    opacity: 0;
    transform: translateY(30px) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 0;
    transform: translateY(-30px) rotate(90deg);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.nav-toggle:hover {
    background: var(--accent-primary);
}

.nav-toggle:hover span {
    background: white;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

.nav-toggle.active {
    background: var(--accent-primary);
}

.nav-toggle.active span {
    background: white;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    transform: rotate(180deg);
}

.theme-toggle i {
    font-size: 1.1rem;
    position: absolute;
    transition: all var(--transition-normal);
}

.theme-toggle .fa-sun {
    color: #f39c12;
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle .fa-moon {
    color: #f1c40f;
    opacity: 0;
    transform: translateY(20px);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 0;
    transform: translateY(-20px);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ================================
   Hero Section - Enhanced 3D
   ================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

/* Floating 3D Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float3D 15s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.3));
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(124, 58, 237, 0.4));
    top: 30%;
    right: 25%;
    animation-delay: 4s;
    border-radius: 50%;
}

.shape-4 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3));
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), transparent);
    top: 10%;
    right: 15%;
    animation-delay: 3s;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

.shape-6 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.3));
    bottom: 30%;
    right: 30%;
    animation-delay: 5s;
}

.shape-7 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), transparent);
    top: 50%;
    left: 5%;
    animation-delay: 2.5s;
    border-radius: 41% 59% 47% 53% / 61% 38% 62% 39%;
}

.shape-8 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    bottom: 15%;
    left: 40%;
    animation-delay: 3.5s;
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-15px) translateX(-10px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translateY(-40px) translateX(20px) rotate(270deg) scale(1.05);
    }
}

/* Glowing Orbs */
.glow-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: orbPulse 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.3);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.25);
    bottom: -10%;
    right: -5%;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.2);
    top: 40%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

@keyframes bgFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.05) rotate(1deg); }
    66% { transform: scale(1.1) rotate(-1deg); }
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Image - 3D Card Effect */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    width: 380px;
    height: 460px;
    border-radius: var(--radius-xl);
    overflow: visible;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-wrapper.tilt-effect {
    transform: rotateY(-5deg) rotateX(5deg);
}

.image-wrapper:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.image-wrapper:hover .image-glow {
    opacity: 0.6;
}

.image-wrapper img,
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    gap: 10px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.image-placeholder i {
    font-size: 4rem;
    opacity: 0.8;
}

.image-placeholder.large {
    width: 100%;
    height: 450px;
}

.image-placeholder.project {
    height: 220px;
}

.image-placeholder.project i {
    font-size: 3rem;
}

.image-border-animation {
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-xl);
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4), var(--gradient-1));
    background-size: 400% 400%;
    animation: gradientBorder 8s ease infinite;
    z-index: -1;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.image-decoration {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-image: var(--accent-gradient) 1;
    border-radius: var(--radius-xl);
    z-index: 1;
    background: 
        linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        var(--accent-gradient) border-box;
    opacity: 0.3;
}

/* Floating Badges around Image */
.floating-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-bg-solid);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    animation: floatBadge 4s ease-in-out infinite;
    border: 1px solid var(--border-color);
    z-index: 10;
}

.floating-badge i {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1s;
}

.badge-3 {
    bottom: -10px;
    right: 20%;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Hero Content */
.hero-content {
    padding: 20px 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #10b981;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wave {
    display: inline-block;
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50%, 60% { transform: rotate(0deg); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
    margin-bottom: 5px;
}

.hero-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--gradient-2);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
    opacity: 0.8;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--gradient-3);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
    opacity: 0.8;
}

@keyframes glitch-anim {
    0% { clip: rect(51px, 9999px, 28px, 0); }
    5% { clip: rect(70px, 9999px, 19px, 0); }
    10% { clip: rect(92px, 9999px, 65px, 0); }
    15% { clip: rect(43px, 9999px, 83px, 0); }
    20% { clip: rect(28px, 9999px, 97px, 0); }
    25% { clip: rect(5px, 9999px, 45px, 0); }
    30% { clip: rect(14px, 9999px, 73px, 0); }
    35% { clip: rect(67px, 9999px, 35px, 0); }
    40% { clip: rect(99px, 9999px, 12px, 0); }
    45% { clip: rect(46px, 9999px, 88px, 0); }
    50% { clip: rect(21px, 9999px, 57px, 0); }
    55% { clip: rect(78px, 9999px, 41px, 0); }
    60% { clip: rect(33px, 9999px, 94px, 0); }
    65% { clip: rect(61px, 9999px, 23px, 0); }
    70% { clip: rect(8px, 9999px, 76px, 0); }
    75% { clip: rect(54px, 9999px, 48px, 0); }
    80% { clip: rect(87px, 9999px, 31px, 0); }
    85% { clip: rect(19px, 9999px, 69px, 0); }
    90% { clip: rect(72px, 9999px, 15px, 0); }
    95% { clip: rect(39px, 9999px, 82px, 0); }
    100% { clip: rect(95px, 9999px, 53px, 0); }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 35px;
    font-weight: 500;
}

.typewriter {
    border-right: 3px solid var(--accent-primary);
    padding-right: 8px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

/* Enhanced 3D Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: none;
    position: relative;
    overflow: hidden;
}

.btn-3d {
    transform-style: preserve-3d;
    transform: perspective(500px) rotateX(0deg);
}

.btn-3d:hover {
    transform: perspective(500px) rotateX(-5deg) translateY(-5px);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.btn-glare {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-glare {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 
        0 4px 15px rgba(124, 58, 237, 0.3),
        0 0 0 0 rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    box-shadow: 
        0 10px 30px rgba(124, 58, 237, 0.4),
        var(--neon-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Enhanced Social Links */
.hero-social {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.social-link:hover {
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--neon-glow);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 35px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: fit-content;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 20px; }
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-container i {
    animation: arrowBounce 1.5s ease-in-out infinite;
    opacity: 0.5;
}

.arrow-1 {
    animation-delay: 0s !important;
}

.arrow-2 {
    margin-top: -8px;
    animation-delay: 0.15s !important;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(5px); opacity: 1; }
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ================================
   About Section - Enhanced 3D
   ================================ */
.about {
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-image {
    position: relative;
    perspective: 1000px;
}

.about-img-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.about-img-wrapper.tilt-effect {
    transform: rotateY(-8deg) rotateX(5deg);
}

.about-img-wrapper:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.image-overlay-pattern {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        linear-gradient(-135deg, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.experience-badge {
    position: absolute;
    bottom: -40px;
    right: -40px;
    background: var(--card-bg-solid);
    color: var(--text-primary);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--card-shadow-hover);
    border: 1px solid var(--border-color);
    z-index: 10;
}

.experience-badge.floating-3d {
    animation: float3DBadge 6s ease-in-out infinite;
}

.badge-glow {
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
}

@keyframes float3DBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.experience-badge .number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-badge .text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.about-decoration-1 {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    animation: decorRotate 20s linear infinite;
}

.about-decoration-2 {
    position: absolute;
    bottom: 30%;
    left: -50px;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    animation: decorFloat 5s ease-in-out infinite;
}

@keyframes decorRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes decorFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.2); }
}

.about-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.about-card:hover::before {
    opacity: 0.1;
}

.about-card i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.about-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.about-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Timeline - Enhanced */
.about-timeline {
    margin: 50px 0 35px;
}

.about-timeline h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary), transparent);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInTimeline 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.timeline-content .year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.timeline-content h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ================================
   Skills Section - Enhanced 3D
   ================================ */
.skills {
    background: var(--bg-secondary);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 0% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.skill-card::before {
    content: '';
    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::before {
    left: 100%;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.skill-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--card-shadow-hover);
}

.skill-card:hover::after {
    opacity: 0.05;
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.skill-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.5;
}

.skill-icon i {
    font-size: 1.8rem;
    color: white;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-bars {
    margin-bottom: 25px;
}

.skill-bar {
    margin-bottom: 18px;
}

.skill-bar:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.skill-info span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-info span:last-child {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.bar {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-card.in-view .progress {
    width: var(--progress);
}

.skill-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tools span {
    font-size: 0.8rem;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: 25px;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.skill-card:hover .skill-tools span {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-primary);
    border-color: rgba(124, 58, 237, 0.2);
}

/* ================================
   Projects Section - Enhanced 3D
   ================================ */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    cursor: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--card-shadow-hover);
}

.project-card.hidden {
    display: none;
    transform: scale(0.8);
    opacity: 0;
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(59, 130, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transform: translateY(30px) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-link {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    background: white;
    color: var(--accent-primary);
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-info {
    padding: 28px;
    position: relative;
}

.project-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.project-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.project-info h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: color var(--transition-normal);
}

.project-card:hover .project-info h3 {
    color: var(--accent-primary);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 6px 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--accent-primary);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.project-tech span:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ================================
   Voice Over Section - Enhanced 3D
   ================================ */
.voiceover {
    background: var(--bg-secondary);
    position: relative;
}

.voiceover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.audio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.audio-card::before {
    content: '';
    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.6s ease;
}

.audio-card:hover::before {
    left: 100%;
}

.audio-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(124, 58, 237, 0.3);
}

.audio-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.audio-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.audio-icon i {
    color: white;
    font-size: 1.4rem;
}

.audio-info h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.audio-category {
    font-size: 0.85rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--glass-border);
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: none;
    transition: all var(--transition-bounce);
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

.play-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.audio-progress {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 30%;
    background: var(--accent-gradient);
    border-radius: 4px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.audio-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
    font-weight: 500;
}

/* ================================
   Research Section - Enhanced 3D
   ================================ */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
}

.research-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 25px;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.research-card:hover::before {
    opacity: 1;
}

.research-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(124, 58, 237, 0.3);
}

.research-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    position: relative;
}

.research-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
}

.research-icon i {
    color: white;
    font-size: 1.6rem;
}

.research-content {
    flex: 1;
}

.research-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.research-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.research-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.research-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.research-meta i {
    margin-right: 5px;
    color: var(--accent-primary);
}

.research-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-read {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    transition: color var(--transition-fast);
}

.btn-read:hover {
    color: var(--text-primary);
}

.btn-download {
    width: 35px;
    height: 35px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.btn-download:hover {
    background: var(--accent-primary);
    color: white;
}

/* ================================
   Programming Section
   ================================ */
.programming {
    background: var(--bg-secondary);
}

.programming-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.languages-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.language-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    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.6s ease;
}

.language-card:hover::before {
    left: 100%;
}

.language-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(124, 58, 237, 0.3);
}

.language-card i {
    font-size: 3.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(124, 58, 237, 0.3));
}

.language-card h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.language-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.github-stats {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.github-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
    pointer-events: none;
}

.github-stats h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.github-stats h3 i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================
   Contact Section - Enhanced 3D
   ================================ */
.contact {
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.1), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.1), transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 18px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    gap: 22px;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
}

.contact-icon {
    width: 58px;
    height: 58px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    position: relative;
}

.contact-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.4;
}

.contact-icon i {
    color: white;
    font-size: 1.3rem;
}

.contact-text h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-text a,
.contact-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.contact-text a:hover {
    color: var(--accent-primary);
}

.social-links h4,
.freelance-platforms h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 18px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-bottom: 35px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-bounce);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}

.social-icon:hover::before {
    opacity: 1;
}

.platform-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-badge {
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.platform-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.platform-badge span {
    position: relative;
    z-index: 1;
}

.platform-badge:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.platform-badge:hover::before {
    opacity: 1;
}

/* Contact Form - Enhanced 3D */
.contact-form-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 45px;
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
    pointer-events: none;
}

.contact-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    pointer-events: none;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color var(--transition-normal);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1), 0 10px 30px rgba(124, 58, 237, 0.1);
    background: var(--bg-primary);
}

.form-group:focus-within label {
    color: var(--accent-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ================================
   Footer - Enhanced 3D
   ================================ */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 35px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at bottom center, rgba(124, 58, 237, 0.08), transparent 60%);
    pointer-events: none;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-gradient);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    margin-bottom: 18px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 22px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-muted);
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.footer-social .social-icons {
    margin-bottom: 0;
}

.footer-bottom {
    padding-top: 35px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-credit span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Scroll to Top - Enhanced */
.scroll-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 55px;
    height: 55px;
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-bounce);
    z-index: 999;
    cursor: none;
    border: none;
}

.scroll-top::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity var(--transition-normal);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

.scroll-top:hover::before {
    opacity: 0.7;
}

/* ================================
   Modal - Enhanced 3D
   ================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    position: relative;
    transform: scale(0.85) rotateX(10deg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: scale(1) rotateX(0deg);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: none;
    transition: all var(--transition-normal);
    z-index: 1;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
}

.modal-close:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 45px;
}

/* ================================
   Animations
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-wrapper {
        width: 280px;
        height: 350px;
    }
    
    .hero-greeting::before {
        display: none;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .experience-badge {
        right: 0;
    }
    
    .programming-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Hide custom cursor on touch devices */
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    /* Navbar mobile adjustments */
    .navbar {
        padding: 12px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-toggle {
        display: flex;
        cursor: pointer;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-primary);
        backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 80px 30px 40px;
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 30px;
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-primary);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px 25px;
        font-size: 1rem;
        border-radius: var(--radius-lg);
    }
    
    .nav-link::before {
        border-radius: var(--radius-lg);
    }
    
    .theme-toggle {
        width: 50px;
        height: 50px;
        margin: 20px 0 0 0;
        cursor: pointer;
    }
    
    /* Mobile nav overlay */
    .nav-overlay {
        display: block;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Reduce 3D effects on mobile for performance */
    .floating-shapes,
    .glowing-orbs {
        opacity: 0.3;
    }
    
    .shape-1, .shape-2, .shape-3, .shape-4,
    .shape-5, .shape-6, .shape-7, .shape-8 {
        animation-duration: 15s !important;
    }
    
    .skill-card:hover,
    .project-card:hover,
    .audio-card:hover,
    .research-card:hover {
        transform: translateY(-8px);
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .languages-showcase {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .research-card {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
    
    .image-decoration {
        display: none;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        cursor: pointer;
    }
    
    /* Hero stats mobile */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .hero-stats .stat-item {
        flex-direction: column;
        gap: 5px;
        min-width: 80px;
    }
    
    .floating-badge {
        display: none;
    }
    
    /* Hero section mobile */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-greeting {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
    
    /* Section headers mobile */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        padding: 0 15px;
    }
    
    /* About section mobile */
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    /* Contact mobile */
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .platform-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 100px 15px 60px;
        min-height: auto;
    }
    
    .image-wrapper {
        width: 180px;
        height: 230px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-tag {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        cursor: pointer;
        font-size: 0.9rem;
        padding: 12px 24px;
    }
    
    .hero-social {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-filters {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        cursor: pointer;
    }
    
    .contact-content {
        gap: 30px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-card {
        padding: 20px;
    }
    
    /* Disable particles on small screens */
    #particles-container {
        display: none;
    }
    
    /* Simplify scroll indicator */
    .scroll-indicator {
        display: none;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        padding: 20px;
    }
    
    .voiceover-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer mobile */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-brand h3 {
        font-size: 1.4rem;
    }
    
    .footer-links h4,
    .footer-social h4 {
        font-size: 1rem;
    }
    
    /* Timeline mobile */
    .timeline-item {
        padding-left: 25px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: -6px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .nav-menu {
        max-width: 100%;
        padding: 70px 20px 30px;
    }
    
    .hero-name {
        font-size: 1.75rem;
    }
    
    .image-wrapper {
        width: 160px;
        height: 200px;
    }
    
    .project-info {
        padding: 18px;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
}

/* ================================
   Utility Classes
   ================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ================================
   Additional 3D & Visual Effects
   ================================ */

/* Glowing text effect */
.glow-text {
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5),
                 0 0 40px rgba(124, 58, 237, 0.3),
                 0 0 60px rgba(124, 58, 237, 0.2);
}

/* Gradient border animation */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        var(--accent-primary), 
        var(--gradient-2), 
        var(--accent-secondary), 
        var(--gradient-1));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: borderGlow 4s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Card hover glow */
.hover-glow {
    transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3),
                0 0 60px rgba(124, 58, 237, 0.15),
                0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Floating animation variations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Ripple effect for buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Spotlight effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(124, 58, 237, 0.15) 0%,
        transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.spotlight:hover::before {
    opacity: 1;
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide up animation */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Rotate in animation */
@keyframes rotateIn {
    from {
        transform: rotate(-10deg) scale(0.9);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Text reveal animation */
@keyframes textReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Neon flicker */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px var(--accent-primary),
            0 0 10px var(--accent-primary),
            0 0 20px var(--accent-primary),
            0 0 40px var(--accent-secondary);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Morphing background */
@keyframes morphBg {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor,
    .cursor-follower,
    .floating-shapes,
    .glowing-orbs,
    #particles-container {
        display: none !important;
    }
}
