/* ==========================================================================
   Era Management Institute of Technology [EMIT], Dehradun
   Master Theme & Design System (Champagne Gold & Royal Oxford Navy)
   Based on the Official EMIT Brass Plaque & Golden Book Emblem
   ========================================================================== */

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

:root {
  /* ==========================================================================
     Brand Color Spectrum (Derived from Official Brass Plaque & Royal Navy Seal)
     ========================================================================== */

  /* Royal Oxford Navy Palette */
  --navy-darkest: #040A15;
  --navy-base: #07152B;
  --navy-mid: #0D2246;
  --navy-card: #0F2752;
  --navy-surface: #14336B;
  --navy-elevated: #1B4084;
  --navy-glass: rgba(7, 21, 43, 0.92);

  /* Metallic Champagne & 24K Polished Gold Palette */
  --gold-primary: #D4AF37;
  --gold-light: #F7E7B4;
  --gold-bright: #FFE885;
  --gold-champagne: #EBD8B0;
  --gold-dark: #A17519;
  --gold-bronze: #7A5508;
  
  /* Metallic Gradients */
  --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(247, 231, 180, 0.28) 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(247, 231, 180, 0.14) 100%);
  --navy-gradient: linear-gradient(145deg, #07152B 0%, #0D2246 60%, #050E1F 100%);
  --plaque-metal-gradient: linear-gradient(135deg, #EFE2C6 0%, #FAF5EA 35%, #E4D1AC 70%, #CEB480 100%);

  /* Glows & Lighting */
  --gold-glow: rgba(212, 175, 55, 0.42);
  --gold-glow-subtle: rgba(212, 175, 55, 0.18);
  --navy-glow: rgba(13, 34, 70, 0.6);

  /* WhatsApp Emerald Palette */
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5D;
  --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  --whatsapp-glow: rgba(37, 211, 102, 0.45);

  /* Backgrounds & Text (Default Luxury Royal Navy Dark Mode) */
  --bg-primary: #040A15;
  --bg-secondary: #07152B;
  --bg-surface: #0B1E3D;
  --bg-card: rgba(11, 30, 61, 0.88);
  --bg-card-elevated: rgba(15, 39, 82, 0.95);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-gold: #F7E7B4;
  --text-gold-bright: #FFE885;

  /* Borders & Dividers */
  --border-subtle: rgba(212, 175, 55, 0.18);
  --border-gold: rgba(212, 175, 55, 0.45);
  --border-gold-bright: rgba(212, 175, 55, 0.85);
  --border-focus: #D4AF37;

  /* Shadows */
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -6px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 50px -12px rgba(0, 0, 0, 0.75);
  --shadow-gold-glow: 0 0 30px var(--gold-glow);
  --shadow-plaque: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-serif: 'Cinzel', 'Georgia', serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout Tokens */
  --container-max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Champagne Metallic Light Theme
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #F8F5EE;
  --bg-secondary: #EFE9DC;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-elevated: #FFFFFF;

  --text-primary: #07152B;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-gold: #8B6508;
  --text-gold-bright: #684903;

  --border-subtle: rgba(186, 149, 63, 0.28);
  --border-gold: rgba(186, 149, 63, 0.55);
  --border-gold-bright: rgba(186, 149, 63, 0.9);

  --shadow-sm: 0 2px 10px rgba(7, 21, 43, 0.08);
  --shadow-md: 0 10px 25px -4px rgba(7, 21, 43, 0.12);
  --shadow-lg: 0 20px 45px -8px rgba(7, 21, 43, 0.18);
  --shadow-gold-glow: 0 0 20px rgba(186, 149, 63, 0.3);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Ambient Radial Mesh with Golden Shimmer */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 12% 15%, rgba(212, 175, 55, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 88% 60%, rgba(13, 34, 70, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(212, 175, 55, 0.08) 0%, transparent 45%);
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
}

.font-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Common Headers */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

[data-theme="light"] .section-pill {
  color: #7A5508;
  background: rgba(212, 175, 55, 0.15);
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons & CTAs (Gold, WhatsApp & Navy)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Metallic Gold Button */
.btn-gold {
  background: var(--gold-gradient);
  color: #040A15;
  border-color: #D4AF37;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* WhatsApp Green Direct Conversion Button */
.btn-whatsapp {
  background: var(--whatsapp-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2CE26E 0%, #15A090 100%);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
  transform: translateY(-2px);
}

/* Secondary Navy / Outline Button */
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-gold);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.05rem 2.15rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Header & Alert Banner
   ========================================================================== */
.top-alert-bar {
  background: linear-gradient(90deg, #07152B 0%, #0D2246 50%, #07152B 100%);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  padding: 0.55rem 0;
  position: relative;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--navy-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.logo-icon-svg {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 0 16px var(--gold-glow);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-icon-svg {
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  line-height: 1.15;
}

.logo-tagline {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-transform: uppercase;
}

[data-theme="light"] .logo-title {
  color: #07152B;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-card);
  box-shadow: 0 0 12px var(--gold-glow);
  transform: rotate(20deg);
}

.menu-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section & Institutional Brass Plaque
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 900;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Hero Lead Card with Metallic Plaque Styling */
.hero-lead-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), 0 0 25px var(--gold-glow-subtle);
  position: relative;
  backdrop-filter: blur(12px);
}

.hero-lead-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}

/* Official Logo Plaque Card */
.official-plaque-card {
  background: var(--plaque-metal-gradient);
  border: 3px solid #D4AF37;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-plaque);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.official-plaque-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  pointer-events: none;
  animation: plaqueShine 6s infinite;
}

@keyframes plaqueShine {
  0% { transform: translateX(-100%); }
  25% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.plaque-logo-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(7, 21, 43, 0.35);
  border: 2px solid #D4AF37;
  flex-shrink: 0;
}

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

.plaque-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 900;
  color: #07152B;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.plaque-sub {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #7A5508;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

/* ==========================================================================
   About Section & Institutional Showcase
   ========================================================================== */
.about-section {
  padding: 5.5rem 0;
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.about-media-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-media-card:hover img {
  transform: scale(1.03);
}

.about-badge-float {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: var(--navy-glass);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
}

.about-points-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-point-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: all var(--transition-fast);
}

.about-point-item:hover {
  border-color: var(--gold-primary);
  transform: translateX(4px);
}

.point-icon {
  font-size: 1.65rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Contact Section & Counseling Desk
   ========================================================================== */
.contact-section {
  padding: 5.5rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 1.75rem 0 2rem 0;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #02060D;
  border-top: 1px solid var(--border-gold);
  padding: 4.5rem 0 2rem 0;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 1.35rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Floating WhatsApp Widget
   ========================================================================== */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.floating-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.45rem;
  background: var(--whatsapp-gradient);
  color: #FFFFFF !important;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 25px var(--whatsapp-glow);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.75);
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold);
  padding: 0.75rem 1rem;
  z-index: 1000;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
