/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    --accent-rose: #f43f5e;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-color: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
    --gradient-cool: linear-gradient(135deg, #06b6d4, #3b82f6, #6366f1);
    --gradient-rainbow: linear-gradient(135deg, #f43f5e, #f59e0b, #10b981, #06b6d4, #6366f1);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #312e81 50%, #1e1b4b 75%, #0f172a 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Text Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    margin-top: 20px;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    z-index: 1;
}

.btn::before {
    content: '';
    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;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    opacity: 1;
    animation: none;
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* =========================================
   NAVBAR - Glassmorphism
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    position: relative;
    letter-spacing: -0.5px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.btn-highlight {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 10px 24px !important;
    border-radius: 50px;
    transition: var(--transition) !important;
}

.btn-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
    background: var(--gradient-primary) !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
    padding: 8px;
    border-radius: 8px;
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* =========================================
   HERO SECTION - Dark Theme with Particles
   ========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    border-radius: 50%;
    animation: heroOrb1 8s ease-in-out infinite alternate;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
    border-radius: 50%;
    animation: heroOrb2 10s ease-in-out infinite alternate-reverse;
    z-index: 0;
}

@keyframes heroOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.2); }
}

@keyframes heroOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, -60px) scale(1.3); }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 1s ease-out forwards;
}

.hero-content h3 {
    font-size: 1.3rem;
    color: var(--accent-cyan);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin: 10px 0;
    line-height: 1.2;
    font-weight: 800;
}

.hero-content h1 .highlight-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: textGradient 3s linear infinite;
}

@keyframes textGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.8;
}

/* Typing Effect Cursor */
.typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--accent-cyan);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.social-icons {
    margin: 25px 0;
    display: flex;
    gap: 12px;
}

.social-icons a {
    font-size: 1.3rem;
    color: var(--text-light);
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.social-icons a:nth-child(1) { animation-delay: 0.8s; }
.social-icons a:nth-child(2) { animation-delay: 1.0s; }
.social-icons a:nth-child(3) { animation-delay: 1.2s; }
.social-icons a:nth-child(4) { animation-delay: 1.4s; }

.social-icons a:hover {
    color: var(--white);
    border-color: var(--primary-color);
    background: var(--gradient-primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.social-icons a:nth-child(1):hover {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    border-color: #0077b5;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.social-icons a:nth-child(2):hover {
    background: linear-gradient(135deg, #333, #6e5494);
    border-color: #6e5494;
    box-shadow: 0 10px 25px rgba(110, 84, 148, 0.4);
}

.social-icons a:nth-child(3):hover {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    border-color: #1da1f2;
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4);
}

.social-icons a:nth-child(4):hover {
    background: linear-gradient(135deg, #ea4335, #fbbc05, #34a853, #4285f4);
    border-color: #ea4335;
    box-shadow: 0 10px 25px rgba(234, 67, 53, 0.4);
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out forwards;
}

.img-placeholder {
    width: 380px;
    height: 380px;
    background: var(--gradient-cool);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--white);
    animation: morphShape 8s ease-in-out infinite, float 6s ease-in-out infinite;
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--primary-color), var(--accent-pink), var(--accent-color));
    border-radius: inherit;
    z-index: -1;
    animation: rotateBorder 4s linear infinite;
    background-size: 300% 300%;
}

@keyframes rotateBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes morphShape {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}

/* Hero CTA Button */
.hero .btn {
    animation: fadeInUp 1s ease 1.5s forwards;
    opacity: 0;
    background: var(--gradient-primary);
    padding: 16px 40px;
    font-size: 1rem;
}

.hero .btn:hover {
    opacity: 1;
    animation: none;
}

/* Hero Particles / Floating Dots */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   SECTIONS GENERAL
   ========================================= */

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title .title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.bg-light {
    background: var(--bg-light);
}

/* =========================================
   ABOUT SECTION
   ========================================= */

#about {
    background: var(--white);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
    z-index: -1;
}

/* Decorative corner shapes */
#about::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border: 30px solid rgba(99, 102, 241, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

/* About Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-item:nth-child(2)::before {
    background: var(--gradient-warm);
}

.stat-item:nth-child(3)::before {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-item:nth-child(2) h3 {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-item:nth-child(3) h3 {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Counter Animation */
.stat-item h3 {
    transition: var(--transition-smooth);
}

/* =========================================
   SKILLS SECTION
   ========================================= */

#skills {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
    position: relative;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Floating decorative elements */
