/* Shared Styles for Portfolio */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FDFBF8 0%, #F8F6F3 25%, #F5F3F0 50%, #F0EDE8 100%);
    color: #2D3748;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Enhanced Navigation Styles */
.nav-link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid transparent;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link.active,
.nav-link:hover {
    color: #1E40AF;
    border-bottom-color: #1E40AF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.nav-link.active::before,
.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Header */
header {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

header h1 {
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Section Animations */
.section-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid rgba(30, 64, 175, 0.1);
    border-left-color: #1E40AF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

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

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

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

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

/* Notification Styles */
.notification-toast {
    backdrop-filter: blur(10px);
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

/* Enhanced Skill Cards (for index.html) */
.skill-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 64, 175, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E40AF, #3B82F6, #1E3A8A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
}

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

.skill-card h4 {
    position: relative;
    z-index: 1;
}

.skill-card .skill-tags span {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.skill-card:hover .skill-tags span {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(30, 64, 175, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Timeline Styles (for index.html) */
.timeline-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #06B6D4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
}

.timeline-item:hover::before {
    transform: scaleX(1);
}

/* Timeline Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -41px;
    top: 40px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover::after {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3), 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
}

/* Enhanced Typography */
.timeline-item h4 {
    color: #1E40AF;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.timeline-item .period {
    display: inline-block;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 4px 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    background-color: rgba(59, 130, 246, 0.05);
}

.timeline-item .company-location {
    color: #4B5563;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.timeline-item .highlights {
    margin: 20px 0;
}

.timeline-item .highlights li {
    color: #6B7280;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.timeline-item .highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.timeline-item .tech-stack {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.timeline-item .tech-stack strong {
    color: #1E40AF;
    font-weight: 600;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
}

/* Enhanced Button Styles */
.cta-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Professional Card Hover Effects */
.professional-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #06B6D4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.professional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hero Section Optimization for Core Competencies Visibility */
#hero {
    min-height: auto;
}

@media (min-width: 768px) {
    #hero {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 1rem;
    }
}

/* Ensure Core Competencies are highlighted and visible */
.core-competencies-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

/* Ensure Core Competencies are visible on smaller screens */
@media (max-width: 767px) {
    #hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-item {
        margin-left: 0;
        padding: 24px 20px;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .timeline-item h4 {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats .divider {
        display: none;
    }
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.nav-link:focus,
.cta-button:focus,
button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sticky, .fixed {
        position: static !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}