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

:root {
  /* Rich Orange Dark Theme */
  --bg-base: #0f0703; /* Very deep warm black */
  --bg-surface: rgba(25, 13, 8, 0.6); /* Translucent warm surface */
  --bg-surface-light: rgba(43, 20, 10, 0.5);
  
  /* Accents */
  --primary: #f97316; /* Bright Orange */
  --secondary: #ea580c; /* Deep Rust Orange */
  --accent: #facc15; /* Gold */
  --gold: #fbbf24;
  --primary-glow: rgba(249, 115, 22, 0.6);
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  --nav-height: 95px;
}

/* === CSS Reset & Base === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Cosmic Background Glow effect */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}
body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
}
h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  letter-spacing: -1px;
}
p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 300;
}
.highlight {
  background: linear-gradient(135deg, var(--gold), var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* === Common Layout & Utility === */
section {
  padding: 8rem 5%;
  position: relative;
  z-index: 10;
}
.reveal-section {
  /* controlled by GSAP */
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}
.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.primary-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
  transition: opacity 0.3s linear;
  opacity: 0;
}
.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
}
.primary-btn:hover::before {
  opacity: 1;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(15, 7, 3, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(15, 7, 3, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  height: 75px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}
.logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
  transition: transform 0.3s ease;
}
.logo-container:hover .logo-img {
  transform: scale(1.05);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.main-title {
  font-family: 'Cinzel', serif;
  font-size: 2.0rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(to right, #fff, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.sub-title {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
  color: #e2e8f0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0; left: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }
.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

/* === Login Modal === */
#loginScreen {
  position: fixed;
  inset: 0; /* top/left/right/bottom 0 */
  background: rgba(15, 7, 3, 0.9); /* Dark overlay */
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.95);
  opacity: 0;
  animation: modalPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalPop {
  to { transform: scale(1); opacity: 1; }
}
.login-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.login-card p {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.login-card input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.3);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.login-card input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
}
.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
  position: relative;
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.feature-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--gold);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.hero-graphics {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  mix-blend-mode: screen;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: 10%; left: 0%; }
.shape-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -10%; right: 5%; }
.shape-3 { width: 300px; height: 300px; background: var(--accent); top: 50%; left: 60%; }

/* === Marquee Banner === */
.announcement-banner {
  width: 100%;
  background: linear-gradient(90deg, #7c2d12, #ea580c, #7c2d12);
  background-size: 200% 100%;
  animation: gradientShift 5s ease infinite;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.marquee {
  display: flex;
  white-space: nowrap;
  animation: scrollMarquee 25s linear infinite;
  gap: 3rem;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee span {
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* === Glass Container (for sections) === */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-box:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}
.stat-box h3 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--gold), #fef08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-box p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
}

/* === Courses Section === */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.course-card {
  background: var(--bg-surface-light);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.course-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(255, 255, 255, 0.15);
}
.course-card:hover::before { opacity: 1; }
.course-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.05);
  width: 80px; height: 80px;
  display: flex; justify-content: center; align-items: center;
  border-radius: 20px;
}
.course-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.course-card p {
  margin-bottom: 2rem;
  flex-grow: 1;
}
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  margin-top: auto;
}
.learn-more:hover {
  gap: 12px;
  color: #fff;
}

/* === Contact Section === */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info .info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.info-icon { font-size: 1.5rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.input-group input, .input-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 1.05rem;
  transition: all 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}
.submit-btn { width: 100%; padding: 18px; font-size: 1.1rem; }

/* === Footer === */
footer {
  background: #000;
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--glass-border);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-brand h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

/* === Subpages (CSE & Events) === */
.page-hero {
  min-height: 40vh;
  margin-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 1; filter: brightness(0.6);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-base), rgba(15, 7, 3, 0.5));
  z-index: 2;
}
.page-hero-content {
  position: relative; z-index: 3; text-align: center; padding: 2rem;
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
.image-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}
.image-collage img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: transform 0.4s ease;
}
.image-collage img:hover { transform: scale(1.03); z-index: 5; position: relative; }
.tall-img { grid-row: span 2; }
.content-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-panel p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.event-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-light);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.event-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(10px);
  border-color: rgba(255,255,255,0.2);
}
.event-card h4 { font-size: 1.25rem; font-weight: 600; }
.event-card a { color: var(--gold); font-weight: 600; }

/* === Responsive === */
@media (max-width: 900px) {
  .about-grid, .contact-container, .split-layout { grid-template-columns: 1fr; }
  .image-collage { min-height: 400px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .glass-panel { padding: 2rem; }
  .stat-box h3 { font-size: 2.5rem; }
}
