:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent1: #c8a24d;
  --accent2: #0b1a33;
  --card-bg: #ffffff;
}

/* 🌙 Dark Mode variables override */
body.dark {
  --bg: #0b1a33;
  --text: #f5f5f5;
  --muted: #cbd5e1;
  --card-bg: #111c2e;
}

/* General body + smooth transition */
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Navigation (Centered Logo) */
nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.5s ease, background 0.4s ease;

  /* ✨ Allow the nav to scroll naturally */
  position: relative;
  top: auto;
  z-index: auto;
}


/* Dark mode nav */
body.dark nav {
  background: rgba(11, 26, 51, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
  height: 300px;
  width: auto;
  display: block;
  margin: 0 auto 1rem;
  transition: transform 0.5s ease, opacity 0.6s ease;
  transform-origin: center top;
}

.shrink .logo img {
  transform: scale(0.6);
  opacity: 0.65;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: opacity 0.4s ease;
}

.shrink .nav-links {
  opacity: 0.8;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1.05rem;
}

.nav-links a:hover {
  color: var(--accent1);
}

/* 🌙 Dark Mode Toggle Button */
.theme-toggle {
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
}

/* Hero */
header.hero {
  text-align: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}

header.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #c8a24d, #b88a2f, #0b1a33, #1e2a44, #c8a24d);
  animation: spin 25s linear infinite;
  z-index: -2;
  opacity: 0.25;
}

header.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.9);
  z-index: -1;
  transition: background 0.5s ease;
}

body.dark header.hero::after {
  background: rgba(11,26,51,0.9);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

header.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

header.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text);
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 1.5rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.section p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.card.visible { opacity: 1; transform: translateY(0); }

footer {
  text-align: center;
  padding: 2rem;
  background: #fafafa;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: background 0.5s ease, color 0.5s ease;
}

body.dark footer {
  background: #0f1f3a;
  color: #cbd5e1;
}
/* =========================
   PARTNERS GRID — make visible
========================= */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

/* Fix cards being invisible on load */
.partners .card {
  opacity: 1;
  transform: none;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.partners .card img {
  max-width: 160px;
  margin-bottom: 1rem;
}

.partners .card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent2);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.partners .card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.partners .card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent1);
  text-decoration: none;
  font-weight: 600;
}

.partners .card a:hover {
  color: var(--accent2);
}
