*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink:         #0d0d0d;
  --cream:       #faf6ee;
  --gold:        #c9a14a;
  --gold-light:  #e8c97a;
  --rust:        #c0392b;
  --teal:        #0d7377;
  --teal-light:  #14a3a8;
  --card-bg:     #ffffff;
  --muted:       #6b6b6b;
  --border:      #e2ddd4;
  --section-alt: #f2ede3;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 161, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--ink) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  font-weight: 600 !important;
  letter-spacing: 0px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: 0.3s;
}

/* ─── TICKER ─── */
.ticker {
  background: var(--gold);
  padding: 0.6rem 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 64px;
}

.ticker-track {
  display: inline-flex;
  gap: 4rem;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker-item::before {
  content: '★  ';
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 5vw 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(201, 161, 74, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 161, 74, 1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 74, 0.15) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-glow2 {
  position: absolute;
  bottom: -150px; left: -150px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 115, 119, 0.2) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(201, 161, 74, 0.4);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0.4;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 161, 74, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 161, 74, 0.08);
}

.hero-stats {
  position: absolute;
  right: 5vw; bottom: 80px;
  display: flex;
  gap: 2.5rem;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(201, 161, 74, 0.6), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SHARED SECTION STYLES ─── */
section {
  padding: 6rem 5vw;
}

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ─── COURSES ─── */
#courses {
  background: var(--section-alt);
}

.courses-header {
  text-align: center;
}

.courses-header .section-sub {
  margin: 0 auto 3rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.course-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.course-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.course-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── WHY US ─── */
#why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
  background: var(--ink);
  color: #fff;
}

#why .section-title {
  color: #fff;
}

#why .section-sub {
  color: rgba(255, 255, 255, 0.5);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  transition: background 0.3s, border-color 0.3s;
}

.feature-item:hover {
  background: rgba(201, 161, 74, 0.07);
  border-color: rgba(201, 161, 74, 0.3);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(201, 161, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #fff;
}

.feature-item p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.why-visual {
  background: linear-gradient(135deg, rgba(201, 161, 74, 0.1), rgba(13, 115, 119, 0.1));
  border: 1px solid rgba(201, 161, 74, 0.2);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why-visual h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0;
}

.visual-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: -1.5rem;
}

.result-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.6rem;
}

.result-bar-label strong {
  color: var(--gold);
  font-family: 'Space Mono', monospace;
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  width: 0;
  transition: width 1.5s ease;
}

.rank-box {
  margin-top: 0.5rem;
  padding: 1.25rem;
  background: rgba(201, 161, 74, 0.1);
  border: 1px solid rgba(201, 161, 74, 0.25);
  border-radius: 10px;
}

.rank-num {
  font-size: 2.5rem;
  font-family: 'Space Mono', monospace;
  color: var(--gold);
  font-weight: 700;
}

.rank-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

/* ─── TESTIMONIALS ─── */
#testimonials {
  background: var(--cream);
}

.testimonials-header {
  text-align: center;
}

.testimonials-header .section-sub {
  margin: 0 auto 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.testi-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testi-card p {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testi-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testi-course {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── FACULTY ─── */
#faculty {
  background: var(--section-alt);
}

.faculty-header {
  text-align: center;
}

.faculty-header .section-sub {
  margin: 0 auto 3rem;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.faculty-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.faculty-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  position: relative;
}

.faculty-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.4;
}

.faculty-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.faculty-card .subject {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.faculty-card .exp {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── CONTACT ─── */
#contact {
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
}

#contact .section-title {
  color: #fff;
}

#contact .section-sub {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.contact-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(201, 161, 74, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-row h5 {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.contact-row p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ─── FORM ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 161, 74, 0.05);
}

.form-group select option {
  background: #1a1a1a;
  color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 161, 74, 0.35);
}

.form-submit:disabled {
  cursor: default;
  transform: none;
  box-shadow: none;
  opacity: 1;
}

/* ─── FOOTER ─── */
footer {
  background: #060606;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 2rem 5vw;
  font-size: 0.82rem;
  border-top: 1px solid rgba(201, 161, 74, 0.1);
}

footer strong {
  color: var(--gold);
}

/* ─── SCROLL REVEAL (initial state set by JS) ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #why,
  #contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13, 13, 13, 0.98);
    padding: 2rem;
    gap: 1.25rem;
    z-index: 999;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 5vw 6rem;
  }

  .hero-stats {
    position: static;
    margin-top: 3rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  input:invalid {
  border: 2px dashed red;
}

input:valid {
  border: 2px solid green;
}

}
