/**
 * SDC MUJ - Replicated from sdcmuj.com reference
 */

:root {
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #64748b;
  --orange: #f97316;
  --orange-light: #fb923c;
  --yellow: #fbbf24;
  --gradient-cta: linear-gradient(90deg, #f97316 0%, #fbbf24 100%);
  --red: #dc2626;
  --red-sdg: #c53030;
  --maroon: #722f37;
  --beige: #fef5e9;
  --beige-border: #f0e6d8;
  --purple-start: #6b46c1;
  --purple-end: #4c1d95;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--black);
  padding: 0.6rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.sdc-logo-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.sdc-logo-bars span {
  width: 6px;
  background: var(--orange);
  border-radius: 1px;
}

.sdc-logo-bars span:nth-child(1) {
  height: 28px;
  background: var(--red);
}

.sdc-logo-bars span:nth-child(2) {
  height: 22px;
  background: var(--orange);
}

.sdc-logo-bars span:nth-child(3) {
  height: 18px;
  background: var(--yellow);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}

.nav-logo-text .sdc {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo-text .cse {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
}

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

@media (max-width: 1100px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-links .dropdown::after {
  content: '▼';
  font-size: 0.5rem;
  margin-left: 0.2rem;
  vertical-align: middle;
}

.btn-join {
  background: var(--gradient-cta);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-join:hover {
  opacity: 0.9;
}

/* ===== HOMEPAGE HERO (Dark, starfield, globe) ===== */
.hero-home {
  background: var(--black);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 40% 70%, white, transparent),
    radial-gradient(2px 2px at 60% 20%, white, transparent),
    radial-gradient(2px 2px at 80% 50%, white, transparent),
    radial-gradient(2px 2px at 30% 80%, white, transparent);
  background-size: 200% 200%;
  opacity: 0.6;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }
}

.hero-home-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-home-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-globe {
    order: -1;
  }

  .hero-globe img {
    max-width: 280px;
  }
}

.hero-home-content img.hero-muj-badge {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.hero-home-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.hero-home-content .subtitle {
  color: #9ca3af;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.hero-globe {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-globe img {
  max-width: 450px;
  width: 100%;
  opacity: 0.9;
}

/* ===== SECTION HERO (Mountain / scenic) ===== */
.hero-section {
  background: var(--black);
  /* Fallback */
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Background Utilities */
.bg-mountains {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
    url('../images/backgrounds/mountains_night.png');
}

.bg-building {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url('../images/backgrounds/sepia_building.png');
}

.bg-boat {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url('../images/backgrounds/lake_boat.png');
}

.bg-purple {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
    url('../images/backgrounds/purple_beam.png');
}

.hero-section-inner {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-section .subtitle {
  color: #e2e8f0;
  /* Lighter for better contrast on images */
  font-size: 1.1rem;
}

/* ===== CONTENT SECTIONS ===== */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== SDG BLOCKS ===== */
.sdg-blocks {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.sdg-block {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  padding: 1rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sdg-block .num {
  font-size: 2rem;
  font-weight: 800;
}

.sdg-block .label {
  font-size: 0.65rem;
  line-height: 1.2;
  font-weight: 600;
}

.sdg-block:nth-child(1) {
  background: var(--red-sdg);
}

.sdg-block:nth-child(2) {
  background: var(--maroon);
}

.sdg-block:nth-child(3) {
  background: var(--orange);
}

.sdg-block:nth-child(4) {
  background: #1e40af;
}

/* ===== VISION ===== */
.vision-words {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.vision-word {
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  padding-bottom: 0.3rem;
}

.vision-word.inno {
  border-bottom: 4px solid var(--red);
}

.vision-word.dev {
  border-bottom: 4px solid var(--yellow);
}

.vision-word.excel {
  border-bottom: 4px solid var(--orange);
}

/* ===== EXPERTISE / SOLUTIONS CARDS (with icons) ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

.expertise-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.expertise-card.highlight {
  background: var(--beige);
  border: 1px solid var(--beige-border);
}

.expertise-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.expertise-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.expertise-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
}

/* ===== WHY CHOOSE SDC (2-col with icons) ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.why-card .icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.why-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bg-about {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url('../images/backgrounds/about_bg_final.png');
}

/* ===== FOUNDER CARDS (purple gradient) ===== */
.founders-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4rem;
  /* More space for the larger pop-out images */
}

.founder-card {
  width: 360px;
  background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
  border-radius: 16px;
  padding: 2rem;
  padding-top: 5rem;
  /* Increased padding top for larger image */
  color: var(--white);
  position: relative;
  box-shadow: 0 10px 40px rgba(107, 70, 193, 0.3);
}

.founder-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  position: absolute;
  top: -75px;
  /* Adjusted to half of height */
  left: 50%;
  transform: translateX(-50%);
}

.founder-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-align: center;
}

.founder-card .designation {
  font-size: 0.9rem;
  opacity: 0.95;
  text-align: center;
  margin-bottom: 1rem;
}

.founder-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* ===== FAQ ACCORDION ===== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--beige-border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  background: var(--beige);
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #fdebd4;
}

.faq-question::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1rem 1.25rem;
  background: var(--white);
  font-size: 0.95rem;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== GALLERY FILM STRIP ===== */
.gallery-film {
  background: var(--dark);
  padding: 2rem 1rem 3rem;
  border-radius: 8px;
  position: relative;
}

.gallery-film::before,
.gallery-film::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(90deg,
      var(--dark) 0px,
      var(--dark) 15px,
      transparent 15px,
      transparent 25px);
}

.gallery-film::before {
  top: 0;
}

.gallery-film::after {
  bottom: 0;
}

.gallery-film-inner {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.gallery-film-inner img {
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

.btn-orange {
  display: inline-block;
  background: var(--gradient-cta);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: opacity 0.2s;
}

.btn-orange:hover {
  opacity: 0.9;
}

/* ===== TESTIMONIAL ===== */
.testimonial-section {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 2rem;
}

.testimonial-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-content img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}


/* ===== TEAM PAGE SECTIONS ===== */
.team-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.team-intro h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.team-intro p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.student-team-section {
  text-align: center;
  padding-bottom: 4rem;
}

.student-team-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.year-toggle {
  display: inline-flex;
  background: var(--white);
  border-radius: 50px;
  padding: 0.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  border: 1px solid #e2e8f0;
}

.toggle-btn {
  padding: 0.5rem 2rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.toggle-btn.active {
  background: #f87171;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(248, 113, 113, 0.4);
}


/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.bg-light {
  background: #f8fafc;
}