/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #020617;
    color: white;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

/* Grid Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    padding: 15px 5%;
}

/* ============================================
   VIGYAN.PREP - PREMIUM BRAND IDENTITY
   "Vigyan" = The Star | ".prep" = Subtle
   ============================================ */
.logo {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 8px 0;
}

.logo:hover {
    transform: scale(1.03);
}

/* ═══════════════════════════════════════════
   ★ VIGYAN - THE STAR OF THE SHOW ★
   Large, Dramatic, Animated, Glowing
   ═══════════════════════════════════════════ */
.logo .logo-vigyan {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: 2.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;

    /* Stunning Animated Gradient */
    background: linear-gradient(135deg,
            #fef3c7 0%,
            #fcd34d 15%,
            #f59e0b 30%,
            #ffffff 50%,
            #fcd34d 70%,
            #f59e0b 85%,
            #fef3c7 100%);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Golden Glow Effect */
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6)) drop-shadow(0 0 40px rgba(245, 158, 11, 0.4)) drop-shadow(0 0 60px rgba(217, 119, 6, 0.2));

    /* Shimmer Animation */
    animation: vigyanShimmer 4s ease-in-out infinite;

    position: relative;
    z-index: 2;
}

/* Shimmer Animation for Vigyan */
@keyframes vigyanShimmer {

    0%,
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6)) drop-shadow(0 0 40px rgba(245, 158, 11, 0.4));
    }

    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.8)) drop-shadow(0 0 50px rgba(245, 158, 11, 0.5));
    }
}

/* Science-Inspired Decorative Underline */
.logo::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(251, 191, 36, 0.3) 20%,
            rgba(245, 158, 11, 0.8) 50%,
            rgba(251, 191, 36, 0.3) 80%,
            transparent 100%);
    transform: scaleX(0.8);
    transition: all 0.4s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(251, 191, 36, 0.5) 20%,
            rgba(245, 158, 11, 1) 50%,
            rgba(251, 191, 36, 0.5) 80%,
            transparent 100%);
}

/* ═══════════════════════════════════════════
   ".prep" - Subtle Secondary Element
   Small, Elegant, Understated
   ═══════════════════════════════════════════ */
.logo .logo-dot {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: rgba(148, 163, 184, 0.6);
    margin-left: 2px;
    transition: all 0.3s ease;
}

.logo .logo-prep {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    color: rgba(148, 163, 184, 0.5);
    transition: all 0.3s ease;
}

/* Hover: Prep becomes slightly more visible */
.logo:hover .logo-dot,
.logo:hover .logo-prep {
    color: rgba(148, 163, 184, 0.8);
}

/* Enhanced Vigyan glow on hover */
.logo:hover .logo-vigyan {
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 50px rgba(245, 158, 11, 0.6)) drop-shadow(0 0 80px rgba(217, 119, 6, 0.3));
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: white;
}

.btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 5%;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    max-width: 100%;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(to right, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: white;
    color: #0f172a;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: pulseGlow 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: pulseGlow 8s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(59, 130, 246, 0.6);
    transition: color 0.3s ease;
}

.scroll-indicator:hover i {
    color: rgba(59, 130, 246, 0.9);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Institute Section */
.institute-section {
    min-height: 100vh;
    position: relative;
    padding: 150px 40px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.category-header h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -3px;
    text-transform: uppercase;
    animation: gradientShift 6s ease infinite;
}

.category-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Pendulum System */
.pendulum-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 500px;
    margin-top: 60px;
}

.anchor-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), rgba(139, 92, 246, 0.6), transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.pendulum {
    position: absolute;
    top: 0;
    transform-origin: top center;
}

.pendulum-string {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.6), rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.2));
}

.pendulum-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pendulum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pendulum-card:hover::before {
    transform: scaleX(1);
}

.pendulum-card:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    transform: translateX(-50%) scale(1.05);
}

.pendulum-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.pendulum-card:hover .pendulum-logo {
    transform: scale(1.1) rotate(5deg);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.pendulum-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.pendulum-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.5px;
}

.pendulum-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Animations */
@keyframes swing-short {
    0% {
        transform: rotate(-12deg);
    }

    100% {
        transform: rotate(12deg);
    }
}

@keyframes swing-medium {
    0% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(10deg);
    }
}

@keyframes swing-long {
    0% {
        transform: rotate(-8deg);
    }

    100% {
        transform: rotate(8deg);
    }
}

/* Positioning & Specific Animations */
.pendulum:nth-child(2) {
    left: 7%;
}

.pendulum:nth-child(2).swinging {
    animation: swing-long 3.5s infinite alternate ease-in-out;
}

.pendulum:nth-child(2) .pendulum-string {
    height: 280px;
}

.pendulum:nth-child(2) .pendulum-card {
    top: calc(4px + 280px);
}

.pendulum:nth-child(3) {
    left: 20%;
}

.pendulum:nth-child(3).swinging {
    animation: swing-short 2.2s infinite alternate ease-in-out;
}

.pendulum:nth-child(3) .pendulum-string {
    height: 150px;
}

.pendulum:nth-child(3) .pendulum-card {
    top: calc(4px + 150px);
}

.pendulum:nth-child(4) {
    left: 33%;
}

.pendulum:nth-child(4).swinging {
    animation: swing-long 3.3s infinite alternate ease-in-out;
}

.pendulum:nth-child(4) .pendulum-string {
    height: 260px;
}

.pendulum:nth-child(4) .pendulum-card {
    top: calc(4px + 260px);
}

