@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-gold: #D4AF37;
  --primary-gold-dark: #b5952f;
  --primary-gold-light: #f5d15a;
  --bg-dark: #0a0a0a;
  --bg-surface: #1a1a1a;
  --text-light: #f5f5f5;
  --text-muted: #a0a0a0;
  --bg-light: #ffffff;
  --text-dark: #121212;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #D4AF37 100%);
  --transition: all 0.3s ease;
  --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  color: var(--text-light);
}

h2 .highlight {
  color: var(--primary-gold);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  /* Solid background to enhance blending */
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.logo img {
  height: 120px;
  object-fit: contain;
  transform: scale(1.6);
  transform-origin: left center;
  mix-blend-mode: screen;
  filter: contrast(1.5) brightness(1.2);
  padding-right: 120px;
  /* Provides space so the scaled image doesn't overlap the nav */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition);
  font-size: 1.1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
}

.btn {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  box-shadow: var(--shadow-gold);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-gold);
  transition: var(--transition);
}

/* Layout Sections */
section {
  padding: 6rem 0;
}

.light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.light-section h2 {
  color: var(--text-dark);
}

.light-section h2 .highlight {
  color: var(--primary-gold-dark);
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  border-top: 2px solid var(--primary-gold);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-col img[src*="logo"] {
  mix-blend-mode: screen;
  filter: contrast(1.5) brightness(1.2);
  transform: scale(1.6);
  transform-origin: left center;
  /* Add padding to the right for scaled width */
  margin-right: 60px;
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

/* WhatsApp Chat Widget */
#wa-chat-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  z-index: 1000;
  transition: transform 0.3s;
}

#wa-chat-fab:hover {
  transform: scale(1.1);
}

#wa-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  max-width: 90vw;
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

#wa-chat-header {
  background: var(--primary-gold);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

#wa-chat-close {
  color: var(--bg-dark);
  font-size: 1.2rem;
  font-weight: bold;
}

#wa-chat-body {
  height: 320px;
  padding: 1rem;
  background: var(--bg-dark);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-msg {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.wa-received {
  background: var(--bg-surface);
  color: var(--text-light);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.wa-sent {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

#wa-chat-input-area {
  display: flex;
  padding: 10px;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#wa-chat-input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 20px;
  padding: 10px 15px;
  outline: none;
}

#wa-chat-send {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-container {
    padding: 1rem;
  }
}

/* Base Mobile Breakpoint (Phones) */
@media (max-width: 768px) {

  /* Enforce global responsive padding */
  .container {
    padding: 0 1rem !important;
  }

  section {
    padding: 3rem 0 !important;
  }

  /* Shrink hero and main headings slightly */
  h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Scale down the massive logo to fit narrow headers */
  .logo img {
    height: 60px !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    transform: scale(1.1) !important;
  }

  .footer-col img[src*="logo"] {
    height: 70px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    display: block;
    transform: scale(1.1) !important;
  }

  /* Footer stack */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }

  /* Force all inline display:grid structures (e.g. Faculty, Courses, Highlights) into 1 column */
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* WhatsApp Virtual Chatbot Responsive Tweaks */
  #wa-chat-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  #wa-chat-widget {
    bottom: 20px;
    right: 15px;
    width: calc(100vw - 30px);
    max-height: 80vh;
  }

  #wa-chat-body {
    height: 50vh;
  }
}
html {
  scroll-padding-top: 100px; /* Change this if your header is taller/shorter */
  scroll-behavior: smooth;
}