/* ===== CSS Variables (Design System) ===== */
:root {
  /* Colors */
  --bg-dark: #09090b;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --accent-primary: #f59e0b;
  /* Amber/Orange for emergency */
  --accent-secondary: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Sizes */
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* ===== Typography Utilities ===== */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--accent-primary);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

.divider.center {
  margin: 1rem auto 2rem;
}

/* ===== Buttons & CTAs ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--accent-primary);
  color: #000;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  /* Pill shape */
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px var(--accent-glow);
  text-align: center;
  line-height: 1.3;
}

.cta-button:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Utilities */
.nowrap {
  white-space: nowrap;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  /* Hidden */
  transition: clip-path 0.4s ease-in-out;
}

.mobile-menu.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.mobile-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(9, 9, 11, 0.95) 0%,
      rgba(9, 9, 11, 0.7) 50%,
      rgba(9, 9, 11, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* ===== About Section ===== */
.about {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-icon {
  color: var(--accent-primary);
  width: 32px;
  height: 32px;
}

.stat-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.image-wrapper:hover .glow-effect {
  opacity: 1;
}

/* ===== Services Section ===== */
.services {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--bg-dark), #0f1014);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.service-card:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: var(--transition-normal);
}

.service-card:hover .card-icon-wrapper {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
  transition: var(--transition-normal);
}

.service-card:hover .card-icon {
  color: #000;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Footer CTA ===== */
.footer-cta {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.footer-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.footer-cta p {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.large-cta {
  font-size: 1.25rem;
  padding: 1.25rem 2.5rem;
}

/* ===== Footer ===== */
.footer {
  background: #000;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links,
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer h4 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.footer-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.social-icons a:hover {
  background: var(--accent-primary);
  color: #000;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

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

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

/* ===== Responsive (Mobile / Tablet) ===== */
@media (max-width: 968px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}

@media (max-width: 768px) {

  .about {
    padding: 4rem 0 0 0;
  }

  .services {
    padding: 4rem 0 4rem 0;
  }


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

  .menu-toggle {
    display: block;
  }

  .hero-overlay {
    background: rgba(9, 9, 11, 0.75);
  }

  .stats-row {
    flex-direction: row;
    gap: 1rem;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  /* Responsive CTAs to prevent number splitting */
  .hero-cta,
  .large-cta {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .hero-cta {
    font-size: 1.05rem;
  }

  .large-cta {
    font-size: 1.15rem;
  }
}