@font-face {
  font-family: "Satoshi";
  src: url(../fonts/Satoshi-Regular.woff) format("woff"), url(../fonts/Satoshi-Regular.woff2) format("woff2");
  font-weight: 400;
}
@font-face {
  font-family: "Satoshi";
  src: url(../fonts/Satoshi-Medium.woff) format("woff"), url(../fonts/Satoshi-Medium.woff2) format("woff2");
  font-weight: 500;
}
@font-face {
  font-family: "Satoshi";
  src: url(../fonts/Satoshi-Bold.woff) format("woff"), url(../fonts/Satoshi-Bold.woff2) format("woff2");
  font-weight: 700;
}

:root {
  /* Warm Dark Palette */
  --bg-primary: #0c0f14;
  --bg-secondary: #111520;
  --bg-tertiary: #181d2a;
  --bg-elevated: #1e2536;

  /* Accent Colors — warm amber + cool teal */
  --accent-warm: #e8a838;
  --accent-warm-soft: #d4963a;
  --accent-teal: #3ecfcf;
  --accent-muted: #6b8aad;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--accent-warm) 0%, #cf7e2a 100%);
  --secondary-gradient: linear-gradient(135deg, var(--accent-teal) 0%, #2aa3a3 100%);
  --subtle-gradient: linear-gradient(135deg, rgba(232, 168, 56, 0.12) 0%, rgba(62, 207, 207, 0.08) 100%);

  /* Text Colors */
  --text-primary: #eae6df;
  --text-secondary: #9da5b4;
  --text-tertiary: #636d7e;
  --text-muted: #404958;

  /* Neutrals */
  --color-dark: #eae6df;
  --color-gray: #9da5b4;
  --color-light-gray: #181d2a;
  --color-white: #eae6df;

  /* Surface treatments */
  --card-bg: rgba(24, 29, 42, 0.7);
  --card-bg-solid: #181d2a;
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-hover: rgba(232, 168, 56, 0.25);

  /* Legacy glass aliases (used in some components) */
  --glass-bg: rgba(17, 21, 32, 0.7);
  --glass-bg-strong: rgba(24, 29, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-bright: rgba(232, 168, 56, 0.3);

  /* Shadows — warm tinted */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 56px rgba(0, 0, 0, 0.6);

  /* Glow — used sparingly */
  --glow-warm: 0 0 30px rgba(232, 168, 56, 0.25);
  --glow-teal: 0 0 30px rgba(62, 207, 207, 0.2);

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 100px;

  /* Fonts */
  --font-body: "DM Sans", "Satoshi", sans-serif;
  --font-heading: "Instrument Serif", Georgia, serif;
  --font-satoshi: "Satoshi", sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ============ Global Animations ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation-fill-mode: both;
}

.fade-in-up { animation: fadeInUp 0.7s ease-out; }
.fade-in { animation: fadeIn 0.7s ease-out; }
.slide-in-left { animation: slideInLeft 0.7s ease-out; }
.slide-in-right { animation: slideInRight 0.7s ease-out; }
.scale-in { animation: scaleIn 0.6s ease-out; }

/* Stagger delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ============ Base Reset & Typography ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  font-family: var(--font-body);
  color: var(--text-primary);
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

img {
  vertical-align: middle;
  max-width: 100%;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.15;
}

h1 {
  font-size: 52px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 22px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.center {
  text-align: center;
}

section,
footer,
.footer-links {
  margin-top: 120px;
}

/* ============ CTA Button ============ */
.cta {
  color: #0c0f14;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.02em;

  padding: 14px 36px;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;

  border-radius: 50px;
  background: var(--accent-warm);
  border: none;
  box-shadow: var(--shadow-sm);

  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.cta:hover {
  transform: translateY(-2px);
  background: var(--accent-warm-soft);
  box-shadow: var(--shadow-md), var(--glow-warm);
}

.cta:active {
  transform: translateY(0);
}

.arrow {
  gap: 8px;
}

.arrow::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background-image: url("../images/arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  filter: brightness(0);
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 18px;
  }
  section,
  footer,
  .footer-links {
    margin-top: 80px;
  }
  .cta {
    font-size: 15px;
  }
}

/* ====================== Navbar ====================== */
.custom-li > li {
  margin-left: 15px;
}

#about { scroll-margin-top: 50px; }
#services { scroll-margin-top: 50px; }
#casestudies { scroll-margin-top: 50px; }

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all var(--transition-base);
  border-bottom: 1px solid var(--card-border);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(232, 168, 56, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  transition: all var(--transition-base);
  position: relative;
}

.navbar-links ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links li {
  list-style: none;
}

.navbar-links li a {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  display: block;
  transition: all var(--transition-fast);
  position: relative;
  color: var(--text-secondary);
}

.navbar-links li a:not(.navbar-cta):hover {
  color: var(--text-primary);
}

.navbar-links li a:not(.navbar-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-warm);
  transition: width var(--transition-base);
}

.navbar-links li a:not(.navbar-cta):hover::after {
  width: 100%;
}

.navbar-links li a.navbar-cta {
  color: #0c0f14;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.02em;

  padding: 10px 24px;
  text-decoration: none;
  text-align: center;
  display: inline-block;

  border-radius: 50px;
  background: var(--accent-warm);
  border: none;

  transition: all var(--transition-base);
}

.navbar-links li a.navbar-cta:hover {
  color: #0c0f14;
  transform: translateY(-1px);
  background: var(--accent-warm-soft);
  box-shadow: var(--shadow-sm), var(--glow-warm);
}

.navbar-links li a.navbar-cta:active {
  transform: translateY(0);
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

.logo img {
  width: 170px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: all var(--transition-base);
  opacity: 0.9;
}

.logo:hover img {
  opacity: 1;
}

.toggle-button {
  position: absolute;
  top: 12.5px;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 16px;
}

.toggle-button .bar {
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 10px;
  transition: all var(--transition-base);
}

.toggle-button.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.toggle-button.active .bar:nth-child(2) {
  opacity: 0;
}

.toggle-button.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .logo img {
    width: 140px;
    height: auto;
  }

  .toggle-button {
    display: flex;
    cursor: pointer;
    z-index: 100;
    background: var(--bg-tertiary);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: all var(--transition-base);
  }

  .toggle-button:hover {
    border-color: var(--card-border-hover);
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 16px 20px;
  }

  .navbar-links {
    display: none;
    width: 100%;
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .navbar-links ul {
    flex-direction: column;
    width: 100%;
    padding: 16px 0;
    gap: 16px;
  }

  .navbar-links ul li {
    text-align: center;
    padding: 4px 0;
  }

  .navbar-links li a:not(.navbar-cta) {
    font-size: 16px;
    padding: 8px 16px;
    display: block;
  }

  .navbar-cta {
    padding: 10px 32px;
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .navbar-links.active {
    display: flex;
  }
}

@media screen and (max-width: 500px) {
  .logo img {
    width: 120px;
  }

  .toggle-button {
    padding: 8px;
    top: 14px;
    right: 16px;
  }

  .navbar {
    padding: 12px 16px;
  }

  .navbar-links ul {
    padding: 12px 0;
    gap: 12px;
  }

  .navbar-links li a:not(.navbar-cta) {
    font-size: 15px;
  }

  .navbar-cta {
    padding: 9px 24px;
    font-size: 14px;
  }
}

/* ====================== Footer ======================= */
footer {
  padding: 100px 50px 50px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
  opacity: 0.4;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.footer-top h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--text-primary);
}

.footer .cta {
  margin: 0 auto;
}

.social-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-nav a {
  text-decoration: none;
  display: inline-block;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  width: 50%;
  margin: 50px auto 0 auto;
  position: relative;
  z-index: 1;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

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

.footer-links span {
  flex: 2;
  color: var(--text-tertiary);
}

.footer-links > * {
  text-align: center;
  font-size: 15px;
  line-height: normal;
  letter-spacing: -0.02em;
  flex: 1;
}

@media (max-width: 768px) {
  footer {
    padding-top: 75px;
  }
  .footer-top h2 {
    font-size: 36px;
  }
  .footer-links {
    flex-wrap: wrap;
    flex-direction: column;
    width: 80%;
  }
}
