/* ============================
   1. VARIABLES & RESET
   ============================ */
:root {
    --bg-gradient: linear-gradient(to left, #8f94fb, #4e54c8); 
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --accent-color: #e94560;
    --card-hover: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to left, #0f0c29, #302b63, #24243e);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* ... (Keep Background Bubbles CSS same as before) ... */
.area { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.circles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.circles li { position: absolute; display: block; list-style: none; width: 20px; height: 20px; background: rgba(255, 255, 255, 0.1); animation: animate 25s linear infinite; bottom: -150px; border-radius: 50%; }
.circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
@keyframes animate { 0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; } 100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; } }


/* ============================
   3. NAVIGATION (UPDATED)
   ============================ */
.menu {
    width: 100%;
    padding: 15px 5%; /* More breathing room */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* Pushes Logo left, Links right */
    align-items: center;
}

/* Brand Styling */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-links a:hover { color: #fff; }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--accent-color); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ============================
   4. CONTENT LAYOUT & BACK BUTTON
   ============================ */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align to top */
    padding: 20px;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.back-btn {
    background: var(--glass-bg);
    border: var(--glass-border);
    color: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.back-btn:hover {
    background: var(--card-hover);
    color: #fff;
    transform: translateX(-5px); /* Slide left effect */
    border-color: var(--accent-color);
}

.hero-text {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0; 
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    background: -webkit-linear-gradient(#fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.hero-text p { color: rgba(255, 255, 255, 0.6); font-size: 1.2rem; }

/* ============================
   5. YEAR GRID
   ============================ */
.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    padding-bottom: 40px;
}

.year-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.year-card span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 5px;
}

.year-card h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.year-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.year-card:hover h2 { color: var(--accent-color); }

/* ============================
   6. FOOTER & RESPONSIVE
   ============================ */
footer {
    text-align: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: var(--glass-border);
    z-index: 1;
}

@media (max-width: 768px) {
    .menu { flex-direction: column; gap: 15px; }
    .hero-text h1 { font-size: 2rem; }
    .year-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .year-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 15px; font-size: 0.9rem; }
    .brand-name { font-size: 1.2rem; }
}


/* ============================
   5. YEAR GRID (UPDATED WITH FLOAT & DAZZLE)
   ============================ */
.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    padding-bottom: 40px;
}

.year-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden; /* Important for the dazzle effect */
    
    /* Initial Animation State (Handled by JS, but set here for safety) */
    opacity: 0;
    transform: translateY(30px);
    
    /* Smooth transitions for border and shadow */
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.year-card span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 5px;
    position: relative;
    z-index: 2; /* Keeps text above the dazzle */
}

.year-card h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

/* --- THE DAZZLE (SHINE) ELEMENT --- */
.year-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Start far left */
    width: 100%;
    height: 100%;
    
    /* The shine gradient */
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%
    );
    
    /* Tilt it for a cool effect */
    transform: skewX(-25deg);
    pointer-events: none; /* Ensures you can still click the button */
    z-index: 1;
}

/* --- HOVER EFFECTS --- */
.year-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(233, 69, 96, 0.4); /* Glowing shadow */
    
    /* Triggers the Floating Animation */
    animation: floatBob 2s ease-in-out infinite;
}

.year-card:hover h2 {
    color: var(--accent-color);
}

.year-card:hover::after {
    /* Triggers the Dazzle Animation */
    animation: dazzle 0.75s ease-in-out;
}

/* --- ANIMATION KEYFRAMES --- */

/* 1. Floating Up and Down */
@keyframes floatBob {
    0% { transform: translateY(-10px); }
    50% { transform: translateY(-18px); } /* Moves up */
    100% { transform: translateY(-10px); } /* Comes back down */
}

/* 2. Shine Shooting Across */
@keyframes dazzle {
    0% { left: -150%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}