/* ═══════════════════════════════════════════════════════
   EnglishWithCliff — Global Design System v2
   Shared across all pages (nav, footer, components)
   ═══════════════════════════════════════════════════════ */

/* ═══ TOKENS ═══ */
:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --orange: #E8652B;
  --orange-h: #D4561F;
  --orange-light: #FFF2ED;
  --orange-glow: rgba(232,101,43,.15);
  --navy: #1B2A4A;
  --navy-light: #253550;
  --green: #2EAF6A;
  --blue: #2B7DE9;
  --purple: #6C5CE7;
  --gold: #E8A820;
  --rose: #E8366D;
  --cream: #FAF8F4;
  --cream-dark: #F3EEE6;
  --border: #E8E2D8;
  --text: #2A2A2A;
  --text-muted: #7A7A7A;
  --text-faint: #A0A0A0;
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 72px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.03em; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.section-title { font-size: clamp(24px,3.5vw,36px); font-weight: 900; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.section-title .accent { color: var(--orange); }
.section-sub { font-size: 15px; color: var(--text-muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ═══ BUTTONS ═══ */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 24px; border-radius:12px; font-size:14px; font-weight:700; font-family:var(--font); cursor:pointer; transition:all .3s var(--ease); border:none; white-space:nowrap; }
.btn-primary { background:var(--orange); color:#fff; box-shadow:0 4px 16px rgba(232,101,43,.25); }
.btn-primary:hover { background:var(--orange-h); transform:translateY(-2px); box-shadow:0 8px 32px rgba(232,101,43,.35); }
.btn-outline { background:transparent; color:var(--navy); border:2px solid var(--border); }
.btn-outline:hover { border-color:var(--orange); color:var(--orange); background:var(--orange-light); }
.btn-sm { padding:8px 18px; font-size:13px; }
.btn-lg { padding:14px 32px; font-size:15px; border-radius:14px; }
.btn-ghost { background:transparent; color:rgba(255,255,255,.7); border:1.5px solid rgba(255,255,255,.15); }
.btn-ghost:hover { border-color:rgba(255,255,255,.4); color:#fff; transform:translateY(-2px); }

/* ═══ NAVIGATION (Redesigned — Sleek & Minimal) ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: all .4s var(--ease);
}
.nav--dark {
  background: rgba(12,10,8,.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav--scrolled {
  background: rgba(12,10,8,.97);
  box-shadow: 0 4px 30px rgba(0,0,0,.15);
}
.nav--light {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav--light.nav--scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.06); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; gap: 8px;
}

/* Logo */
.nav-logo { display:flex; align-items:center; gap:10px; flex-shrink:0; margin-right:12px; }
.nav-logo-icon { width:38px; height:38px; border-radius:11px; background:var(--orange); display:flex; align-items:center; justify-content:center; box-shadow:0 2px 12px rgba(232,101,43,.3); transition:transform .3s var(--ease); }
.nav-logo:hover .nav-logo-icon { transform:rotate(-5deg) scale(1.05); }
.nav-logo-icon svg { width:18px; height:18px; fill:#fff; }
.nav-logo-name { font-size:15px; font-weight:800; color:#fff; }
.nav-logo-tagline { font-size:9px; color:rgba(255,255,255,.35); display:block; line-height:1; margin-top:1px; letter-spacing:.02em; }
.nav--light .nav-logo-name { color: var(--navy); }
.nav--light .nav-logo-tagline { color: var(--text-muted); }

/* Nav Links */
.nav-links { display:flex; align-items:center; gap:2px; margin:0 auto; }
.nav-links a, .nav-drop-trigger { padding:8px 16px; border-radius:8px; font-size:13.5px; font-weight:500; color:rgba(255,255,255,.5); transition:all .2s; }
.nav-links a:hover, .nav-drop-trigger:hover { color:#fff; background:rgba(255,255,255,.06); }
.nav-links a.active { color:#fff; font-weight:600; }
.nav--light .nav-links a, .nav--light .nav-drop-trigger { color: var(--text-muted); }
.nav--light .nav-links a:hover, .nav--light .nav-drop-trigger:hover { color: var(--navy); background: rgba(0,0,0,.04); }
.nav--light .nav-links a.active { color: var(--navy); font-weight: 600; }

/* Nav Right */
.nav-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-login { padding:8px 16px; font-size:13px; font-weight:600; border-radius:9px; color:rgba(255,255,255,.5); transition:all .2s; }
.nav-login:hover { color:#fff; background:rgba(255,255,255,.06); }
.nav--light .nav-login { color: var(--text-muted); }
.nav--light .nav-login:hover { color: var(--navy); background: rgba(0,0,0,.04); }
.nav-cta { padding:9px 20px; border-radius:10px; background:var(--orange); color:#fff; font-size:13px; font-weight:700; transition:all .3s var(--ease); box-shadow:0 2px 10px rgba(232,101,43,.2); }
.nav-cta:hover { background:var(--orange-h); transform:translateY(-1px); box-shadow:0 4px 16px rgba(232,101,43,.3); }

/* Mega Dropdown */
.nav-drop { position: relative; }
.nav-drop-trigger {
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  border: 1px solid rgba(255,255,255,.08);
}
.nav--light .nav-drop-trigger { border-color: var(--border); }
.nav-drop-trigger svg { width: 12px; height: 12px; fill: currentColor; transition: transform .2s; }
.nav-drop:hover .nav-drop-trigger svg { transform: rotate(180deg); }

.nav-mega {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 520px; background: rgba(18,16,14,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 20px; padding: 24px; border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 24px 80px rgba(0,0,0,.5); z-index: 99;
}
.nav--light .nav-mega {
  background: #fff; border-color: var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,.1);
}
.nav-drop:hover .nav-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; animation: dropIn .25s var(--ease); }
@keyframes dropIn { from { opacity:0; transform:translateX(-50%) translateY(-6px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

.nav-mega-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.25); margin-bottom: 10px; padding: 0 8px;
}
.nav--light .nav-mega-title { color: var(--text-faint); }

.nav-mega-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; font-size: 13px; color: rgba(255,255,255,.6); transition: all .15s;
}
.nav-mega-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav--light .nav-mega-item { color: var(--text-muted); }
.nav--light .nav-mega-item:hover { background: var(--cream); color: var(--navy); }

.nav-mega-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.nav-mega-icon--lang { background: rgba(232,101,43,.08); }
.nav-mega-icon--skill { background: rgba(43,125,233,.08); }
.nav--light .nav-mega-icon--lang { background: var(--orange-light); }
.nav--light .nav-mega-icon--skill { background: #E8F1FE; }

.nav-mega-label { font-weight: 600; }
.nav-mega-sub { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 1px; }
.nav--light .nav-mega-sub { color: var(--text-faint); }

.nav-mega-footer {
  grid-column: 1 / -1; padding-top: 14px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.06); text-align: center;
}
.nav--light .nav-mega-footer { border-color: var(--border); }
.nav-mega-footer a {
  font-size: 12px; font-weight: 700; color: var(--orange); transition: all .2s;
}
.nav-mega-footer a:hover { text-decoration: underline; }

/* Hamburger */
.nav-hamburger { display:none; flex-direction:column; gap:5px; padding:10px; background:none; border:none; cursor:pointer; }
.nav-hamburger span { display:block; width:22px; height:2px; background:#fff; border-radius:2px; transition:all .3s var(--ease); }
.nav--light .nav-hamburger span { background: var(--navy); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(12,10,8,.98); z-index: 99; padding: 24px;
  flex-direction: column; gap: 2px; overflow-y: auto;
}
.mobile-menu.open { display: flex; animation: fadeUp .3s var(--ease); }
.mobile-menu a {
  padding: 14px 18px; border-radius: 12px; font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,.6); transition: all .2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mobile-menu-group-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.2); padding: 20px 18px 6px; margin-top: 8px;
}
.mobile-menu-divider { height: 1px; background: rgba(255,255,255,.06); margin: 12px 0; }

/* ═══ FOOTER ═══ */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4,1fr); gap: 40px; margin-bottom: 40px; }
.footer .nav-logo-name { color: #fff; }
.footer .nav-logo-tagline { color: rgba(255,255,255,.3); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.7; margin-top: 14px; }
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.footer-social { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.footer-social:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,.45); }
.footer-social:hover svg { fill: #fff; }
.footer-col-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.45); transition: all .2s; }
.footer-links a:hover { color: #fff; transform: translateX(2px); }
.footer-newsletter p { font-size: 12px; color: rgba(255,255,255,.35); margin-bottom: 12px; line-height: 1.6; }
.footer-form { display: flex; gap: 6px; }
.footer-form input { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); font-size: 12px; color: #fff; outline: none; font-family: var(--font); }
.footer-form input:focus { border-color: var(--orange); }
.footer-form button { padding: 10px 18px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; border: none; cursor: pointer; font-family: var(--font); transition: all .2s; }
.footer-form button:hover { background: var(--orange-h); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: rgba(255,255,255,.2); }
.footer-bottom a { color: rgba(255,255,255,.25); transition: all .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.5); }

/* ═══ HELP CHATBOT ═══ */
.help-btn { position:fixed; bottom:28px; right:28px; width:60px; height:60px; border-radius:50%; background:var(--orange); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 6px 24px rgba(232,101,43,.35); z-index:98; transition:all .3s var(--ease); border:none; }
.help-btn:hover { transform:scale(1.08); box-shadow:0 8px 32px rgba(232,101,43,.45); }
.help-btn svg { width:26px; height:26px; fill:#fff; }
.help-chat { position:fixed; bottom:100px; right:28px; width:380px; max-height:520px; background:#fff; border-radius:var(--radius-lg); box-shadow:0 16px 60px rgba(0,0,0,.15); border:1px solid var(--border); z-index:98; display:none; flex-direction:column; overflow:hidden; }
.help-chat.open { display:flex; animation:chatIn .3s var(--ease); }
@keyframes chatIn { from { opacity:0; transform:translateY(16px) scale(.95); } to { opacity:1; transform:translateY(0) scale(1); } }
.help-chat-head { padding:18px 20px; background:var(--orange); color:#fff; display:flex; align-items:center; gap:12px; }
.help-chat-avatar { width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; }
.help-chat-avatar svg { width:20px; height:20px; fill:#fff; }
.help-chat-title { font-size:15px; font-weight:700; }
.help-chat-status { font-size:11px; opacity:.7; }
.help-chat-close { margin-left:auto; background:none; border:none; color:#fff; font-size:20px; cursor:pointer; padding:4px; opacity:.7; transition:opacity .2s; }
.help-chat-close:hover { opacity:1; }
.help-chat-body { flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:12px; max-height:360px; }
.help-msg { max-width:85%; padding:12px 16px; border-radius:14px; font-size:13px; line-height:1.6; }
.help-msg--bot { background:var(--cream); color:var(--text); align-self:flex-start; border-bottom-left-radius:4px; }
.help-msg--user { background:var(--orange); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.help-chat-input { display:flex; gap:8px; padding:14px; border-top:1px solid var(--border); }
.help-chat-input input { flex:1; padding:10px 16px; border-radius:12px; border:1.5px solid var(--border); font-size:13px; outline:none; font-family:var(--font); }
.help-chat-input input:focus { border-color:var(--orange); }
.help-chat-input button { padding:10px 18px; border-radius:12px; background:var(--orange); color:#fff; border:none; font-size:13px; font-weight:700; cursor:pointer; font-family:var(--font); transition:all .2s; }
.help-chat-input button:hover { background:var(--orange-h); }

/* ═══ SCROLL ANIMATIONS ═══ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal.visible { opacity: 1; transform: translate(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }
.reveal-d6 { transition-delay: .6s; }

@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.4); padding-top: 100px; margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: all .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { font-size: 10px; opacity: .4; }
.breadcrumb-current { color: rgba(255,255,255,.7); font-weight: 600; }

/* Light breadcrumb variant */
.breadcrumb--light { color: var(--text-muted); padding-top: calc(var(--nav-h) + 24px); }
.breadcrumb--light a { color: var(--text-muted); }
.breadcrumb--light a:hover { color: var(--orange); }
.breadcrumb--light .breadcrumb-current { color: var(--text); }

/* ═══ BADGES & TAGS ═══ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 600;
}
.tag--orange { background: var(--orange-light); color: var(--orange); }
.tag--green { background: #E8F8EF; color: var(--green); }
.tag--blue { background: #E8F1FE; color: var(--blue); }
.tag--purple { background: #F0EEFF; color: var(--purple); }
.tag--gold { background: #FEF8E8; color: var(--gold); }
.tag--navy { background: rgba(27,42,74,.08); color: var(--navy); }

/* ═══ RESPONSIVE ═══ */
@media(max-width:768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .help-chat { right: 12px; left: 12px; width: auto; bottom: 96px; }
}

/* ═══ REDUCED MOTION ═══ */
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
