@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

:root {
    --bg-gradient: linear-gradient(135deg, #7b2ff7 0%, #f107a3 35%, #24c6dc 70%, #514a9d 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --text-primary: #1f2340;
    --text-secondary: #596080;
    --accent: #2575fc;
    --accent-2: #6a11cb;
    --shadow: 0 10px 30px rgba(31, 35, 64, 0.25);
    --radius: 16px;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
}

.top-nav {
    position: sticky;
    top: 0;
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.45));
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 10;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

#user-name {
    font-weight: bold;
}

#user-class {
    font-size: 0.9em;
    color: #666;
}

#logout-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #ff6a88, #ff99ac);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255,106,136,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#logout-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(255,106,136,0.4); }

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    color: #fff;
}
.dashboard-container h1 {
    text-align: center;
    margin-bottom: 48px;
}

/*.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.subject-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
}

.subject-card:hover {
    transform: translateY(-5px);
}

.subject-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

/*.card-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
    pointer-events: none;
}
/* General Styles */
body {
    margin: 0;
    overflow-x: hidden;
}

h1, h2 {
    text-align: center;
}

.hidden {
    display: none;
}


/* Login Screen */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--bg-gradient);
}

.card {
    position: relative;
    background: var(--card-bg);
    padding: 2.25rem 2.25rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 420px;
    width: 100%;
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    animation: fadeIn 0.5s ease both;
    z-index: 1;
}
.card h2 { font-weight: 800; letter-spacing: 0.2px; color: var(--text-primary); }

input[type="text"], input[type="password"] {
    width: 92%;
    padding: 12px 12px;
    margin: 12px 0;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background: rgba(255,255,255,0.8);
}
input[type="text"]:focus, input[type="password"]:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.35);
}

button {
    background-image: linear-gradient(135deg, #2575fc, #6a11cb);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(106, 17, 203, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(106, 17, 203, 0.45);
    filter: brightness(1.05);
}

/* Removed hero panel styles */

.error-message {
    color: red;
    font-size: 0.9rem;
}

/* Introduction Section */
#intro-section {
    padding: 50px 20px;
    text-align: center;
    background: radial-gradient(1200px circle at 50% -10%, rgba(255,255,255,0.45), rgba(255,255,255,0) 60%), var(--bg-gradient);
    position: relative;
    color: #fff;
}

.intro-title {
    font-size: 2.6rem;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.25s ease;
}
.intro-title:hover { transform: translateY(-2px); }

.intro-subtitle {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #555;
}

/* Subjects Section */
#subjects-section {
    padding: 50px 20px;
    background: transparent;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.subject-card {
    position: relative;
    background: var(--glass-bg);
    padding: 22px 20px 26px;
    border-radius: var(--radius);
    width: 100%;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--text-primary);
}
.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(31,35,64,0.35);
}
.subject-card img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 10px; }
.card-content h2 { font-weight: 700; }
.card-content p { color: var(--text-secondary); }

/* AR Screen */
#ar-screen {
    position: relative;
    height: 100vh;
}

.floating-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 22px;
    background-image: linear-gradient(135deg, #2575fc, #6a11cb);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(106,17,203,0.35);
}
.floating-button:hover { transform: translate(-50%, -1px); }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
