/* ===== SELF-HOSTED FONTS ===== */
@font-face {
  font-family: 'Chakra Petch';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/chakra-petch-italic-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/chakra-petch-300.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/chakra-petch-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/chakra-petch-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/chakra-petch-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/chakra-petch-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/rajdhani-300.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/rajdhani-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/rajdhani-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/rajdhani-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/rajdhani-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/share-tech-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deepest:  #050810;
  --bg-deep:     #0A1025;
  --bg-mid:      #111D40;
  --bg-surface:  #1A2D5A;
  --accent:      #1E4080;
  --accent-light:#4478B8;
  --text-primary:#C8D6E5;
  --text-muted:  #6878A0;
  --text-bright: #E8EEF4;
  --white:       #F0F4F8;
  --border:      rgba(68, 120, 184, 0.12);
  --border-hover:rgba(68, 120, 184, 0.25);
  --glow:        rgba(30, 64, 128, 0.3);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Chakra Petch', sans-serif;
  background: var(--bg-deepest);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0.7;
  margin-bottom: 16px;
}

.section-line {
  width: 40px;
  height: 1px;
  background: var(--accent-light);
  margin-bottom: 24px;
  opacity: 0.4;
}

.section-line--center {
  margin: 0 auto 24px;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.logo span {
  color: var(--accent-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--accent-light);
}
.nav-contact {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--border-hover);
  transition: all 0.3s ease;
}
.nav-contact:hover {
  background: rgba(68, 120, 184, 0.08);
  border-color: var(--accent-light);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.6) brightness(0.5);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg-deepest) 0%, transparent 30%),
    linear-gradient(180deg, transparent 60%, var(--bg-deepest) 100%),
    linear-gradient(90deg, var(--bg-deepest) 0%, transparent 50%);
  z-index: 1;
}
/* Subtle animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(68, 120, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 120, 184, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 0 80px;
}
.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 24px;
  opacity: 0.8;
}
.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}
.hero-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 48px;
}
.hero-cta {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
  padding: 14px 36px;
  border: 1px solid var(--border-hover);
  transition: all 0.4s ease;
}
.hero-cta:hover {
  background: rgba(68, 120, 184, 0.1);
  border-color: var(--accent-light);
  box-shadow: 0 0 30px var(--glow);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  opacity: 0.4;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-light), transparent);
  opacity: 0.3;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.1; height: 30px; }
  50% { opacity: 0.4; height: 50px; }
}

/* ===== DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin: 0 auto;
  max-width: 1200px;
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  background: var(--bg-deepest);
}
.services-header {
  margin-bottom: 80px;
  max-width: 600px;
}
.services-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.services-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.service-block:hover {
  border-color: var(--border-hover);
}
.service-block.reverse .service-image { order: 2; }
.service-block.reverse .service-content { order: 1; }

.service-image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.6);
  transition: all 0.6s ease;
}
.service-block:hover .service-image img {
  filter: saturate(0.7) brightness(0.7);
  transform: scale(1.02);
}
.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-deepest) 0%, transparent 40%);
}
.service-block.reverse .service-image-overlay {
  background: linear-gradient(270deg, var(--bg-deepest) 0%, transparent 40%);
}

.service-content {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-deep);
}
.service-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--accent-light);
  opacity: 0.5;
  margin-bottom: 20px;
}
.service-content h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.service-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.service-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-capabilities span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  opacity: 0.7;
}

/* ===== APPROACH ===== */
.approach {
  padding: 120px 0;
  background: var(--bg-deep);
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}
.approach-item {
  background: var(--bg-deep);
  padding: 48px 36px;
  transition: background 0.4s ease;
}
.approach-item:hover {
  background: rgba(10, 16, 37, 0.8);
}
.approach-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--accent-light);
  opacity: 0.4;
  margin-bottom: 20px;
}
.approach-item h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.approach-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: var(--bg-deepest);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.about-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-content p strong {
  color: var(--text-primary);
  font-weight: 500;
}
.about-image {
  position: relative;
  height: 450px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.5);
}
.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-deepest) 100%);
}
.about-location {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 32px;
  opacity: 0.5;
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0;
  background: var(--bg-deep);
  text-align: center;
}
.contact h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.contact p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto 40px;
}
.contact-email {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--accent-light);
  text-decoration: none;
  padding: 16px 44px;
  border: 1px solid var(--border-hover);
  transition: all 0.4s ease;
}
.contact-email:hover {
  background: rgba(68, 120, 184, 0.1);
  border-color: var(--accent-light);
  box-shadow: 0 0 40px var(--glow);
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deepest);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.4;
}
.footer-location {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .service-block {
    grid-template-columns: 1fr;
  }
  .service-block.reverse .service-image { order: 1; }
  .service-block.reverse .service-content { order: 2; }
  .service-image { min-height: 260px; }
  .service-image-overlay {
    background: linear-gradient(180deg, var(--bg-deepest) 0%, transparent 40%) !important;
  }
  .service-content { padding: 40px 28px; }
  .approach-grid { grid-template-columns: 1fr; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image { height: 300px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    gap: 24px;
    align-items: flex-start;
  }
  .menu-toggle { display: block; }
  .hero-content { padding: 100px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .services, .approach, .about, .contact { padding: 80px 0; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== NOISE TEXTURE ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== IMAGE PLACEHOLDERS ===== */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-img span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.3;
}
