@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Mukta:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Utsaah Font Definition */
@font-face {
    font-family: 'Utsaah';
    src: url('./school/fonts/Utsaah.ttf') format('truetype'),
         local('Utsaah'), local('Utsaah Regular'), local('mangal');
    size-adjust: 115%;
}

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Utsaah', 'Hind', 'Mukta', 'Poppins', sans-serif !important;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* Background Gradients & Glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(15,23,42,0) 70%);
    top: -100px;
    right: -200px;
    z-index: -1;
    border-radius: 50%;
}

.bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(15,23,42,0) 70%);
    bottom: 20%;
    left: -150px;
    z-index: -1;
    border-radius: 50%;
}

/* Navbar */
.nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-btn {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 3rem;
    position: relative;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(79, 70, 229, 0.4);
}

.hero-image {
    flex: 1;
    position: relative;
    perspective: 1000px;
}

.mockup {
    width: 100%;
    max-width: 350px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 8px solid #1e293b;
    animation: float 6s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(-5deg); }
    100% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); }
}

/* Features */
.features {
    padding: 5rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Registration Form */
.registration {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, transparent, rgba(99,102,241,0.05));
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(15px);
}

.form-container h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-container p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #cbd5e1;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    margin-top: 1rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .bg-glow, .bg-glow-2 {
        display: none;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin: 0 auto 2rem; }
    .form-container { padding: 2rem 1.5rem; }
}

/* Animated Web Splash Screen */
#web-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1e293b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease-in-out;
}

.splash-logo-container {
    animation: slideUpFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.splash-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeInText 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
    text-align: center;
}

@keyframes slideUpFadeIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideUpFadeInText {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #1e293b;
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #334155;
    color: white;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}


body, input, button, select, textarea, h1, h2, h3, h4, h5, h6, p, label, .modal, .modal-content, .login-header, .login-body {
    font-family: 'Utsaah', 'Hind', 'Mukta', 'Poppins', sans-serif !important;
}

/* Floating & Scrollable Responsive Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto !important;
    background-color: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 10px !important;
    box-sizing: border-box;
}

.modal-content {
    background: #1e293b !important;
    margin: 20px auto !important;
    padding: 24px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    width: 96% !important;
    max-width: 440px !important;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
    color: #f8fafc !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
}

.modal-content::-webkit-scrollbar {
    width: 5px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.pin-box-container input {
    width: 42px !important;
    height: 48px !important;
    font-size: 1.35rem !important;
}
@media (max-width: 380px) {
    .pin-box-container input {
        width: 36px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
    }
}
