/* ==========================================================================
   AvelMor AI Lab — Stylesheet
   ========================================================================== */

/* --- Reset & Base ------------------------------------------------------- */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111111;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- CSS Custom Properties ---------------------------------------------- */

:root {
  --navy:  #0a1628;
  --white: #ffffff;
  --black: #111111;
  --cobalt: #1a6fe8;
  --red:   #c41e3a;
  --nav-height: 112px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: #ffffff;
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(10, 22, 40, 0.07);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 100px;
  width: auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

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

.nav-links a {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--cobalt);
}

.nav-links a:hover::after {
  width: 100%;
}


/* --- Hamburger (mobile) ------------------------------------------------- */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}


.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile menu overlay ----------------------------------------------- */

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid rgba(10, 22, 40, 0.07);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
  z-index: 999;
  flex-direction: column;
  padding: 1.25rem 0 1.75rem;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  color: var(--navy);
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-mobile-menu a:hover {
  color: var(--cobalt);
  background: rgba(10, 22, 40, 0.04);
}

/* ==========================================================================
   HERO
   ========================================================================== */

#hero {
  height: 100vh;
  min-height: 600px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background pattern */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 111, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 111, 232, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Cobalt glow behind headline + radial fade at edges */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(26, 111, 232, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, var(--navy) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

/* Red accent tab above headline */
.hero-red-accent {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 1.5rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--cobalt);
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 400;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-indicator svg {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ==========================================================================
   FOUR PILLARS
   ========================================================================== */

#pillars {
  background: var(--white);
  padding: 6rem 2rem;
}

.pillars-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.pillar {
  display: flex;
  flex-direction: column;
}

.pillar-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.pillar-divider {
  width: 32px;
  height: 3px;
  background: var(--red);
  margin: 0.75rem 0;
  flex-shrink: 0;
}

.pillar-service {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cobalt);
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.pillar-description {
  font-size: 0.925rem;
  color: #333;
  line-height: 1.75;
}

/* ==========================================================================
   TRUST SIGNALS
   ========================================================================== */

#trust {
  background: var(--navy);
  padding: 5rem 2rem;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-strip {
  margin-bottom: 3.5rem;
}

.trust-strip:last-child {
  margin-bottom: 0;
}

.trust-strip-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1.5rem;
}

.trust-strip-divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-bottom: 1.75rem;
  opacity: 0.7;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0;
}

.trust-item {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.trust-sep {
  width: 1px;
  height: 1.1em;
  background: var(--red);
  margin: 0 1.5rem;
  opacity: 0.55;
  flex-shrink: 0;
  align-self: center;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

#about {
  background: var(--white);
  padding: 6rem 2rem;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-body {
  max-width: 800px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: #1a1a1a;
  line-height: 1.85;
}

.about-body p + p {
  margin-top: 1.5rem;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

#contact {
  background: var(--navy);
  padding: 6rem 2rem;
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-inner .section-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-intro {
  color: rgba(255,255,255,0.62);
  font-size: 1rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.contact-item-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.contact-item-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.contact-email {
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: rgba(255, 255, 255, 0.7);
}

.contact-divider {
  width: 1px;
  height: 28px;
  background: rgba(196, 30, 58, 0.45);
}

.contact-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-linkedin-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.45);
}

.contact-linkedin-btn svg {
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.75rem 2rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
  }
}

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

  .nav-hamburger {
    display: flex;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .trust-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .trust-sep {
    display: none;
  }

  .trust-item {
    font-size: 1.1rem;
  }

  .contact-options {
    gap: 1rem;
  }

  #pillars,
  #about {
    padding: 4.5rem 1.5rem;
  }

  #trust,
  #contact {
    padding: 4.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.1rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
  }
}
