/* ===================================
   Custom Portfolio CSS
   Emrullah Dizman Portfolio
   =================================== */

/* Root Variables - Stellaris Space Theme */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --space-blue: #1e3a8a;
    --space-purple: #581c87;
    --space-cyan: #0891b2;
    --nebula-pink: #db2777;
    --star-white: #f8fafc;
    --dark-bg: #0a0e27;
    --dark-secondary: #1e1b4b;
    --dark-tertiary: #312e81;
    --light-bg: #ffffff;
    --light-secondary: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --gradient-1: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-3: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    --gradient-space: radial-gradient(ellipse at center, #1e3a8a 0%, #0a0e27 70%);
    --shadow-sm: 0 2px 8px rgba(79, 70, 229, 0.2);
    --shadow-md: 0 4px 16px rgba(79, 70, 229, 0.3);
    --shadow-lg: 0 8px 32px rgba(79, 70, 229, 0.4);
    --shadow-xl: 0 16px 64px rgba(79, 70, 229, 0.5);
    --glow-primary: 0 0 20px rgba(79, 70, 229, 0.6);
    --glow-secondary: 0 0 30px rgba(124, 58, 237, 0.5);
    --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

/* Dark Theme Variables - Enhanced Space */
[data-theme="dark"] {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #22d3ee;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --light-bg: #0a0e27;
    --light-secondary: #1e1b4b;
    --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.3);
    --shadow-md: 0 4px 16px rgba(99, 102, 241, 0.4);
    --shadow-lg: 0 8px 32px rgba(99, 102, 241, 0.5);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: 
        radial-gradient(ellipse at top, rgba(13, 28, 90, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(42, 11, 56, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #0a0e27 50%, #000000 100%);
    background-attachment: fixed;
    background-size: 100% 200%;
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(255, 255, 255, 0.5), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starfield 200s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes starfield {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

[data-theme="dark"] body {
    background: 
        radial-gradient(ellipse at top, rgba(13, 28, 90, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(42, 11, 56, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #0a0e27 50%, #000000 100%);
    background-attachment: fixed;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar */
.navbar-custom {
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #4f46e5) 1;
    position: relative;
}

.navbar-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #4f46e5);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.navbar-custom .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 1.5rem;
    margin-left: 0;
    border-radius: 15px;
    background: rgba(79, 70, 229, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.navbar-custom .navbar-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4, #ec4899);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
}

.navbar-custom .navbar-brand:hover {
    transform: scale(1.05) translateY(-2px);
    background: rgba(79, 70, 229, 0.2);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4),
                0 0 30px rgba(139, 92, 246, 0.3);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.brand-logo {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.8))
            drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
    animation: rotateIcon 10s ease-in-out infinite;
}

@keyframes rotateIcon {
    0%, 90% {
        transform: rotate(0deg) scale(1);
    }
    92% {
        transform: rotate(-10deg) scale(1.1);
    }
    96% {
        transform: rotate(10deg) scale(1.1);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
}

.brand-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #06b6d4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 1.8rem;
    animation: brandGradient 4s ease infinite;
    position: relative;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
}

.brand-text::after {
    content: 'EMRULLAH';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #06b6d4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.6;
    animation: brandGradient 4s ease infinite;
    z-index: -1;
}

.brand-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899, #06b6d4);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: underlineFlow 3s ease infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8),
                0 0 20px rgba(139, 92, 246, 0.5);
}

@keyframes brandGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes underlineFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes rotateBorder {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes brandGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.9));
    }
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.05rem;
}

.navbar-custom .nav-link:hover {
    color: #ffffff;
    background-color: rgba(99, 102, 241, 0.2);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.navbar-custom .nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(90deg); }
    50% { transform: translate(0, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
}

.hero-greeting {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md), var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    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-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl), var(--glow-primary), var(--glow-cyan);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-secondary);
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Code Animation */
.code-animation {
    background: #000000;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.code-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--dark-secondary);
    border-bottom: 1px solid var(--dark-tertiary);
}

.code-block {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
    margin-top: 30px;
}

.code-keyword {
    color: #f472b6;
}

.code-class {
    color: #fbbf24;
}

.code-string {
    color: #34d399;
}

.code-comment {
    color: #94a3b8;
    font-style: italic;
}

.code-method {
    color: #60a5fa;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: 2rem;
}

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

/* About Section */
.about-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #4f46e5);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: stellarisGlow 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.7;
}

@keyframes stellarisGlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(79, 70, 229, 0.8))
                drop-shadow(0 0 40px rgba(124, 58, 237, 0.6));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(79, 70, 229, 1))
                drop-shadow(0 0 60px rgba(6, 182, 212, 0.8));
    }
}

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

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.about-section .section-subtitle,
.skills-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    background: 
        radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), var(--glow-primary);
    position: relative;
    overflow: hidden;
    animation: floatPulse 4s ease-in-out infinite;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent 30%
    );
    animation: rotate 6s linear infinite;
}

