/* ========================================
   2026 AI-Driven Design Enhancements
   Stunning Visual Effects & Animations
   ======================================== */

/* ========================================
   Animated Gradient Mesh Background
   ======================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6, 182, 212, 0.12), transparent),
        radial-gradient(ellipse 50% 60% at 60% 80%, rgba(236, 72, 153, 0.08), transparent),
        radial-gradient(ellipse 70% 50% at 10% 90%, rgba(99, 102, 241, 0.1), transparent);
    z-index: -2;
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { 
        background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
        filter: hue-rotate(0deg);
    }
    25% { 
        background-position: 50% 20%, 80% 50%, 50% 80%, 20% 50%;
        filter: hue-rotate(15deg);
    }
    50% { 
        background-position: 100% 50%, 50% 100%, 0% 50%, 50% 0%;
        filter: hue-rotate(0deg);
    }
    75% { 
        background-position: 50% 80%, 20% 50%, 50% 20%, 80% 50%;
        filter: hue-rotate(-15deg);
    }
}

/* ========================================
   Aurora Glow Effect
   ======================================== */

.aurora-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg, 
            rgba(139, 92, 246, 0.03) 60deg, 
            transparent 120deg, 
            rgba(6, 182, 212, 0.03) 180deg, 
            transparent 240deg, 
            rgba(236, 72, 153, 0.03) 300deg, 
            transparent 360deg);
    animation: auroraRotate 30s linear infinite;
    z-index: -1;
    pointer-events: none;
}

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

/* ========================================
   Enhanced Hero Section
   ======================================== */

.hero {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        linear-gradient(225deg, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

.hero-title .title-name {
    position: relative;
    display: inline-block;
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.3), 0 0 80px rgba(6, 182, 212, 0.2);
        filter: brightness(1.1);
    }
}

/* Animated gradient underline for name */
.hero-title .title-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #ec4899, #8b5cf6);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ========================================
   Text Shimmer Animation
   ======================================== */

.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--text-secondary) 0%,
        var(--text-primary) 25%,
        var(--accent-cyan) 50%,
        var(--text-primary) 75%,
        var(--text-secondary) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

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

/* ========================================
   Enhanced Glassmorphism Cards
   ======================================== */

.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Apply to existing cards */
.expertise-card,
.project-card,
.blog-card,
.testimonial-card,
.service-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card:hover,
.project-card:hover,
.blog-card:hover,
.testimonial-card:hover,
.service-card:hover {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(6, 182, 212, 0.04) 100%
    );
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========================================
   Animated Border Gradient
   ======================================== */

.gradient-border {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4, #ec4899, #8b5cf6);
    background-size: 300% 300%;
    border-radius: inherit;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

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

/* ========================================
   Enhanced Buttons
   ======================================== */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
    box-shadow: 
        0 6px 25px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(139, 92, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover::after {
    opacity: 1;
}

/* ========================================
   Floating Elements Animation
   ======================================== */

.float-icon {
    animation: floatBounce 6s ease-in-out infinite;
}

.float-icon:nth-child(1) { animation-delay: 0s; }
.float-icon:nth-child(2) { animation-delay: 1s; }
.float-icon:nth-child(3) { animation-delay: 2s; }
.float-icon:nth-child(4) { animation-delay: 3s; }
.float-icon:nth-child(5) { animation-delay: 4s; }

@keyframes floatBounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-15px) rotate(5deg) scale(1.05);
        opacity: 1;
    }
    50% { 
        transform: translateY(-25px) rotate(-3deg) scale(1.1);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-10px) rotate(3deg) scale(1.05);
        opacity: 1;
    }
}

/* ========================================
   Profile Image Enhancement
   ======================================== */

.profile-frame {
    position: relative;
}

.profile-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: conic-gradient(
        from 0deg,
        #8b5cf6,
        #06b6d4,
        #ec4899,
        #f59e0b,
        #10b981,
        #8b5cf6
    );
    border-radius: 50%;
    animation: profileGlow 4s linear infinite;
    z-index: -1;
    opacity: 0.8;
}

@keyframes profileGlow {
    0% { transform: rotate(0deg); filter: blur(8px); }
    100% { transform: rotate(360deg); filter: blur(8px); }
}

.profile-image {
    border: 4px solid var(--bg-primary);
}

/* ========================================
   Section Reveal Animations
   ======================================== */

