/* ============================================================
   LinkNTech for Education — style.css
   Color Palette:
   --navy:   #0A1628  (deep background)
   --blue:   #1E6FD9  (brand / accent)
   --sky:    #3B9EE8  (highlights)
   --white:  #F4F8FF
   --gray:   #8A9BB5
   --card:   #101E35
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:  #0A1628;
  --blue:  #1E6FD9;
  --sky:   #3B9EE8;
  --white: #F4F8FF;
  --gray:  #8A9BB5;
  --card:  #101E35;
  --border:#1A2E50;
  --grad:  linear-gradient(135deg, #1E6FD9 0%, #3B9EE8 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utility ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 56px;
}
.accent { color: var(--sky); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all .3s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(30,111,217,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(30,111,217,.6); }
.btn-outline {
  background: transparent;
  color: var(--sky);
  border: 1.5px solid var(--sky);
}
.btn-outline:hover { background: var(--sky); color: #fff; }

/* ── Divider ──────────────────────────────────────────── */
.section-divider {
  width: 64px; height: 4px;
  background: var(--grad);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ── HEADER / NAV ─────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  transition: color .25s, background .25s;
  letter-spacing: .04em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(30,111,217,.18);
}
.nav-links a.active { color: var(--sky); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }

@media(max-width:768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
}

/* ── PAGE HERO (reusable inner-page banner) ────────────── */
.page-hero {
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(30,111,217,.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-label {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(2.4rem,5vw,4rem); font-weight: 800; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 96px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-brand img { height: 44px; margin-bottom: 12px; }
.footer-brand p { color: var(--gray); font-size: .9rem; max-width: 320px; }
.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 1.1rem;
  transition: all .25s;
}
.footer-socials a:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }
.footer-copy {
  text-align: center;
  color: var(--gray);
  font-size: .8rem;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
@media(max-width:600px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-brand p { margin: 0 auto; }
}

/* ── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

/* ── TAG BADGE ────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(30,111,217,.18);
  color: var(--sky);
  border: 1px solid rgba(30,111,217,.3);
}

/* ── SCROLL GLOW LINE ─────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 2000;
  background: var(--grad);
  width: 0%;
  transition: width .1s linear;
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 50%, rgba(30,111,217,.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(59,158,232,.12) 0%, transparent 60%);
}
/* Grid dots */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}
.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(59,158,232,.3);
  border-radius: 20px;
  background: rgba(59,158,232,.08);
}
.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 24px;
}
.hero-text p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* SVG Animation Area */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-svg-wrap {
  width: 100%; max-width: 520px;
  position: relative;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sky);
}
.stat-label { font-size: .85rem; color: var(--gray); }

@media(max-width:900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto 40px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
}

/* Mission Section */
.mission {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mission-text p { color: var(--gray); margin-bottom: 16px; }
.mission-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color .3s;
}
.pillar:hover { border-color: var(--sky); }
.pillar-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(30,111,217,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.pillar h4 { font-size: 1rem; margin-bottom: 4px; }
.pillar p { font-size: .9rem; color: var(--gray); margin: 0; }
@media(max-width:768px) { .mission-grid { grid-template-columns: 1fr; gap: 48px; } }

/* President's Message */
.presidents-msg {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.presidents-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.president-portrait {
  position: relative;
}
.portrait-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
  border: 2px solid var(--border);
  position: relative;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.portrait-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: var(--gray);
  font-size: .9rem;
}
.portrait-placeholder svg { opacity: .4; }
.president-name-badge {
  position: absolute;
  bottom: -1px; left: -1px; right: -1px;
  background: var(--grad);
  padding: 12px 16px;
  border-radius: 0 0 14px 14px;
  text-align: center;
}
.president-name-badge strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
}
.president-name-badge span { font-size: .8rem; opacity: .85; }
.quote-block {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--sky);
  margin: 24px 0 32px;
  color: var(--gray);
  font-style: italic;
  font-size: 1.05rem;
}
.presidents-msg-text h2 { font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom: 12px; }
.presidents-msg-text p { color: var(--gray); margin-bottom: 16px; }
/* INSERT president message content between the comment tags */
@media(max-width:900px) {
  .presidents-inner { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 280px; margin: 0 auto; }
}

