/* --- Base Reset --- */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* --- Background Layers --- */
#fireworks, #stars-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* --- Hero & Profile --- */
.hero { position: relative; }
.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 40px; /* Squircle */
    object-fit: cover;
    filter: grayscale(20%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.1);
}

.name-gradient {
    background: linear-gradient(to bottom right, #fff, #818cf8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Project Cards --- */
.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.project-img { width: 100%; height: 200px; object-fit: cover; }

/* --- Interactive Elements --- */
.project-btn-main {
    background: #6366f1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.btn-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: 0.3s;
}

.btn-icon:hover { color: #818cf8; transform: translateY(-3px); }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: #444;
}

.btn-primary {
    background: #818cf8;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.4);
}
/* Carousel Container */
.carousel-container {
    scrollbar-width: none; /* Hides scrollbar for Firefox */
    -ms-overflow-style: none; /* Hides scrollbar for IE/Edge */
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Hides scrollbar for Chrome/Safari */
}

.carousel-card {
    min-width: 280px;
    height: 380px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.5s ease;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transition: background 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-5px);
    border-color: #818cf8;
}

.carousel-card:hover img {
    scale: 1.1;
}