@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(240, 240, 245, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid rgba(240, 240, 245, 0.8);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Firefox scrollbar support */
html {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(240, 240, 245, 0.8);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    z-index: 10;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-line {
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.skill-tag {
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.scroll-smooth {
    scroll-behavior: smooth;
}

.hero-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 6s infinite alternate;
}

@media (min-width: 640px) {
    .hero-image-container {
        width: 220px;
        height: 220px;
        margin: 0 auto 3rem;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.image-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(102, 126, 234, 0.8) 0%,
            rgba(102, 126, 234, 0) 20%,
            rgba(102, 126, 234, 0) 80%,
            rgba(102, 126, 234, 0.8) 100%
        );
    pointer-events: none;
}

/* Hero section responsive adjustments */
#home {
    padding-top: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

@media (max-width: 640px) {
    #home {
        padding-top: 80px;
    }
    
    #home h1 {
        margin-top: 1rem;
    }
}

/* Scroll Progress Indicator */
.scroll-progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
    animation: gradient-shift 4s ease infinite;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

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

/* Smooth Scroll Enhancements */
html.enhanced-scroll {
    scroll-behavior: auto !important; /* Override default smooth scroll for custom implementation */
}

#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    transition: all 0.3s ease;
}

/* Enhanced Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-links {
    padding: 1rem 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 0.25rem 0;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    transform: translateX(5px);
}

.mobile-menu-link i {
    width: 24px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.mobile-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Hamburger Animation Styles */
.hamburger-btn {
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-icon {
    position: relative;
    width: 24px;
    height: 18px;
    margin: auto;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 1px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

/* Hamburger to Cross Animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Enhanced mobile menu visibility on all backgrounds */
@media (max-width: 768px) {
    .mobile-menu-content {
        background: linear-gradient(135deg, 
            rgba(102, 126, 234, 0.98) 0%, 
            rgba(118, 75, 162, 0.98) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
}

/* Responsive improvements */
@media (max-width: 480px) {
    .mobile-menu-content {
        width: 100%;
    }
}

/* Smooth animations for all interactive elements */
.mobile-menu-link,
.hamburger-btn {
    -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar for mobile menu */
.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Enhanced accessibility */
.hamburger-btn:focus,
.mobile-menu-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Improved mobile menu entrance animation */
.mobile-menu-link {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.3s ease forwards;
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}