@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    margin: 0;
    background-color: #0f172a; /* Fallback */
    color: white;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
#cursor-dot, #cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #00eaff;
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 234, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Canvas for 3D Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Glassmorphism Header */
header {
    background: rgba(15, 23, 42, 0.9); /* Slightly darker for readability */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px; /* Fixed height for layout calculations */
}

h1 {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
}

/* 3D Registration Button */
.reg-btn-3d {
    background: linear-gradient(135deg, #00eaff, #0077ff);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 0 #0055aa, 0 5px 10px rgba(0,0,0,0.3);
    transition: all 0.1s;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.reg-btn-3d:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #0055aa, inset 0 2px 5px rgba(0,0,0,0.3);
}

.reg-btn-3d:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 0 #0055aa, 0 0 15px rgba(0, 234, 255, 0.6);
}

/* Registration Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(0, 234, 255, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: #00eaff;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
}

.form-control option {
    background: #0f172a;
    color: white;
}

.captcha-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    letter-spacing: 3px;
    user-select: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #aaa;
}

.checkbox-wrapper a {
    color: #00eaff;
    text-decoration: underline;
}

/* Marquee Animation - FIXED POSITION */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    padding: 10px 0;
    position: fixed; /* Fixed as requested */
    top: 80px; /* Directly below the 80px header */
    left: 0;
    z-index: 49;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Main Section Adjustment for Fixed Header */
section.main-content {
    padding-top: 160px; /* Push content down: 80px header + ~50px marquee + spacing */
}

/* 3D Flip Cards */
.card-container {
    perspective: 1000px;
}

.card-3d {
    background-color: transparent;
    width: 100%;
    min-height: 350px;
    perspective: 1000px; /* Remove if causing issues with nested 3d */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
}

.card-3d:hover .card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.6);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card-front {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    z-index: 2;
}

.card-back {
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    color: white;
    transform: rotateY(180deg);
    border: 2px solid #00eaff;
    z-index: 1;
        }

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(#00eaff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.enter-btn {
    background: linear-gradient(45deg, #00eaff, #0077ff);
    border: none;
    padding: 12px 25px;
    color: white;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 15px;
}

.enter-btn:hover {
    background: linear-gradient(45deg, #0077ff, #00eaff);
    box-shadow: 0 0 15px #00eaff;
    transform: scale(1.05);
}

/* Video Section */
.video-wrapper {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff00cc, #333399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none; /* We use custom cursor */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: bounce 2s infinite;
}

.chatbot-icon {
    font-size: 30px;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 99;
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    color: #333;
}

.chat-header {
    background: linear-gradient(90deg, #333399, #ff00cc);
    padding: 15px;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.bot-msg {
    background: #e0e7ff;
    color: #333;
    border-bottom-left-radius: 0;
}

.user-msg {
    background: #333399;
    color: white;
    border-bottom-right-radius: 0;
    margin-left: auto;
    width: fit-content;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 5px;
}

.chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

/* Chat Options Styling */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.chat-option {
    background: white;
    border: 1px solid #333399;
    color: #333399;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer; /* Fallback */
    transition: all 0.2s;
    flex-grow: 1;
    text-align: center;
}

.chat-option:hover {
    background: linear-gradient(90deg, #333399, #7c3aed);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Copyright */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 1px solid #333;
}