:root {
  --primary: #6366f1; /* Indigo */
  --primary-dark: #4f46e5;
  --secondary: #06b6d4; /* Cyan */
  --accent: #a855f7; /* Purple */
  --dark-bg: #111827;
  --darker-bg: #030712;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --navbar-bg: rgba(17, 24, 39, 0.7); /* Semi-transparent navbar background */
  --glass-effect: blur(12px);
  --transition-normal: all 0.3s ease;
  --border-glow: rgba(99, 102, 241, 0.3);
  --neon-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.5);
  --glow-indigo: 0 0 15px rgba(99, 102, 241, 0.5);
  --glow-purple: 0 0 15px rgba(168, 85, 247, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-slider {
    position: relative;
}

.slider-container {
    width: calc(3 * (300px + 2 * 10px));
    height: 500px;
    display: flex;
    margin: auto auto; 
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.slider {
    display: flex;
    align-items: center;
    transition: transform 0.65s ease;
}

.card {
    flex: 0 0 auto;
    width: 300px;
    height: 250px;
    /* color: white; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: transform 0.3s ease, background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}


.card.active {
    transform: scale(2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); 
    z-index: 1;
}


.card img {
    max-width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.card h1 {
    font-size: 1.2em;
    margin: 0;
}

@media screen and (max-width : 768px) {
    .card.active {
        transform: scale(1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); 
        z-index: 1;
    }
    .slider-container {
        margin: auto 50px;
    }
}

.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1.5em;
    z-index: 1;
    transition: box-shadow 0.3s ease;
    transition: color 0.3s ease;
}

.prev-button:hover,
.next-button:hover {
    color: var(--secondary);
    box-shadow: var(--neon-shadow);
}

.prev-button {
    left: 30px;
}

.next-button {
    right: 30px;
}