/* Features/Programs */
.programs { padding: 96px 0; }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;
}
.program-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.35); }
.program-icon { font-size: 2.4rem; margin-bottom: 20px; }
.program-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.program-card p { color: var(--gray); font-size: .95rem; }

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 28px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 3rem;
  background: linear-gradient(135deg, #0f1e38, #1a2e50);
}
.team-info {
  padding: 16px 20px 20px;
  background: linear-gradient(to top, rgba(30,111,217,.12), transparent);
}
.team-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-info .role {
  font-size: .82rem;
  color: var(--sky);
  margin-bottom: 14px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}
.team-socials { display: flex; gap: 10px; }
.team-socials a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--gray);
  transition: all .25s;
}
.team-socials a:hover { border-color: var(--sky); color: var(--sky); }

/* ============================================================
   UPDATES PAGE
   ============================================================ */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 28px;
}
.update-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
}
.update-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.update-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: .85rem;
}
.update-body { padding: 24px; }
.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.update-date { font-size: .8rem; color: var(--gray); }
.update-body h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.update-body p { color: var(--gray); font-size: .9rem; margin-bottom: 20px; }
.read-more {
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s;
}
.read-more:hover { gap: 10px; }

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.events-list { display: flex; flex-direction: column; gap: 24px; }
.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: center;
  transition: all .3s;
}
.event-card:hover { border-color: var(--sky); transform: translateX(4px); }
.event-date-block {
  background: rgba(30,111,217,.14);
  border: 1px solid rgba(30,111,217,.3);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.event-date-block .day {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
}
.event-date-block .month {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  font-weight: 600;
}
.event-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
.event-info p { color: var(--gray); font-size: .9rem; }
.event-meta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--gray);
}
@media(max-width:700px) {
  .event-card { grid-template-columns: 80px 1fr; }
  .event-card .btn { display: none; }
}

/* ============================================================
   ACTIVITIES PAGE
   ============================================================ */
.activities-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 28px;
}
.activity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
}
.activity-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.activity-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #0f1e38, #1a2e50);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: .85rem;
  position: relative;
  overflow: hidden;
}
.activity-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.7), transparent);
}
.activity-body { padding: 24px; }
.activity-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.activity-body p { color: var(--gray); font-size: .9rem; margin-bottom: 20px; }
.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.activity-footer .date { font-size: .8rem; color: var(--gray); }

/* ============================================================
   COURSES PAGE
   ============================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 28px;
}
.course-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: var(--border);
  cursor: pointer;
}
.video-thumb iframe {
  width: 100%; height: 100%;
  border: none;
}
.video-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, #0f1e38, #1a2e50);
  color: var(--gray);
  font-size: .85rem;
  position: relative;
}
.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(30,111,217,.5);
  transition: transform .25s;
}
.video-thumb:hover .play-btn { transform: scale(1.1); }
.course-body { padding: 20px 24px 24px; }
.course-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.course-body p { color: var(--gray); font-size: .88rem; margin-bottom: 16px; }
.course-meta {
  display: flex;
  gap: 16px;
  font-size: .8rem;
  color: var(--gray);
}
.course-meta span { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   ANIMATIONS (AOS fallbacks & custom)
   ============================================================ */
[data-aos] { transition-property: opacity,transform; }

/* Floating animation for hero SVG */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(.9); opacity:.6; }
  70%  { transform: scale(1.1); opacity:0; }
  100% { transform: scale(.9); opacity:0; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}
@keyframes dash {
  to { stroke-dashoffset: 0; }
}
@keyframes glow-pulse {
  0%,100% { filter: drop-shadow(0 0 8px rgba(59,158,232,.5)); }
  50%      { filter: drop-shadow(0 0 24px rgba(59,158,232,.9)); }
}
.float-anim { animation: float 4s ease-in-out infinite; }
.glow-anim  { animation: glow-pulse 3s ease-in-out infinite; }