/* ==========================================================================
   SWORDFISH SYSTEMS
   VS Code–inspired dark theme · Cyan / Blue / Purple accents
   ========================================================================== */

:root {
  --bg-body: #0c0c18;
  --bg-alt: #0e0e1f;
  --bg-surface: #14142b;
  --bg-surface-hover: #1c1c3a;
  --bg-nav: rgba(12, 12, 24, 0.82);

  --accent-primary: #00d4ff;
  --accent-secondary: #0066ff;
  --accent-tertiary: #8b5cf6;
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary)
  );

  --text-bright: #f0f2f8;
  --text-primary: #cdd6e4;
  --text-secondary: #7b8398;
  --text-muted: #4a4e62;

  --border-subtle: rgba(0, 212, 255, 0.05);
  --border: rgba(0, 212, 255, 0.1);
  --border-strong: rgba(0, 212, 255, 0.2);

  --glow-xs: 0 0 6px rgba(0, 212, 255, 0.08);
  --glow-sm: 0 0 15px rgba(0, 212, 255, 0.12);
  --glow-md: 0 0 30px rgba(0, 212, 255, 0.18);

  --font-heading: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  --max-w: 1140px;
  --section-py: 110px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 72px;
}

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

/* thin accent line at very top */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  z-index: 200;
  opacity: 0.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}
h3 {
  font-size: 1.2rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 28px;
}

section {
  position: relative;
  padding-block: var(--section-py);
}

.section-alt {
  background: var(--bg-alt);
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(0, 212, 255, 0.015) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 212, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-primary);
  opacity: 0.75;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  text-wrap: pretty;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding-inline: 28px;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-bright);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-logo-mark {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.nav-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-primary);
  margin-left: 1px;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 4px 0;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--text-bright);
}

.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.nav-icon-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-icon-btn:hover {
  color: var(--accent-primary);
  border-color: var(--border);
  background: rgba(0, 212, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 28px 60px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  translate: -50% -50%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(0, 102, 255, 0.07) 0%,
    rgba(139, 92, 246, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: hero-pulse 5s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
  0% {
    opacity: 0.6;
    scale: 1;
  }
  100% {
    opacity: 1;
    scale: 1.15;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* stagger entrance */
.hero-content > * {
  animation: fadeInUp 0.75s ease backwards;
}
.hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-content > *:nth-child(2) {
  animation-delay: 0.18s;
}
.hero-content > *:nth-child(3) {
  animation-delay: 0.32s;
}
.hero-content > *:nth-child(4) {
  animation-delay: 0.44s;
}
.hero-content > *:nth-child(5) {
  animation-delay: 0.56s;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 100px;
  padding: 6px 20px;
  margin-bottom: 36px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 7px rgba(0, 212, 255, 0);
  }
}

.hero-title {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero-title-sub {
  display: block;
  color: var(--text-primary);
  opacity: 0.4;
  font-weight: 400;
  letter-spacing: 0.14em;
  font-size: 0.36em;
  margin-top: 6px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 530px;
  margin: 0 auto 44px;
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: line-pulse 2.2s ease-in-out infinite;
}

@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.9;
  }
}

/* ========== BUTTONS ========== */
.btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-body);
}

.btn-primary:hover {
  box-shadow: var(--glow-md);
  translate: 0 -1px;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(0, 212, 255, 0.03);
}

.btn-full {
  width: 100%;
}

.btn-success {
  background: #22c55e !important;
  color: #fff !important;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  text-wrap: pretty;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 58px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  border-color: var(--border);
  box-shadow: var(--glow-xs);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
  margin-bottom: 2px;
}

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

/* ========== TECH STACK ========== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, translate 0.3s;
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.tech-card:hover {
  border-color: var(--border);
  box-shadow: var(--glow-sm);
  translate: 0 -2px;
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.tech-card-title {
  margin-bottom: 14px;
}

.tech-card-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tech-card-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.tech-card-list li::before {
  content: "›";
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  opacity: 0.5;
}

/* ========== INDUSTRIES ========== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.industry-card:hover {
  border-color: var(--border);
  box-shadow: var(--glow-xs);
}

.industry-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-block;
  margin-bottom: 10px;
  opacity: 0.8;
}

.industry-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.industry-card p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* ========== CONTACT ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-methods {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.contact-method:hover {
  color: var(--accent-primary);
}

.contact-method-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 260px;
}

.footer-company strong {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--text-bright);
}

.footer-company span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-link {
  background: none;
  border: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ========== PRIVACY MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.modal-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.modal-content h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-bright);
}

.modal-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
}

.modal-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  translate: 0 0;
}

/* stagger children inside reveal containers */
.reveal .stagger-item {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}

.reveal.visible .stagger-item {
  opacity: 1;
  translate: 0 0;
}

/* ========== LIGHT THEME ========== */
.light-theme {
  --bg-body: #f8f9fc;
  --bg-alt: #eff1f6;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f3f4f8;
  --bg-nav: rgba(248, 249, 252, 0.88);

  --text-bright: #0f172a;
  --text-primary: #334155;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --border-subtle: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);

  --glow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --glow-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
  --glow-md: 0 4px 20px rgba(0, 0, 0, 0.09);
}

.light-theme body::before {
  opacity: 0.5;
}

.light-theme .hero::before {
  background: radial-gradient(
    circle,
    rgba(0, 102, 255, 0.05) 0%,
    rgba(139, 92, 246, 0.03) 40%,
    transparent 70%
  );
}

.light-theme .section-alt::before {
  background-image: linear-gradient(
      rgba(15, 23, 42, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

.light-theme .btn-primary {
  color: #ffffff;
}

.light-theme .tech-card,
.light-theme .stat-card,
.light-theme .industry-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.light-theme .form-input {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

.light-theme .form-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.light-theme .modal-content {
  background: #ffffff;
}

.light-theme .hero-title-sub {
  opacity: 0.3;
}

.light-theme .nav-cursor {
  background: var(--accent-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  :root {
    --section-py: 80px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-stats {
    flex-direction: row;
    padding-top: 0;
  }
  .stat-card {
    flex: 1;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .industry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --section-py: 60px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 80px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-direction: column;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-scroll {
    display: none;
  }
}
