* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --ink: #1a1a2e;
  --ink-light: #2a2a4e;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-glow: rgba(201, 168, 76, 0.3);
  --rose: #c47a7a;
  --rose-light: #dba0a0;
  --sage: #7a9e7a;
  --text: #2c2c3e;
  --text-light: #6b6b80;
  --radius: 12px;
  --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  backdrop-filter: blur(10px);
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}

.login-accent {
  color: var(--gold);
  font-style: italic;
}

.login-sub {
  color: rgba(245,240,232,0.4);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.login-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.login-form input::placeholder {
  color: rgba(245,240,232,0.25);
}

.login-form input:focus {
  border-color: var(--gold);
}

.login-form button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.login-form button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.login-error {
  color: var(--rose);
  font-size: 0.8rem;
  margin-top: 12px;
  display: none;
}

.login-error.show {
  display: block;
}

.login-help {
  color: rgba(245,240,232,0.35);
  font-size: 0.75rem;
  margin-top: 20px;
  line-height: 1.5;
}

.login-help a {
  color: var(--gold-light);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.login-help a:hover {
  color: var(--gold);
}

.vc-admin-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 9997;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-admin-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.vc-admin-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  max-height: calc(100vh - 120px);
  background: white;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 16px;
  z-index: 9998;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vc-admin-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.vc-admin-panel-inner { padding: 24px; }

.vc-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.vc-admin-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.vc-admin-logout-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--rose);
  background: transparent;
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vc-admin-logout-btn:hover {
  background: rgba(196,122,122,0.1);
}

.vc-admin-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.vc-admin-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.vc-admin-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}

.vc-admin-section input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.vc-admin-section input[type="text"]:focus { border-color: var(--gold); }

.vc-admin-section input[type="file"] {
  width: 100%;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.vc-admin-section button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vc-admin-section button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.cw-grid, .hw-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-msg {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
  padding: 40px 0;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all var(--transition);
}

.file-card:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: 0 2px 16px rgba(201, 168, 76, 0.06);
}

.file-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.file-info { flex: 1; }

.file-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.file-info p {
  font-size: 0.78rem;
  color: var(--text-light);
}

.file-view-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.file-view-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

.file-del-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(196,122,122,0.1);
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-del-btn:hover {
  background: var(--rose);
  color: white;
}

.cursor {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, background 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(2);
  background: var(--gold);
  border-color: transparent;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::selection { background: var(--gold); color: var(--ink); }

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 40px;
  transition: all var(--transition);
}

nav.scrolled {
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}

.logo-accent {
  color: var(--gold);
  margin: 0 4px;
  font-size: 1.2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(196, 122, 122, 0.06) 0%, transparent 50%);
  animation: overlayPulse 10s ease-in-out infinite alternate;
}

@keyframes overlayPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 30px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 20px;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-title-accent {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.5);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 30px;
  animation: fadeUp 1s ease 0.6s both;
}

.hero-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 30px;
  animation: fadeUp 1s ease 0.7s both;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(245, 240, 232, 0.6);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeUp 1s ease 0.8s both;
}

.italic-text {
  font-style: italic;
  color: var(--gold-light);
}

.hero-cta {
  animation: fadeUp 1s ease 1s both;
}

.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  transition: all var(--transition);
  box-shadow: 0 4px 30px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 50px var(--gold-glow);
  background: var(--gold-light);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeUp 1s ease 1.4s both;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(245, 240, 232, 0.2);
  border-radius: 14px;
  position: relative;
  margin: 0 auto;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  padding: 120px 20px;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-number {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 16px;
}

.intro-content {
  max-width: 700px;
  margin: 0 auto;
}

.intro-card {
  background: white;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 20px;
  padding: 50px 44px;
  text-align: center;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

.intro-card:hover {
  box-shadow: 0 8px 60px rgba(201, 168, 76, 0.08);
  transform: translateY(-4px);
}

.intro-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.intro-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.intro-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-quote {
  font-style: italic;
  color: var(--gold) !important;
  font-size: 1.1rem !important;
  margin: 24px 0 !important;
  padding: 16px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.intro-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.teacher-highlight {
  background: white;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 60px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

.teacher-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 60px rgba(201, 168, 76, 0.1);
}

.teacher-highlight-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.teacher-highlight h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.teacher-highlight-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.section-sub-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-sub-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 700;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.subject-card {
  background: white;
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.subject-card:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: 0 2px 20px rgba(201, 168, 76, 0.06);
}

.subject-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.teacher-name {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.captains-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.captain-card {
  background: white;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  min-width: 180px;
  transition: all var(--transition);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.captain-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 50px rgba(201, 168, 76, 0.12);
}

.captain-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.captain-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.captain-role {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.captains-section {
  background: rgba(201, 168, 76, 0.02);
}

.students-list {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.student-item {
  background: white;
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: all var(--transition);
  counter-increment: student-counter;
}

.student-item::before {
  content: counter(student-counter) ".";
  color: var(--gold);
  font-weight: 700;
  margin-right: 6px;
}

.students-list {
  counter-reset: student-counter;
}

.student-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.1);
  background: rgba(201, 168, 76, 0.02);
}

.student-more {
  grid-column: 1 / -1;
  font-style: italic;
  color: var(--text-light);
  font-weight: 400;
  border-style: dashed;
}

.student-more::before {
  content: none;
}

footer {
  padding: 60px 20px 40px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  background: white;
}

.footer-inner {
  text-align: center;
}

.footer-motto {
  color: var(--text-light);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
}

.footer-divider {
  width: 30px;
  height: 1px;
  background: rgba(201, 168, 76, 0.2);
  margin: 0 auto 16px;
}

.footer-copy {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.footer-url {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.file-view-btn { cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  nav { padding: 16px 20px; }
  .cursor { display: none; }
  body { cursor: auto; }
  .intro-stats { gap: 24px; }
  .intro-card { padding: 32px 24px; }
  .section { padding: 80px 20px; }
  .subject-grid { grid-template-columns: 1fr; }
  .students-list { grid-template-columns: 1fr; }
  .teacher-highlight { padding: 32px 24px; }
  .vc-admin-panel { width: calc(100% - 32px); right: 16px; }
  .file-card { flex-wrap: wrap; }
  .file-view-btn { width: 100%; text-align: center; }
  .file-del-btn { align-self: flex-end; }
}