.pendulum:nth-child(5) {
    left: 46%;
}

.pendulum:nth-child(5).swinging {
    animation: swing-medium 2.8s infinite alternate ease-in-out;
}

.pendulum:nth-child(5) .pendulum-string {
    height: 200px;
}

.pendulum:nth-child(5) .pendulum-card {
    top: calc(4px + 200px);
}

.pendulum:nth-child(6) {
    left: 59%;
}

.pendulum:nth-child(6).swinging {
    animation: swing-short 2.3s infinite alternate ease-in-out;
}

.pendulum:nth-child(6) .pendulum-string {
    height: 160px;
}

.pendulum:nth-child(6) .pendulum-card {
    top: calc(4px + 160px);
}

.pendulum:nth-child(7) {
    left: 72%;
}

.pendulum:nth-child(7).swinging {
    animation: swing-long 3.4s infinite alternate ease-in-out;
}

.pendulum:nth-child(7) .pendulum-string {
    height: 270px;
}

.pendulum:nth-child(7) .pendulum-card {
    top: calc(4px + 270px);
}

.pendulum:nth-child(8) {
    left: 85%;
}

.pendulum:nth-child(8).swinging {
    animation: swing-medium 2.7s infinite alternate ease-in-out;
}

.pendulum:nth-child(8) .pendulum-string {
    height: 190px;
}

.pendulum:nth-child(8) .pendulum-card {
    top: calc(4px + 190px);
}

/* Prestige & NISER Positions */
.prestige-pendulum:nth-child(2) {
    left: 35%;
}

.prestige-pendulum:nth-child(2).swinging {
    animation: swing-long 3.2s infinite alternate ease-in-out;
}

.prestige-pendulum:nth-child(2) .pendulum-string {
    height: 240px;
}

.prestige-pendulum:nth-child(2) .pendulum-card {
    top: calc(4px + 240px);
}

.prestige-pendulum:nth-child(3) {
    left: 65%;
}

.prestige-pendulum:nth-child(3).swinging {
    animation: swing-short 2.4s infinite alternate ease-in-out;
}

.prestige-pendulum:nth-child(3) .pendulum-string {
    height: 170px;
}

.prestige-pendulum:nth-child(3) .pendulum-card {
    top: calc(4px + 170px);
}

.niser-pendulum:nth-child(2) {
    left: 50%;
}

.niser-pendulum:nth-child(2).swinging {
    animation: swing-medium 2.9s infinite alternate ease-in-out;
}

.niser-pendulum:nth-child(2) .pendulum-string {
    height: 220px;
}

.niser-pendulum:nth-child(2) .pendulum-card {
    top: calc(4px + 220px);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .pendulum-container {
        height: 450px;
    }

    .pendulum-card {
        width: 140px;
        padding: 15px;
    }

    .pendulum-logo {
        width: 60px;
        height: 60px;
    }

    .pendulum-logo img {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .institute-section {
        padding: 120px 20px 80px;
    }

    .pendulum-container {
        height: 400px;
    }

    .pendulum-card {
        width: 120px;
        padding: 12px;
    }

    .pendulum-card h4 {
        font-size: 0.9rem;
    }

    .pendulum-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .pendulum-container {
        height: 350px;
    }

    .pendulum-card {
        width: 100px;
        padding: 10px;
    }

    .pendulum-logo {
        width: 50px;
        height: 50px;
    }

    .pendulum-logo img {
        width: 35px;
        height: 35px;
    }

    .pendulum-card h4 {
        font-size: 0.8rem;
    }

    .category-header h2 {
        font-size: 2rem;
    }

    /* Mobile String Length Adjustments */
    .pendulum:nth-child(2) .pendulum-string {
        height: 200px;
    }

    .pendulum:nth-child(2) .pendulum-card {
        top: calc(4px + 200px);
    }

    .pendulum:nth-child(3) .pendulum-string {
        height: 120px;
    }

    .pendulum:nth-child(3) .pendulum-card {
        top: calc(4px + 120px);
    }

    .pendulum:nth-child(4) .pendulum-string {
        height: 200px;
    }

    .pendulum:nth-child(4) .pendulum-card {
        top: calc(4px + 200px);
    }

    .pendulum:nth-child(5) .pendulum-string {
        height: 160px;
    }

    .pendulum:nth-child(5) .pendulum-card {
        top: calc(4px + 160px);
    }

    .pendulum:nth-child(6) .pendulum-string {
        height: 120px;
    }

    .pendulum:nth-child(6) .pendulum-card {
        top: calc(4px + 120px);
    }

    .pendulum:nth-child(7) .pendulum-string {
        height: 200px;
    }

    .pendulum:nth-child(7) .pendulum-card {
        top: calc(4px + 200px);
    }

    .pendulum:nth-child(8) .pendulum-string {
        height: 160px;
    }

    .pendulum:nth-child(8) .pendulum-card {
        top: calc(4px + 160px);
    }

    .prestige-pendulum:nth-child(2) .pendulum-string {
        height: 200px;
    }

    .prestige-pendulum:nth-child(2) .pendulum-card {
        top: calc(4px + 200px);
    }

    .prestige-pendulum:nth-child(3) .pendulum-string {
        height: 120px;
    }

    .prestige-pendulum:nth-child(3) .pendulum-card {
        top: calc(4px + 120px);
    }

    .niser-pendulum:nth-child(2) .pendulum-string {
        height: 160px;
    }

    .niser-pendulum:nth-child(2) .pendulum-card {
        top: calc(4px + 160px);
    }
}