/* ================================================
   LAYOUT.CSS — Nav, Hero, Ticker, Footer
   ANTC Website · Aytas Nextgen Tech Consultancy
   ================================================ */

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: filter 0.2s var(--ease);
  filter: brightness(1.15);
}

.nav-logo:hover .nav-logo-img {
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}

.nav-logo-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sky);
  letter-spacing: 0.18em;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  line-height: 1;
}

.nav-logo-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-logo:hover .nav-logo-brand {
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
}

.nav-logo:hover .nav-logo-sub {
  color: rgba(56, 189, 248, 0.6);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--ghost);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--sky);
  color: var(--sky);
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--sky);
  color: var(--midnight);
  transform: scale(1.02);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(56, 189, 248, 0.06),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 80% 60%,
      rgba(168, 85, 247, 0.05),
      transparent 60%
    );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Hero watermark logo — centered, large, very subtle */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 700px;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  filter: brightness(2) saturate(0) sepia(1) hue-rotate(170deg) brightness(1.5);
  z-index: 0;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.4rem 1.25rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.75);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s var(--ease) both;
  letter-spacing: 0.02em;
}

/* AYTAS abbreviation container */
.aytas-abbr {
  display: inline;
}

/* Each highlighted first letter — A Y T A S */
.aytas-letter {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--sky);
  text-shadow:
    0 0 8px rgba(56, 189, 248, 0.9),
    0 0 20px rgba(56, 189, 248, 0.5),
    0 0 40px rgba(56, 189, 248, 0.25);
  letter-spacing: 0;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--sky);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--ghost);
  animation: fadeUp 0.6s var(--ease) 0.1s both;
}

/* Ensure hero animations always resolve even if delayed */
@media (max-width: 768px) {
  .hero-badge,
  .hero-title,
  .hero-sub,
  .hero-funny,
  .hero-btns {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.line-sky {
  color: var(--sky);
}
.line-purple {
  color: var(--purple);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 640px;
  margin: 0 auto 0.75rem;
  line-height: 1.75;
  animation: fadeUp 0.6s var(--ease) 0.2s both;
}

.hero-funny {
  font-size: 0.83rem;
  color: rgba(148, 163, 184, 0.55);
  font-style: italic;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s var(--ease) 0.25s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s var(--ease) 0.3s both;
}

/* Floating cards */
.hero-float {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.hf1 {
  top: 20%;
  left: 4%;
  animation-delay: 0s;
}
.hf2 {
  top: 28%;
  right: 4%;
  animation-delay: 2s;
}
.hf3 {
  bottom: 22%;
  left: 6%;
  animation-delay: 4s;
}

.float-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  color: var(--grey);
  white-space: nowrap;
}

.float-card strong {
  color: var(--sky);
  display: block;
  font-size: 0.77rem;
  margin-bottom: 1px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey);
  font-size: 0.72rem;
  animation: fadeUp 1s var(--ease) 1s both;
  white-space: nowrap;
  z-index: 2;
}

.scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--grey);
  border-bottom: 2px solid var(--grey);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ---------- TICKER ---------- */
.ticker-wrap {
  overflow: hidden;
  background: rgba(56, 189, 248, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.ticker {
  display: flex;
  animation: tick 36s linear infinite;
}

.ticker span {
  flex-shrink: 0;
  padding: 0 2.5rem;
  font-size: 0.78rem;
  color: var(--grey);
  white-space: nowrap;
}

.ticker span em {
  color: var(--sky);
  font-style: normal;
  font-weight: 600;
}

/* ---------- FOOTER ---------- */
footer {
  background: #070f1c;
  border-top: 1px solid var(--border);
  padding: 2.75rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Watermark logos — absolute positioned at each end */
.footer-watermarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

.footer-wm {
  position: absolute;
  bottom: -5%;
  width: 220px;
  opacity: 0.09;
  filter: brightness(2) saturate(0) sepia(1) hue-rotate(170deg) brightness(1.4);
}

.footer-wm-left {
  left: -10px;
  transform: scaleX(-1);
}
.footer-wm-right {
  right: -10px;
  transform: scaleX(-1);
}

/* Content sits above the watermarks */
.footer-content {
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  filter: brightness(1);
  opacity: 0.85;
  transition: all 0.2s var(--ease);
}

.footer-logo-img:hover {
  filter: brightness(1.15);
  opacity: 1;
}

.footer-tag {
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--sky);
}

.footer-copy {
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.32);
}

.footer-egg {
  font-size: 0.72rem;
  color: rgba(168, 85, 247, 0.36);
  margin-top: 0.45rem;
  font-style: italic;
}

.footer-egg a {
  color: rgba(168, 85, 247, 0.52);
  text-decoration: none;
}

/* ================================================
   MOBILE NAV — Hamburger + Slide Drawer
   ================================================ */

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s var(--ease);
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--grey);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  transform-origin: center;
}

.hamburger:hover {
  border-color: var(--sky);
}

.hamburger:hover span {
  background: var(--sky);
}

/* Open state — X animation */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--sky);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--sky);
}

/* Slide-in drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 80vw);
  background: #0d1829;
  border-left: 1px solid var(--border);
  z-index: 200;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
  visibility: hidden;
  /* always in DOM — shown/hidden via transform + visibility */
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mnl {
  display: block;
  padding: 0.9rem 0;
  color: var(--grey);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.mnl:hover {
  color: var(--sky);
  padding-left: 0.4rem;
}

.mnl-cta {
  margin-top: 1.25rem;
  border-bottom: none;
  color: var(--sky);
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  text-align: center;
}

.mnl-cta:hover {
  background: var(--sky);
  color: var(--midnight);
  padding-left: 1rem;
}

/* Overlay backdrop */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 28, 0.7);
  z-index: 190;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
  opacity: 1;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 768px) {
  /* Hide desktop links & CTA */
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Tighten nav padding */
  nav {
    padding: 0.85rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav-logo-img {
    height: 40px;
  }
  .nav-logo-brand {
    font-size: 0.95rem;
  }
  .nav-logo-sub {
    font-size: 0.5rem;
  }
}