/* =============================================================
   ALGO GROUP — STYLES
   Palette and spacing tokens are defined as CSS variables below.
   Tweak :root to reskin the whole site.
   ============================================================= */

:root {
  --color-bg-dark: #050608;
  --color-bg-dark-2: #0d0f14;
  --color-white: #ffffff;
  --color-gray: #797f8a;
  --color-accent-blue: #3d97f0;
  --color-accent-green: #45d190;
  --color-text-dark: #101114;
  --color-text-light: #ffffff;
  --color-muted: #6b7280;
  --color-muted-dark: #f2f4f7;
  --border-radius: 10px;
  --container-width: 1120px;
  --transition: 0.2s ease;
  --font-heading: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, .nav-link, .btn { font-family: var(--font-heading); }

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { margin: 0 0 16px; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); text-align: center; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }

.section-subheading {
  text-align: center;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent-blue);
  color: var(--color-white);
}
.btn-primary:hover { opacity: 0.92; }

.btn-bordered { border: 1.5px solid var(--color-white); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-accent-blue);
  color: var(--color-accent-blue);
}
.btn-outline:hover { background: var(--color-accent-blue); color: var(--color-white); }

.icon { width: 18px; height: 18px; }

/* ---------------- Logo ---------------- */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-light);
}
.logo-img { height: 60px; width: auto; }
.logo-small .logo-img { height: 44px; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-dark);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  max-width: 1440px;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 44px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.nav-link {
  color: var(--color-muted-dark);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--color-white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-white);
  display: block;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(2, 3, 6, 0.88) 0%, rgba(2, 3, 6, 0.6) 42%, rgba(2, 3, 6, 0.35) 100%),
    url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center 65%;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; width: 100%; min-width: 0; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-muted-dark);
  max-width: 620px;
  overflow-wrap: break-word;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ---------------- About ---------------- */
.about { padding-top: 80px; }
.about .container { max-width: 760px; text-align: center; }
.about-body { color: var(--color-muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}
.feature-card {
  padding: 48px 28px;
  text-align: center;
}
.feature-icon { margin-bottom: 20px; display: flex; justify-content: center; }
.feature-icon svg { width: 54px; height: 54px; }
.feature-title { letter-spacing: 1.5px; text-transform: uppercase; font-size: 1.05rem; font-weight: 700; }
.feature-description { font-size: 0.92rem; line-height: 1.6; }

.feature-color-0 { background: var(--color-bg-dark); }
.feature-color-0 .feature-icon, .feature-color-0 .feature-title { color: var(--color-white); }
.feature-color-0 .feature-description { color: var(--color-muted-dark); }

.feature-color-1 { background: var(--color-gray); }
.feature-color-1 .feature-icon { color: var(--color-white); }
.feature-color-1 .feature-title { color: var(--color-accent-green); }
.feature-color-1 .feature-description { color: var(--color-white); }

.feature-color-2 { background: var(--color-white); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08); }
.feature-color-2 .feature-icon { color: var(--color-text-dark); }
.feature-color-2 .feature-title { color: var(--color-accent-green); }
.feature-color-2 .feature-description { color: #4a4f57; }

.feature-color-3 { background: var(--color-accent-green); }
.feature-color-3 .feature-icon, .feature-color-3 .feature-title, .feature-color-3 .feature-description { color: var(--color-text-dark); }

/* ---------------- Placements ---------------- */
.placements { padding: 80px 0; background: #fafbfc; }
#placements-image-wrap { display: flex; justify-content: center; }
.placements-image { max-width: 100%; border-radius: var(--border-radius); }
.placements-image-placeholder {
  width: 100%;
  min-height: 220px;
  border: 2px dashed #d5d9df;
  border-radius: var(--border-radius);
  background: var(--color-white);
  color: var(--color-muted);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.placements-image-placeholder small { font-weight: 400; color: var(--color-muted); }

/* ---------------- Curriculum ---------------- */
.curriculum { padding: 80px 0; background: var(--color-bg-dark); color: var(--color-white); }
.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.curriculum h2, .curriculum h3 { text-align: left; color: var(--color-white); }
.curriculum-col > h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; margin-bottom: 28px; }
.curriculum-col h3 { margin-top: 48px; font-size: 1.7rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  color: var(--color-muted-dark);
}
.check-list li::before {
  content: "•";
  color: var(--color-accent-green);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}
.check-list a { color: var(--color-accent-blue); }

.events-heading { margin-top: 0 !important; }
.events-list { list-style: none; padding: 0; margin: 0; }
.event-item { margin-bottom: 36px; }
.event-item:last-child { margin-bottom: 0; }
.event-name { font-weight: 700; font-size: 1.3rem; margin-bottom: 6px; }
.event-details { color: var(--color-muted-dark); font-size: 1rem; }
.event-details a { color: var(--color-accent-blue); }

.curriculum-cta { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 72px; }
.curriculum-cta h3 { color: var(--color-white); font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); margin: 0; }
.curriculum-closed-text { color: var(--color-muted-dark); font-size: 1.15rem; font-weight: 700; margin: 0; }

/* ---------------- Team ---------------- */
.team { padding: 80px 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.team-card {
  background: #fafbfc;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.team-photo, .team-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  display: block;
}
.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark-2);
  color: var(--color-white);
  font-weight: 700;
  font-size: 2.5rem;
}
.team-card-body { padding: 24px 28px 56px; flex: 1; }
.team-name, .team-bio { color: #494d54; font-weight: 400; }
.team-name { font-size: 1.4rem; margin-bottom: 12px; }
.team-bio { font-size: 1rem; margin-bottom: 0; }
.team-linkedin {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: block;
}
.team-linkedin img { width: 36px; height: 36px; border-radius: 6px; }

/* ---------------- Contact ---------------- */
.contact { padding: 90px 0; background: #fafbfc; }
.contact-inner { text-align: center; }
.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--color-bg-dark); color: var(--color-muted-dark); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-tagline { max-width: 520px; color: var(--color-muted-dark); margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--color-muted-dark); transition: color var(--transition); }
.footer-links a:hover { color: var(--color-white); }
.footer-copyright { font-size: 0.8rem; color: var(--color-muted); margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .curriculum-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .site-nav.open { max-height: 400px; }
  .site-nav ul { flex-direction: column; padding: 16px 24px; gap: 16px; }
  .nav-apply { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
}
