/* ========== THEME ========== */

:root {
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --font-fancy: 'Orbitron', sans-serif;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}


/* ========== RESET ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ========== BACKGROUND VIDEO ========== */

#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 25, 0.65);
    backdrop-filter: blur(10px);
    z-index: -1;
}


/* ========== NAVBAR ========== */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    /* Increased height to accommodate the logo design */
    padding: 0 50px;
    position: relative;
    z-index: 1000;
}


/* LOGO */

.logo {
    width: 120px;
    height: auto;
    display: block;
    margin-top: -10px;
    /* Adjusted to balance the visual weight of the 'O' */
    padding-top: 0;
    /* REMOVED the 60px padding that caused the error */
}

.nav-left {
    display: flex;
    align-items: center;
    /* This aligns logo and search bar vertically */
    gap: 40px;
    /* Space between logo and search bar */
}


/* ================= NAV LINKS (MOBILE) ================= */

.nav-links {
    position: absolute;
    top: calc(100% + 10px);
    /* 👈 small gap from nav */
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    padding: 10px 0;
    background: rgba(5, 10, 25, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.35s ease;
}

.nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


/* LINKS */

.nav-links a {
    padding: 14px 22px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}


/* underline hover */

.nav-links a::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 90%;
}


/* ================= HAMBURGER ================= */

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.4s ease;
}


/* ACTIVE STATE (X ICON) */

.nav-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links.active a:nth-child(4) {
    transition-delay: 0.26s;
}

.nav-links.active a:nth-child(5) {
    transition-delay: 0.32s;
}


/* ================= NAV LINKS ANIMATION ================= */

.nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}


/* LINK ENTRY ANIMATION */

.nav-links a {
    padding: 14px 22px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.35s ease;
}

.nav-links.active a {
    opacity: 1;
    transform: translateX(0);
}

.nav-links.active a:nth-child(1) {
    transition-delay: 0.08s;
}

.nav-links.active a:nth-child(2) {
    transition-delay: 0.14s;
}

.nav-links.active a:nth-child(3) {
    transition-delay: 0.20s;
}

.nav-links.active a:nth-child(4) {
    transition-delay: 0.26s;
}

.nav-links.active a:nth-child(5) {
    transition-delay: 0.32s;
}


/* ================= DESKTOP ================= */

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    .nav-links {
        position: static;
        flex-direction: row;
        background: none;
        backdrop-filter: none;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        padding: 0;
        gap: 26px;
    }
    .nav-links a {
        opacity: 1;
        transform: none;
    }
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= SEARCH BAR ================= */

.search-container {
    position: relative;
    width: 320px;
}

.search-container input {
    width: 100%;
    height: 46px;
    padding: 0 45px 0 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    outline: none;
    background: linear-gradient(rgba(15, 20, 45, 0.65), rgba(15, 20, 45, 0.65)), url("https://images.unsplash.com/photo-1444703686981-a3abbc4d4fe3");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    font-size: 1rem;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05), 0 15px 45px rgba(0, 0, 0, 0.7);
    transition: 0.4s ease;
}

.search-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container input:focus {
    box-shadow: 0 0 0 4px rgba(120, 190, 255, 0.18), 0 20px 60px rgba(0, 0, 0, 0.8);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2px;
    opacity: 0.85;
    pointer-events: none;
}

.search-container::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 42px;
    background: linear-gradient(120deg, rgba(120, 190, 255, 0.4), rgba(180, 120, 255, 0.3), rgba(120, 255, 220, 0.35));
    filter: blur(22px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.search-container:focus-within::after {
    opacity: 1;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    opacity: 0.85;
    pointer-events: none;
}


/* Responsive fix: If screen is small, you might want to hide search or shrink it */

@media (max-width: 600px) {
    .search-container {
        width: 250px;
        /* Shrinks on mobile so it doesn't overlap */
    }
    .nav {
        padding: 0 20px;
        /* Reduces side padding on mobile */
    }
}


/* ========== AUTH SECTION ========== */

.auth-hero {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
    padding: 140px 20px 80px;
}

.auth-box {
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 50px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}


/* SHINE EFFECT */

.auth-sheen {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(35deg);
    animation: sheenSweep 7s infinite;
}

@keyframes sheenSweep {
    0% {
        left: -150%;
    }
    15% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}


/* HEADER */

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.gate-text {
    font-family: var(--font-fancy);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--accent);
}