.section-header {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered card animations */
.expertise-card,
.project-card,
.blog-card {
    opacity: 0;
    transform: translateY(40px);
    animation: cardReveal 0.6s ease forwards;
}

.expertise-card:nth-child(1), .project-card:nth-child(1), .blog-card:nth-child(1) { animation-delay: 0.1s; }
.expertise-card:nth-child(2), .project-card:nth-child(2), .blog-card:nth-child(2) { animation-delay: 0.2s; }
.expertise-card:nth-child(3), .project-card:nth-child(3), .blog-card:nth-child(3) { animation-delay: 0.3s; }
.expertise-card:nth-child(4), .project-card:nth-child(4), .blog-card:nth-child(4) { animation-delay: 0.4s; }
.expertise-card:nth-child(5), .project-card:nth-child(5), .blog-card:nth-child(5) { animation-delay: 0.5s; }
.expertise-card:nth-child(6), .project-card:nth-child(6), .blog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Stats Counter Enhancement
   ======================================== */

.stat-item {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.04));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.08));
    border-color: rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

.stat-number {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation Enhancement
   ======================================== */

.navbar {
    /* background: linear-gradient(180deg, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.2); }
}

/* ========================================
   Scroll Progress Indicator
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #ec4899);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   Testimonial Enhancement
   ======================================== */

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 6rem;
    font-family: Georgia, serif;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    pointer-events: none;
}

/* ========================================
   Footer Enhancement
   ======================================== */

.footer {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.5), transparent);
}

/* ========================================
   Icon Glow Effect
   ======================================== */

.social-link svg,
.expertise-icon svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.social-link:hover svg,
.expertise-icon:hover svg {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
    transform: scale(1.1);
}

/* ========================================
   Form Input Enhancement
   ======================================== */

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 20px rgba(139, 92, 246, 0.1) !important;
    outline: none;
}

/* ========================================
   Badge Glow
   ======================================== */

.hero-badge {
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.3); }
}

/* ========================================
   Skill Tag Enhancement
   ======================================== */

.skill-tag,
.tag {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-tag:hover,
.tag:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* ========================================
   Timeline Enhancement
   ======================================== */

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
    50% { transform: scale(1.2); box-shadow: 0 0 30px rgba(139, 92, 246, 0.8); }
}

/* ========================================
   Cursor Trail Effect (optional enhancement)
   ======================================== */

.cursor-glow {
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.12) 0%,
        rgba(6, 182, 212, 0.08) 30%,
        transparent 70%
    );
}

/* ========================================
   Loading Animation for Images
   ======================================== */

img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    body::before {
        background: 
            radial-gradient(ellipse 100% 60% at 50% 30%, rgba(139, 92, 246, 0.1), transparent);
    }
    
    .aurora-glow {
        display: none;
    }
    
    .profile-frame::before {
        inset: -4px;
    }
}

/* ========================================
   Enhanced Page Header (Same as Hero)
   ======================================== */

.page-header {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(225deg, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse 40% 30% at 20% 50%, rgba(139, 92, 246, 0.12), transparent),
        radial-gradient(ellipse 35% 25% at 80% 30%, rgba(6, 182, 212, 0.1), transparent),
        radial-gradient(ellipse 30% 35% at 60% 70%, rgba(236, 72, 153, 0.06), transparent);
    animation: headerMeshMove 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerMeshMove {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
    }
    33% { 
        transform: translate(2%, 2%) rotate(1deg);
    }
    66% { 
        transform: translate(-2%, 1%) rotate(-1deg);
    }
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4), transparent);
}

.page-title {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 50px rgba(6, 182, 212, 0.3));
    }
}

.page-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin: 0 auto var(--space-md) auto;
    animation: labelPulse 2s ease-in-out infinite;
}

/* Ensure page-header-content centers the label properly */
.page-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes labelPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
}

.page-subtitle {
    color: var(--text-secondary);
    position: relative;
}

/* Floating decoration elements for page headers */
.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content::before,
.page-header-content::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

.page-header-content::before {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    animation: floatLeft 8s ease-in-out infinite;
}

.page-header-content::after {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
    animation: floatRight 8s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

@keyframes floatRight {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

/* ========================================
   Enhanced Section Styling
   ======================================== */

section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2), transparent);
}

.section-header {
    position: relative;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    animation: labelFloat 3s ease-in-out infinite;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.section-title {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 50%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 4s ease-in-out infinite;
}

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

/* ========================================
   Enhanced Tech Stack Section
   ======================================== */

.tech-stack {
    position: relative;
}

.tech-stack::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3), transparent);
}

.tech-category {
    position: relative;
}

.tech-category::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05), transparent 50%);
    pointer-events: none;
    animation: techGlow 6s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-category:hover::after {
    opacity: 1;
}

@keyframes techGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20%, 20%) scale(1.2); }
}

.tech-item-card {
    position: relative;
    overflow: hidden;
}

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

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

.tech-icon {
    position: relative;
}

.tech-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tech-item-card:hover .tech-icon::after {
    opacity: 0.6;
}

/* Animated tech icon pulse */
@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; }
    50% { box-shadow: 0 0 20px 5px currentColor; }
}

.tech-item-card:hover .tech-icon {
    animation: iconPulse 1.5s ease-in-out infinite;
}

