/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Theme */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06d6a0;
    --accent-dark: #059669;
    --background: #0f0f23;
    --background-light: #1a1a2e;
    --background-card: #16213e;
    --surface: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #a8a8b3;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow: rgba(99, 102, 241, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #059669;
    --accent-dark: #047857;
    --background: #ffffff;
    --background-light: #f8fafc;
    --background-card: #ffffff;
    --surface: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: rgba(99, 102, 241, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: var(--transition-slow);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-color), 
        var(--secondary-color), 
        var(--accent-color), 
        transparent);
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0% { left: -100%; }
    100% { left: 100%; }
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 4px 20px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    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-primary);
    transition: var(--transition);
}

.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;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                var(--background);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                var(--background);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    animation: morphing 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    min-height: 60px;
    font-family: var(--font-mono);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.profile-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-primary);
    padding: 4px;
    margin: 25px;
    animation: float 3s ease-in-out infinite;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--background-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--background-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow);
    animation: float 2s ease-in-out infinite;
}

.float-element[data-float="1"] {
    top: 10%;
    left: 10%;
    animation-delay: -0.5s;
}

.float-element[data-float="2"] {
    top: 20%;
    right: 10%;
    animation-delay: -1s;
}

.float-element[data-float="3"] {
    bottom: 20%;
    left: 5%;
    animation-delay: -1.5s;
}

.float-element[data-float="4"] {
    bottom: 10%;
    right: 15%;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTIONS ===== */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease-out;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Section Decoration */
.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    animation: expandWidth 1s ease-out 0.8s forwards;
}

.decoration-circle {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7);
}

.decoration-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(6, 214, 160, 0);
        transform: scale(1.1);
    }
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ===== ABOUT SECTION ===== */
/* ===== ADVANCED ABOUT SECTION ===== */
.about {
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 8s ease-in-out infinite;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--background-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 1s ease-out forwards;
    animation-delay: 0.2s;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    animation: slideInTop 1.5s ease-out forwards;
    animation-delay: 0.8s;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.header-icon i {
    color: white;
    font-size: 1.8rem;
}

.card-header h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    flex: 1;
}