@keyframes floatPulse {
    0%, 100% {
        box-shadow: var(--shadow-xl), var(--glow-primary);
    }
    50% {
        box-shadow: var(--shadow-xl), var(--glow-cyan);
        transform: scale(1.02);
    }
}

.code-symbol {
    font-size: 8rem;
    font-weight: 700;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 20px rgba(79, 70, 229, 0.8);
}

[data-theme="dark"] .code-symbol {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.9);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(99, 102, 241, 0.95));
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.4), var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.about-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(79, 70, 229, 0.6), var(--shadow-xl);
}

.about-badge i {
    font-size: 2.5rem;
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.about-badge strong {
    display: block;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-badge span {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .about-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(14, 165, 233, 0.95));
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.5), var(--shadow-lg);
}

[data-theme="dark"] .about-badge:hover {
    box-shadow: 0 15px 50px rgba(6, 182, 212, 0.7), var(--shadow-xl);
}

.about-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .about-subtitle {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.about-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .about-text {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.info-item strong {
    color: #ffffff;
    margin-right: 0.5rem;
}

.info-item span {
    color: rgba(255, 255, 255, 0.8);
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    color: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.highlight-item i {
    color: var(--primary-color);
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.skill-category {
    background: rgba(30, 27, 75, 0.7);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    height: 100%;
    border: 2px solid rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed, #06b6d4);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

[data-theme="dark"] .skill-category {
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.4);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.category-title i {
    color: #4f46e5;
    filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.6));
}

[data-theme="dark"] .category-title {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

[data-theme="dark"] .category-title i {
    color: #06b6d4;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.7));
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skill-name {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.skill-icon {
    font-size: 1.2rem;
}

.skill-percentage {
    font-weight: 700;
    color: #4f46e5;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

[data-theme="dark"] .skill-percentage {
    color: #06b6d4;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.7);
}

.skill-bar {
    height: 8px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: rgba(30, 27, 75, 0.5);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.3) 0%, transparent 25%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.3) 0%, transparent 25%);
    animation: floatBackground 15s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, -20px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.stats-section > .container {
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 2rem;
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 2px solid rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: var(--glow-cyan);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: rgba(30, 41, 59, 0.3);
    color: white;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: 0;
}

.cta-section > .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

.btn-light {
    background: white;
    color: var(--dark-bg);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Page Hero */
.page-hero {
    padding: 150px 0 80px;
    background: transparent;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.3) 0%, transparent 40%);
    animation: floatBackground 20s ease-in-out infinite;
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4f46e5, #7c3aed, #06b6d4, transparent);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.8);
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        0 0 10px rgba(99, 102, 241, 0.8),
        0 0 20px rgba(99, 102, 241, 0.6),
        0 0 30px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(139, 92, 246, 0.3);
    animation: neonGlow 2s ease-in-out infinite;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.page-hero-breadcrumb a {
    color: white;
    transition: var(--transition);
}

.page-hero-breadcrumb a:hover {
    opacity: 0.8;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.projects-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.github-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.project-card {
    background: rgba(30, 27, 75, 0.7);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg), var(--glow-primary);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid rgba(79, 70, 229, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(79, 70, 229, 0.3) 90deg,
        transparent 180deg,
        rgba(6, 182, 212, 0.3) 270deg,
        transparent 360deg
    );
    animation: rotateConic 8s linear infinite;
}

@keyframes rotateConic {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

[data-theme="dark"] .project-card {
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.4);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.project-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.5));
}

[data-theme="dark"] .project-icon {
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.7));
}

.project-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(79, 70, 229, 0.15);
    color: #4f46e5;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(79, 70, 229, 0.3);
    text-shadow: 0 0 5px rgba(79, 70, 229, 0.3);
}

