@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #071224;
  --bg-secondary: #0c1730;
  --surface: rgba(14, 23, 43, 0.72);
  --surface-strong: #111b32;
  --surface-card: rgba(18, 28, 52, 0.88);
  --surface-card-2: rgba(13, 22, 42, 0.96);

  --text-primary: #f5f7ff;
  --text-secondary: #a8b3cf;
  --text-muted: #7d8aaa;

  --border-soft: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 92, 255, 0.25);

  --accent-primary: #7c5cff;
  --accent-secondary: #4da3ff;
  --accent-highlight: #a970ff;

  --shadow-lg: 0 20px 60px rgba(2, 8, 23, 0.45);
  --shadow-md: 0 12px 30px rgba(2, 8, 23, 0.35);
  --shadow-sm: 0 8px 18px rgba(2, 8, 23, 0.28);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --container-width: 1280px;
  --transition: 0.3s ease;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.12), transparent 28%),
    radial-gradient(circle at right center, rgba(77, 163, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #081121 0%, #071224 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ================= BACKGROUND DECOR ================= */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.8;
  pointer-events: none;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(124, 92, 255, 0.16);
  top: 120px;
  left: -80px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(77, 163, 255, 0.12);
  right: -100px;
  top: 360px;
}

.bg-grid {
  position: fixed;
  width: 160px;
  height: 240px;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(124, 92, 255, 0.6) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.left-grid {
  left: 0;
  top: 340px;
}

.right-grid {
  right: 0;
  bottom: 120px;
}

/* ================= HEADER / NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 20px 24px 0;
}

.navbar {
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 84px;
  padding: 16px 20px;
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-text span {
  background: linear-gradient(135deg, var(--accent-highlight), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  opacity: 0.88;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.portfolio-btn {
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #8b5cf6, #6d5efc);
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.portfolio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(124, 92, 255, 0.36);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ================= PAGE SHELL ================= */
.page-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 70px;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 32px 18px 24px;
  text-align: center;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: #d8d4ff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, #a970ff 0%, #7c5cff 50%, #4da3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.18rem;
  line-height: 1.85;
}

.hero-subheading {
  margin-top: 42px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-subheading span {
  color: var(--accent-primary);
}

.hero-subheading i {
  font-size: 1.05em;
  vertical-align: middle;
}

.hero-note {
  margin: 20px auto 0;
  max-width: 920px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

/* ================= SECTION ================= */
.portal-section {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.section-heading .line {
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* ================= CARD GRID ================= */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.portal-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    linear-gradient(180deg, rgba(21, 31, 58, 0.92), rgba(14, 22, 42, 0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 28px rgba(0,0,0,0.24);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 28%);
  pointer-events: none;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 36px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.03);
}

.card-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: white;
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.2),
    0 10px 24px rgba(0,0,0,0.28);
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-content h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
}

.card-content p {
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.96rem;
}

.card-arrow {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 1.4rem;
  transition: transform var(--transition), color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.portal-card:hover .card-arrow {
  transform: translateX(4px);
  color: white;
  background: rgba(255,255,255,0.08);
}

/* ================= ACCENT THEMES ================= */
.accent-violet {
  border-color: rgba(143, 104, 255, 0.32);
}
.accent-violet .card-icon {
  background: linear-gradient(135deg, #8d61ff, #6f4dff);
  box-shadow:
    0 10px 26px rgba(124, 92, 255, 0.38),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.accent-blue {
  border-color: rgba(77, 163, 255, 0.3);
}
.accent-blue .card-icon {
  background: linear-gradient(135deg, #56a9ff, #3f73ff);
  box-shadow:
    0 10px 26px rgba(77, 163, 255, 0.32),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.accent-green {
  border-color: rgba(88, 214, 117, 0.28);
}
.accent-green .card-icon {
  background: linear-gradient(135deg, #7de26d, #3ec96b);
  box-shadow:
    0 10px 26px rgba(79, 204, 111, 0.32),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.accent-amber {
  border-color: rgba(255, 181, 71, 0.28);
}
.accent-amber .card-icon {
  background: linear-gradient(135deg, #ffc35b, #ff9f2f);
  box-shadow:
    0 10px 26px rgba(255, 181, 71, 0.28),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.accent-cyan {
  border-color: rgba(72, 222, 255, 0.28);
}
.accent-cyan .card-icon {
  background: linear-gradient(135deg, #57dfff, #27b3ff);
  box-shadow:
    0 10px 26px rgba(72, 222, 255, 0.26),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.accent-pink {
  border-color: rgba(255, 102, 196, 0.28);
}
.accent-pink .card-icon {
  background: linear-gradient(135deg, #ff6ac8, #ff4d84);
  box-shadow:
    0 10px 26px rgba(255, 102, 196, 0.28),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.accent-coral {
  border-color: rgba(255, 124, 106, 0.28);
}
.accent-coral .card-icon {
  background: linear-gradient(135deg, #ff7f6f, #ff5f6d);
  box-shadow:
    0 10px 26px rgba(255, 124, 106, 0.28),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

.accent-indigo {
  border-color: rgba(102, 120, 255, 0.28);
}
.accent-indigo .card-icon {
  background: linear-gradient(135deg, #7a86ff, #5a62ff);
  box-shadow:
    0 10px 26px rgba(102, 120, 255, 0.28),
    inset 0 2px 6px rgba(255,255,255,0.2);
}

/* ================= FOOTER ================= */
.footer {
  max-width: var(--container-width);
  margin: 10px auto 30px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-secondary);
}

.footer p {
  font-size: 0.95rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .navbar {
    gap: 14px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links li a {
    padding: 11px 14px;
    font-size: 0.95rem;
  }

  .portfolio-btn {
    padding: 13px 18px;
  }

  .hero-description {
    font-size: 1.08rem;
  }
}

@media (max-width: 992px) {
  .site-header {
    padding: 16px 18px 0;
  }

  .page-shell {
    padding: 38px 18px 60px;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 16px 18px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 8px;
    gap: 12px;
  }

  .hero {
    padding: 22px 8px 14px;
  }

  .hero-description {
    font-size: 1.02rem;
    line-height: 1.8;
  }

  .hero-subheading {
    margin-top: 32px;
  }

  .hero-note {
    font-size: 0.96rem;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 14px 0;
  }

  .navbar {
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
    position: relative;
    align-items: center;
  }

  .brand-text {
    font-size: 1.7rem;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .portfolio-btn {
    display: none;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
    order: 3;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 13px 16px;
  }

  .page-shell {
    padding: 28px 16px 50px;
  }

  .hero {
    padding: 8px 0 8px;
  }

  .hero-badge {
    font-size: 0.82rem;
    padding: 8px 14px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .hero-subheading {
    margin-top: 26px;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero-note {
    font-size: 0.92rem;
    line-height: 1.75;
    margin-top: 16px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-heading .line {
    width: 52px;
  }

  .portal-section {
    margin-top: 40px;
  }

  .portal-grid {
    gap: 16px;
  }

  .portal-card {
    min-height: 102px;
    padding: 18px;
    gap: 14px;
    border-radius: 20px;
  }

  .card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .card-content h4 {
    font-size: 1.08rem;
  }

  .card-content p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .card-arrow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.15rem;
  }

  .footer {
    margin: 8px 14px 24px;
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }
}

@media (max-width: 520px) {
  .section-heading {
    flex-direction: row;
  }

  .section-heading h3 {
    font-size: 1.1rem;
  }

  .portal-card {
    align-items: flex-start;
  }

  .card-content h4 {
    font-size: 1rem;
  }

  .card-content p {
    font-size: 0.84rem;
  }
}

@media (max-width: 420px) {
  .brand-text {
    font-size: 1.55rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-subheading {
    font-size: 1.5rem;
  }

  .hero-description,
  .hero-note {
    font-size: 0.9rem;
  }

  .portal-card {
    padding: 16px;
    gap: 12px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }

  .card-arrow {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .card-content p {
    display: none;
  }
}