/* ===========================
   ADVANCED DESIGN IMPROVEMENTS
   =========================== */

/* Smooth Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Card Hover Effects */
.enhanced-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enhanced-card:hover::before {
    width: 500px;
    height: 500px;
}

.enhanced-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 
                0 0 40px rgba(139, 92, 246, 0.2);
}

/* Animated Border */
.animated-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #3b82f6, #8b5cf6, #f59e0b) border-box;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #f59e0b, #3b82f6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-border:hover::before {
    opacity: 1;
}

@keyframes border-rotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Floating Particles Effect */
.particle-float {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    animation: float-up 6s ease-in infinite;
    opacity: 0;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Text Shimmer Effect */
.shimmer-text {
    position: relative;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.5) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Enhanced Skill Bars */
.skill-bar-enhanced {
    position: relative;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: visible;
}

.skill-progress-enhanced {
    height: 100%;
    border-radius: 10px;
    position: relative;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.skill-progress-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: skill-shine 2s ease-in-out infinite;
}

@keyframes skill-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 3D Card Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}

/* Morphing Background */
.morph-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: rotate(180deg);
    }
}

/* Enhanced Button Styles */
.btn-enhanced {
    position: relative;
    padding: 15px 35px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Glowing Text */
.glow-text {
    text-shadow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color),
                     0 0 30px var(--primary-color);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-color),
                     0 0 40px var(--primary-color),
                     0 0 60px var(--primary-color);
    }
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out;
}

/* Enhanced Timeline */
.timeline-enhanced .timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-dark),
                0 0 0 8px var(--primary-color),
                0 0 20px var(--primary-color);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--bg-dark),
                    0 0 0 8px var(--primary-color),
                    0 0 20px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 0 4px var(--bg-dark),
                    0 0 0 12px var(--primary-color),
                    0 0 30px var(--primary-color);
    }
}

/* Cyberpunk Grid */
.cyber-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-scroll 20s linear infinite;
    opacity: 0.3;
}

@keyframes grid-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Holographic Effect */
.holographic {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1),
        rgba(139, 92, 246, 0.1),
        rgba(245, 158, 11, 0.1));
    animation: hologram 3s ease-in-out infinite;
}

@keyframes hologram {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        filter: hue-rotate(90deg) brightness(1.2);
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.2s ease;
}

/* Spotlight Effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.spotlight:hover::after {
    opacity: 1;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: relative;
}

.noise-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.3;
}
\ n \ n / *   C u s t o m   C u r s o r   * / \ n b o d y   { \ n         c u r s o r :   n o n e ; \ n } \ n \ n . c u r s o r - d o t , \ n . c u r s o r - o u t l i n e   { \ n         p o s i t i o n :   f i x e d ; \ n         t o p :   0 ; \ n         l e f t :   0 ; \ n         t r a n s f o r m :   t r a n s l a t e ( - 5 0 % ,   - 5 0 % ) ; \ n         b o r d e r - r a d i u s :   5 0 % ; \ n         z - i n d e x :   9 9 9 9 9 ; \ n         p o i n t e r - e v e n t s :   n o n e ; \ n } \ n \ n . c u r s o r - d o t   { \ n         w i d t h :   8 p x ; \ n         h e i g h t :   8 p x ; \ n         b a c k g r o u n d - c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; \ n } \ n \ n . c u r s o r - o u t l i n e   { \ n         w i d t h :   4 0 p x ; \ n         h e i g h t :   4 0 p x ; \ n         b o r d e r :   2 p x   s o l i d   v a r ( - - s e c o n d a r y - c o l o r ) ; \ n         t r a n s i t i o n :   w i d t h   0 . 2 s ,   h e i g h t   0 . 2 s ,   b a c k g r o u n d - c o l o r   0 . 2 s ; \ n } \ n \ n . c u r s o r - o u t l i n e . h o v e r i n g   { \ n         w i d t h :   6 0 p x ; \ n         h e i g h t :   6 0 p x ; \ n         b a c k g r o u n d - c o l o r :   r g b a ( 5 9 ,   1 3 0 ,   2 4 6 ,   0 . 1 ) ; \ n         b o r d e r - c o l o r :   t r a n s p a r e n t ; \ n } \ n  
 