/* ============================================
   CodeXstudio — shared stylesheet
   ============================================ */

:root {
  --bg: #0a0e17;
  --bg-alt: #10141f;
  --bg-card: #131826;
  --border: #1f2633;
  --text: #e8ebf2;
  --text-muted: #9aa3b5;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #1d4ed8;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1160px;
}

* { 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;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 11px 20px;
  font-size: 0.87rem;
  font-weight: 600;
  position: relative;
}
.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.announcement-bar a:hover { opacity: 0.85; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

nav a:hover, nav a.active { color: var(--text); }

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 780px;
  margin-bottom: 20px;
}

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

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 36px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); background: rgba(59,130,246,0.08); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }

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

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow { display: block; width: fit-content; margin: 0 auto 16px; }

.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 14px; }

.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-4px); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card ul { margin-top: 14px; padding-left: 18px; color: var(--text-muted); font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stat { text-align: center; }
.stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-light);
}
.stat .label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.15); }
.cta-band .btn-light { background: #fff; color: var(--accent-dark); }
.cta-band .btn-light:hover { opacity: 0.92; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-grid p, .footer-grid li { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.socials { display: flex; gap: 14px; }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  color: var(--text-muted);
}
.socials a:hover { border-color: var(--accent); color: var(--accent-light); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---------- Timeline (About) ---------- */
.timeline { display: flex; flex-direction: column; gap: 28px; max-width: 700px; margin: 0 auto; }
.timeline-item { display: flex; gap: 20px; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); margin-top: 8px; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-info-row:last-child { margin-bottom: 0; }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(59,130,246,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-row h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-row p, .contact-info-row a { color: var(--text-muted); font-size: 0.92rem; }
.contact-info-row a:hover { color: var(--accent-light); }

/* ---------- Portfolio ---------- */
.portfolio-card { overflow: hidden; padding: 0; display: block; cursor: pointer; }
.portfolio-thumb {
  height: 190px;
  background: var(--gradient);
  overflow: hidden;
  position: relative;
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }
.portfolio-body { padding: 24px 26px 28px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59,130,246,0.1);
  color: var(--accent-light);
  border: 1px solid rgba(59,130,246,0.25);
}

.note-banner {
  background: rgba(59,130,246,0.08);
  border: 1px dashed rgba(59,130,246,0.35);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 40px;
}

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; }
.process-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(59,130,246,0.3);
  margin-bottom: 10px;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2.2s infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 560px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Audit offer banner ---------- */
.audit-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.audit-offer::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
}
.audit-offer .price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.audit-offer .price-tag .price { color: var(--accent-light); font-weight: 700; font-size: 1.05rem; }
.audit-offer h2 { font-size: 1.6rem; margin-bottom: 10px; }
.audit-offer p { color: var(--text-muted); max-width: 520px; }
.audit-offer .audit-cta { flex-shrink: 0; }

@media (max-width: 720px) {
  .audit-offer { padding: 28px; text-align: center; justify-content: center; }
  .audit-offer p { max-width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  nav ul { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  section { padding: 56px 0; }

  nav.mobile-open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .process-grid { grid-template-columns: 1fr; }
  .cta-band { margin: 0; border-radius: 0; }
}
