/* ===================================
   FUTURISTIC ANIMATIONS & EFFECTS
   =================================== */

/* ===================================
   Glowing Text Animation
   =================================== */
.title-gradient {
    animation: glowText 3s ease-in-out infinite alternate;
}

@keyframes glowText {
    0% {
        text-shadow: 0 0 5px rgba(0, 102, 204, 0.5),
            0 0 10px rgba(0, 102, 204, 0.3),
            0 0 20px rgba(0, 102, 204, 0.2);
        filter: brightness(1);
    }

    100% {
        text-shadow: 0 0 10px rgba(0, 168, 150, 0.8),
            0 0 20px rgba(0, 168, 150, 0.5),
            0 0 40px rgba(0, 168, 150, 0.3);
        filter: brightness(1.1);
    }
}

/* ===================================
   Floating Animation for Profile
   =================================== */
.image-wrapper.circular {
    animation: floatProfile 6s ease-in-out infinite;
}

@keyframes floatProfile {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 0 50px rgba(0, 102, 204, 0.4);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
        box-shadow: 0 20px 60px rgba(0, 102, 204, 0.6),
            0 0 80px rgba(0, 168, 150, 0.3);
    }
}

/* ===================================
   Pulse Effect for Buttons
   =================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* ===================================
   Neon Glow Effect for Cards
   =================================== */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 102, 204, 0.3),
        0 0 100px rgba(0, 102, 204, 0.1);
}

.service-card::before {
    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;
}

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

/* ===================================
   Portfolio Card 3D Effect
   =================================== */
.portfolio-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 30px 60px rgba(0, 102, 204, 0.4),
        -20px 20px 60px rgba(0, 168, 150, 0.2);
}

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.3) 0%, rgba(0, 168, 150, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-card:hover .portfolio-image::after {
    opacity: 1;
}

/* ===================================
   Typing Cursor Effect
   =================================== */
.hero-subtitle::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 5px;
    color: var(--primary-blue);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ===================================
   Scanning Line Effect on Hero
   =================================== */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), var(--primary-teal), transparent);
    animation: scanLine 8s linear infinite;
    opacity: 0.3;
}

@keyframes scanLine {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* ===================================
   Particle/Grid Background Effect
   =================================== */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* ===================================
   Stats Counter Animation
   =================================== */
.stat-number {
    animation: countGlow 2s ease-in-out infinite alternate;
}

@keyframes countGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 102, 204, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(0, 168, 150, 0.8));
    }
}

/* ===================================
   Social Links Orbit Effect
   =================================== */
.hero-social-links {
    position: relative;
}

.hero-social-link {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-social-link:hover {
    transform: translateY(-10px) scale(1.2) !important;
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.5);
}

/* Staggered Animation on Load */
.hero-social-link:nth-child(1) {
    animation: popIn 0.5s 0.1s both;
}

.hero-social-link:nth-child(2) {
    animation: popIn 0.5s 0.2s both;
}

.hero-social-link:nth-child(3) {
    animation: popIn 0.5s 0.3s both;
}

.hero-social-link:nth-child(4) {
    animation: popIn 0.5s 0.4s both;
}

.hero-social-link:nth-child(5) {
    animation: popIn 0.5s 0.5s both;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ===================================
   Section Divider Animation
   =================================== */
.section-tag {
    position: relative;
    overflow: hidden;
}

.section-tag::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%;
    }
}

/* ===================================
   Contact Form Futuristic Style
   =================================== */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2),
        0 0 20px rgba(0, 102, 204, 0.3),
        inset 0 0 10px rgba(0, 102, 204, 0.1);
    animation: inputGlow 1.5s ease-in-out infinite alternate;
}

@keyframes inputGlow {
    0% {
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2),
            0 0 20px rgba(0, 102, 204, 0.3);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2),
            0 0 30px rgba(0, 168, 150, 0.4);
    }
}

/* ===================================
   Project Cards Holographic Effect
   =================================== */
.project-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover::before {
    opacity: 1;
    animation: holographic 2s linear infinite;
}

@keyframes holographic {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
}

/* ===================================
   Navbar Glassmorphism Enhancement
   =================================== */
.navbar {
    transition: all 0.4s;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 102, 204, 0.1);
}

/* ===================================
   Floating Orbs Animation
   =================================== */
.float-element {
    animation: floatOrb 20s infinite ease-in-out;
}

.float-element:nth-child(1) {
    animation-duration: 25s;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    animation-duration: 30s;
    animation-delay: 5s;
}

.float-element:nth-child(3) {
    animation-duration: 35s;
    animation-delay: 10s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }

    25% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 0.15;
    }

    50% {
        transform: translate(-30px, 30px) scale(0.8);
        opacity: 0.08;
    }

    75% {
        transform: translate(40px, 40px) scale(1.1);
        opacity: 0.12;
    }
}

/* ===================================
   Text Reveal Animation
   =================================== */
.hero-title .title-line {
    opacity: 0;
    animation: revealText 1s forwards;
}

.hero-title .title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title .title-gradient {
    animation-delay: 0.5s;
}

.hero-title .title-line:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(30px) skewY(3deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) skewY(0deg);
        filter: blur(0);
    }
}

/* ===================================
   Scroll Progress Indicator
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s;
}

/* ===================================
   Visual Card Hover Effects
   =================================== */
.visual-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s;
}

.visual-card:hover::before {
    transform: scale(1);
}

.visual-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.3);
}

.visual-card.tech:hover {
    border-color: rgba(0, 102, 204, 0.5);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.3),
        0 0 60px rgba(0, 102, 204, 0.2);
}

.visual-card.adventure:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3),
        0 0 60px rgba(255, 107, 53, 0.2);
}

/* ===================================
   Logo Animation
   =================================== */
.logo-text {
    position: relative;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 102, 204, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(0, 168, 150, 0.8));
    }
}

/* ===================================
   Travel Gallery Hover
   =================================== */
.travel-gallery img {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.travel-gallery img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
    z-index: 10;
    position: relative;
}

/* ===================================
   Contact Card Hover
   =================================== */
.contact-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.5s;
}

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

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.2);
}

.contact-card:hover i {
    transform: scale(1.2);
    animation: iconPulse 1s infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.3);
    }
}

/* ===================================
   Footer Wave Effect
   =================================== */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), var(--primary-teal), transparent);
    animation: footerWave 3s ease-in-out infinite;
}

@keyframes footerWave {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===================================
   Reduced 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;
    }
}

/* ===================================
   Mobile Optimization for Animations
   =================================== */
@media (max-width: 768px) {
    .hero::after {
        display: none;
    }

    .hero-background::before {
        background-size: 30px 30px;
    }

    .float-element {
        animation-duration: 40s;
    }

    .image-wrapper.circular {
        animation: floatProfileMobile 4s ease-in-out infinite;
    }

    @keyframes floatProfileMobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }
}