/* ═══════════════════════════════════════════════════════════
   INTEGRASIA INNOVATION CENTRE — Main Stylesheet
   Colors: Navy #1F3865 | Orange #E84C1C | Cyan #00AEEF
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy:   #1F3865;
  --orange: #E84C1C;
  --cyan:   #00AEEF;
  --dark:   #0D1F3C;
  --white:  #ffffff;
  --light:  #F0F4FB;
  --smoke:  #F8FAFC;
  --gray:   #6B7280;
  --dgray:  #1F2937;
  --lgray:  #D1D5DB;
  --font:   'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(31,56,101,.10);
  --shadow-lg: 0 8px 48px rgba(31,56,101,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dgray); background: var(--white); overflow-x: hidden; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.section-label.light { color: rgba(255,255,255,.6); }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.section-title.light { color: var(--white); }
.section-sub { font-size: 17px; color: var(--gray); max-width: 640px; line-height: 1.7; margin-bottom: 48px; }
.section-sub.light { color: rgba(255,255,255,.75); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  padding: 14px 28px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: all .2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #c43d14; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,76,28,.35); }
.btn-primary.full { width: 100%; justify-content: center; }
.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--white);
  padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 2px solid rgba(255,255,255,.4); transition: all .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lgray);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-int { font-size: 22px; font-weight: 800; color: var(--navy); }
.logo-ic { font-size: 13px; font-weight: 700; color: var(--orange); background: #fff0eb; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--dgray); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 6px; transition: all .15s; white-space: nowrap; }
.nav-links a:hover { background: var(--light); color: var(--navy); }
.nav-links a.nav-cta { background: var(--orange); color: var(--white); padding: 8px 18px; margin-left: 8px; }
.nav-links a.nav-cta:hover { background: #c43d14; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: 16px; }
.lang-btn { background: var(--light); border: 1px solid var(--lgray); color: var(--navy); padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.lang-btn:hover { background: var(--navy); color: var(--white); }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--navy); }

@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; padding: 16px; border-bottom: 1px solid var(--lgray); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
}

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  overflow: hidden; padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 50%, #1a4070 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(0,174,239,.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(232,76,28,.12) 0%, transparent 40%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,.03) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,.03) 60px);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); padding: 6px 18px; border-radius: 100px; font-size: 13px; font-weight: 500; letter-spacing: 1px; margin-bottom: 28px; border: 1px solid rgba(255,255,255,.15); }
.hero-title-1 { font-size: clamp(18px, 3vw, 24px); font-weight: 500; color: rgba(255,255,255,.7); display: block; margin-bottom: 12px; }
.hero-title-2 { font-size: clamp(32px, 5.5vw, 58px); font-weight: 800; color: var(--white); line-height: 1.15; display: block; }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.7); line-height: 1.75; max-width: 640px; margin: 28px auto 40px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; overflow: hidden; max-width: 600px; margin: 0 auto; }
.stat { flex: 1; padding: 20px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: none; }
.stat-n { display: block; font-size: 32px; font-weight: 800; color: var(--orange); }
.stat-l { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.hero-scroll span { display: block; width: 2px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent); margin: 0 auto; animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown { 0%,100%{opacity:.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(.6)} }

/* ── ABOUT ─────────────────────────────────────────────────── */
#about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.about-text p { font-size: 16px; color: var(--gray); line-height: 1.75; margin-bottom: 16px; }
.about-text em { color: var(--orange); font-style: normal; font-weight: 600; }
.about-values { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.val-item { display: flex; gap: 16px; align-items: flex-start; }
.val-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.val-item strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.val-item span { font-size: 14px; color: var(--gray); }
.about-cards { display: flex; flex-direction: column; gap: 16px; }
.acard { background: var(--white); border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--ac); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.acard-num { font-size: 22px; font-weight: 800; color: var(--ac, var(--orange)); margin-bottom: 8px; }
.acard-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.acard-sub { font-size: 13px; color: var(--gray); }

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

/* ── PROGRAMS OVERVIEW ─────────────────────────────────────── */
.section-dark { background: var(--navy); padding: 100px 0; }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prog-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 28px; cursor: pointer;
  transition: all .25s; position: relative; overflow: hidden;
}
.prog-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.prog-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.prog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.prog-tag { font-size: 12px; font-weight: 800; background: rgba(232,76,28,.2); color: #ff7f5a; padding: 4px 10px; border-radius: 4px; }
.prog-format { font-size: 12px; color: rgba(255,255,255,.5); }
.prog-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.prog-card p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.65; margin-bottom: 20px; }
.prog-tracks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.prog-tracks span { font-size: 11px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); padding: 3px 10px; border-radius: 100px; }
.prog-link { font-size: 13px; font-weight: 700; color: #ff7f5a; }

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

/* ── SECTION ALT ───────────────────────────────────────────── */
.section-alt { background: var(--smoke); }

/* ── SECTION PADDING ───────────────────────────────────────── */
#oslog, #osmap, #ospro { padding: 100px 0; }

/* ── DIFFERENTIATORS ───────────────────────────────────────── */
.differentiators { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 48px; }
.diff-item { display: flex; align-items: flex-start; gap: 12px; background: var(--light); padding: 14px 18px; border-radius: 8px; }
.diff-icon { font-size: 18px; font-weight: 800; flex-shrink: 0; }
.diff-item span { font-size: 14px; color: var(--dgray); line-height: 1.5; }

.section-alt .diff-item { background: var(--white); }

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

/* ── TRACKS ─────────────────────────────────────────────────── */
.tracks-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.track-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--lgray);
  overflow: hidden; transition: all .25s; cursor: pointer;
}
.track-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.track-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--light); }
.track-badge { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.track-card h4 { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.track-body { padding: 16px 24px; }
.track-body p { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 12px; }
.track-meta { display: flex; gap: 16px; }
.track-meta-item { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 4px; }
.track-footer { padding: 12px 24px; background: var(--light); display: flex; justify-content: space-between; align-items: center; }
.track-footer-btn { font-size: 13px; font-weight: 600; color: var(--orange); }
.track-footer-tag { font-size: 11px; color: var(--gray); }

.section-alt .track-card { background: var(--white); }
.section-alt .track-card:hover { background: var(--white); }

/* ── WHY ─────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; transition: all .25s; }
.why-card:hover { background: rgba(255,255,255,.12); }
.why-icon { font-size: 32px; margin-bottom: 16px; }
.why-card h4 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.65; }

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

/* ── CONTACT ─────────────────────────────────────────────────── */
#contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-left h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.contact-left p { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.ci { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.ci div { font-size: 14px; color: var(--dgray); line-height: 1.6; }
.ci strong { display: block; color: var(--navy); margin-bottom: 2px; }

/* Form */
.contact-form { background: var(--white); border: 1px solid var(--lgray); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.form-row { position: relative; margin-bottom: 20px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 14px 16px 8px; border: 1.5px solid var(--lgray);
  border-radius: 8px; font-size: 15px; font-family: var(--font);
  background: var(--smoke); color: var(--dgray); outline: none;
  transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--orange); background: white; }
.form-row label { position: absolute; top: 12px; left: 16px; font-size: 13px; color: var(--gray); pointer-events: none; transition: all .15s; }
.form-row input:not(:placeholder-shown) ~ label,
.form-row input:focus ~ label,
.form-row select:focus ~ label,
.form-row textarea:not(:placeholder-shown) ~ label,
.form-row textarea:focus ~ label {
  top: 4px; font-size: 11px; color: var(--orange); font-weight: 600;
}
.form-row select { padding-top: 14px; }
.form-success { color: #16a34a; font-size: 14px; font-weight: 600; margin-top: 12px; padding: 12px; background: #f0fdf4; border-radius: 6px; text-align: center; }

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

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { background: var(--dark); padding: 60px 0 0; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.footer-logo .logo-int { color: white; }
.footer-logo .logo-ic { font-size: 13px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-sub { color: var(--orange) !important; font-style: italic; margin-top: 4px; }
.footer-links { display: flex; gap: 48px; }
.fl-col h5 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.fl-col a { display: block; font-size: 14px; color: rgba(255,255,255,.65); text-decoration: none; margin-bottom: 10px; transition: color .15s; }
.fl-col a:hover { color: var(--white); }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom span { font-size: 13px; color: rgba(255,255,255,.35); }

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── MODAL ───────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(13,31,60,.8); backdrop-filter: blur(4px); }
.modal-box { position: relative; background: white; border-radius: 16px; max-width: 760px; width: 100%; max-height: 90vh; overflow-y: auto; z-index: 1; }
.modal-close { position: absolute; top: 20px; right: 20px; background: var(--light); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--dgray); z-index: 2; transition: background .15s; }
.modal-close:hover { background: var(--lgray); }
.modal-header { padding: 32px 36px 24px; border-bottom: 1px solid var(--light); }
.modal-tag { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.modal-header h2 { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.modal-body { padding: 28px 36px 36px; }
.modal-section { margin-bottom: 28px; }
.modal-section h4 { font-size: 14px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.modal-section p, .modal-section li { font-size: 15px; color: var(--dgray); line-height: 1.65; }
.modal-section ul { padding-left: 0; list-style: none; }
.modal-section li { padding: 6px 0; border-bottom: 1px solid var(--light); display: flex; gap: 10px; }
.modal-section li::before { content: '●'; color: var(--orange); font-size: 10px; flex-shrink: 0; margin-top: 5px; }
.agenda-table { width: 100%; border-collapse: collapse; }
.agenda-table th { background: var(--navy); color: white; padding: 10px 14px; font-size: 13px; text-align: left; }
.agenda-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--light); }
.agenda-table tr:nth-child(even) td { background: var(--smoke); }
.modal-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--light); }
.modal-cta a { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: white; padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }

/* ── SCROLL ANIMATIONS ──────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
