/* ============================================================
   Tech1Web — AI Automation Services
   styles.css — Mobile-first, no framework
   ============================================================ */

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

:root {
  --navy:        #0a0f1e;
  --navy-mid:    #0d1526;
  --navy-light:  #111d35;
  --charcoal:    #1a2035;
  --card-bg:     #141c2e;
  --blue:        #1e90ff;
  --blue-bright: #3aa0ff;
  --blue-dim:    #1565c0;
  --blue-glow:   rgba(30, 144, 255, 0.18);
  --text:        #e8edf5;
  --text-muted:  #8899b4;
  --text-dim:    #5a6a84;
  --border:      rgba(30, 144, 255, 0.15);
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --transition:  0.22s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--navy);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--blue-bright); }

/* === Typography === */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 5rem 0;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 24px rgba(30,144,255,0.35);
}
.btn-primary:hover {
  background: var(--blue-bright);
  color: #fff;
  box-shadow: 0 0 36px rgba(30,144,255,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-glow);
  color: var(--blue-bright);
  transform: translateY(-1px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 15, 30, 0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.nav-logo:hover { color: var(--text); }

.nav-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

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

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: none; }

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: block; }
.nav-mobile ul {
  list-style: none;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-mobile ul li a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile ul li a:hover { color: var(--blue); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30,144,255,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30,144,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,144,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,144,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30,144,255,0.1);
  border: 1px solid rgba(30,144,255,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-bright);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: var(--blue);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--blue);
  flex-shrink: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--navy-mid); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(30,144,255,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(30,144,255,0.1);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(30,144,255,0.1);
  border: 1px solid rgba(30,144,255,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(30,144,255,0.18);
  box-shadow: 0 0 20px rgba(30,144,255,0.2);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(30,144,255,0.08);
  border: 1px solid rgba(30,144,255,0.15);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--navy); }

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

.about-content h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.about-content .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cred-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cred-list li svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.about-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.about-card h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  background: var(--navy-mid);
  text-align: center;
}

.pricing-inner {
  max-width: 840px;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(30,144,255,0.12);
}

.pricing-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e90ff'%3E%3Cpath d='M13.3 4.3L6 11.6 2.7 8.3l-1 1L6 13.6l8.3-8.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.pricing-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-note strong { color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy); }

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

.contact-info h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item svg {
  color: var(--blue);
  flex-shrink: 0;
}

.contact-form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo span { color: var(--blue); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--blue); }

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

/* ============================================================
   TOAST / FORM FEEDBACK
   ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Desktop
   ============================================================ */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .about-cards {
    flex-direction: column;
    position: sticky;
    top: 6rem;
  }

  .contact-inner { grid-template-columns: 0.9fr 1.1fr; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

/* Scroll fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