#skills::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    border: 3px dashed rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    animation: spinSlow 30s linear infinite;
    z-index: -1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.06);
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card > * {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
    border-color: transparent;
}

.skill-card:hover h3,
.skill-card:hover ul li,
.skill-card:hover p {
    color: var(--white);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.6s ease;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
}

.skill-card:nth-child(1) i { color: var(--primary-color); background: rgba(99, 102, 241, 0.1); }
.skill-card:nth-child(2) i { color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); }
.skill-card:nth-child(3) i { color: var(--accent-emerald); background: rgba(16, 185, 129, 0.1); }
.skill-card:nth-child(4) i { color: var(--accent-pink); background: rgba(236, 72, 153, 0.1); }
.skill-card:nth-child(5) i { color: var(--accent-color); background: rgba(245, 158, 11, 0.1); }
.skill-card:nth-child(6) i { color: var(--accent-rose); background: rgba(244, 63, 94, 0.1); }

.skill-card:hover i {
    transform: rotateY(360deg) scale(1.1);
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.skill-card ul li {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

/* Skill Progress Bars */
.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-card:hover .skill-bar {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   EXPERIENCE TIMELINE
   ========================================= */

#experience {
    background: var(--white);
    position: relative;
}

#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
    z-index: -1;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-pink), var(--accent-cyan));
    border-radius: 3px;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(99, 102, 241, 0.06);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.15);
}

.timeline-dot {
    position: absolute;
    left: -42px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.2);
}

.timeline-date {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content ul {
    list-style: none;
    margin-left: 0;
    margin-top: 15px;
}

.timeline-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */

#projects {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    position: relative;
}

#projects::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -50px;
    width: 200px;
    height: 200px;
    border: 40px solid rgba(99, 102, 241, 0.03);
    border-radius: 50%;
    z-index: 0;
}

#projects::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -30px;
    width: 120px;
    height: 120px;
    background: rgba(236, 72, 153, 0.04);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 12s ease-in-out infinite;
    z-index: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.06);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:nth-child(2)::after {
    background: var(--gradient-warm);
}

.project-card:nth-child(3)::after {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Project Image Placeholder */
.project-thumbnail {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    position: relative;
    overflow: hidden;
}

.project-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-thumbnail::before {
    opacity: 0.15;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.08);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-stack span {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.tech-stack span:nth-child(2) {
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-cyan);
}

.tech-stack span:nth-child(3) {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-emerald);
}

.project-card:hover .tech-stack span {
    background: rgba(99, 102, 241, 0.12);
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.project-links a:hover {
    color: var(--primary-color);
}

.project-links a:hover::after {
    width: 100%;
}

/* =========================================
   CONTACT SECTION
   ========================================= */

#contact {
    background: var(--gradient-hero);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    animation: pulseGlow 4s infinite;
    z-index: 0;
}

#contact::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

#contact .section-title {
    color: var(--white);
}

#contact .section-title::after {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
}

#contact .section-subtitle {
    color: var(--text-light);
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-item {
    margin-bottom: 0;
    font-size: 1.05rem;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--white);
    transition: var(--transition-smooth);
}

.contact-item a:hover {
    color: var(--accent-cyan);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 40px auto 0;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    background: #060a13;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 40px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-pink), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
}

footer p {
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-light);
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--accent-cyan);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.05; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.05; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll Reveal Classes */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Children Animation */
.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.6s; }

/* =========================================
   TOOLTIP STYLES
   ========================================= */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   LOADING ANIMATION
   ========================================= */

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-right-color: var(--accent-pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   CURSOR GLOW (Desktop Only)
   ========================================= */

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .img-placeholder {
        width: 300px;
        height: 300px;
        font-size: 6rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-img {
        margin-bottom: 30px;
    }

    .img-placeholder {
        width: 250px;
        height: 250px;
        font-size: 5rem;
    }

    .social-icons {
        justify-content: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 5px;
        border-radius: 0 0 20px 20px;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.4s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        padding: 12px 20px;
        border-radius: 12px;
        text-align: center;
    }

    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.08);
    }

    .menu-toggle {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 35px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -33px;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    .img-placeholder {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .timeline-item {
        padding: 20px;
    }
}

/* =========================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #4338ca;
        --text-color: #000000;
        --bg-light: #ffffff;
    }

    .skill-card,
    .project-card,
    .timeline-item {
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .cursor-glow,
    .page-loader {
        display: none !important;
    }

    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 20px 0;
    }

    .hero-content h1 {
        color: black;
    }

    section {
        page-break-inside: avoid;
        padding: 30px 0;
    }

    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
}