/* ===================================================
   AIMLINK — styles.css
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --dark:       #060C1A;
  --dark-2:     #0C1526;
  --dark-card:  #0F1C32;
  --blue:       #3B6EF8;
  --blue-light: #5D8AFA;
  --blue-dim:   rgba(59,110,248,0.12);
  --white:      #FFFFFF;
  --off-white:  #E8EDF7;
  --muted:      #8899BB;
  --border:     rgba(255,255,255,0.07);
  --card-border:rgba(59,110,248,0.18);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:   16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,110,248,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ---------- Section typography ---------- */
.section-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ====================================================
   NAV
   ==================================================== */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-wrap.scrolled {
  background: rgba(6,12,26,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: min(1140px, 92%);
  margin-inline: auto;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-icon { display: flex; align-items: center; }
.logo-accent { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-cta { margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-glow {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse 60% 60% at 60% 40%,
    rgba(59,110,248,0.18) 0%,
    rgba(59,110,248,0.06) 50%,
    transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1140px, 92%);
  margin-inline: auto;
  padding-block: 100px;
  max-width: 620px;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}
.hero-heading .accent { color: var(--blue); }

.hero-sub {
  color: rgba(232,237,247,0.75);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Reveal animations */
.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.7s ease forwards;
}
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   SERVICES
   ==================================================== */
.services-section {
  background: #fff;
  color: #111;
  padding-block: 100px;
}
.services-section .section-tag { color: var(--blue); }
.services-section .section-title { color: #111; }
.services-section .section-sub { color: #555; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 360px);
  gap: 28px;
  justify-content: left;
}

.card {
  background: #fff;
  border: 1.5px solid #e4e8f0;
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(32px);
}
.card.visible {
  animation: revealUp 0.6s ease forwards;
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 16px 48px rgba(59,110,248,0.12);
  transform: translateY(-4px);
}

.card-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(59,110,248,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
}
.card-text { color: #555; font-size: 0.95rem; flex: 1; }

.card-link {
  color: var(--blue);
  font-weight: 500;
  font-size: 0.9rem;
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.card-link:hover { gap: 8px; }

/* ====================================================
   WHY AIMLINK
   ==================================================== */
.why-section {
  background: var(--dark-2);
  padding-block: 100px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-item {
  background: var(--dark-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(32px);
}
.why-item.visible {
  animation: revealUp 0.6s ease forwards;
}
.why-item:hover {
  border-color: var(--card-border);
  transform: translateY(-4px);
}

.why-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
}
.why-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.why-item p { color: var(--muted); font-size: 0.9rem; }

/* ====================================================
   CTA BANNER
   ==================================================== */
.cta-section { padding-block: 40px; background: var(--dark-2); }

.cta-banner {
  background: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(59,110,248,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.cta-text p { color: var(--muted); font-size: 0.95rem; }

.cta-action { text-align: center; }
.cta-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* ====================================================
   LOGOS
   ==================================================== */
.logos-section {
  background: #fff;
  padding-block: 60px;
}
.logos-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #999;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #aab;
  letter-spacing: 0.03em;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.logo-placeholder:hover { opacity: 1; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 64px;
}

.footer-brand .logo { margin-bottom: 16px; font-size: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 24px; }

.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-btn:hover {
  background: var(--blue-dim);
  color: var(--blue-light);
  border-color: var(--card-border);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.contact-list { display: flex; flex-direction: column; gap: 14px !important; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-list li svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 24px;
  text-align: center;
}
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(6,12,26,0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open .nav-link { font-size: 1rem; padding: 10px 16px; }
  .nav-links.open + .nav-cta { display: none; }

  .hero-heading { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub br { display: none; }
  .section-sub br { display: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .cta-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .cta-icon { margin-inline: auto; }
  .cta-action { display: flex; flex-direction: column; align-items: center; }

  .logos-row { gap: 28px; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
}
.team-photo-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.team-photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  visibility: visible;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 360px);
  gap: 28px;
  justify-content: center;
}