/* =====================================================================
   WonderByte Solutions — Stylesheet
   Tech palette: Deep Blue (#0d1b2a), Slate (#1e2d40 / #2e4057),
                 Teal/Cyan accent (#00c8c8 / #00e5ff)
   ===================================================================== */

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

:root {
  --color-bg:        #0d1b2a;
  --color-surface:   #112236;
  --color-surface2:  #1a2f45;
  --color-border:    #1e3a52;
  --color-text:      #e2eaf4;
  --color-muted:     #8da8c4;
  --color-accent:    #00c8c8;
  --color-accent2:   #00e5ff;
  --color-white:     #ffffff;

  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 80px rgba(0, 200, 200, 0.18);

  --max-w: 1160px;
  --section-pad: 96px 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Utility ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.accent {
  color: var(--color-accent);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
  color: var(--color-bg);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(0, 200, 200, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover {
  background: rgba(0, 200, 200, 0.1);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-muted);
  color: var(--color-text);
}

.btn-full {
  width: 100%;
}

/* ── Section Header ──────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  max-width: 520px;
  margin-inline: auto;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}
.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--color-white);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 24px 140px;
  text-align: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 200, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 200, 200, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0, 200, 200, 0.1);
  border: 1px solid rgba(0, 200, 200, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.hero-headline {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
  max-width: 800px;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 620px;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ── Services ────────────────────────────────────────────────────────── */
.services {
  padding: var(--section-pad);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: rgba(0, 200, 200, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 32px rgba(0, 200, 200, 0.1);
}

.service-card--featured {
  border-color: rgba(0, 200, 200, 0.5);
  background: linear-gradient(160deg, rgba(0, 200, 200, 0.06) 0%, var(--color-bg) 60%);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  padding: 3px 14px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
  color: var(--color-bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--color-accent);
}
.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding-left: 16px;
  position: relative;
}
.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ── Testimonials ────────────────────────────────────────────────────── */
.testimonials {
  padding: var(--section-pad);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial-card--highlight {
  border-color: rgba(0, 200, 200, 0.45);
  background: linear-gradient(160deg, rgba(0, 200, 200, 0.07) 0%, var(--color-surface) 60%);
}

.testimonial-body {
  font-style: italic;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.75;
  flex: 1;
}
.testimonial-body::before {
  content: '"';
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 8px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  font-style: normal;
}

.author-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
  color: var(--color-bg);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.testimonial-author strong {
  display: block;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact {
  padding: var(--section-pad);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-copy .section-label {
  margin-bottom: 12px;
}
.contact-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-copy p {
  color: var(--color-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

.contact-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-perks li {
  font-size: 0.9rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238da8c4' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: var(--color-surface2);
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.15);
}

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

.form-group .input-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.field-error {
  color: #ff9b9b;
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: 1.05rem;
}

.contact-form .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.8);
  box-shadow: none;
  transform: none;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
}

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

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

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--color-white);
}

/* =====================================================================
   Responsive
   ===================================================================== */

/* Tablet — max 900px */
@media (max-width: 900px) {
  :root {
    --section-pad: 72px 24px;
  }

  .nav-links {
    display: none;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-copy h2 {
    font-size: 1.75rem;
  }
}

/* Mobile — max 600px */
@media (max-width: 600px) {
  :root {
    --section-pad: 56px 20px;
  }

  .container {
    padding-inline: 20px;
  }

  .nav-header .nav-cta {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 80px 20px 100px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    text-align: center;
  }

  .service-card {
    padding: 28px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}
