/* =========================================================
   CYNOCOR - GLOBAL STYLESHEET (Apple-Inspired Premium Light)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-base: #F5F5F7;
  --bg-surface: rgba(255, 255, 255, 0.7);
  --bg-surface-solid: #FFFFFF;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --accent: #0066CC;
  --accent-glow: rgba(0, 102, 204, 0.15);
  --border: rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-primary:hover {
  background: #000000;
  transform: scale(1.02);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-ghost:hover {
  background: var(--bg-surface-solid);
  border-color: var(--text-secondary);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Covers all properties toggled by the hero scroll behaviour */
  transition:
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-inner {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  height: 64px;
  gap: 20px;
}

.brand {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 150px;
  height: 64px;
}

.brand img {
  display: block;
  height: 32px;
  width: 120px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-cta {
  margin-left: 0;
  justify-self: end;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
  transition: color 0.2s var(--ease);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 16px;
}

.nav-cta {
  font-size: 0.875rem;
  background: var(--text-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-cta:hover {
  background: #000;
  transform: scale(1.02);
}

/* Footer */
footer {
  background: #111112;
  color: #F5F5F7;
  padding: 80px 0 40px;
}

footer .brand {
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand {
  width: 210px;
  height: 72px;
}

.footer-brand .brand img {
  width: 180px;
  height: 48px;
}

.footer-brand p {
  color: #86868B;
  font-size: 0.875rem;
  margin-top: 16px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a,
.footer-col p {
  color: #86868B;
  font-size: 0.875rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #86868B;
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;  
  height: 24px;
  color: #86868B;
  transition: color 0.2s var(--ease);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-social a:hover {
  color: #37d7ff;
}

/* Page Hero */
.page-hero {
  position: relative;
  padding: 90px 0 56px;
  text-align: center;
  background:
    radial-gradient(34% 42% at 92% 10%, rgba(92, 144, 255, 0.28), transparent 60%),
    radial-gradient(26% 32% at 78% 65%, rgba(58, 102, 220, 0.18), transparent 64%),
    radial-gradient(20% 24% at 18% 26%, rgba(58, 112, 255, 0.10), transparent 62%),
    linear-gradient(90deg, #020810 0%, #050e1a 16%, #081a2d 36%, #050d1b 62%, #02080f 100%);
  border-bottom: 1px solid rgba(126, 170, 255, 0.12);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(120, 170, 255, 0.12), rgba(120, 170, 255, 0.03) 25%, rgba(0, 0, 0, 0) 38%, rgba(98, 149, 255, 0.10) 68%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 10, 18, 0.18) 100%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: rgba(175, 204, 255, 0.9);
  margin-bottom: 18px;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
  max-width: 860px;
  margin: 0 auto 18px;
  color: #edf4ff;
}

.page-hero .lead {
  font-size: clamp(0.98rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: rgba(219, 229, 255, 0.82);
  max-width: 700px;
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-surface-solid);
}

/* Cards */
.card {
  background: var(--bg-surface-solid);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 102, 204, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.service-card {
  overflow: hidden;
  padding: 0;
}

.service-card .service-visual {
  height: 210px;
  overflow: hidden;
  background: #e9e9ed;
}

.service-card .service-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .service-body {
  padding: 28px 24px 24px;
}

.service-card .service-body h3 {
  margin-bottom: 10px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* Timeline (About) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 600px;
  margin: 0 auto;
  border-left: 2px solid var(--border);
  padding-left: 40px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -47px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 4px solid var(--bg-base);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand .brand {
    width: 180px;
    height: 64px;
  }

  .footer-brand .brand img {
    width: 155px;
    height: 42px;
  }

  
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

@media (max-width: 768px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
/* Mobile Navigation Overlay */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  cursor: pointer;
  z-index: 200;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 16px;
  }

  .brand {
    width: auto;
    height: auto;
  }

  .brand img {
    height: 28px;
    width: auto;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 980px;
    background: var(--text-primary);
    color: #FFFFFF;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
  }

  .nav-cta:active {
    transform: scale(0.96);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 150;
    display: flex !important;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.625rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .nav-links a:active {
    transform: scale(0.95);
  }

  .nav-links a.active {
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
  }

  .nav-links a.active::after {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    margin: 6px auto 0;
  }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-alt { padding: 60px 0; }
  .page-hero { padding: 110px 0 52px; }
  .page-hero h1 { margin-bottom: 16px; }
  .page-hero .lead { font-size: 1rem; }

  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.75rem !important; }

  .container { padding: 0 18px; }

  .section-header {
    margin: 0 auto 40px;
  }

  /* ── Grids ────────────────────────────────── */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ── Cards ────────────────────────────────── */
  .card {
    padding: 28px 24px;
    border-radius: 16px;
  }

  .grid-4 .card {
    padding: 22px;
  }

  /* ── Services Grid ───────────────────────── */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card .service-visual {
    height: 180px;
  }

  .service-card .service-body {
    padding: 20px 18px 18px;
  }

  /* ── Projects ────────────────────────────── */
  .project-body {
    padding: 22px 18px 18px;
  }

  .filter-bar {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
  }

  /* ── Timeline ────────────────────────────── */
  .timeline {
    padding-left: 24px;
    gap: 28px;
  }

  .timeline-item::before {
    left: -31px;
    width: 10px;
    height: 10px;
  }

  /* ── Footer ──────────────────────────────── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand .brand {
    width: 180px;
    height: 64px;
  }

  .footer-brand .brand img {
    width: 155px;
    height: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-social {
    padding-right: 0;
    justify-content: center;
  }

  footer {
    padding: 56px 0 32px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem !important; }
  h2 { font-size: 1.5rem !important; }

  .container { padding: 0 14px; }

  .page-hero { padding: 100px 0 44px; }
  .page-hero .lead { font-size: 0.9375rem; }

  .section { padding: 48px 0; }

  .card { padding: 22px 18px; }

  .btn-primary,
  .btn-ghost {
    padding: 11px 20px;
    font-size: 0.875rem;
  }

  .service-card .service-visual { height: 160px; }

  .section-header { margin: 0 auto 32px; }
  .section-header h2 { margin-bottom: 12px; }
  .section-header p { font-size: 0.9375rem; }
}

/* Team Cards specific */
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.role {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.grid-4 .card {
  padding: 24px;
}
.grid-4 .card h3 {
  font-size: 1.1rem;
}
.grid-4 .card p {
  font-size: 0.85rem;
}
