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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;
    color: #e5e7eb;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #00aaff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0088cc;
}

/* Neon Glow Utilities */
.neon-text {
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.7), 0 0 20px rgba(0, 170, 255, 0.5);
}

.neon-border {
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5), inset 0 0 5px rgba(0, 170, 255, 0.2);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Blob Background */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: moveBlob 10s infinite alternate;
}

@keyframes moveBlob {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* Racetrack Underline Effect */
.racetrack-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00aaff, transparent);
    background-size: 200% 100%;
    animation: race 2s linear infinite alternate;
    border-radius: 2px;
}

@keyframes race {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Carbon Fiber Background Pattern */
.carbon-fiber {
    background:
        radial-gradient(black 15%, transparent 16%) 0 0,
        radial-gradient(black 15%, transparent 16%) 8px 8px,
        radial-gradient(rgba(255, 255, 255, .1) 15%, transparent 20%) 0 1px,
        radial-gradient(rgba(255, 255, 255, .1) 15%, transparent 20%) 8px 9px;
    background-color: #111;
    background-size: 16px 16px;
}

/* Metallic Card Effect */
.metallic-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid #333;
    box-shadow: 5px 5px 10px #050505, -5px -5px 10px #262626;
}

.metallic-card:hover {
    border-color: #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

/* Auto Enthusiast Font Class */
.font-bungee {
    font-family: 'Racing Sans One', cursive;
    /* Using Racing Sans One as it's more auto-themed */
    letter-spacing: 1px;
}

/* 3D Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    /* Ensure black background for cleaner crossfades */
}

.slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: kenBurns 30s infinite linear;
    transform-origin: center center;
}

@keyframes kenBurns {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }

    2% {
        opacity: 1;
    }

    12% {
        opacity: 1;
    }

    14% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Image delays for continuous loop (30s total / 10 images = 3s per image) */
.slideshow-img:nth-child(1) {
    animation-delay: 0s;
}

.slideshow-img:nth-child(2) {
    animation-delay: 3s;
}

.slideshow-img:nth-child(3) {
    animation-delay: 6s;
}

.slideshow-img:nth-child(4) {
    animation-delay: 9s;
}

.slideshow-img:nth-child(5) {
    animation-delay: 12s;
}

.slideshow-img:nth-child(6) {
    animation-delay: 15s;
}

.slideshow-img:nth-child(7) {
    animation-delay: 18s;
}

.slideshow-img:nth-child(8) {
    animation-delay: 21s;
}

.slideshow-img:nth-child(9) {
    animation-delay: 24s;
}

.slideshow-img:nth-child(10) {
    animation-delay: 27s;
}

/* Horizontal Project Slider Styles */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Add some padding for shadow effects not to be cut off */
}

.slider-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: slideRight 40s linear infinite;
}

/* Pause on Hover */
.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* Slide Animation: Move from -50% to 0% because we will duplicate the items.
   We have 2 sets of items. We want to slide continuously.
   If we move from 0 to -50% (left), it looks like items are moving left.
   Target: Left -> Right.
   So we start at -50% (showing the second set) and move to 0% (showing the first set).
   Or start at -50% and move to 0%. 
   Let's check logic:
   -50% means we are shifted left by half the width. So we see the second half.
   As we go to 0%, we shift right. So items appear to move right. Yes.
*/
@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

/* Ensure cards in slider maintain width */
.slider-track>div {
    width: 350px;
    /* Fixed width for consistency in slider */
    flex-shrink: 0;
}

/* Adjust for mobile if needed */
@media (max-width: 768px) {
    .slider-track>div {
        width: 300px;
    }
}