/* ===================================================
   AAZ Information Technology — style.css
   Plain CSS, no frameworks. CSS variables for theming.
   =================================================== */

/* ---------- Theme variables ---------- */
:root {
  --bg:        #0b1020;   /* deep navy background */
  --bg-2:      #0e1530;   /* alternating section bg */
  --surface:   #131c3a;   /* card surface */
  --surface-2: #182246;   /* hover surface */
  --border:    rgba(120, 160, 255, 0.12);
  --border-2:  rgba(120, 160, 255, 0.28);

  --text:      #e8edff;   /* main text */
  --muted:     #9aa6cc;   /* secondary text */

  --accent:    #22d3ee;   /* cyan */
  --accent-2:  #3b82f6;   /* blue */
  --grad:      linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);

  --shadow:    0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 18px 40px rgba(34, 211, 238, 0.18);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --header-h:  72px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

h1, h2, h3, h4, .logo-text { font-family: 'Poppins', sans-serif; line-height: 1.2; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #08111f; box-shadow: 0 8px 24px rgba(34,211,238,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34,211,238,0.4); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); border-color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.header.scrolled { background: rgba(11,16,32,0.92); border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad); color: #08111f; box-shadow: 0 6px 18px rgba(34,211,238,0.35);
}
.logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; }
.logo-accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 800; letter-spacing: 1px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { position: relative; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .2s ease; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta { padding: 9px 20px; }

/* mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(59,130,246,0.22), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(34,211,238,0.16), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #0a0f22 100%);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%, 100% 50%, 0 0; }
  50%  { background-position: 100% 50%, 0% 50%, 0 0; }
  100% { background-position: 0% 50%, 100% 50%, 0 0; }
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(120,160,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--border-2); border-radius: 999px;
  background: rgba(34,211,238,0.06); margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34,211,238,0.15); }

/* Hero shield visual */
.hero-visual { display: flex; justify-content: center; }
.shield-wrap { position: relative; width: min(360px, 80%); }
.shield-svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(34,211,238,0.2)); animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.float-chip {
  position: absolute; font-size: 0.8rem; font-weight: 600; font-family: 'Poppins', sans-serif;
  background: rgba(19,28,58,0.9); border: 1px solid var(--border-2); color: var(--text);
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.chip-1 { top: 8%; left: -14%; animation: floatY 5s ease-in-out infinite; }
.chip-2 { top: 44%; right: -20%; animation: floatY 7s ease-in-out infinite; }
.chip-3 { bottom: 6%; left: -8%; animation: floatY 6.5s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: 10px 0 14px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .28s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-accent); border-color: transparent; background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(34,211,238,0.1); color: var(--accent); margin-bottom: 20px;
  transition: transform .28s ease, background .28s ease;
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); background: var(--grad); color: #08111f; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.about-text p { color: var(--muted); margin-top: 16px; }
.about-text p:first-of-type { margin-top: 24px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: transform .25s ease, border-color .25s ease;
}
.stat:hover { transform: translateY(-5px); border-color: var(--border-2); }
.stat-num { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); font-size: 0.9rem; }

/* ---------- Why Choose Us ---------- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.feature-icon {
  flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #08111f;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-info {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px;
}
.info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.info-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(34,211,238,0.1); color: var(--accent);
}
.info-icon svg { width: 22px; height: 22px; }
.info-row h4 { font-size: 1rem; margin-bottom: 4px; }
.info-row p { color: var(--muted); font-size: 0.96rem; }
.contact-call { margin-top: 8px; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 0.96rem; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6b769e; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.form-success {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(34,211,238,0.1); border: 1px solid var(--border-2); color: var(--text); font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer { background: #080d1c; border-top: 1px solid var(--border); padding: 48px 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.footer-contact p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.footer-contact { text-align: right; max-width: 480px; }
.link { color: var(--accent); transition: color .2s ease; }
.link:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; }
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 16px; }
  .shield-wrap { width: min(280px, 70%); }
  .about-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }

  /* mobile nav */
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(11,16,32,0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 24px;
  }
  .nav.open { max-height: 420px; padding: 8px 24px 24px; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 14px; width: 100%; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-info, .contact-form { padding: 26px; }
  .float-chip { font-size: 0.72rem; padding: 6px 10px; }
  .chip-1 { left: -4%; } .chip-2 { right: -6%; } .chip-3 { left: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
