/* =============================================================
   MAIN.CSS — Shared Styles (Navbar, Footer, Variables, Utils)
   Theme: Slate Charcoal + Amber Gold
   ============================================================= */

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

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --bg-base: #111318;
  --bg-surface: #191c24;
  --bg-card: #1e2130;
  --bg-hover: #252a3a;

  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.10);
  --accent-glow: rgba(245, 158, 11, 0.22);

  --text-primary: #e8eaf0;
  --text-secondary: #8892a4;
  --text-muted: #50596b;

  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(245, 158, 11, 0.28);

  --font: 'Poppins', sans-serif;
  --nav-h: clamp(64px, 8vh, 84px);
  --radius: clamp(10px, 1.5vw, 16px);
  --radius-sm: 8px;
  --transition: 0.25s ease;

  /* Fluid Max Width for up to 2560px */
  --max-w: clamp(1200px, 90vw, 1920px);

  /* Fluid Spacing */
  --space-sm: clamp(16px, 2vw, 24px);
  --space-md: clamp(32px, 4vw, 48px);
  --space-lg: clamp(48px, 6vw, 80px);
  --space-xl: clamp(64px, 8vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  font-size: 16px;
  /* Base for REM */
}

@media (min-width: 2560px) {
  html {
    font-size: 20px;
  }

  /* Scale up everything on ultra-wide */
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  /* Scale down on mobile */
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  cursor: none;
  overflow-x: clip;
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
  width: 100%;
}

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

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

button {
  font-family: var(--font);
  cursor: pointer;
}

ul {
  list-style: none;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 6px;
}

/* ── Custom Cursor ─────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999999;
  transition: transform 0.12s ease, width 0.18s, height 0.18s;
}

.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999998;
  transition: left 0.08s ease, top 0.08s ease, width 0.3s, height 0.3s;
}

.cursor.clicked {
  transform: translate(-50%, -50%) scale(1.8);
}

@media (max-width: 1024px) {

  .cursor,
  .cursor-ring {
    display: none;
  }

  /* Hide on tablets/touch devices */
  body {
    cursor: auto;
  }
}

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

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

.dark-icon {
  filter: brightness(2) saturate(1.2);
}

.section-tag {
  display: inline-block;
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(8px, 1vw, 12px);
  padding: clamp(4px, 0.5vw, 6px) clamp(12px, 1.5vw, 16px);
  background: var(--accent-dim);
  border-radius: 50px;
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: clamp(12px, 2vw, 20px);
  letter-spacing: -0.5px;
}

.section-title:first-child {
  margin-top: clamp(20px, 3vw, 40px);
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: min(100%, 600px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 600;
  padding: clamp(12px, 2vh, 16px) clamp(24px, 4vw, 36px);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Page Hero (shared across inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + var(--space-lg)) 0 var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero .section-title {
  margin-bottom: 12px;
}

.page-hero .section-subtitle {
  margin: 0 auto;
}

/* Section spacing */
.section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.section-alt {
  background: var(--bg-surface);
}

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: stretch;
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  background: rgba(17, 19, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled .nav-inner {
  background: rgba(17, 19, 24, 0.98);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.nav-logo img {
  height: clamp(32px, 5vh, 48px);
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: 0.82;
}

/* Thin separator between logo icon and text */
.nav-logo-divider {
  width: 2px;
  height: clamp(24px, 4vh, 36px);
  background: rgba(255, 255, 255, 0.8);
  margin: 0 clamp(16px, 2vw, 24px);
  /* Increased spacing for all devices */
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.nav-logo-name {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.nav-logo-tagline {
  font-size: clamp(0.5rem, 1vw, 0.58rem);
  font-weight: 600;
  color: rgba(245, 158, 11, 0.72);
  letter-spacing: 0.8px;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.5vw, 8px);
}

.nav-link {
  padding: clamp(6px, 1vh, 8px) clamp(10px, 1.5vw, 16px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.8rem, 1vw, 0.87rem);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

.nav-cta {
  margin-left: clamp(8px, 1.5vw, 16px);
  padding: clamp(7px, 1vh, 9px) clamp(16px, 2vw, 22px);
  border-radius: 50px;
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 600;
  color: #0a0a0a;
  background: var(--accent);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* Scroll Indicator */
.scroll-bar-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 999;
}

.scroll-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile overlay nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  background: rgba(17, 19, 24, 0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 50px 20px 0;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease, visibility 0.4s ease;
  box-shadow: none;
  border-left: none;
  color: var(--text-primary);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  color: var(--text-primary);
  border: none;
  width: 32px;
  height: 32px;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.mobile-profile-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.mobile-nav-profile h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mobile-nav-profile p {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
  padding-left: 20px;
  padding-bottom: 40px;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 0;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  background: none;
}

.mobile-nav .nav-link:hover {
  color: var(--accent);
  background: none;
}

.mobile-nav .nav-link.active {
  color: var(--text-primary);
  background: none;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.mobile-nav .nav-cta {
  margin-top: 30px;
  font-size: 0.9rem;
  padding: 14px 30px;
  background: var(--accent);
  color: #000;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-nav .nav-cta i {
  font-size: 1rem;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0 var(--space-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.footer-brand .nav-logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-brand .nav-logo img {
  height: clamp(28px, 4vw, 36px);
}

.footer-brand p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  max-width: 500px;
}

.footer-col h4 {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contact-info {
  list-style: none;
  margin-bottom: 12px;
}

.footer-contact-info li {
  margin-bottom: 8px;
}

.footer-contact-info a,
.footer-contact-info li {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact-info a:hover {
  color: var(--accent);
}

.footer-contact-info i {
  color: var(--accent);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social a {
  width: clamp(36px, 4vw, 44px);
  height: clamp(36px, 4vw, 44px);
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  color: var(--text-muted);
}

/* ── RESPONSIVE MEDIA QUERIES ────────────────────────────────────────────── */

/* 1024px: Tablets (Landscape/Portrait) */
@media (max-width: 1024px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

/* 768px: Small Tablets / Large Mobile */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-logo-divider {
    margin: 0 8px;
  }

  .nav-logo-name {
    font-size: 1.3rem;
  }

  .nav-logo-tagline {
    display: none;
  }
}

/* 480px: Mobile */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 320px: Small Mobile */
@media (max-width: 320px) {
  .nav-logo-name {
    font-size: 1.3rem;
  }
}

/* ── Go To Top Button ────────────────────────────────────────── */
.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: var(--bg-base);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--text-primary);
  color: var(--bg-base);
}

@media (max-width: 768px) {
  .go-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}