.auth-header h2 {
    font-family: var(--font-fancy);
    font-size: 2rem;
    margin: 10px 0;
}

.gradient-text {
    background: linear-gradient(90deg, #60a5fa, #a855f7);
    font-family: var(--font-fancy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* FORM */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
}

.input-group input {
    width: 100%;
    height: 58px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: #fff;
    padding: 0 20px 0 55px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}


/* BUTTON */

.auth-btn {
    height: 60px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-family: var(--font-fancy);
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--accent-glow);
}


/* SOCIAL */

.social-divider {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.social-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
}

.social-divider span {
    position: relative;
    padding: 0 15px;
    font-size: 13px;
    color: var(--text-dim);
}

.social-grid {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.social-btn.google {
    background: white;
    color: black;
}

.social-btn.facebook {
    background: #1877f2;
}

.switch-text {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-dim);
    position: relative;
    z-index: 2;
}

.switch-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 3;
}

.auth-sheen {
    pointer-events: none;
}

.footer {
    padding-top: 100px;
    background: linear-gradient(rgba(15, 20, 45, 0.65), rgba(15, 20, 45, 0.65)), url("https://images.unsplash.com/photo-1444703686981-a3abbc4d4fe3");
    background-size: cover;
    background-position: center;
    color: #cfd8ff;
    padding: 4rem 2rem 2rem;
    font-family: "Times New Roman", serif;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05), 0 15px 45px rgba(0, 0, 0, 0.7);
}


/* ✨ subtle stars overlay */

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 80% 20%, #fff, transparent);
    opacity: 0.25;
    pointer-events: none;
}


/* ===== Layout ===== */

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}


/* ===== Logo ===== */

.footer-logo-img {
    width: 150px;
}

.india {
    width: 20px;
    margin-left: 4px;
}


/* ===== Sections ===== */

.footer-section {
    flex: 1 1 220px;
}

.footer-section h2,
.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}


/* ===== Links ===== */

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.footer-section ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #6cf3ff;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6cf3ff;
}

.footer-section ul li a:hover::after {
    width: 100%;
}


/* ===== Social Icons ===== */

.footer-socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-4px);
}

.footer-socials a:hover .fa-instagram {
    color: #e1306c;
}

.footer-socials a:hover .fa-youtube {
    color: #ff0000;
}

.footer-socials a:hover .fa-x-twitter {
    color: #1da1f2;
}

.footer-socials a:hover .fa-linkedin-in {
    color: #0a66c2;
}

.footer-socials a:hover .fa-facebook-f {
    color: #0a66c2;
}


/* ===== Newsletter ===== */

.newsletter {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0;
}

.newsletter input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.newsletter input::placeholder {
    color: #d6d6d6;
}

.newsletter input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
}

.newsletter button {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #6cf3ff, #7b7bff);
    color: #05070f;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(108, 243, 255, 0.8);
}


/* ===== Contact ===== */

.footer-contact p {
    font-size: 0.9rem;
    margin: 0.3rem 0;
    opacity: 0.9;
}

.footer-contact i {
    color: #6cf3ff;
    margin-right: 0.4rem;
}


/* ===== Bottom Bar ===== */

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-bottom a {
    color: #6cf3ff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 2rem;
    }
    .newsletter {
        flex-direction: column;
    }
    .newsletter button {
        width: 100%;
    }
}

--------------------------- -------------------------
/* Astronaut Assistant */

.astro-assistant {
    width: 420px;
    text-align: center;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.astro-message {
    font-family: "Space Grotesk", sans-serif;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 58px;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    font-size: 15px;
    line-height: 1.6;
}

.astro-gif {
    size: 20px;
    transform: translateY(-40px);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.astro-message h3 {
    font-size: 30px;
    font-weight: 600;
}

.astro-gif {
    width: 420px;
    max-width: 100%;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.6));
}


/* floating effect */

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}


/* message box */

.astro-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.astro-tip {
    color: #ffb347;
    font-size: 14px;
    margin-top: 10px;
}