/* ============================================
   NYPC Geeks - Modern Stylesheet
   ============================================ */

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

:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-hover: #f0f1f3;
  --color-text: #1a1a2e;
  --color-text-muted: #4b5163;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-cta: #15803d;
  --color-cta-hover: #166534;
  --color-border: #e2e5e9;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --container: 1120px;
  --header-h: 72px;
}

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

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

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

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

/* --- Focus Visible --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.carousel-btn:focus-visible,
.carousel-dots .dot:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

ul {
  list-style: none;
}

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

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-transform: translateZ(0);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 56px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 4px;
}

.nav-list a:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: #fff;
  color: var(--color-cta);
  box-shadow: 0 0 0 2px var(--color-cta);
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.nav-list .btn {
  color: #fff;
  background: var(--color-accent);
}

.nav-list .btn:hover {
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger .service-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.is-visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible .service-card:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible .service-card:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.is-visible .service-card:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible .service-card:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.is-visible .service-card:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.is-visible .service-card:nth-child(6) { transition-delay: 0.35s; }


/* --- Hero --- */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(22, 163, 74, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #f0f4ff 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

#hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease both;
  -webkit-text-size-adjust: 100%;
}

.accent {
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* --- Services --- */
.services {
  padding: 80px 0;
  position: relative;
  background:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,0.85) 70%, var(--color-bg) 100%);
  pointer-events: none;
}

.services > .container {
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  color: var(--color-text);
}

.service-card:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-img {
  transform: scale(1.03);
}

.service-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Reviews Carousel --- */
@keyframes scrollBinary {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.reviews {
  padding: 80px 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.reviews::before {
  content: '01001 10110 01101 00101 11010 01011 10010 11001 00110 10101 01100 11010 01001 10110 01101 00101 11010 01011';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200%;
  font-family: monospace;
  font-size: 11px;
  line-height: 2.2;
  letter-spacing: 6px;
  word-spacing: 20px;
  color: rgba(37, 99, 235, 0.04);
  word-break: break-all;
  pointer-events: none;
  will-change: transform;
  animation: scrollBinary 20s linear infinite;
}

.reviews > .container {
  position: relative;
  z-index: 1;
}

.reviews-link {
  font-weight: 600;
  font-size: 0.9rem;
}

.reviews-carousel {
  overflow: hidden;
  position: relative;
}

.reviews-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  flex: 0 0 100%;
  min-width: 0;
  padding: 40px 48px;
  text-align: center;
}

.review-stars {
  font-size: 1.5rem;
  color: #facc15;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.review-card blockquote {
  max-width: 640px;
  margin: 0 auto 20px;
}

.review-card blockquote p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
}

.review-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}

/* Expand touch target to 44px without changing visual size */
.carousel-dots .dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}

.carousel-dots .dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* --- About / 24-7 --- */
@-webkit-keyframes radarSweep {
  from { -webkit-transform: rotate(0deg) translateZ(0); transform: rotate(0deg) translateZ(0); }
  to   { -webkit-transform: rotate(360deg) translateZ(0); transform: rotate(360deg) translateZ(0); }
}
@keyframes radarSweep {
  from { transform: rotate(0deg) translateZ(0); }
  to   { transform: rotate(360deg) translateZ(0); }
}

.about {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, #f0f4ff 60%, #e8eeff 100%);
  position: relative;
  overflow: hidden;
}

/* Radar container – single positioned box for rings + sweep */
.radar-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  right: -100px;
  top: 50%;
  margin-top: -250px;
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  pointer-events: none;
}

.radar-rings {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow:
    0 0 0 60px rgba(37, 99, 235, 0.06),
    0 0 0 120px rgba(37, 99, 235, 0.04),
    0 0 0 180px rgba(37, 99, 235, 0.02);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.radar-sweep {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(37, 99, 235, 0.1) 40deg, transparent 80deg);
  -webkit-transform-origin: center center;
  transform-origin: center center;
  -webkit-animation: radarSweep 6s linear infinite;
  animation: radarSweep 6s linear infinite;
  will-change: transform;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.about-text p strong {
  color: var(--color-text);
}

.about-text .about-tagline {
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 28px;
}

.about-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.badge-img {
  max-width: 160px;
  animation: float 3s ease-in-out infinite;
}

.guarantee-img {
  max-width: 140px;
  animation-delay: 0.5s;
}

.guarantee-text {
  color: var(--color-cta);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  padding: 60px 0 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-brand img {
  height: auto;
  width: 220px;
  max-width: 100%;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links li {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding-left: 12px;
  position: relative;
}

.footer-links li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  color: var(--color-text-muted);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.social-links a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    gap: 20px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .nav-list a {
    padding: 10px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-list.is-open {
    display: flex;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .radar-bg {
    width: auto;
    height: auto;
    left: 0;
    right: 0;
    top: 50%;
    margin-top: -50%;
    aspect-ratio: 1 / 1;
  }

  .radar-rings {
    box-shadow:
      0 0 0 12vw rgba(37, 99, 235, 0.06),
      0 0 0 24vw rgba(37, 99, 235, 0.04),
      0 0 0 36vw rgba(37, 99, 235, 0.02);
  }

  .about-text .btn {
    margin: 0 auto;
  }

  .review-card {
    padding: 24px 20px;
  }

  .review-card blockquote p {
    font-size: 0.95rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

}

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

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

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger .service-card {
    opacity: 1;
    transform: none;
  }
}
