/* ==========================================================================
   PREMIUM THEME — "Obsidian Luxe"
   Standalone CSS Design System · No Bootstrap Required
   ========================================================================== */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
ul,
ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
input,
textarea,
select {
  font: inherit;
}

/* ---- Custom Properties ---- */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --surface: #1a1a2e;
  --surface-hover: #222240;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(245, 166, 35, 0.25);

  --text: #c8c8d8;
  --text-muted: #787898;
  --text-heading: #f0f0ff;

  --accent: #f5a623;
  --accent-glow: rgba(245, 166, 35, 0.35);
  --accent-dark: #c4841c;
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --font-heading: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition: 0.4s var(--ease-out);
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}
h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.1rem;
}
h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--accent) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-accent {
  color: var(--accent) !important;
}
.text-violet {
  color: var(--violet) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}
.section-sm {
  padding: 60px 0;
}

.grid {
  display: grid;
  gap: 32px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-col {
  flex-direction: column;
}
.gap-sm {
  gap: 16px;
}
.gap-md {
  gap: 24px;
}
.gap-lg {
  gap: 40px;
}

/* ---- Section Header ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.section-badge::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.section-title {
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  line-height: 1.7;
}
.section-header {
  margin-bottom: 60px;
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-desc {
  margin-inline: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  transition: all 0.35s var(--ease-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffcc33);
  color: #0a0a0f;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px var(--accent-glow);
}
.btn-outline {
  border: 2px solid var(--border-hover);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--text-heading);
  padding: 10px 20px;
}
.btn-ghost:hover {
  color: var(--accent);
}
.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-body {
  padding: 28px;
}
.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.card:hover .card-img {
  transform: scale(1.08);
}
.card-img-wrap {
  overflow: hidden;
  position: relative;
}

/* Glass Card */
.glass {
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
}
.glass:hover {
  border-color: var(--border-hover);
  /* box-shadow: var(--shadow-glow); */
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-accent {
  background: var(--accent);
  color: #0a0a0f;
}
.badge-violet {
  background: var(--violet);
  color: #fff;
}
.badge-danger {
  background: #ef4444;
  color: #fff;
}

/* ---- Icon Box ---- */
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.icon-box-accent {
  background: rgba(245, 166, 35, 0.08);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.08);
}
.icon-box-violet {
  background: rgba(139, 92, 246, 0.08);
  color: var(--violet);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand img {
  height: 36px;
  width: 145px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta .btn {
  padding: 10px 28px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-heading);
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.85) 70%,
    rgba(10, 10, 15, 1) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-content h1 {
  margin-bottom: 24px;
}

/* ---- Page Header (Breadcrumb) ---- */
.page-header {
  position: relative;
  padding: 180px 0 80px;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-elevated), var(--surface));
}
.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    var(--accent-glow) 0%,
    transparent 60%
  );
  opacity: 0.15;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 12px;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 550px;
}

/* ---- Footer ---- */
.footer {
  background: #060609;
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.3s;
}
.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
  display: inline-block;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-bottom a {
  color: var(--accent);
}

/* Social Pills */
.social-pills {
  display: flex;
  gap: 10px;
}
.social-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s var(--ease-spring);
  font-size: 0.95rem;
}
.social-pill:hover {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ---- Stats Section ---- */
.stat-card {
  text-align: center;
  padding: 40px 24px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Form Styles ---- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}
.form-input::placeholder {
  color: var(--text-muted);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}
.pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s;
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0f;
}
.pagination .page-item .page-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* ---- Prose (article body) ---- */
.prose {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text);
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose p {
  margin-bottom: 1.5rem;
}
.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.prose a:hover {
  border-bottom-color: var(--accent);
}
.prose img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  color: var(--text-heading);
  font-style: italic;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) {
  transition-delay: 0.05s;
}
.reveal-stagger.visible > *:nth-child(2) {
  transition-delay: 0.15s;
}
.reveal-stagger.visible > *:nth-child(3) {
  transition-delay: 0.25s;
}
.reveal-stagger.visible > *:nth-child(4) {
  transition-delay: 0.35s;
}
.reveal-stagger.visible > *:nth-child(5) {
  transition-delay: 0.45s;
}
.reveal-stagger.visible > *:nth-child(6) {
  transition-delay: 0.55s;
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hover Overlay ---- */
.hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover .hover-overlay {
  opacity: 1;
}

/* ---- Scroll-to-top ---- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
  cursor: pointer;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-4px);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
    z-index: 1000;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }

  .page-header {
    padding: 140px 0 60px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .btn {
    padding: 12px 28px;
  }
}
