/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Orange brand colors — exact match to logo palette */
  --orange: #f05000;
  --orange-light: #ff7a2a;
  --orange-dark: #d03000;
  --orange-yellow: #f0b040;
  --orange-deep: #b03000;

  /* Light mode defaults */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.95);
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.08);
  --hero-bg: #111111;
  --hero-text: #ffffff;
  --hero-sub: #cccccc;
  --placeholder-bg: #e8e8e8;
  --placeholder-text: #999999;
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-nav: rgba(10, 10, 10, 0.95);
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #777777;
  --border: #2a2a2a;
  --shadow: rgba(0, 0, 0, 0.3);
  --hero-bg: #0a0a0a;
  --hero-text: #ffffff;
  --hero-sub: #b0b0b0;
  --placeholder-bg: #222222;
  --placeholder-text: #555555;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(240, 80, 0, 0.55)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.logo-orange {
  color: var(--orange);
}

.logo-horizon {
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Show/hide sun/moon icons based on theme */
[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun,
:root .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon,
:root .icon-moon {
  display: block;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-accent {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--hero-text);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--hero-sub);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 147, 26, 0.3);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(240, 80, 0, 0.15);
}

.about-img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 32px var(--shadow);
}

/* ========== TEAM GROUP PHOTO ========== */
.team-group {
  max-width: 880px;
  margin: 0 auto;
}

.team-group-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px var(--shadow);
  display: block;
}

.team-group-names {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  text-align: center;
}

.team-group-names span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* Shared placeholder styling */
.image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: var(--placeholder-bg);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--placeholder-text);
  border: 2px dashed var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.image-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== SECTIONS (shared) ========== */
.section {
  padding: 100px 0;
  transition: background-color 0.3s ease;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section:nth-child(odd) {
  background: var(--bg-primary);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ========== ABOUT SECTION ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ========== PILLARS SECTION ========== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
  border-color: var(--orange);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(247, 147, 26, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.pillar-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== APPROACH SECTION ========== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.approach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.approach-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px var(--shadow);
}

.approach-icon {
  width: 56px;
  height: 56px;
  background: rgba(247, 147, 26, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.approach-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.approach-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== VIDEO / FOLLOW SECTION ========== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  background: #000;
  aspect-ratio: 9 / 16;
  position: relative;
}

.video-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-placeholder:hover {
  background: rgba(247, 147, 26, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ========== TEAM SECTION ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--placeholder-bg);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder-text);
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-grid-single {
  grid-template-columns: 1fr;
  max-width: 320px;
}

.team-card:hover .team-photo {
  border-color: var(--orange);
}

.team-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(240, 80, 0, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.footer .social-links {
  margin-bottom: 28px;
}

.footer .social-links a {
  width: 40px;
  height: 40px;
  border-width: 1px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto 48px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    order: 2;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .theme-toggle {
    order: 3;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .team-group-names span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.7rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .nav-container {
    height: 64px;
  }

  html {
    scroll-padding-top: 64px;
  }

  .hero {
    padding-top: 64px;
  }
}
