@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Yellowtail&display=swap');

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb 0%, #7c3aed 100%);
}

/* Body base styles with deep dark gradient */
body {
    /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
      font-family: "Poppins", sans-serif;

    overflow-x: hidden;
    background: #0a0b1e;
}

/* ========== SEAMLESS MERGING GRADIENT BACKGROUNDS ========== */

/* Hero Section - Deep blue to purple, fades to next section */
.hero-gradient {
    background: linear-gradient(180deg, 
        #0f0f23 0%,
        #1a1b3d 25%,
        #1e2548 50%,
        #1a2845 75%,
        #151d35 100%
    );
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* About Section - Merges from hero, transitions to experience */
.about-gradient {
    background: linear-gradient(180deg, 
        #151d35 0%,
        #1a2540 30%,
        #1d2b4d 50%,
        #1a2847 70%,
        #16213d 100%
    );
    position: relative;
}

.about-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Experience Section - Merges smoothly with purple tones */
.experience-gradient {
    background: linear-gradient(180deg, 
        #16213d 0%,
        #1b2345 25%,
        #1f274e 50%,
        #1c2449 75%,
        #181f3e 100%
    );
    position: relative;
}

.experience-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Projects Section - Deep blue with subtle variation */
.projects-gradient {
    background: linear-gradient(180deg, 
        #181f3e 0%,
        #1a2543 30%,
        #1e2a4f 50%,
        #1b2646 70%,
        #17213f 100%
    );
    position: relative;
}

.projects-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.09) 0%, transparent 50%);
    pointer-events: none;
}

/* Contact Section - Final gradient merging to footer */
.contact-gradient {
    background: linear-gradient(180deg, 
        #17213f 0%,
        #1b2544 25%,
        #1f2a50 50%,
        #1a2445 75%,
        #0f1729 100%
    );
    position: relative;
}

.contact-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 40%, rgba(139, 92, 246, 0.09) 0%, transparent 50%);
    pointer-events: none;
}

/* ========== HERO SECTION ANIMATIONS ========== */

/* Hero text slides in from left */
.hero-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out forwards;
}

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

/* Hero image zooms in from right */
.hero-image {
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    animation: zoomInRight 1s ease-out 0.3s forwards;
}

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

/* Pulse animation for profile image glow */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========== NAVBAR ========== */

/* Navbar shadow on scroll - applied via JavaScript */
.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Navigation link active state */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== FADE-IN ANIMATION ========== */

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ========== EXPERIENCE CARDS ========== */

/* Experience card hover effect */
.experience-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2),
                0 10px 10px -5px rgba(59, 130, 246, 0.1);
}

/* ========== PROJECT MARQUEE ========== */

/* Marquee container */
.marquee-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

/* Marquee content with infinite scroll */
.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    width: fit-content;
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Small project card styles */
.project-card-small {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-small:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3),
                0 10px 10px -5px rgba(59, 130, 246, 0.2);
}

/* Line clamp utility for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== SKILL CARDS ========== */

/* Skill card icon animation */
.skill-card i {
    transition: transform 0.3s ease;
}

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

/* Custom background for gray-750 (not in default Tailwind) */
.hover\:from-gray-750:hover {
    background-image: linear-gradient(to bottom right, #2d3748, #1a202c);
}

/* ========== FORM STYLING ========== */

/* Form input focus glow effect */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form submit button loading state */
button[type="submit"]:active {
    transform: scale(0.98);
}

/* Contact form success/error messages */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* ========== MOBILE MENU ========== */

/* Mobile menu slide animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 400px;
}

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

/* Responsive typography adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Stack hero section on mobile */
    .hero-image {
        margin-top: 2rem;
    }
    
    /* Adjust marquee speed on mobile */
    .marquee-content {
        animation-duration: 40s;
    }
    
    .project-card-small {
        width: 280px;
    }
}

/* ========== UTILITY CLASSES ========== */

/* Text gradient utility */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensures sections have proper spacing */
section {
    position: relative;
    z-index: 1;
}

/* ========== SCROLL TO TOP BUTTON ========== */

#scroll-top-btn {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-top-btn:hover {
    transform: translateY(-3px);
}

/* ========== ADDITIONAL POLISH ========== */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Selection color */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}