[data-theme="dark"] .project-category {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.4);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .project-title {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.project-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-description {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.project-tech {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.project-tech i {
    color: #4f46e5;
    filter: drop-shadow(0 0 5px rgba(79, 70, 229, 0.5));
}

[data-theme="dark"] .project-tech {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .project-tech i {
    color: #06b6d4;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.project-footer {
    position: relative;
    z-index: 1;
}

.btn-project {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.btn-project:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* GitHub Stats */
.github-stats-card {
    background: rgba(30, 27, 75, 0.7);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border: 2px solid rgba(79, 70, 229, 0.4);
    position: relative;
    overflow: hidden;
}

.github-stats-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

[data-theme="dark"] .github-stats-card {
    background: rgba(10, 14, 39, 0.8);
}

.github-stats-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.github-stats-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.github-stats-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.github-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.github-stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.github-stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: #ffffff;
}

.github-stat-item span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-github {
    background: var(--dark-bg);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-github:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Tech Stack */
.tech-stack-section {
    padding: 80px 0;
    background: transparent;
}

.tech-item {
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.3), transparent);
    transition: left 0.5s;
}

.tech-item:hover::before {
    left: 100%;
}

[data-theme="dark"] .tech-item {
    background: rgba(10, 14, 39, 0.7);
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(6, 182, 212, 0.6);
}

.tech-item i,
.tech-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tech-item span {
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tech-item span {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Contact Section */
.contact-section {
    padding: 80px 0 100px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Contact Info Wrapper Main */
.contact-info-wrapper-main {
    background: rgba(30, 27, 75, 0.7);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border: 2px solid rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-info-wrapper-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #4f46e5);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

[data-theme="dark"] .contact-info-wrapper-main {
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.4);
}

.contact-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-main-subtitle {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Contact Cards */
.contact-card {
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(79, 70, 229, 0.3);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card:hover::before {
    opacity: 0.1;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: var(--shadow-lg), var(--glow-cyan);
    color: inherit;
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.contact-card-icon i {
    font-size: 2rem;
    color: white;
}

.contact-card:hover .contact-card-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.contact-card-content {
    position: relative;
    z-index: 1;
}

.contact-card-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-card-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Social Media Section */
.social-media-section {
    text-align: center;
    padding-top: 3rem;
    border-top: 2px solid rgba(79, 70, 229, 0.2);
}

.social-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(10px);
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(79, 70, 229, 0.3);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-card:hover::before {
    opacity: 0.2;
}

.social-card:hover {
    transform: translateY(-10px) scale(1.1);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    color: white;
}

.social-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.social-card:hover i {
    color: white;
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.social-card span {
    font-weight: 600;
    color: #ffffff;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-info-wrapper-main {
        padding: 2rem;
    }
    
    .contact-main-title {
        font-size: 2rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-card-icon i {
        font-size: 1.5rem;
    }
}

.contact-form-wrapper,
.contact-info-wrapper {
    background: rgba(30, 27, 75, 0.7);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    height: 100%;
    border: 2px solid rgba(79, 70, 229, 0.3);
    position: relative;
}

.contact-form-wrapper::before,
.contact-info-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #4f46e5);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .contact-info-wrapper {
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.4);
}

.contact-form-title,
.contact-info-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-form-subtitle,
.contact-info-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-form-title,
[data-theme="dark"] .contact-info-title {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

[data-theme="dark"] .contact-form-subtitle,
[data-theme="dark"] .contact-info-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.form-floating {
    margin-bottom: 1rem;
}

.form-control {
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.5);
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-floating label {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 27, 75, 0.5);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.contact-info-item:hover::before {
    transform: scaleY(1);
}

.contact-info-item:hover {
    background: rgba(30, 27, 75, 0.8);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateX(10px);
    box-shadow: var(--glow-cyan);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.info-content p,
.info-content a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.info-content a:hover {
    color: var(--primary-color);
}

.contact-social h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(30, 27, 75, 0.5);
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: #ffffff;
    border: 2px solid rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link-item:hover::before {
    opacity: 1;
}

.social-link-item > * {
    position: relative;
    z-index: 1;
}

.social-link-item:hover {
    color: white;
    transform: translateX(10px) scale(1.05);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: var(--glow-primary);
}

.social-link-item i {
    font-size: 1.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: transparent;
}

.accordion-item {
    background: rgba(30, 27, 75, 0.7);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(79, 70, 229, 0.3);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md), var(--glow-primary);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: var(--shadow-lg), var(--glow-cyan);
}

[data-theme="dark"] .accordion-item {
    background: rgba(10, 14, 39, 0.8);
}

.accordion-button {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
}

.accordion-button i {
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) i {
    color: white;
}

.accordion-body {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* Footer */
.footer-custom {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    color: white;
    padding: 60px 0 0;
    position: relative;
    border-top: 2px solid transparent;
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #4f46e5);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.footer-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-links li {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: 2px solid rgba(79, 70, 229, 0.5);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    z-index: 999;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(
        from 0deg,
        #4f46e5,
        #7c3aed,
        #06b6d4,
        #4f46e5
    );
    border-radius: 50%;
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-to-top:hover::before {
    opacity: 0.5;
}

.scroll-to-top i {
    position: relative;
    z-index: 1;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl), var(--glow-cyan);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-badge {
        position: static;
        margin-top: 1rem;
        display: inline-flex;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   ADVANCED ANIMATIONS & EFFECTS
   =================================== */

/* Particles.js Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* Global Particles Background */
#particles-js-global {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

[data-theme="dark"] #particles-js-global {
    opacity: 0.4;
}

/* Main content relative positioning */
main {
    position: relative;
    z-index: 1;
    animation: pageTransition 0.6s ease-out;
}

/* Floating Code Elements */
.floating-code-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.code-float {
    position: absolute;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: 'Courier New', monospace;
    animation: floatCode 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-40px) rotate(-5deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-20px) rotate(3deg);
        opacity: 0.2;
    }
}

/* Code Cursor Trail */
.code-cursor-trail {
    position: fixed;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    pointer-events: none;
    z-index: 9998;
    animation: cursorFade 1s ease-out forwards;
}

@keyframes cursorFade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* Enhanced Hero Section with Animations */
.hero-section {
    position: relative;
    z-index: 1;
}

.hero-content,
.hero-image {
    position: relative;
    z-index: 2;
}

/* Glowing Effect for Code Block */
.code-animation {
    position: relative;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

/* Animated Border for Cards */
.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.project-card:hover::before {
    opacity: 0.3;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Skill Bar Glow Effect */
.skill-progress {
    position: relative;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    animation: skillGlow 2s ease-in-out infinite;
}

@keyframes skillGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
}

/* Floating Animation for About Badge */
.about-badge {
    animation: floatBadge 3s ease-in-out infinite;
}

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

/* Text Gradient Animation */
.hero-name {
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Ripple Effect on Click */
.btn-primary,
.btn-outline-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after,
.btn-outline-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Typing Cursor Effect */
.hero-title::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 5px;
}

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

/* Magnetic Button Effect */
.social-icon {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    animation: magnetic 0.3s ease;
}

@keyframes magnetic {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Shimmer Effect for Sections */
.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Stats Counter Pulse */
.stat-number {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Tech Item Bounce on Hover */
.tech-item:hover {
    animation: techBounce 0.6s ease;
}

@keyframes techBounce {
    0%, 100% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Form Focus Glow */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25),
                0 0 20px rgba(99, 102, 241, 0.3);
    animation: focusGlow 0.3s ease;
}

@keyframes focusGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25),
                    0 0 20px rgba(99, 102, 241, 0.3);
    }
}

/* Scroll Indicator Animation Enhancement */
.scroll-indicator a {
    animation: bounce 2s infinite, colorShift 3s infinite;
}

@keyframes colorShift {
    0%, 100% {
        color: var(--primary-color);
    }
    50% {
        color: var(--secondary-color);
    }
}

/* Project Card Tilt Shadow */
.project-card {
    transition: all 0.3s ease, transform 0.1s ease;
}

.project-card:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

/* Contact Info Item Slide */
.contact-info-item {
    transition: all 0.3s ease;
}

.contact-info-item:hover .info-icon {
    animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

/* Footer Social Links Wave */
.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links a:nth-child(1) { animation-delay: 0s; }
.social-links a:nth-child(2) { animation-delay: 0.1s; }
.social-links a:nth-child(3) { animation-delay: 0.2s; }

/* Page Transition Effect */
@keyframes pageTransition {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Slide Down */
.navbar-custom {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Scroll to Top Button */
.scroll-to-top {
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.scroll-to-top:hover {
    animation: spinPulse 0.6s ease;
}

@keyframes spinPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

/* Responsive Animations */
@media (max-width: 991px) {
    .code-float {
        font-size: 1.5rem;
    }
    
    .floating-code-elements {
        opacity: 0.5;
    }
}

@media (max-width: 767px) {
    .code-float {
        display: none;
    }
    
    #particles-js {
        opacity: 0.3;
    }
    
    #particles-js-global {
        opacity: 0.3;
    }
}

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