/**
 * Engaging Design Enhancements
 * Makes the website more visually appealing and interactive
 */

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Elements that will animate on scroll */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-scale {
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
}

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 15%, #f093fb 30%, #f5576c 45%, #ff8a80 60%, #ffffff 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

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

.hero-section h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: #2d3748;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Profile image enhancement */
.profile-hero-wrapper {
    position: relative;
    animation: fadeInScale 1s ease-out 0.4s both;
}

/* .profile-hero-wrapper::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
    opacity: 0.3;
} */

/* @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
} */

.profile-hero-image {
    position: relative;
    z-index: 1;
    border: 8px solid white !important;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4) !important;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-outline-primary {
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ============================================
   SECTION ENHANCEMENTS
   ============================================ */

section {
    position: relative;
}

/* Alternate section backgrounds */
section:nth-child(even) {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

section:nth-child(odd) {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

/* ============================================
   CARD ENHANCEMENTS
   ============================================ */

.expertise-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.expertise-card:hover::before {
    opacity: 0.05;
}

.expertise-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.expertise-card > * {
    position: relative;
    z-index: 1;
}

.expertise-icon {
    transition: transform 0.4s ease;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.2) rotate(5deg);
}

.expertise-icon i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline Card Enhancements */
.timeline-content-simple {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.timeline-content-simple::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content-simple:hover::before {
    opacity: 1;
}

.timeline-content-simple:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

/* Travel Card Enhancements */
.travel-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.travel-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.travel-card:hover::after {
    opacity: 1;
}

.travel-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25);
}

/* Help Card Enhancements */
.help-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.help-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
}

.help-card:hover::before {
    width: 300px;
    height: 300px;
}

.help-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.help-card i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.help-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* ============================================
   YEAR BADGE ENHANCEMENTS
   ============================================ */

.year-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

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

.year-badge:hover::before {
    left: 100%;
}

.year-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.year-badge.current {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4); }
    to { box-shadow: 0 4px 25px rgba(240, 147, 251, 0.8); }
}

/* ============================================
   NAVIGATION ENHANCEMENTS
   ============================================ */

.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ============================================
   SECTION TITLE ENHANCEMENTS
   ============================================ */

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 70px;
    width: 30px;
    height: 4px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 2px;
}

/* ============================================
   BADGE ENHANCEMENTS
   ============================================ */

.badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge::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.4s ease, height 0.4s ease;
}

.badge:hover::before {
    width: 200px;
    height: 200px;
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

/* ============================================
   AI VISUAL ENHANCEMENTS
   ============================================ */

.ai-visual {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.ai-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(102, 126, 234, 0.03) 10px,
            rgba(102, 126, 234, 0.03) 20px
        );
    animation: slide 20s linear infinite;
}

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

.ai-visual i {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 3s ease-in-out infinite;
}

/* ============================================
   TRAVEL INSIGHT ENHANCEMENT
   ============================================ */

.travel-insight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #667eea, #764ba2) 1;
    position: relative;
    overflow: hidden;
}

.travel-insight::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
    animation: pulse 4s ease-in-out infinite;
}

/* ============================================
   CONTACT FORM ENHANCEMENTS
   ============================================ */

.contact-form {
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

/* ============================================
   SCROLL INDICATOR (Optional)
   ============================================ */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(102, 126, 234, 0.1);
    z-index: 9999;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--scroll-progress, 0%);
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transition: width 0.1s ease;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .expertise-card:hover,
    .travel-card:hover,
    .help-card:hover {
        transform: translateY(-5px);
    }
}

