* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    z-index: 0;
}

/* Spinning, shifting gradient background */
body::before {
    content: '';
    position: fixed;
    top: -250%;
    left: -250%;
    width: 500%;
    height: 500%;
    background: linear-gradient(-45deg, #ff0000, #0059ff, #307700, #a54a00);
    background-size: 400% 400%;
    animation:
        spinBackground 60s linear infinite,
        gradientShift 15s ease infinite;
    z-index: -1;
    transform-origin: center;
}

/* Rotation */
@keyframes spinBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gradient shifting (color flow) */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes blink {
    50% { opacity: 0; }
}



header {
    background: linear-gradient(to right, #1a0000, #330000);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff4c4c;
    width: 100%;
}

header h1 {
    color: #ff4c4c;
    transition: transform 0.3s;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    position: relative;
    transition: color 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ff4c4c;
}

section {
    padding: 4rem 2rem;
    border-bottom: 1px solid #2a2a2a;
    background: rgba(0, 0, 0, 0.4); /* ✨ Glassy section */
    backdrop-filter: blur(8px);
    border-radius: 10px;
    margin: 2rem;
}



.team-list {
    padding: 1rem;
    display: flex;
    gap: 1rem;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.team-list::-webkit-scrollbar {
    display: none;
}

.team-card {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1);
    border-left: 5px solid var(--card-color);
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 250px;
    max-width: 280px;
    color: #e0e0e0;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 0; /* default */
    transition: transform 0.3s ease, z-index 0s 0.3s; /* delay z-index reset */
    scroll-snap-align: start;
}

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--card-color);
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    z-index: 10; /* brings it to the top while hovered */
    transition-delay: 0s; /* z-index comes up immediately */
}

.team-card p::after {
    content: '|';
    animation: blink 1s step-end infinite;
    opacity: 1;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: inherit;
    padding: 10px;
    margin: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    text-decoration: none;
}

.project-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ff4c4c;
}

.project-card a {
    color: #e0e0e0;
    font-weight: bold;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

#cookiePrompt {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 1rem 2rem;
    border: 2px solid #ffb347;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.7);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

#cookiePrompt button {
    background: #ffb347;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

#cookiePrompt button:hover {
    transform: scale(1.1) rotate(-2deg);
}
.cookie {
    position: fixed;
    top: -50px;
    font-size: 2rem;
    pointer-events: none;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0;
    }
}

footer {
    width: 100vw;
    text-align: center;
    padding: 1rem 2rem;
    box-sizing: border-box;
    background: #111;
    color: #888;
}