/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg: #0d1117;
  --bg-elevated: #161c25;
  --accent: #4ecdc4;
  --card-border: #d63384;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --max-width: 1400px;
  --pad: clamp(1.5rem, 4vw, 4rem);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul { list-style: none; }

/* ============================================================
   Typography
   ============================================================ */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--text-muted);
}

p + p { margin-top: 1rem; }

/* ============================================================
   Layout utilities
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none !important;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* ============================================================
   Header / nav
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

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

nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

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

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   Page hero base (dark overlay over background image)
   ============================================================ */
.page-hero {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.75);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  text-align: center;
}

/* ============================================================
   Home page
   ============================================================ */
.home-hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

/* Testimonial directly under hero */
.home-testimonial {
  background: var(--bg-elevated);
  padding-block: 2rem;
}

/* Two content rows: one image + one text block each */
.home-rows {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.home-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.home-row + .home-row {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.home-row--reverse img {
  order: 2;
}

.home-row img {
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.home-row-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.home-row-text p {
  max-width: none;
  font-size: 0.97rem;
  line-height: 1.75;
}

/* Client logos */
.logos-section {
  background: #ffffff;
  text-align: center;
}

.logos-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 2rem;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}

.logos-grid img {
  height: 40px;
  width: auto;
  transition: opacity 0.25s;
}

.logos-grid img:hover { opacity: 0.8; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-section {
  background: var(--bg-elevated);
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.testimonial-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-card cite {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
}

/* Single featured testimonial (home, services) */
.testimonial-featured {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.testimonial-featured blockquote {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.testimonial-featured cite {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
}

/* ============================================================
   Services page
   ============================================================ */
.services-hero {
  background-image: url('../images/Kaizoku_a_team_of_professional_programmers_solving_a_problem_to_c0462a98-e039-4353-a786-3e39ad14f4c7.png');
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-card {
  position: relative;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 420px;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.70);
}

.service-card > * { position: relative; z-index: 1; }

.service-card h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.service-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* All three cards share one panoramic image — each shows a different horizontal slice */
.card-cto,
.card-dev,
.card-flex {
  background-image: url('../images/Kaizoku_a_river_of_luminesent_computer_data_with_footbridge_cro_63d65e17-2238-404f-8e7f-13dd3c06f61f.jpg');
  background-size: 300% auto;
  background-repeat: no-repeat;
}

.card-cto  { background-position: 0%   50%; }
.card-dev  { background-position: 50%  50%; }
.card-flex { background-position: 100% 50%; }

.services-cta {
  text-align: center;
}

/* ============================================================
   About page
   ============================================================ */
.about-hero {
  background-image: url('../images/Kaizoku_visualize_the_data_packets_being_sent_between_networked_06e14ca9-c553-4012-abfe-4a19d57d7208.png');
}

.about-bio-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.about-bio-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 200px;
  border-radius: var(--radius);
  border: 2px solid rgba(78, 205, 196, 0.4);
  flex-shrink: 0;
}

.about-bio-text .tagline {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.about-bio-text p {
  max-width: none;
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-hero {
  background-image: url('../images/Kaizoku_the_seattle_city_skyline_cyberpunk_style_blue_hue_line__443e620d-8a20-4801-8272-8238b707dd7e.jpg');
}

.contact-body {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 900px;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  max-width: none;
  font-size: 0.97rem;
  line-height: 1.75;
}

.contact-email {
  padding-top: 0.5rem;
}

.contact-email-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-email a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.contact-email a:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .home-row {
    grid-template-columns: 1fr;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
  }

  .about-bio-inner {
    grid-template-columns: 1fr;
  }

  .about-photo {
    width: 160px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.82rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .btn-nav {
    display: none;
  }
}
