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

:root {
  --accent:      #5badde;
  --accent-dim:  #4a94c2;
  --accent-glow: rgba(91, 173, 222, 0.2);
  --bg:          #0d1b2a;
  --bg2:         #112236;
  --bg3:         #162c44;
  --card:        #142030;
  --border:      rgba(91, 173, 222, 0.2);
  --text:        #ddeaf5;
  --text-dim:    #93b4cc;
  --white:       #f0f8ff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.75;
}

/* === BACKGROUND DECORATION === */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,173,222,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,173,222,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

#circuitCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.05) 2px,
    rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* === NAV === */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 72px;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-book-btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-book-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* === HERO === */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 2rem 4rem;
  overflow: hidden;
  z-index: 1;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(91,173,222,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.4rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  background: rgba(91,173,222,0.07);
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(91,173,222,0.25);
  letter-spacing: -0.01em;
}
.hero-title span { color: var(--accent); }

.hero-tagline {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* === BOOK BUTTON === */
.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1.1rem 2.75rem;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.15s;
  box-shadow: 0 0 24px rgba(91,173,222,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.book-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.book-btn:hover::before { transform: translateX(100%); }
.book-btn:hover {
  box-shadow: 0 0 44px rgba(91,173,222,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.book-btn:active { transform: translateY(0); }

.book-btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.book-btn.secondary:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 30px rgba(91,173,222,0.45);
}

.btn-icon { width: 20px; height: 20px; }

.hero-note {
  margin-top: 1.1rem;
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* === CIRCUIT DECORATION === */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.circuit-line {
  position: absolute;
  background: var(--border);
}
.l1 { top: 20%; left: 5%; width: 120px; height: 1px; }
.l2 { top: 65%; right: 8%; width: 90px; height: 1px; }
.l3 { bottom: 20%; left: 12%; width: 60px; height: 1px; }
.circuit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
.d1 { top: 20%; left: calc(5% + 120px); }
.d2 { top: 65%; right: calc(8% + 90px); animation-delay: 0.8s; }
.d3 { bottom: 20%; left: calc(12% + 60px); animation-delay: 1.6s; }
.d4 { top: 35%; right: 15%; width: 4px; height: 4px; animation-delay: 0.4s; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* === SCROLL HINT === */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.65;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* === CONTAINER === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* === SERVICES === */
#services {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: rgba(91,173,222,0.45);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px var(--accent-glow);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  border-color: rgba(91,173,222,0.4);
  box-shadow: 0 0 20px var(--accent-glow);
}
.service-card.featured::before { opacity: 0.6; }

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,173,222,0.08);
  margin-bottom: 1.25rem;
}
.service-icon { width: 28px; height: 28px; color: var(--accent); }

.service-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.service-card ul { list-style: none; }
.service-card ul li {
  color: var(--text-dim);
  font-size: 1rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.service-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

/* === ABOUT === */
#about {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

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

.about-text .section-label { text-align: left; }
.about-text h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.about-text p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.85;
}
.about-text .book-btn { margin-top: 0.75rem; }

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

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.stat-card:hover {
  border-color: rgba(91,173,222,0.45);
  box-shadow: 0 0 18px var(--accent-glow);
}
.stat-val {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  white-space: nowrap;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === CONTACT === */
#contact {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  border-color: rgba(91,173,222,0.45);
  box-shadow: 0 0 22px var(--accent-glow);
}
.contact-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,173,222,0.08);
}
.contact-icon { width: 24px; height: 24px; color: var(--accent); }
.contact-card h4 {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.contact-card p { color: var(--text); font-size: 1rem; }
.contact-card a {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.contact-card a:hover { text-decoration: underline; }

.contact-grid--two {
  max-width: 680px;
}

/* === FOOTER === */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-logo { display: flex; justify-content: center; }
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
}
footer p { color: var(--text-dim); font-size: 0.8rem; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.94);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg3);
  border: 1px solid rgba(91,173,222,0.3);
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(91,173,222,0.15), 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.modal-header p { color: var(--text-dim); font-size: 0.875rem; }

.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1.25rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.modal-body iframe { display: block; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body { font-size: 17px; }

  /* Nav — hide text links, keep Book button */
  .nav-links a { display: none; }
  #navbar { height: 64px; }

  /* Hero */
  #hero { padding: 90px 1.5rem 3.5rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.15; }
  .hero-tagline { font-size: 0.9rem; letter-spacing: 0.15em; }
  .hero-sub { font-size: 1.1rem; }
  .hero-note { font-size: 0.95rem; }
  .l1, .l2, .l3, .d1, .d2, .d3, .d4 { display: none; }

  /* Sections */
  #services, #about, #contact { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* Services grid — single column on small screens */
  .services-grid { grid-template-columns: 1fr; }

  /* About — stack vertically */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats { flex-direction: column; gap: 0.75rem; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 1.1rem 1.25rem; }
  .stat-val { font-size: 1.3rem; }
  .stat-label { font-size: 0.9rem; }

  /* Contact — stack vertically, allow email to wrap naturally */
  .contact-grid,
  .contact-grid--two {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .contact-card a { white-space: normal; word-break: break-word; }

  /* Modal */
  .modal { border-radius: 8px; }
  .modal-header { padding: 1.25rem; }
  .modal-header h3 { font-size: 1rem; }
  .modal-body iframe { height: 520px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 1.25rem; }
  .book-btn { font-size: 0.95rem; padding: 1rem 2rem; width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.75rem; letter-spacing: 0.12em; }
  .hero-title { font-size: clamp(1.75rem, 11vw, 2.5rem); }
  .services-grid { gap: 1rem; }
  .service-card { padding: 1.5rem; }
  .about-text h2 { font-size: 1.4rem; }
  .modal-body iframe { height: 480px; }
}
