/* ===== MODERN PORTFOLIO DESIGN ===== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --background-dark: #0f172a;
    --background-secondary: #1e293b;
    --surface: rgba(30, 41, 59, 0.8);
    --surface-light: rgba(51, 65, 85, 0.8);
    --border-color: rgba(148, 163, 184, 0.1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --gradient-surface: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.9));
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 6rem 0;
    --card-padding: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Prevent horizontal scrollbar on all elements */
*, *::before, *::after {
    max-width: 100%;
    box-sizing: border-box;
}

/* Background Animation */
#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

#bg-animation canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* Cursor Effects */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: transparent;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
}

/* Vertical Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* Show sidebar only when visible class is added (controlled by JavaScript) */
.social-sidebar.visible {
    opacity: 1;
    visibility: visible;
}

.social-sidebar-line {
    width: 2px;
    height: 2.5rem;
    background: linear-gradient(to bottom, transparent, var(--primary-color) 30%, var(--primary-color) 70%, transparent);
    opacity: 0.6;
}

.social-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.sidebar-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* GitHub - Black/White */
.sidebar-social-link[href*="github"]:hover {
    background: #333;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.4);
}

/* LinkedIn - Blue */
.sidebar-social-link[href*="linkedin"]:hover {
    background: #0077b5;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

/* Instagram - Gradient */
.sidebar-social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

/* Telegram - Blue */
.sidebar-social-link[href*="t.me"]:hover,
.sidebar-social-link[href*="telegram"]:hover {
    background: #0088cc;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.sidebar-social-link i {
    font-size: 1.1rem;
}

.sidebar-social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 1000;
    min-width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.sidebar-social-link::after {
    content: '';
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid var(--background-secondary);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1001;
}

.sidebar-social-link:hover::before {
    opacity: 1;
    left: 55px;
}

.sidebar-social-link:hover::after {
    opacity: 1;
    left: 47px;
}

/* Hide social sidebar on mobile to prevent horizontal scroll */
@media (max-width: 768px) {
    .social-sidebar {
        display: none !important;
    }
    
    .social-sidebar.visible {
        display: none !important;
    }
}

/* Additional breakpoint for tablets and smaller devices */
@media (max-width: 1024px) and (orientation: portrait) {
    .social-sidebar {
        display: none !important;
    }
    
    .social-sidebar.visible {
        display: none !important;
    }
}

/* Mobile Social Links */
.mobile-social-links {
    display: none;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile GitHub - Black/White */
.mobile-social-link[href*="github"]:hover {
    background: #333;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.4);
}

/* Mobile LinkedIn - Blue */
.mobile-social-link[href*="linkedin"]:hover {
    background: #0077b5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

/* Mobile Instagram - Gradient */
.mobile-social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

/* Mobile Telegram - Blue */
.mobile-social-link[href*="t.me"]:hover,
.mobile-social-link[href*="telegram"]:hover {
    background: #0088cc;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.mobile-social-link i {
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .mobile-social-links {
        display: flex;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    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;
}

/* Hide mobile theme toggle on desktop */
.mobile-theme-toggle {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
}

/* Vertical line indicator for active nav item on desktop */
.nav-link::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: all var(--transition-normal);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
    opacity: 0;
}

/* Horizontal line for mobile */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
    display: none;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--surface-light);
    transform: translateX(2px);
}

/* Vertical line animation for desktop */
.nav-link:hover::before, .nav-link.active::before {
    height: 70%;
    opacity: 1;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .nav-link::before {
        display: none;
    }
    
    .nav-link::after {
        display: block;
    }
    
    .nav-link:hover::after, .nav-link.active::after {
        width: 80%;
    }
}

.nav-link i {
    font-size: 1rem;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Enhanced Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 20%;
    animation-delay: 4s;
}

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.code-line {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(99, 102, 241, 0.2);
    white-space: nowrap;
    animation: codeRain 15s linear infinite;
    animation-delay: var(--delay);
}

@keyframes codeRain {
    0% {
        top: -10%;
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

.code-line:nth-child(1) { left: 10%; }
.code-line:nth-child(2) { left: 25%; }
.code-line:nth-child(3) { left: 40%; }
.code-line:nth-child(4) { left: 60%; }
.code-line:nth-child(5) { left: 80%; }

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
    padding-left: 1.5rem;
}

/* Enhanced Greeting */
.hero-greeting {
    margin-bottom: 1.5rem;
}

.greeting-wrapper {
    position: relative;
    display: inline-block;
}

.greeting-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}

.greeting-underline {
    height: 2px;
    background: var(--gradient-primary);
    width: 0;
    margin-top: 0.5rem;
    animation: expandWidth 1s ease-out 0.5s forwards;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

/* Enhanced Name with Glitch Effect */
.hero-name {
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
}

.name-container {
    position: relative;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: glitch 3s infinite;
}

.glitch-text::before {
    animation-delay: 0.1s;
    color: #ff0080;
    z-index: -1;
}

.glitch-text::after {
    animation-delay: 0.2s;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch {
    0%, 90%, 100% {
        opacity: 0;
        transform: translate(0);
    }
    10% {
        opacity: 1;
        transform: translate(-2px, 2px);
    }
    20% {
        opacity: 1;
        transform: translate(2px, -2px);
    }
    30% {
        opacity: 1;
        transform: translate(-2px, -2px);
    }
}

.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-normal {
    color: var(--text-primary);
}

.name-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; right: 15%; animation-delay: 0.5s; }
.particle:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 1s; }
.particle:nth-child(4) { top: 60%; right: 25%; animation-delay: 1.5s; }
.particle:nth-child(5) { bottom: 10%; left: 40%; animation-delay: 2s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* Enhanced Title Section */
.hero-title-container {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-prefix {
    color: var(--text-secondary);
}

.typing-text {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 200px;
}

.cursor-blink {
    color: var(--primary-color);
    animation: blink 1s infinite;
    display: inline-block;
    font-weight: 400;
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.specialization-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.spec-tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 25px;
    font-size: 0.875rem;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Description */
.hero-description-container {
    margin-bottom: 3rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.7;
}

.highlight-word {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.btn-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.btn-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: buttonParticles 1.5s ease-in-out infinite;
}

.btn-particles span:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.btn-particles span:nth-child(2) { top: 20%; right: 20%; animation-delay: 0.3s; }
.btn-particles span:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 0.6s; }
.btn-particles span:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 0.9s; }

@keyframes buttonParticles {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:hover .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Enhanced Social Links */
.social-links-container {
    position: relative;
}

.social-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.social-link:hover .social-bg {
    background: var(--primary-color);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.social-link i {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
}

.social-link:hover i {
    color: var(--text-primary);
    transform: scale(1.2);
}

.social-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.social-link:hover .social-ripple {
    width: 120px;
    height: 120px;
}

/* Enhanced Hero Image */
.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

/* Multiple Glow Effects */
.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

.glow-1 {
    width: 120%;
    height: 120%;
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.glow-2 {
    width: 140%;
    height: 140%;
    background: var(--gradient-secondary);
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite 1s;
}

.glow-3 {
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    animation: pulse 3s ease-in-out infinite 2s;
}

/* Rotating Rings */
.rotating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 120%;
    height: 120%;
    border-top-color: var(--primary-color);
    animation-direction: normal;
}

.ring-2 {
    width: 140%;
    height: 140%;
    border-bottom-color: var(--secondary-color);
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.image-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: 0;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Enhanced Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    animation: smartFloat 6s ease-in-out infinite;
    animation-delay: var(--delay);
    pointer-events: auto;
    z-index: 1; /* Behind profile image but visible */
}

/* Individual positioning for each floating icon - positioned further from image border */
.floating-icon:nth-child(1) { 
    top: 10%; 
    right: 15%; 
    animation-duration: 6s;
    --bounce-offset-x: 50%;
    --bounce-offset-y: 0%;
}
.floating-icon:nth-child(2) { 
    top: 30%; 
    right: -15%; 
    animation-duration: 7s;
    --bounce-offset-x: 50%;
    --bounce-offset-y: 0%;
}
.floating-icon:nth-child(3) { 
    bottom: 30%; 
    left: -15%; 
    animation-duration: 5s;
    --bounce-offset-x: -50%;
    --bounce-offset-y: 0%;
}
.floating-icon:nth-child(4) { 
    top: 30%; 
    left: -15%; 
    animation-duration: 6.5s;
    --bounce-offset-x: -50%;
    --bounce-offset-y: 0%;
}
.floating-icon:nth-child(5) { 
    top: -15%; 
    left: 50%; 
    animation-duration: 5.5s;
    --bounce-offset-x: -50%;
    --bounce-offset-y: -50%;
}
.floating-icon:nth-child(6) { 
    bottom: -15%; 
    right: 20%; 
    animation-duration: 7.5s;
    --bounce-offset-x: 0%;
    --bounce-offset-y: 50%;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.floating-icon i {
    position: relative;
    z-index: 2;
}

.icon-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: iconTrail 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes smartFloat {
    0%, 100% { 
        transform: translate(var(--bounce-offset-x, 0%), var(--bounce-offset-y, 0%)) translateY(0px);
        opacity: 0.9;
    }
    25% { 
        transform: translate(var(--bounce-offset-x, 0%), var(--bounce-offset-y, 0%)) translateY(-8px);
        opacity: 1;
    }
    50% { 
        transform: translate(var(--bounce-offset-x, 0%), var(--bounce-offset-y, 0%)) translateY(-4px);
        opacity: 0.95;
    }
    75% { 
        transform: translate(var(--bounce-offset-x, 0%), var(--bounce-offset-y, 0%)) translateY(-12px);
        opacity: 1;
    }
}

@keyframes iconTrail {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes iconTrail {
    0%, 90%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    45%, 55% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.5); }
}

/* Tech Stack Display */
.tech-stack-display {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 1;
}

/* Mobile adjustments for tech stack */
@media (max-width: 768px) {
    .tech-stack-display {
        top: -40px;
        gap: 0.5rem;
        z-index: 999; /* Ensure it's below navbar but above other elements */
    }
    
    .tech-item {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .tech-item::before {
        font-size: 0.7rem;
        top: -35px;
        padding: 0.25rem 0.5rem;
    }
}

.tech-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.tech-item::before {
    content: attr(data-tech);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: none;
}

.tech-item:hover::before {
    opacity: 1;
    top: -45px;
}

.tech-item:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow:nth-child(2) { animation-delay: 0.2s; }
.scroll-arrow:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

.scroll-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.floating-action-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.floating-action-btn i {
    font-size: 1.5rem;
}

.fab-tooltip {
    position: absolute;
    top: 50%;
    left: -140px; /* Increased from original value */
    transform: translateY(-50%);
    background: var(--surface);
    color: var(--text-primary);
    padding: 8px 16px; /* Increased padding */
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap; /* Prevent text wrapping */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-light);
    min-width: 120px; /* Ensure minimum width */
    text-align: center; /* Center the text */
}

.floating-action-btn:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    left: -130px; /* Slightly closer when visible */
}

/* Alternative approach - if the above doesn't work, try this: */
.fab-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--surface);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section - Enhanced with Modern Animations */
.about {
    background: rgba(30, 41, 59, 0.3);
    overflow: hidden;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--card-padding);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.card-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-card:hover .card-content h3::after {
    width: 100%;
}

.card-content p {
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.skill-tag i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.skill-tag:hover i {
    transform: scale(1.2) rotate(5deg);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
}

.stat:hover::before {
    width: 300px;
    height: 300px;
}

.stat:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

.stat h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stat:hover h4 {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.stat p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.stat:hover p {
    color: var(--text-primary);
}

.about-image {
    position: relative;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 50%,
        rgba(99, 102, 241, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-wrapper:hover::before {
    opacity: 1;
}

.image-wrapper:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-wrapper:hover .image-overlay {
    opacity: 0.05;
}

/* Education Timeline */
.education {
    background: rgba(51, 65, 85, 0.3);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 50%;
    padding-right: 0;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 2;
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-right: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
    margin-right: 0;
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    line-height: 1.6;
    margin: 0;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    z-index: 2;
}

/* Skills Section - Enhanced with Modern Animations */
.skills {
    background: rgba(30, 41, 59, 0.3);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.02) 0%,
        rgba(99, 102, 241, 0.08) 50%,
        rgba(99, 102, 241, 0.02) 100%);
    animation: skillsGradientMove 10s ease-in-out infinite;
}

@keyframes skillsGradientMove {
    0%, 100% { transform: translateX(-50px) translateY(-50px) rotate(0deg); }
    50% { transform: translateX(50px) translateY(50px) rotate(180deg); }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--card-padding);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: skillCategoryFadeIn 0.8s ease-out forwards;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }
.skill-category:nth-child(5) { animation-delay: 0.5s; }
.skill-category:nth-child(6) { animation-delay: 0.6s; }

@keyframes skillCategoryFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(99, 102, 241, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.category-header i::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.skill-category:hover .category-header i::before {
    width: 40px;
    height: 40px;
}

.skill-category:hover .category-header i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.category-header h3 {
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-category:hover .category-header h3 {
    color: var(--primary-color);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: skillItemSlideIn 0.5s ease-out forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes skillItemSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), rgba(99, 102, 241, 0.8));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.skill-item:hover::before {
    width: 100%;
}

.skill-item:hover {
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.skill-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-item:hover i {
    color: var(--text-primary);
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.skill-item span {
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.skill-item:hover span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Projects Section - Enhanced with Modern Animations */
.projects {
    background: rgba(51, 65, 85, 0.3);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    animation: projectsBackgroundMove 15s ease-in-out infinite;
}

@keyframes projectsBackgroundMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: projectCardFadeIn 0.8s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes projectCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 50%,
        rgba(99, 102, 241, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.card-image {
    position: relative;
    height: 200px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover .card-image::before {
    transform: translateX(100%);
}

.card-image i {
    font-size: 4rem;
    color: var(--text-primary);
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.project-card:hover .project-img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.project-card:hover .card-image i {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 4;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-links {
    transform: translateY(0);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.project-link:hover::before {
    transform: scale(1);
}

.project-link:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.project-link i {
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.project-link:hover i {
    color: var(--text-primary);
}

.card-content {
    padding: var(--card-padding);
    position: relative;
    z-index: 2;
}

.card-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.card-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .card-content h3::after {
    width: 60px;
}

.project-card:hover .card-content h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.card-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.project-card:hover .card-content p {
    color: var(--text-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.tech-tag:hover::before {
    left: 0;
}

.tech-tag:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.project-card:hover .tech-tag {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.tech-tag span {
    position: relative;
    z-index: 2;
}

/* Contact Section */
/* Contact Section Animations */
@keyframes contactCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes contactItemSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contactFormFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-5px) rotateX(2deg); }
}

@keyframes formFieldGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 30px rgba(99, 102, 241, 0.4);
    }
}

@keyframes contactBackgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.contact {
    background: linear-gradient(-45deg, rgba(30, 41, 59, 0.4), rgba(99, 102, 241, 0.1), rgba(30, 41, 59, 0.3), rgba(79, 70, 229, 0.2));
    background-size: 400% 400%;
    animation: contactBackgroundShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: contactBackgroundShift 20s ease infinite reverse;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--card-padding);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.1);
    animation: contactCardFloat 6s ease-in-out infinite;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.6s;
    z-index: 1;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-card > * {
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-card p {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: contactItemSlide 0.6s ease forwards;
    transition: all var(--transition-normal);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: transparent;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

.contact-item:hover {
    background: transparent;
    transform: none;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
    box-shadow: none;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #8b5cf6;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.contact-item a:hover::after {
    width: 100%;
}

.contact-item a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

/* Contact Form Enhanced */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--card-padding);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.1);
    animation: contactFormFloat 8s ease-in-out infinite;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.8s;
    z-index: 1;
}

.contact-form:hover::before {
    left: 100%;
}

.contact-form:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-form > * {
    position: relative;
    z-index: 2;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    opacity: 0;
    animation: contactItemSlide 0.6s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.02);
    transform: translateY(-2px);
    animation: formFieldGlow 2s ease infinite;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    transition: all var(--transition-normal);
    z-index: 3;
    pointer-events: none;
}

.form-group:focus-within i {
    color: #6366f1 !important;
    transform: translateY(-50%) scale(1.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group textarea + i {
    top: 1rem;
    transform: none;
}

.form-group:focus-within textarea + i {
    transform: scale(1.1);
}

.form button {
    align-self: flex-start;
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    opacity: 0;
    animation: contactItemSlide 0.6s ease 0.5s forwards;
}

.form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.form button:hover::before {
    left: 100%;
}

.form button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.form button:active {
    transform: translateY(-1px) scale(1.02);
}

.form button i {
    margin-right: 0.5rem;
    transition: transform var(--transition-normal);
}

.form button:hover i {
    transform: translateX(3px);
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--surface-light);
    border: 1px solid var(--success-color);
    border-radius: var(--radius-lg);
    color: var(--success-color);
    animation: contactItemSlide 0.6s ease forwards;
}

.form-success.show {
    display: block;
    animation: contactItemSlide 0.6s ease forwards;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: contactCardFloat 2s ease-in-out infinite;
}

.form-success h4 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-success p {
    margin: 0;
    color: var(--text-secondary);
}

/* Social Links Enhancement */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    animation: contactItemSlide 0.6s ease 0.4s forwards;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--surface-light);
    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: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: scale(0);
    transition: transform var(--transition-normal);
    border-radius: 50%;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.social-link i {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    transition: transform var(--transition-normal);
}

.social-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Footer */
.footer {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
    color: var(--text-muted);
}

.footer-bottom-content i {
    color: var(--error-color);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --section-padding: 4rem 0;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    /* Contact Section Mobile Optimization */
    .contact {
        padding: 3rem 0;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-card {
        margin-bottom: 0;
        animation: none; /* Disable float animation on mobile */
        padding: 1.5rem;
    }
    
    .contact-card:hover {
        transform: none; /* Disable hover transform on mobile */
    }
    
    .contact-form {
        animation: none; /* Disable float animation on mobile */
        padding: 1.5rem;
    }
    
    .contact-form:hover {
        transform: none; /* Disable hover transform on mobile */
    }
    
    .contact-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border-radius: var(--radius-md);
        background: transparent;
        margin-bottom: 1rem;
    }
    
    .contact-item:hover {
        transform: none;
        background: transparent;
    }
    
    .contact-item i {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        background: transparent !important;
        color: #6366f1 !important;
        border: none;
        box-shadow: none;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }
    
    .contact-item div {
        flex: 1;
    }
    
    .contact-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .contact-item a,
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem 1rem 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .form-group i {
        left: 0.75rem;
        font-size: 0.9rem;
        color: #94a3b8 !important;
        z-index: 3;
        pointer-events: none;
    }
    
    .form button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-link i {
        font-size: 1.3rem;
    }
    
    .hero-content {
        padding-left: 0.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
    
    .timeline::before {
        left: 20px;
        width: 2px;
    }
    
    .timeline-item {
        padding-left: 60px;
        padding-right: 1rem;
        justify-content: flex-start;
        margin-bottom: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 1rem;
        justify-content: flex-start;
    }
    
    .timeline-date {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 1rem;
        display: inline-block;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .timeline-content {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        padding: 1.5rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
    }
    
    .timeline-icon {
        left: 20px;
        top: 2rem;
        transform: translateX(-50%);
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .timeline-icon {
        left: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 3rem 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        width: 100vw;
        max-width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 3rem 0;
        gap: 0;
        border-top: 1px solid var(--border-color);
        z-index: 999;
        overflow-x: hidden;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.6s; }
    
    /* Mobile Theme Toggle */
    .mobile-theme-toggle {
        display: block;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    /* Hide floating theme button on mobile */
    .floating-action-btn {
        display: none;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: var(--radius-md);
        margin: 0 1rem;
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hero {
        min-height: auto;
        padding: 9rem 0 4rem; /* Increased top padding for tech stack display */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mobile Footer Reordering */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    
    /* Reorder footer sections on mobile */
    .footer-section:first-child {
        order: 4; /* Move the section with social icons to bottom */
        text-align: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .footer-section:nth-child(2) {
        order: 1; /* Quick Links first */
    }
    
    .footer-section:nth-child(3) {
        order: 2; /* Services second */
    }
    
    .footer-section:nth-child(4) {
        order: 3; /* Contact Info third */
    }
    
    /* Style the footer logo and text on mobile */
    .footer-logo {
        justify-content: center;
    }
    
    .footer-section:first-child p {
        text-align: center;
    }
    
    /* Timeline Mobile Styles */
    .timeline::before {
        left: 20px !important;
        width: 2px !important;
        transform: none !important;
    }
    
    .timeline-item {
        padding-left: 60px !important;
        padding-right: 1rem !important;
        justify-content: flex-start !important;
        margin-bottom: 2rem !important;
        display: block !important;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 60px !important;
        padding-right: 1rem !important;
        justify-content: flex-start !important;
        display: block !important;
    }
    
    .timeline-date {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 1rem !important;
        display: inline-block !important;
        font-size: 0.9rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-top: 0 !important;
        width: auto !important;
    }
    
    .timeline-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        padding: 1.5rem !important;
        width: calc(100% - 60px) !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        width: calc(100% - 60px) !important;
    }
    
    .timeline-icon {
        left: 20px !important;
        top: 2rem !important;
        transform: translateX(-50%) !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem;
        position: absolute !important;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
        margin-top: 2rem;
        position: relative;
        overflow: visible;
    }
    
    .floating-icon {
        display: none; /* Hide floating icons on mobile */
    }
    
    .scroll-indicator {
        display: none; /* Hide scroll indicator on mobile */
    }
    
    .card-content,
    .contact-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Enhanced Timeline Mobile Styles */
    .timeline::before {
        left: 15px !important;
        width: 2px !important;
    }
    
    .timeline-item {
        padding-left: 50px !important;
        padding-right: 0.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px !important;
        padding-right: 0.5rem !important;
    }
    
    .timeline-content {
        padding: 1.2rem 1rem !important;
        font-size: 0.9rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .timeline-date {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 0.8rem;
        display: inline-block;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .timeline-icon {
        left: 15px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem;
        top: 1.8rem;
        transform: translateX(-50%);
    }
    
    .education h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .education .container {
        padding: 0 1rem;
    }
    
    /* Contact Section Small Mobile Optimization */
    .contact {
        padding: 2rem 0;
    }
    
    .contact-content {
        gap: 1.5rem;
    }
    
    .contact-card,
    .contact-form {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: transparent !important;
        color: #6366f1 !important;
        border: none;
        box-shadow: none;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }
    
    .contact-item h4 {
        font-size: 0.9rem;
    }
    
    .contact-item a,
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .form-group {
        gap: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem 0.875rem 0.875rem 2.25rem;
        font-size: 0.95rem;
    }
    
    .form-group i {
        left: 0.625rem;
        font-size: 0.85rem;
        color: #94a3b8 !important;
        z-index: 3;
        pointer-events: none;
    }
    
    .form button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-success {
        padding: 1.5rem;
    }
    
    .form-success i {
        font-size: 2.5rem;
    }
    
    .form-success h4 {
        font-size: 1.25rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link i {
        font-size: 1.2rem;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 60px;
    }
    
    .timeline-date {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .timeline-content {
        margin-top: 0;
    }
}