/* =============================================
   Capital Technical Solutions — styles.css v2
   Dark, modern redesign
   ============================================= */

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

:root {
  --bg:        #050c16;
  --bg-alt:    #091522;
  --surface:   rgba(255,255,255,0.04);
  --surface-h: rgba(255,255,255,0.07);
  --border:    rgba(0,200,255,0.14);
  --accent:    #00c8ff;
  --accent-d:  #007fa0;
  --glow:      rgba(0,200,255,0.28);
  --glow-sm:   rgba(0,200,255,0.14);
  --text:      #c8e6f0;
  --muted:     #5e88a0;
  --white:     #ffffff;
  --navy:      #002e3d;
}

html { scroll-behavior: smooth; }

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

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

a:hover { color: var(--white); }

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

/* --- Top accent bar --- */
.top-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, var(--accent-d) 70%, transparent 100%);
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }
section.alt { background: var(--bg-alt); }

/* --- Navigation --- */
nav {
  background: rgba(5,12,22,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-logo:hover .logo-img {
  opacity: 0.85;
  transform: scale(1.02);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* Grid pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Glow orbs */
.hero-orb-1 {
  position: absolute;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.11) 0%, transparent 65%);
  top: -200px;
  left: -150px;
  animation: orb-drift-1 11s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,90,150,0.18) 0%, transparent 65%);
  bottom: -80px;
  right: -80px;
  animation: orb-drift-2 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(55px, 35px) scale(1.06); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-35px, -45px) scale(1.09); }
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Badge pill */
.hero-badge {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  background: rgba(0,200,255,0.06);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 35%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.875rem 2.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 28px var(--glow);
  transition: box-shadow 0.25s, transform 0.15s, background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 0 48px var(--glow);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 0.875rem 2.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid rgba(0,200,255,0.45);
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

/* --- Section label + title --- */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Accent divider --- */
.accent-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 0 auto 1.25rem;
  border-radius: 2px;
}

/* --- Service Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  background: var(--surface-h);
  box-shadow: 0 0 0 1px rgba(0,200,255,0.28), 0 24px 48px rgba(0,0,0,0.35);
  transform: translateY(-5px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

/* --- CTA section --- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,200,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* --- Page hero (About / Contact inner pages) --- */
.page-hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.09) 0%, transparent 65%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- About page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
}

.about-intro p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.78;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem 2rem;
}

.why-card h3 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.why-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(0,200,255,0.1);
  border: 1.5px solid rgba(0,200,255,0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2300c8ff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

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

.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.highlight:hover {
  background: var(--surface-h);
  box-shadow: 0 0 0 1px rgba(0,200,255,0.28), 0 18px 36px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.highlight h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.highlight p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.68;
}

/* --- Contact --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

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

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.contact-detail:hover {
  border-color: rgba(0,200,255,0.3);
  background: var(--surface-h);
}

.contact-detail .icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--text);
}

.contact-detail a:hover {
  color: var(--accent);
}

/* --- Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,200,255,0.05);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
}

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

.btn-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.9rem 2.25rem;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 24px var(--glow);
  transition: box-shadow 0.25s, transform 0.15s, background 0.2s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--white);
  box-shadow: 0 0 42px var(--glow);
  transform: translateY(-2px);
}

/* --- Footer --- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  transition: color 0.2s;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .about-intro,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero {
    min-height: 75vh;
  }

  section {
    padding: 4.5rem 0;
  }

  .page-hero {
    padding: 4rem 0 3.5rem;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
  }

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