/* Custom Styles for Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Card hover effects */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Skill bar animations */
.skill-bar {
    transition: width 2s ease-in-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}
/* Project Image Carousel Styles */
.project-image-container {
    position: relative;
}

.project-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

/* Hover effect for carousel - FIXED */
.project-card:hover .project-carousel .carousel-image {
    animation: none; /* Remove the old animation */
}

/* Static image hover effect */
.project-card:hover .static-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Image count badge */
.image-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

/* Keep the rest of your existing CSS below */
/* Custom Styles for Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Card hover effects */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Skill bar animations */
.skill-bar {
    transition: width 2s ease-in-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}
/* INSTANT TYPING ANIMATION STYLES */
#home h1 {
    border-right: 2px solid #60a5fa;
    animation: cursorBlink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
}

@keyframes cursorBlink {
    0%, 50% {
        border-color: #60a5fa;
    }
    51%, 100% {
        border-color: transparent;
    }
}

#home h1.typing-complete {
    border-right: none;
    animation: none;
}

/* PREVENT CONTENT FLASH */
#home h1:not(.typing-complete) {
    min-height: 1.2em; /* Prevent layout shift */
}
/* Project Modal Styles */
#projectModal {
    backdrop-filter: blur(10px);
}

.modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.carousel-container {
    background: #1f2937;
}

.carousel-track {
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
}

/* Smooth transitions */
.project-image-container {
    transition: all 0.3s ease;
}

.project-image-container:hover {
    transform: translateY(-2px);
}

/* Modal animation */
#projectModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#projectModal.show {
    opacity: 1;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#projectModal.show .modal-content {
    transform: scale(1);
}

/* Navigation button hover effects */
#prevBtn, #nextBtn {
    transition: all 0.3s ease;
    transform: scale(1);
}

#prevBtn:hover, #nextBtn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.7);
}