/* ============================================================
   Scaffold Technologies — Warm Luxury Theme
   Palette: #2b1d16 · #5a3928 · #005969 · #ffffff · #f8f6f3
   Fonts: Playfair Display (headings) · Inter (body)
   ============================================================ */

:root {
  --ink: #2b1d16;
  --ink-soft: #5a3928;
  --teal: #005969;
  --paper: #ffffff;
  --cream: #f8f6f3;
  --accent: #c9852f;
  --accent-soft: #f3e2c7;
  --line: rgba(43, 29, 22, 0.10);
  --shadow-sm: 0 2px 10px rgba(43, 29, 22, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 29, 22, 0.10);
  --shadow-lg: 0 24px 60px rgba(43, 29, 22, 0.16);
  --radius: 14px;
  --radius-lg: 18px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 72px;
}

[data-bs-theme="dark"] {
  --ink: #f4efe9;
  --ink-soft: #cbb9a9;
  --paper: #1a120d;
  --cream: #221811;
  --accent: #e0a458;
  --accent-soft: #3a2a1c;
  --line: rgba(244, 239, 233, 0.12);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .font-playfair {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ink-soft); }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 60%, var(--teal) 100%);
  color: #fff;
  font-size: 0.85rem;
  animation: slideDown 0.6s ease both;
}
.announcement-bar i { color: var(--accent); }
.announcement-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(248, 246, 243, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
}
[data-bs-theme="dark"] .site-header {
  background: rgba(26, 18, 13, 0.78);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
[data-bs-theme="dark"] .site-header.scrolled {
  background: rgba(26, 18, 13, 0.96);
}
.site-header.scrolled .navbar { padding-top: 0.35rem; padding-bottom: 0.35rem; }
.navbar { transition: padding 0.35s ease; padding: 0.7rem 0; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink) !important;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ink-soft), var(--ink));
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.brand-accent { color: var(--teal); }

.nav-link {
  font-weight: 500;
  color: var(--ink) !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 10px;
  transition: all 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--teal) !important; background: rgba(0, 89, 105, 0.07); }
.tiny-icon { font-size: 0.6rem; }

/* Mega menu */
.mega-dropdown { position: static; }
.mega-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(860px, 92vw);
  margin-top: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.mega-dropdown .mega-menu[data-bs-popper] {
  left: 50%;
  margin-top: 0.6rem;
}
.mega-dropdown.show .mega-menu,
.mega-dropdown .mega-menu.show,
.mega-dropdown .mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-heading {
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.mega-cat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  color: var(--ink);
  transition: all 0.2s;
}
.mega-cat:hover { background: var(--cream); color: var(--teal); transform: translateX(3px); }
.mega-cat-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  flex-shrink: 0;
}
.mega-side {
  background: linear-gradient(160deg, var(--cream), rgba(0, 89, 105, 0.06));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  height: 100%;
}
.tech-chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 500;
}
.tech-chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Currency toggle switch */

.currency-toggle-wrap {
  display: inline-flex;
  align-items: center;
}
.currency-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.currency-toggle:hover {
  border-color: var(--teal);
}

.currency-toggle .currency-opt {
  position: relative;
  z-index: 2;
  padding: 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 28px;
  text-align: center;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.currency-toggle .currency-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), #017a8f);
  box-shadow: 0 2px 8px rgba(0, 89, 105, 0.3);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.currency-toggle.is-inr .currency-opt-inr {
  color: #ffffff;
}

.currency-toggle.is-usd .currency-opt-usd {
  color: #ffffff;
}

.currency-toggle.is-usd .currency-thumb {
  transform: translateX(100%);
}


/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid; place-items: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.theme-toggle .fa-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-bs-theme="dark"] .theme-toggle .fa-sun { display: block; }
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); border-color: var(--teal); color: var(--teal); }