.header-decoration {
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.card-content .text-block {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.card-content .text-block:nth-child(1) { animation-delay: 0.4s; }
.card-content .text-block:nth-child(2) { animation-delay: 0.6s; }
.card-content .text-block:nth-child(3) { animation-delay: 0.8s; }

.text-block p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.tag {
    background: var(--surface);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    animation: tagFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

.tag:nth-child(1) { animation-delay: 0.9s; }
.tag:nth-child(2) { animation-delay: 1.0s; }
.tag:nth-child(3) { animation-delay: 1.1s; }
.tag:nth-child(4) { animation-delay: 1.2s; }
.tag:nth-child(5) { animation-delay: 1.3s; }
.tag:nth-child(6) { animation-delay: 1.4s; }

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Visual Card */
.about-visual {
    position: relative;
}

.visual-card {
    background: var(--background-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: slideInRight 1s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.chart-container {
    position: relative;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-header h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.control.active {
    background: var(--accent-color);
}

.animated-chart {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.bar:nth-child(1) { animation-delay: 0.5s; }
.bar:nth-child(2) { animation-delay: 0.7s; }
.bar:nth-child(3) { animation-delay: 0.9s; }
.bar:nth-child(4) { animation-delay: 1.1s; }

.bar-label {
    min-width: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 28px;
    background: var(--surface);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 14px;
    position: relative;
    animation: growRight 1.5s ease-out forwards;
    transform-origin: left;
    transform: scaleX(0);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.bar:nth-child(1) .bar-fill { animation-delay: 0.8s; }
.bar:nth-child(2) .bar-fill { animation-delay: 1s; }
.bar:nth-child(3) .bar-fill { animation-delay: 1.2s; }
.bar:nth-child(4) .bar-fill { animation-delay: 1.4s; }

.bar-fill:hover {
    filter: brightness(1.2);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
}

.bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 2.3s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bar:nth-child(1) .bar-value { animation-delay: 2.3s; }
.bar:nth-child(2) .bar-value { animation-delay: 2.5s; }
.bar:nth-child(3) .bar-value { animation-delay: 2.7s; }
.bar:nth-child(4) .bar-value { animation-delay: 2.9s; }

@keyframes growRight {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Bar widths */
.bar[data-width="85"] .bar-fill { width: 85%; }
.bar[data-width="92"] .bar-fill { width: 92%; }
.bar[data-width="78"] .bar-fill { width: 78%; }
.bar[data-width="88"] .bar-fill { width: 88%; }

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation: float 4s ease-in-out infinite reverse;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation: float 3.5s ease-in-out infinite;
}

.particle:nth-child(4) {
    top: 40%;
    left: 70%;
    animation: float 2.8s ease-in-out infinite reverse;
}

.particle:nth-child(5) {
    top: 10%;
    left: 60%;
    animation: float 3.2s ease-in-out infinite;
}

/* Enhanced Stats Section */
.about-stats {
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
    animation: zoomInFade 0.8s ease-out forwards;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.stat-item:hover::before {
    opacity: 0.05;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: iconPulse 2s infinite;
}

.stat-icon i {
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-plus {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-progress {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.progress-ring {
    position: relative;
}

.progress-ring-circle {
    transition: stroke-dasharray 1.5s ease-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(-10px) translateY(20px); }
    75% { transform: translateX(10px) translateY(10px); }
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInTop {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tagFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growUp {
    to {
        transform: scaleY(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes zoomInFade {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== ENHANCED SKILLS SECTION ===== */
.skills-content {
    display: grid;
    gap: 4rem;
}

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-left: 1rem;
}

.skills-category h3 i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.skills-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

/* Skill-specific color themes */
.skill-item.python {
    --skill-color: #3776ab;
    --skill-bg: linear-gradient(135deg, #3776ab15, #ffd43b15);
}

.skill-item.numpy {
    --skill-color: #013243;
    --skill-bg: linear-gradient(135deg, #01324315, #4dabcf15);
}

.skill-item.mysql {
    --skill-color: #00758f;
    --skill-bg: linear-gradient(135deg, #00758f15, #f2940015);
}

.skill-item.statistics {
    --skill-color: #e74c3c;
    --skill-bg: linear-gradient(135deg, #e74c3c15, #3498db15);
}

.skill-item.pandas {
    --skill-color: #150458;
    --skill-bg: linear-gradient(135deg, #15045815, #e97627b15);
}

.skill-item.matplotlib {
    --skill-color: #11557c;
    --skill-bg: linear-gradient(135deg, #11557c15, #ff7f0e15);
}

.skill-item.seaborn {
    --skill-color: #4c78a8;
    --skill-bg: linear-gradient(135deg, #4c78a815, #f58518b15);
}

.skill-item.ml {
    --skill-color: #ff6b35;
    --skill-bg: linear-gradient(135deg, #ff6b3515, #f7931e15);
}

.skill-item.dl {
    --skill-color: #764abc;
    --skill-bg: linear-gradient(135deg, #764abc15, #ff004015);
}

.skill-item.nlp {
    --skill-color: #00d4aa;
    --skill-bg: linear-gradient(135deg, #00d4aa15, #007cf015);
}

.skill-item.scipy {
    --skill-color: #0c5aa6;
    --skill-bg: linear-gradient(135deg, #0c5aa615, #ff950015);
}

.skill-item.sklearn {
    --skill-color: #f7931e;
    --skill-bg: linear-gradient(135deg, #f7931e15, #3499cd15);
}

.skill-item.xgboost {
    --skill-color: #189ab4;
    --skill-bg: linear-gradient(135deg, #189ab415, #05445e15);
}

.skill-item.lightgbm {
    --skill-color: #2e86de;
    --skill-bg: linear-gradient(135deg, #2e86de15, #54a0ff15);
}

.skill-item.tensorflow {
    --skill-color: #ff6f00;
    --skill-bg: linear-gradient(135deg, #ff6f0015, #ffb30015);
}

.skill-item.keras {
    --skill-color: #d00000;
    --skill-bg: linear-gradient(135deg, #d0000015, #ffba0815);
}

.skill-item.pytorch {
    --skill-color: #ee4c2c;
    --skill-bg: linear-gradient(135deg, #ee4c2c15, #ff930015);
}

.skill-item.plotly {
    --skill-color: #3f51b5;
    --skill-bg: linear-gradient(135deg, #3f51b515, #00bcd415);
}

.skill-item.nltk {
    --skill-color: #2e7d32;
    --skill-bg: linear-gradient(135deg, #2e7d3215, #66bb6a15);
}

.skill-item.spacy {
    --skill-color: #09a3d5;
    --skill-bg: linear-gradient(135deg, #09a3d515, #29b6f615);
}

.skill-item.transformers {
    --skill-color: #ff9800;
    --skill-bg: linear-gradient(135deg, #ff980015, #ffc10715);
}

.skill-item.statsmodels {
    --skill-color: #673ab7;
    --skill-bg: linear-gradient(135deg, #673ab715, #9c27b015);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--skill-bg, linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent));
    transition: left 0.8s ease;
    z-index: 1;
}

.skill-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--skill-bg);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.6s ease;
    z-index: -1;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover .skill-glow {
    opacity: 1;
    box-shadow: 0 0 30px var(--skill-color, var(--primary-color));
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--skill-color, var(--primary-color));
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 20px var(--skill-color, var(--primary-color));
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--skill-bg, var(--gradient-primary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.skill-icon i {
    font-size: 2rem;
    color: var(--skill-color, var(--primary-color));
    transition: all 0.4s ease;
}

.skill-item:hover .skill-icon {
    transform: rotateY(360deg) scale(1.1);
    background: var(--skill-color, var(--primary-color));
}

.skill-item:hover .skill-icon i {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.skill-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.4s ease;
}

.skill-level {
    font-size: 0.9rem;
    color: var(--skill-color, var(--accent-color));
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-progress {
    background: var(--surface);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--skill-color, var(--primary-color)), 
        var(--accent-color));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6));
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.skill-item:hover .progress-bar::after {
    transform: translateX(-20px);
}

/* Enhanced animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    100% { box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

/* Staggered animation entrance */
.skill-item:nth-child(1) { animation: slideInUp 0.8s ease-out 0.1s both; }
.skill-item:nth-child(2) { animation: slideInUp 0.8s ease-out 0.2s both; }
.skill-item:nth-child(3) { animation: slideInUp 0.8s ease-out 0.3s both; }
.skill-item:nth-child(4) { animation: slideInUp 0.8s ease-out 0.4s both; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--background-light);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--background-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: scale(1);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.project-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.8s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before {
    left: 100%;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.15);
}

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-category {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ===== ADVANCED CONTACT SECTION ===== */
.contact {
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* Contact Info Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.intro-card {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpFade 1s ease-out 0.3s forwards;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 20px;
    animation: gradientShift 8s ease-in-out infinite;
}

.intro-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.intro-icon i {
    font-size: 2rem;
    color: white;
}

.intro-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.intro-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.availability-status {
    position: relative;
    z-index: 1;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.3);
    border-radius: 25px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--background-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateX(-30px);
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.4s; }
.contact-item:nth-child(2) { animation-delay: 0.5s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }
.contact-item:nth-child(4) { animation-delay: 0.7s; }

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: var(--transition);
}

.contact-item:hover::before {
    left: 0;
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.contact-icon {
    position: relative;
}

.icon-bg {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.icon-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: iconRipple 2s infinite;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-description {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-item:hover .contact-arrow {
    transform: translateX(5px);
}

/* Form Container */
.contact-form-container {
    background: var(--background-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpFade 1s ease-out 0.5s forwards;
}

.form-header {
    padding: 2.5rem 2.5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.form-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.form-icon i {
    font-size: 1.5rem;
    color: white;
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form {
    padding: 0 2.5rem 2.5rem;
    position: relative;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.input-container {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 10px 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.form-group:focus-within .input-focus-line {
    width: 100%;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 3;
}

.form-group:focus-within .input-icon {
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-animated {
    position: relative;
    overflow: hidden;
    min-width: 180px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text,
.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.btn-animated.loading .btn-text {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.btn-animated.loading .btn-loading {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Background Elements */
.form-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
}

.bg-element-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.bg-element-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation: float 8s ease-in-out infinite reverse;
}

.bg-element-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

/* Floating Background Shapes */
.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite;
}

.floating-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
}

.dot:nth-child(1) {
    top: -30px;
    left: -30px;
    animation: float 3s ease-in-out infinite;
}

.dot:nth-child(2) {
    top: -30px;
    right: -30px;
    animation: float 4s ease-in-out infinite reverse;
}

.dot:nth-child(3) {
    bottom: -30px;
    left: -30px;
    animation: float 3.5s ease-in-out infinite;
}

.dot:nth-child(4) {
    bottom: -30px;
    right: -30px;
    animation: float 2.8s ease-in-out infinite reverse;
}

.dot:nth-child(5) {
    top: 0;
    left: 0;
    animation: pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes expandWidth {
    to { transform: scaleX(1); }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes iconRipple {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--background-light);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--background-card);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(15deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes morphing {
    0%, 100% {
        border-radius: 50% 50% 50% 50%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 60% 40%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 40% 60% 40% 60%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 60% 40% 60% 40%;
        transform: rotate(270deg);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    /* Contact Section Tablet */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .intro-card {
        padding: 2rem;
    }
    
    .form-header {
        padding: 2rem 2rem 1rem;
    }
    
    .contact-form {
        padding: 0 2rem 2rem;
    }
    
    .name {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }
    
    [data-theme="light"] .nav-menu {
        background: rgba(248, 250, 252, 0.98);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .theme-toggle {
        margin-left: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-container > div:last-child {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Section Tablet */
    .about-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .project-filters {
        justify-content: start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 15px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* About Section Mobile */
    .about-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.4rem;
    }
    
    .expertise-tags {
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .chart-bars {
        gap: 0.3rem;
        padding: 0;
    }
    
    .animated-chart {
        height: 120px;
    }
    
    .visual-card {
        padding: 1.5rem;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-card {
        padding: 1.5rem;
    }
    
    .intro-card h3 {
        font-size: 1.5rem;
    }
    
    .intro-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .icon-bg {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .form-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 0 1.5rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .btn-animated {
        min-width: 160px;
        height: 45px;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .float-element {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CUSTOM CURSOR (from cursor.css) ===== */
.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.2s ease, background-color 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.5;
}

.custom-cursor.hover {
    transform: scale(2);
    background: var(--accent-color);
}

.cursor-follower.hover {
    transform: scale(1.5);
    border-color: var(--accent-color);
    opacity: 0.8;
}

.custom-cursor.click {
    transform: scale(0.5);
}

/* Hide default cursor on interactive elements */
.project-card,
.btn,
a,
button,
.nav-link {
    cursor: none;
}

/* ===== ENHANCED PROJECT CARDS (from cursor.css) ===== */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-metrics {
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .custom-cursor,
    .cursor-follower {
        display: none;
    }
    
    .project-card,
    .btn,
    a,
    button,
    .nav-link {
        cursor: pointer;
    }
}

/* ===== ADVANCED ANIMATION STYLES (from HTML) ===== */

/* Magnetic Cursor Effect */
.magnetic-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transition: all 0.1s ease;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #06d6a0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Glitch Text Effect */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch:before,
.glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch:after {
    animation: glitch-2 0.5s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0% { clip-path: inset(0 0 0 0); }
    25% { clip-path: inset(0 0 90% 0); }
    50% { clip-path: inset(60% 0 0 0); }
    75% { clip-path: inset(0 0 60% 0); }
    100% { clip-path: inset(40% 0 0 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(0 0 0 0); }
    25% { clip-path: inset(80% 0 0 0); }
    50% { clip-path: inset(0 0 80% 0); }
    75% { clip-path: inset(20% 0 0 0); }
    100% { clip-path: inset(0 0 20% 0); }
}

/* Floating Shapes */
.floating-shape {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

.shape-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    animation: float-rotate 20s infinite linear;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #06d6a0;
    animation: float-bounce 15s infinite ease-in-out;
}

@keyframes float-rotate {
    0% { transform: rotate(0deg) translateY(0px); }
    50% { transform: rotate(180deg) translateY(-20px); }
    100% { transform: rotate(360deg) translateY(0px); }
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Neon Glow Effects */
.neon-glow {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px #6366f1,
        0 0 35px #6366f1,
        0 0 40px #6366f1;
    animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px #6366f1,
            0 0 35px #6366f1,
            0 0 40px #6366f1;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Matrix Rain Effect */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

/* Enhanced Hover Effects */
.enhanced-hover {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.enhanced-hover:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Text Wave Animation */
.wave-text {
    display: inline-block;
}

.wave-text span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 60%, 100% { transform: initial; }
    30% { transform: translateY(-15px); }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}