@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); /* Dimmed background for the remaining 1/4 */
    backdrop-filter: blur(4px);
    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: 75%; /* 3/4 of the screen */
    height: 100vh;
    background: rgba(255, 255, 255, 0.98); /* Light theme background */
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

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

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

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

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #1f2937; /* Dark gray text */
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 0.25rem 0;
    font-weight: 500;
}

.mobile-menu-link:hover {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: #3b82f6; /* Blue accent */
    transform: translateX(5px);
    color: #2563eb;
}

.mobile-menu-link i {
    width: 24px;
    margin-right: 1rem;
    font-size: 1.1rem;
    color: #6b7280; /* Muted icon color */
    transition: color 0.3s ease;
}

.mobile-menu-link:hover i {
    color: #2563eb;
}

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

/* 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: #1f2937; /* Dark lines */
    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);
    background: #ef4444; /* Red close icon */
}

.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);
    background: #ef4444; /* Red close icon */
}

/* Enhanced mobile menu visibility on all backgrounds */
@media (max-width: 768px) {
    .mobile-menu-content {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
}

/* Responsive improvements */
@media (max-width: 480px) {
    /* Keep 75% width even on small screens as requested, or maybe 85% if really small, but user said 3/4 */
    .mobile-menu-content {
        width: 75%; 
    }
}

/* 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(5) { animation-delay: 0.3s; }

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

/* Doodle Header Styles */
.doodle-underline {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.doodle-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 Q50,20 100,10' stroke='%23FFBC42' stroke-width='4' fill='none' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}

/* Updated Timeline Styles */
.timeline-dot {
    background-color: #fff;
    border: 3px solid #0496FF; /* Blue border */
}

.timeline-dot::before {
    background: #0496FF;
}

.timeline-line {
    background: #E5E7EB; /* Light gray line instead of purple gradient */
}

/* Custom colors for specific timeline dots */
.timeline-dot.purple { border-color: #8B5CF6; }
.timeline-dot.purple::before { background: #8B5CF6; }

.timeline-dot.blue { border-color: #0496FF; }
.timeline-dot.blue::before { background: #0496FF; }

.timeline-dot.green { border-color: #00A676; }
.timeline-dot.green::before { background: #00A676; }

.timeline-dot.orange { border-color: #F59E0B; }
.timeline-dot.orange::before { background: #F59E0B; }

.timeline-dot.teal { border-color: #14B8A6; }
.timeline-dot.teal::before { background: #14B8A6; }

.timeline-dot.red { border-color: #EF4444; }
.timeline-dot.red::before { background: #EF4444; }


/* Updated Project Card Styles */
.project-card {
    background: #fff;
    border: 1px solid #F3F4F6;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(4, 150, 255, 0.15); /* Blue-ish shadow */
    border-color: #BFDBFE;
}

/* Updated Scrollbar to match new theme */
::-webkit-scrollbar-thumb {
    background: #D1D5DB; /* Gray */
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* New Hero Section Styles */
.hero-bg {
    background-color: #FFFEF9; /* Off-white/Cream background similar to reference */
    position: relative;
}

/* Sprinkles and Shapes */
.sprinkle {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.sprinkle-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #FFBC42; /* Yellow-Orange */
    animation: float 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.sprinkle-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid #D81159; /* Pink-Red */
    transform: rotate(25deg);
    animation: float 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.sprinkle-cross {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.sprinkle-cross::before,
.sprinkle-cross::after {
    content: '';
    position: absolute;
    background-color: #0496FF; /* Blue */
    border-radius: 2px;
}

.sprinkle-cross::before {
    width: 100%;
    height: 4px;
}

.sprinkle-cross::after {
    height: 100%;
    width: 4px;
}

.sprinkle-squiggle {
    width: 40px;
    height: 20px;
    border: 3px solid #00A676; /* Green */
    border-radius: 50px;
    border-top-color: transparent;
    transform: rotate(-15deg);
    animation: float 7s ease-in-out infinite;
    animation-delay: 0.2s;
}

.sprinkle-star {
    font-size: 20px;
    color: #8B5CF6; /* Purple */
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 0.8s;
}
.sprinkle-star::before {
    content: '★';
}

.sprinkle-diamond {
    width: 12px;
    height: 12px;
    background-color: #F87171; /* Red-Light */
    transform: rotate(45deg);
    animation: float 5.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Override/Enhance Layout for Hero */
#home h1 {
    line-height: 1.2;
}

/* Animation Utilities */
.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Specific delay for the badge */
.animate-float:nth-child(2) {
    animation-delay: 1s;
}