@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #000000;
  --bg2: #050505;
  --bg3: #0a0a0a;
  --surface: #0a0a0c;
  /* Deep metallic dark for readability */
  --surface-hover: #121216;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text2: rgba(255, 255, 255, 0.75);
  --text3: rgba(255, 255, 255, 0.45);
  --accent: #3b82f6;
  --accent2: #8b5cf6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gold: #fbbf24;
  --green: #10b981;
  --font: 'Inter', sans-serif;
  --font2: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.8);
  --shadow-accent: 0 10px 30px rgba(59, 130, 246, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 80px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ── Global Enhancements ────────────────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: white;
}

::-moz-selection {
  background: var(--accent);
  color: white;
}

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font2);
  font-weight: 900;
  color: white;
  font-size: 18px;
  box-shadow: var(--shadow-accent);
}

.nav-name {
  font-family: var(--font2);
  font-weight: 700;
  font-size: 20px;
  color: white;
  letter-spacing: -0.5px;
}

.nav-name span {
  color: var(--accent2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent2);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: calc(100% - 32px);
}

.nav-link.active {
  color: white;
  background: var(--surface-hover);
}

.nav-link.active::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-cta {
  background: var(--gradient-primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile Menu ────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(32px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  font-size: 22px;
  font-family: var(--font2);
  font-weight: 600;
  color: var(--text2);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-nav-links a:hover {
  color: var(--accent2);
  padding-left: 8px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover::before {
  left: 150%;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ── Container & Grid ───────────────────────────────────────────────────── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

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

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

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

/* ── Section Headings ───────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font2);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -1px;
}

.section-title span {
  color: var(--accent2);
}

.section-sub {
  font-size: 16px;
  color: var(--text2);
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ── Glass Card ─────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: var(--border-light);
  border-left-color: var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
  color: var(--text3);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control option {
  background: var(--bg3);
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg3);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--accent);
  min-width: 280px;
  max-width: 360px;
  border: 1px solid var(--border);
}

.toast.success {
  border-left-color: var(--green);
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.warning {
  border-left-color: var(--gold);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 72px 5% 0;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font2);
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text2);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent2);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 12px;
}

.footer-contact li i {
  color: var(--accent2);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 18px;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text3);
  max-width: 1300px;
  margin: 0 auto;
}

/* ── Page Loader (Ultra Premium) ────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease;
}

.page-loader.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: pulseLoader 2s infinite ease-in-out;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent2);
  border-right-color: var(--accent);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px var(--accent-glow);
}

.loader-logo {
  font-family: var(--font2);
  font-size: 44px;
  font-weight: 900;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.loader-logo span {
  color: var(--accent2);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseLoader {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent2);
}

.mt-48 {
  margin-top: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 560px) {

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}