/* Buttons */
.btn {
  border-radius: 11px;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #a86a1e);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(201, 133, 47, 0.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 133, 47, 0.45); color: #fff; }
.btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 89, 105, 0.3);
}
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 89, 105, 0.4); color: #fff; }
.btn-outline-accent { border-color: var(--accent); color: var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); border: none; }
.btn-ink:hover { background: var(--ink-soft); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6.5rem 0 5.5rem;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(0, 89, 105, 0.18), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(201, 133, 47, 0.16), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.2rem;
}
.hero-title .grad {
  background: linear-gradient(120deg, var(--teal), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.7;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.hero-badge i { color: var(--accent); }
.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}
.hero-visual .code-window {
  background: #1c130d;
  color: #e8ded2;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.8rem;
  padding: 1.1rem 1.3rem;
}
.code-window .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.code-window .line { opacity: 0; animation: codeFade 0.5s ease forwards; }
@keyframes codeFade { to { opacity: 1; } }
.hero-float-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  animation: floaty 5s ease-in-out infinite;
  z-index: 2;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
.section-sub { color: var(--ink-soft); margin-top: 0.8rem; line-height: 1.7; }

/* ---------- Social proof ---------- */
.social-proof {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
}
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.6rem;
  opacity: 0.55;
}
.proof-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: opacity 0.2s, transform 0.2s;
}
.proof-logo:hover { opacity: 1; transform: scale(1.05); }
.proof-logo i { color: var(--teal); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.project-card { display: flex; flex-direction: column; height: 100%; }
.project-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(140deg, var(--ink-soft), var(--ink));
  display: grid;
  place-items: center;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .project-thumb img { transform: scale(1.08); }
.project-thumb .thumb-fallback {
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.6rem;
}
.thumb-badges {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.thumb-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.thumb-badge.featured { background: linear-gradient(135deg, var(--accent), #a86a1e); color: #fff; }
.project-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.project-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.project-title a { color: var(--ink); }
.project-title a:hover { color: var(--teal); }
.project-excerpt {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.project-meta i { color: var(--accent); margin-right: 0.25rem; }
.project-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.project-price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.project-price .old { font-size: 0.8rem; color: var(--ink-soft); text-decoration: line-through; font-weight: 400; margin-left: 0.4rem; }
.stars { color: var(--accent); font-size: 0.75rem; }

/* ---------- Category cards ---------- */
.cat-card {
  text-align: center;
  padding: 1.9rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: all 0.3s;
  height: 100%;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.cat-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--accent-soft), rgba(0, 89, 105, 0.1));
  color: var(--teal);
  font-size: 1.4rem;
  transition: transform 0.3s;
}
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-4deg); }
.cat-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.cat-count { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: linear-gradient(120deg, var(--ink) 0%, #3d2a1f 55%, var(--teal) 130%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 0.85rem; opacity: 0.82; }

/* ---------- Tech marquee ---------- */
.tech-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tech-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.tech-track:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 0.95rem;
}
.tech-item i { color: var(--teal); }

/* ---------- Feature boxes ---------- */
.feature-box {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  height: 100%;
  transition: all 0.3s;
}
.feature-box:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--teal), #017a8f);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.feature-box h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-box p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  min-width: min(400px, 86vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.2rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--ink-soft));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-name { font-weight: 700; font-size: 0.92rem; }
.testimonial-role { font-size: 0.78rem; color: var(--ink-soft); }
.testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.testimonial-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  transition: all 0.3s;
  padding: 0;
}
.testimonial-dot.active { background: var(--teal); width: 28px; border-radius: 999px; }

/* ---------- Internship cards ---------- */
.internship-card {
  border-left: 4px solid var(--accent);
  padding: 1.3rem 1.5rem;
}
.internship-card .badge { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(201, 133, 47, 0.25), transparent 60%),
    linear-gradient(120deg, var(--teal), #024451);
  color: #fff;
  border-radius: 24px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: 0.85; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(170deg, #241811 0%, #1c130d 100%);
  color: #d9cfc3;
  margin-top: 4rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff !important;
}
.footer-about { font-size: 0.9rem; line-height: 1.7; opacity: 0.75; max-width: 340px; }
.social-icons { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-icons a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d9cfc3;
  transition: all 0.25s;
}
.social-icons a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-heading {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.55rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: #bfb2a4; font-size: 0.88rem; transition: all 0.2s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-note { font-size: 0.85rem; opacity: 0.72; }
.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 11px 0 0 11px;
}
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-form .btn { border-radius: 0 11px 11px 0; }
.footer-contact p { font-size: 0.85rem; opacity: 0.75; margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.82rem; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: #bfb2a4; }
.footer-legal a:hover { color: var(--accent); }
.payment-badges { display: flex; align-items: center; gap: 0.4rem; opacity: 0.7; }

/* ---------- Page headers (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(0, 89, 105, 0.14), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 3.6rem 0;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }

/* ---------- Filters ---------- */
.filter-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.filter-bar .form-control, .filter-bar .form-select {
  border-radius: 10px;
  border-color: var(--line);
  font-size: 0.9rem;
}
.filter-bar .form-control:focus, .filter-bar .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 89, 105, 0.12);
}

/* ---------- Project detail ---------- */
.detail-hero { padding: 3rem 0 2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.detail-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--ink-soft), var(--ink));
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover i { font-size: 4rem; color: rgba(255,255,255,0.8); }
.buy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.buy-price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; }
.buy-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.buy-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.buy-list li i { color: var(--teal); width: 18px; }
.detail-tabs .nav-link {
  border: none;
  border-radius: 10px 10px 0 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}
.detail-tabs .nav-link.active { background: var(--paper); color: var(--teal); border-bottom: 2px solid var(--teal); }
.detail-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 2rem;
}
.detail-content h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.detail-content p { line-height: 1.8; color: var(--ink-soft); }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.screenshot-grid img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }

/* Reviews */
.review-card { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.review-card:last-child { border-bottom: none; }
.comment-thread .comment { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.comment-thread .comment-reply { margin-left: 2.2rem; border-left: 2px solid var(--accent-soft); padding-left: 1rem; }
.avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--ink-soft));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-item .faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.faq-item .faq-q i { color: var(--teal); transition: transform 0.3s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-item .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 320px; }
.faq-item .faq-a-inner { padding: 0 1.35rem 1.25rem; }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  background:
    radial-gradient(700px 400px at 20% 20%, rgba(0, 89, 105, 0.1), transparent 60%),
    radial-gradient(600px 300px at 90% 80%, rgba(201, 133, 47, 0.1), transparent 60%),
    var(--cream);
}
.auth-card {
  width: min(440px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.6rem; }
.auth-card .form-control {
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

/* ---------- Contact / About ---------- */
.contact-info-card {
  background: linear-gradient(150deg, var(--ink), #3d2a1f);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  height: 100%;
}
.contact-info-card a { color: var(--accent-soft); }
.contact-row { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-row i {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}
.map-frame { border: 0; border-radius: var(--radius-lg); width: 100%; height: 300px; box-shadow: var(--shadow-sm); }

.team-card { text-align: center; padding: 2rem 1.4rem; }
.team-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--teal), var(--ink-soft));
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}
.team-card:hover .team-avatar { transform: scale(1.08) rotate(-3deg); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--teal), var(--accent));
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--teal);
}
.timeline-year { font-family: var(--font-head); font-weight: 700; color: var(--teal); }

/* ---------- Legal ---------- */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); line-height: 1.8; }

/* ---------- Skeleton loaders ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, rgba(0,0,0,0.04) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Loading overlay ---------- */
.page-loader {
  position: fixed; inset: 0;
  background: var(--cream);
  display: grid; place-items: center;
  z-index: 2000;
  transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.spinner {
  width: 46px; height: 46px;
  border: 3px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- SweetAlert overrides ---------- */
.swal2-popup {
  border-radius: var(--radius-lg) !important;
  font-family: var(--font-body) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
}

/* ---------- Utility ---------- */
.text-teal { color: var(--teal) !important; }
.text-accent { color: var(--accent) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-paper { background: var(--paper) !important; }
.border-soft { border-color: var(--line) !important; }
.shadow-soft { box-shadow: var(--shadow-sm); }
.rounded-card { border-radius: var(--radius-lg); }
.link-plain { color: inherit; }
.link-plain:hover { color: var(--teal); }

/* Pagination */
.pagination .page-item .page-link {
  border-radius: 10px;
  margin: 0 3px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
}
.pagination .page-item.active .page-link { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Payment modal */
#paymentModal .modal-content { border-radius: var(--radius-lg); border: none; overflow: hidden; }
.pay-summary { background: var(--cream); border-radius: 12px; padding: 1.1rem; }
.razorpay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Student account ---------- */
.acct-hero {
  background: linear-gradient(135deg, #2b1d16 0%, #5a3928 100%);
  color: #fff;
  padding: 2.4rem 0;
}
.acct-hero h1 { color: #fff; }
.acct-hero .text-muted-c { color: rgba(255, 255, 255, 0.74) !important; }
.acct-id { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.acct-avatar {
  width: 68px; height: 68px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #a86a1e);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.acct-since {
  display: inline-flex; align-items: center;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.acct-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.acct-stat-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.acct-stat-ico.bg-teal { background: linear-gradient(135deg, #005969, #01879e); }
.acct-stat-ico.bg-amber { background: linear-gradient(135deg, #c9852f, #a86a1e); }
.acct-stat-ico.bg-ink { background: linear-gradient(135deg, #5a3928, #2b1d16); }
.acct-stat-ico.bg-rose { background: linear-gradient(135deg, #a13d5c, #c9527a); }
.acct-stat-ico.bg-green { background: linear-gradient(135deg, #1f7a4d, #12a05f); }
.acct-stat-val { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.acct-stat-lbl { font-size: 0.78rem; color: var(--ink-soft); }
.acct-tabs { gap: 0.4rem; }
.acct-tabs .nav-link {
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}
.acct-tabs .nav-link.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.acct-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.3rem;
}
.acct-lib-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.acct-lib-thumb {
  height: 132px;
  display: grid; place-items: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #005969, #2b1d16);
  overflow: hidden;
}
.acct-lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acct-lib-body { padding: 1rem; }
.acct-badge {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.acct-badge.success { background: rgba(18, 160, 95, 0.12); color: #1f7a4d; }
.acct-notif {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.acct-notif:last-child { border-bottom: none; }
.acct-notif:hover { background: var(--cream); }
.acct-notif.unread { background: rgba(201, 133, 47, 0.06); }
.acct-notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: 0.4rem; flex: none; }
.acct-notif.unread .acct-notif-dot { background: var(--accent); }
.acct-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.acct-empty i { font-size: 2.4rem; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .mega-menu { position: static; left: auto; transform: none; width: 100%; box-shadow: none; border: none; border-radius: 0; padding: 0.5rem 1rem 1rem !important; }
  .mega-dropdown.show .mega-menu,
  .mega-dropdown .mega-menu.show,
  .mega-dropdown .mega-menu:hover { transform: none; }
  .hero { padding: 3.5rem 0 3rem; }
  .buy-card { position: static; }
  .section { padding: 3.4rem 0; }
}
@media (max-width: 575.98px) {
  .hero-title { font-size: 2rem; }
  .cta-band { padding: 2.4rem 1.4rem; }
  .proof-logos { gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
