@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

/* =============================================
   AGENZO PRO — Design System
   Dark premium: charcoal + electric indigo + soft gold
   ============================================= */

:root {
  --bg:          #0c0e14;
  --bg-2:        #111420;
  --bg-card:     #161a27;
  --bg-card-2:   #1c2133;
  --accent:      #6366f1;
  --accent-2:    #818cf8;
  --accent-glow: rgba(99,102,241,0.25);
  --accent-soft: rgba(99,102,241,0.10);
  --gold:        #f0b429;
  --gold-soft:   rgba(240,180,41,0.12);
  --text:        #d1d5e8;
  --text-muted:  #6b7280;
  --text-dim:    #4b5563;
  --cream:       #f1f5ff;
  --border:      rgba(99,102,241,0.15);
  --border-soft: rgba(255,255,255,0.06);
  --font:        'Inter', system-ui, sans-serif;
  --font-display:'Sora', system-ui, sans-serif;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
  --transition:  .28s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--cream); }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--text-muted); line-height: 1.75; }

/* ---- Layout ---- */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 70px 0; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-primary:hover { background: #4f52d8; box-shadow: 0 8px 32px rgba(99,102,241,.5); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); background: var(--accent-soft); }

.btn-gold {
  background: var(--gold);
  color: #0c0e14;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(240,180,41,.25);
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn svg { width: 16px; height: 16px; }

/* ---- Navbar ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(12,14,20,.92);
  backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,.5);
}

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

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 18px; height: 18px; color: #fff; }
.logo-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--cream); }
.logo-text span { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
  background: rgba(255,255,255,.06);
}

.nav-right { display: flex; align-items: center; gap: 12px; }

#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 0 10px;
}
#hamburger span {
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(17,20,32,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  padding: 24px;
  z-index: 999;
}
#mobile-menu.open { display: block; }
#mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
#mobile-menu a {
  display: block;
  padding: 11px 14px;
  color: var(--text);
  font-weight: 500;
  border-radius: 9px;
  transition: var(--transition);
}
#mobile-menu a:hover { background: var(--bg-card); color: var(--cream); }

/* ---- Page Hero ---- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.page-hero-label { margin-bottom: 14px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; max-width: 560px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 28px;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span { color: var(--accent-2); }

/* ---- Cards base ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(99,102,241,.08);
  transform: translateY(-4px);
}

/* ---- Icon box ---- */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-box svg { width: 24px; height: 24px; color: var(--accent-2); }
.icon-box.gold { background: var(--gold-soft); border-color: rgba(240,180,41,.2); }
.icon-box.gold svg { color: var(--gold); }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.badge.gold { background: var(--gold-soft); border-color: rgba(240,180,41,.25); color: var(--gold); }
.badge.green { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.2); color: #4ade80; }

/* ---- Portfolio filters ---- */
.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pf-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: .84rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
}
.pf-btn:hover,
.pf-btn.active {
  background: var(--accent-soft);
  border-color: var(--border);
  color: var(--accent-2);
}

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--font);
  font-size: .97rem;
  font-weight: 600;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent-2); }
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--accent-2);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 22px; font-size: .93rem; line-height: 1.8; }

/* ---- Contact form ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--cream);
  font-family: var(--font);
  font-size: .93rem;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--bg-2); }
.form-success {
  display: none;
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 10px;
  color: #4ade80;
  font-size: .9rem;
  font-weight: 600;
}

/* ---- Footer ---- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand p { font-size: .9rem; margin-top: 16px; max-width: 280px; line-height: 1.75; }
.footer-col h4 { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: .82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text-dim); transition: color var(--transition); margin-left: 20px; }
.footer-bottom a:hover { color: var(--accent-2); }

/* ---- Scroll top ---- */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 4px 20px var(--accent-glow);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { transform: translateY(-3px); }

/* ---- Animate on scroll ---- */
.animate { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.animate.visible { opacity: 1; transform: none; }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border-soft); margin: 0; }

/* ---- Tag ---- */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid var(--border);
}
.tag.brand { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.2); color: #c084fc; }
.tag.web   { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.18); color: #4ade80; }
.tag.app   { background: var(--gold-soft); border-color: rgba(240,180,41,.2); color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-links, .nav-right .btn { display: none; }
  #hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
