/* =========================================
   FLOATING GEOMETRIC SHAPES - Hero Section
   ========================================= */
.intro-section .geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-accent);
    border-radius: 20px;
    top: 10%;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.shape-2 {
    width: 80px;
    height: 80px;
    border: 2px solid var(--secondary-accent);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-accent);
    top: 30%;
    right: 20%;
    animation-duration: 20s;
    animation-delay: 4s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-4 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 0, 110, 0.3);
    border-radius: 30px;
    bottom: 20%;
    left: 15%;
    animation-duration: 22s;
    animation-delay: 1s;
    transform: rotate(-30deg);
}

.shape-5 {
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary-accent);
    top: 70%;
    left: 40%;
    animation-duration: 17s;
    animation-delay: 3s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.1;
    }

    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-50px) translateX(-10px) rotate(180deg);
        opacity: 0.15;
    }

    75% {
        transform: translateY(-20px) translateX(30px) rotate(270deg);
        opacity: 0.25;
    }
}

body.light-theme .geometric-shape {
    opacity: 0.15;
}

body.light-theme .shape-1 {
    border-color: rgba(99, 102, 241, 0.4);
}

body.light-theme .shape-2 {
    border-color: rgba(236, 72, 153, 0.4);
}

body.light-theme .shape-3 {
    border-color: rgba(16, 185, 129, 0.4);
}

body.light-theme .shape-4 {
    border-color: rgba(245, 158, 11, 0.4);
}

body.light-theme .shape-5 {
    border-color: rgba(139, 92, 246, 0.4);
}

/* =========================================
   ENHANCED GLOW EFFECTS
   ========================================= */
.intro-name {
    position: relative;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 50px rgba(0, 242, 255, 0.5), 0 0 80px rgba(123, 44, 191, 0.3);
    }
}

body.light-theme .intro-name {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    animation: textGlowLight 3s ease-in-out infinite;
}

@keyframes textGlowLight {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    50% {
        text-shadow: 0 0 40px rgba(99, 102, 241, 0.4), 0 0 60px rgba(236, 72, 153, 0.2);
    }
}

/* =========================================
   PARTICLE TRAIL EFFECT
   ========================================= */
.particle-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-accent);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFade 1s ease-out forwards;
    z-index: 100;
}

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

    100% {
        opacity: 0;
        transform: scale(0) translateY(-50px);
    }
}

/* =========================================
   ENHANCED BUTTON EFFECTS
   ========================================= */
.intro-cta .btn-primary,
.intro-cta .btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.intro-cta .btn-primary::after,
.intro-cta .btn-secondary::after {
    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 ease, height 0.6s ease;
}

.intro-cta .btn-primary:hover::after,
.intro-cta .btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.intro-cta .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.5);
}

.intro-cta .btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(123, 44, 191, 0.4);
}

body.light-theme .intro-cta .btn-primary:hover {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
}

body.light-theme .intro-cta .btn-secondary:hover {
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.4);
}

/* =========================================
   TECH BADGE ANIMATIONS
   ========================================= */
.intro-tech-scroll-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.intro-tech-badges {
    display: flex;
    gap: 0.75rem;
    animation: scrollBadges 20s linear infinite;
}

.intro-tech-badges:hover {
    animation-play-state: paused;
}

@keyframes scrollBadges {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-mini-badge {
    position: relative;
    overflow: hidden;
}

.tech-mini-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* =========================================
   PROFILE PHOTO ENHANCED EFFECTS
   ========================================= */
.photo-frame {
    position: relative;
    filter: drop-shadow(0 0 40px rgba(0, 242, 255, 0.3));
    transition: filter 0.3s ease;
}

.photo-frame:hover {
    filter: drop-shadow(0 0 60px rgba(0, 242, 255, 0.5)) drop-shadow(0 0 80px rgba(123, 44, 191, 0.3));
}

body.light-theme .photo-frame {
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.3));
}

body.light-theme .photo-frame:hover {
    filter: drop-shadow(0 0 50px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 70px rgba(236, 72, 153, 0.3));
}

/* Add pulsing ring effect */
.photo-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
    opacity: 0;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .geometric-shapes {
        display: none;
    }

    .intro-section::before,
    .intro-section::after {
        opacity: 0.5;
    }

    .intro-name {
        animation: none;
        text-shadow: none;
    }

    .photo-frame {
        filter: none;
    }

    .photo-frame:hover {
        filter: none;
    }
}