/* ========================================
   Enhanced Experience Timeline
   ======================================== */

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.8),
        rgba(6, 182, 212, 0.6),
        rgba(236, 72, 153, 0.4),
        rgba(139, 92, 246, 0.2)
    );
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInTimeline 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    animation: timelineDot 2s ease-in-out infinite;
}

@keyframes timelineDot {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.8), 0 0 40px rgba(6, 182, 212, 0.4);
        transform: scale(1.1);
    }
}

/* ========================================
   Enhanced Project Cards
   ======================================== */

.project-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0) 0%,
        rgba(139, 92, 246, 0.1) 50%,
        rgba(6, 182, 212, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

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

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 2;
}

.project-card:hover::after {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-image {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

/* ========================================
   Enhanced Blog Cards
   ======================================== */

.blog-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4, #ec4899, #8b5cf6);
    background-size: 300% 300%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: borderRotate 4s linear infinite paused;
}

.blog-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(139, 92, 246, 0.1);
}

.blog-card-image {
    overflow: hidden;
}

.blog-card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

/* ========================================
   Enhanced Expertise Cards
   ======================================== */

.expertise-card {
    position: relative;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(139, 92, 246, 0.1);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.expertise-card:hover .expertise-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.15));
    border-color: rgba(139, 92, 246, 0.4);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* ========================================
   Enhanced Contact Form
   ======================================== */

.contact-form {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.5), transparent);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.15),
        0 0 30px rgba(139, 92, 246, 0.1);
    outline: none;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--accent-primary);
}

/* ========================================
   Enhanced Testimonials
   ======================================== */

.testimonial-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: Georgia, serif;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(139, 92, 246, 0.1);
}

/* ========================================
   Enhanced Skill Tags
   ======================================== */

.skill-tag,
.tag,
.tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-tag:hover,
.tag:hover,
.tech-tag:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.2);
}

/* ========================================
   Enhanced Certification Badges
   ======================================== */

.certification-badge,
.cert-badge {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 1rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.certification-badge::before,
.cert-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent,
        rgba(6, 182, 212, 0.1),
        transparent
    );
    animation: certRotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certification-badge:hover::before,
.cert-badge:hover::before {
    opacity: 1;
}

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

.certification-badge:hover,
.cert-badge:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
}

/* ========================================
   Enhanced Social Links
   ======================================== */

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2);
}

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

.social-link svg {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* ========================================
   Animated Counter Numbers
   ======================================== */

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.stat-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.04));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 1rem;
    transition: all 0.4s ease;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Glowing Border Animation
   ======================================== */

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4, #ec4899, #f59e0b, #8b5cf6);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: glowMove 3s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

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

/* ========================================
   Enhanced Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa, #22d3ee);
}

/* ========================================
   Enhanced Text Selection
   ======================================== */

::selection {
    background: rgba(139, 92, 246, 0.4);
    color: white;
    text-shadow: none;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.4);
    color: white;
    text-shadow: none;
}

/* ========================================
   Magnetic Button Effect
   ======================================== */

.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Noise Texture Overlay
   ======================================== */

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9998;
}

/* ========================================
   Floating Orbs Animation
   ======================================== */

.floating-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: floatOrb1 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation: floatOrb2 18s ease-in-out infinite;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: 30%;
    animation: floatOrb3 20s ease-in-out infinite;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: 30%;
    right: 20%;
    animation: floatOrb4 22s ease-in-out infinite;
}

.orb-5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: floatOrb5 16s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 30px) scale(1.1); }
    50% { transform: translate(20px, -40px) scale(0.9); }
    75% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 40px) scale(1.15); }
    66% { transform: translate(40px, -30px) scale(0.85); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -60px) scale(1.2); }
}

@keyframes floatOrb4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-40px, -50px) scale(0.9); }
    50% { transform: translate(60px, 30px) scale(1.1); }
    75% { transform: translate(20px, -40px) scale(1); }
}

@keyframes floatOrb5 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-70px, 50px) scale(1.3) rotate(180deg); }
}

/* ========================================
   Enhanced Footer Styles
   ======================================== */

footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3), transparent);
}

/* ========================================
   Enhanced Links
   ======================================== */

a {
    position: relative;
    transition: color 0.3s ease;
}

.content-link {
    display: inline-block;
    position: relative;
    color: var(--accent-primary);
}

.content-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.content-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================
   Glassmorphism Info Cards
   ======================================== */

.info-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(139, 92, 246, 0.1);
}

/* ========================================
   Image Reveal Animation
   ======================================== */

img {
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* ========================================
   Loading Skeleton
   ======================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================
   Responsive Floating Orbs
   ======================================== */

@media (max-width: 768px) {
    .floating-orbs .orb {
        transform: scale(0.6);
        filter: blur(40px);
    }
    
    .orb-4, .orb-5 {
        display: none;
    }
}

/* ========================================
   Reduce Motion for Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .aurora-glow,
    .floating-orbs {
        display: none;
    }
}
