/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100vh;
}

body {
    background: #0a0a1a;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    overflow: hidden;
    line-height: 1.6;
    height: 100vh;
}

/* =============== ANIMATED BACKGROUND =============== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

@keyframes glow {
    0%, 100% { opacity: 0.4; filter: blur(40px); }
    50% { opacity: 0.7; filter: blur(60px); }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(ellipse at top, #1a1b38 0%, #0a0a1a 40%, #000000 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: float 15s ease-in-out infinite, glow 8s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 14, 254, 0.3), transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(48, 62, 134, 0.25), transparent 70%);
    top: 30%;
    right: -5%;
    animation-delay: -5s;
}

.orb:nth-child(3) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 41, 99, 0.2), transparent 70%);
    bottom: -20%;
    left: 20%;
    animation-delay: -10s;
}

/* Starfield */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.star:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; left: 70%; animation-delay: 1s; }
.star:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.star:nth-child(4) { top: 80%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(5) { top: 15%; left: 85%; animation-delay: 1.5s; }
.star:nth-child(6) { top: 70%; left: 50%; animation-delay: 2.5s; }

/* =============== NAVIGATION =============== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgb(10, 10, 26);
    border-bottom: 1px solid rgba(98, 44, 248, 0.2);
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #622cf8, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    list-style: none;
}

nav ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #622cf8, #8b5cf6);
    transition: width 0.3s ease;
}

nav ul a:hover {
    color: white;
    background: rgba(98, 44, 248, 0.1);
}

nav ul a:hover::before {
    width: 80%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =============== MAIN CONTAINER =============== */

.bg-batch {
    z-index: -2;
    width: 100%;
    height: auto;
    margin-top: -12rem;
}

.batch-container {
    height: calc(100vh - 250px);
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
}

.page-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #622cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin: 2rem 5% 1.5rem;
    flex-shrink: 0;
}

/* =============== SCROLLABLE SECTION =============== */
.batch-group-section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 5% 2rem;
}

.batch-group-section::-webkit-scrollbar {
    width: 8px;
}

.batch-group-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.batch-group-section::-webkit-scrollbar-thumb {
    background: rgba(98, 44, 248, 0.4);
    border-radius: 10px;
}

.batch-group-section::-webkit-scrollbar-thumb:hover {
    background: rgba(98, 44, 248, 0.6);
}

.batch-info-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

/* =============== BATCH CARDS =============== */
.batch-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(145, 1, 255, 0.435);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: 400px;
}

.batch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at 50% 50%,
        rgba(98, 44, 248, 0.1),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.batch-card:hover::before {
    opacity: 1;
}

.batch-card:hover {
    border-color: rgba(98, 44, 248, 0.4);
    box-shadow: 0 5px 10px rgba(98, 44, 248, 0.474);
}

.card-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.card-icon img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(98, 44, 248, 0.3));
    transition: transform 0.3s ease;
}

.batch-card:hover .card-icon img {
    transform: scale(1.05);
}

/* =============== NAMES FOOTER =============== */
.names-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(to top, rgba(10, 10, 26, 1), rgba(10, 10, 26, 0.806), transparent 100%);
    padding: 2rem 5% 3rem;
}

.name-list-container {
    column-count: 5;
    column-gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.name-list-container p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

/* =============== PAGINATION =============== */
.pagination {
    position: fixed;
    bottom: 30px;
    left: 90%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.pagination-btn {
    display: flex;
    align-items: right;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(98, 44, 248, 0.4);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.pagination-btn:hover {
    background: rgba(98, 44, 248, 0.2);
    border-color: #622cf8;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(98, 44, 248, 0.5);
}

.pagination-btn span:first-child,
.pagination-btn span:last-child {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.pagination-btn.prev:hover span:first-child {
    transform: translateX(-3px);
}

.pagination-btn.next:hover span:last-child {
    transform: translateX(3px);
}

.pagination-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

/* =============== RESPONSIVE =============== */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .name-list-container {
        column-count: 4;
        column-gap: 15px;
    }
    
    .batch-card {
        max-width: 350px;
    }
    
    .card-icon img {
        max-height: 220px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .batch-container {
        padding-top: 70px;
        height: calc(100vh - 180px);
    }

    .page-title {
        font-size: 1.5rem;
        margin: 0.8rem 5% 0.5rem;
    }

    .batch-group-section {
        padding: 0 4% 1rem;
    }
    
    .batch-name {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .batch-images-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .batch-card {
        max-width: 100%;
        width: 100%;
    }

    .card-icon img {
        max-height: 180px;
    }

    .names-footer {
        padding: 1.5rem 4% 1rem;
    }

    .name-list-container {
        column-count: 3;
        column-gap: 10px;
    }

    .name-list-container p {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    /* Mobile Navigation */
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 3rem 2rem;
        gap: 1rem;
        transition: left 0.4s ease;
        border-right: 2px solid rgba(98, 44, 248, 0.3);
    }

    nav ul.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    nav ul a {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        font-size: 1.2rem;
    }

    .pagination {
        bottom: 15px;
        gap: 1rem;
    }

    .pagination-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .pagination-text {
        display: none;
    }

    .pagination-btn span:first-child,
    .pagination-btn span:last-child {
        font-size: 1.3rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .batch-container {
        height: calc(100vh - 160px);
    }

    .page-title {
        font-size: 1.3rem;
        margin: 0.6rem 3% 0.4rem;
    }

    .batch-group-section {
        padding: 0 3% 1rem;
    }
    
    .batch-name {
        font-size: 1rem;
    }

    .batch-card {
        border-width: 2px;
    }

    .card-icon img {
        max-height: 150px;
    }

    .names-footer {
        padding: 1rem 3% 0.8rem;
    }

    .name-list-container {
        column-count: 2;
        column-gap: 8px;
    }

    .name-list-container p {
        font-size: 0.65rem;
    }

    .pagination {
        bottom: 12px;
    }

    .pagination-btn {
        padding: 0.6rem 1rem;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .page-title {
        font-size: 1.2rem;
    }
    
    .card-icon img {
        max-height: 130px;
    }

    .name-list-container {
        column-count: 1;
    }

    .name-list-container p {
        font-size: 0.6rem;
    }
}
