@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    overflow-x: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.blob {
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
}

.card-hover {
    transition: all 0.3s ease;
    transform: translateY(0);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.3);
}

.dark .card-hover {
    background-color: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.skill-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(156, 163, 175, 0.2);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 1.5s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: 3px solid white;
}

.dark .timeline-item::before {
    border-color: #1f2937;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e5e7eb;
}

.dark .timeline::before {
    background: #4b5563;
}

.contact-input {
    transition: all 0.3s ease;
    background: rgba(243, 244, 246, 0.8);
}

.dark .contact-input {
    background: rgba(31, 41, 55, 0.8);
}

.contact-input:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Liquid button effect */
.liquid-btn {
    position: relative;
    overflow: hidden;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    transition: all 0.4s ease;
}

.liquid-btn:hover {
    background-position: 100% 0;
}

.liquid-btn::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: all 0.4s ease;
}

.liquid-btn:hover::before {
    left: 100%;
}

/* Glass effect */
.glass {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.3);
}

.dark .glass {
    background-color: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

/* Hero section background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.1), rgba(139, 92, 246, 0.1));
    z-index: -2;
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease-out;
    z-index: 40;
}

.dark .mobile-menu {
    background: rgba(17, 24, 39, 0.95);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .mobile-menu .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section animation classes */
.section-hidden {
    opacity: 0;
    transform: translateY(50px);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Project card hover effect */
.project-card {
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateX(0) rotateY(0) translateY(0);
}

.project-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* View All button */
.view-all-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.view-all-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.view-all-btn:hover::after {
    left: 100%;
}