/* ============================================================
   ROBO BUILT — Stylesheet
   Dark & techy: #07101a bg, #00d4ff accent, Orbitron + Exo 2
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary:    #07101a;
  --bg-secondary:  #0d1b2a;
  --bg-card:       #0f2033;
  --bg-card-hover: #142840;
  --accent:        #00d4ff;
  --accent-glow:   rgba(0, 212, 255, 0.25);
  --accent-dim:    rgba(0, 212, 255, 0.10);
  --text-primary:  #e8f4ff;
  --text-secondary:#6a8aaa;
  --border:        rgba(0, 212, 255, 0.10);
  --border-hover:  rgba(0, 212, 255, 0.40);
  --nav-height:    72px;
  --max-width:     1100px;
  --ease:          0.3s ease;
}

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

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

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--ease), box-shadow var(--ease);
}

#navbar.scrolled {
  background: rgba(7, 16, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  transition: color var(--ease);
}
.nav-logo:hover { color: var(--accent); }

.nav-logo-img {
  height: 34px;
  width: auto;
  opacity: 0.85;
  filter: url(#logo-knockout);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--ease);
}


/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('Hero.png') center center / cover no-repeat;
}

#heroCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 50% 45%, rgba(0, 80, 160, 0.12) 0%, transparent 70%),
    linear-gradient(180deg,
      rgba(7,16,26,0.55) 0%,
      rgba(7,16,26,0.40) 40%,
      rgba(7,16,26,0.75) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  gap: 1.75rem;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s 0.25s ease both;
}

.hero-accent {
  color: var(--accent);
  text-shadow:
    0 0 30px rgba(0, 212, 255, 0.50),
    0 0 80px rgba(0, 212, 255, 0.18);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  max-width: 520px;
  line-height: 1.75;
  animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s 0.65s ease both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollPulse 2.5s ease-in-out infinite;
}

.scroll-text { font-family: 'Exo 2', sans-serif; }

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--text-secondary), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9; transform: translateX(-50%) translateY(5px); }
}

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

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

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


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: #33ddff;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(232, 244, 255, 0.22);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
}


/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 3rem;
}


/* ============================================================
   ABOUT
   ============================================================ */
#about {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: rgba(13, 27, 42, 0.75);
  border-top: 1px solid var(--border);
}

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

.about-text .section-title {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  white-space: normal;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.3rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  transition: border-color var(--ease), background var(--ease);
}
.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}


/* ============================================================
   WHAT WE DO
   ============================================================ */
#services {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: rgba(7, 16, 26, 0.72);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--border-hover);
}

.service-d-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.service-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}


/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: rgba(13, 27, 42, 0.75);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-email {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0;
  background: rgba(7, 16, 26, 0.95);
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-container .nvidia-badge { justify-self: start; }
.footer-container .footer-copy  { justify-self: end; }

.nvidia-badge {
  height: 80px;
  width: auto;
  opacity: 0.9;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.footer-logo-img {
  height: 26px;
  width: auto;
  opacity: 0.45;
  filter: url(#logo-knockout);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.55;
  text-align: center;
}


/* ============================================================
   SCROLL FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

.stat-card:nth-child(2).fade-in  { transition-delay: 0.1s; }
.stat-card:nth-child(3).fade-in  { transition-delay: 0.2s; }
.service-card:nth-child(2).fade-in { transition-delay: 0.12s; }
.service-card:nth-child(3).fade-in { transition-delay: 0.24s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 16, 26, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; }

  .hero-logo    { height: 78px; }
  .hero-actions { flex-direction: column; align-items: center; }


}
