/* ============================================
   SITEE — Custom Styles
   Premium dark-mode teaser website
   ============================================ */

/* --- Self-hosted Inter font --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Base & Variables --- */
:root {
  --bg-page: #0c1018;
  --bg-section: #111827;
  --bg-card: #162036;
  --border-subtle: rgba(130, 170, 220, 0.08);
  --border-hover: rgba(130, 170, 220, 0.18);
  --text-primary: #e6ecf4;
  --text-secondary: #7e90aa;
  --accent: #4da8ff;
  --accent-dim: rgba(77, 168, 255, 0.10);
  --accent-glow: rgba(77, 168, 255, 0.22);
  --silver: #b8c4d6;
  --silver-glow: rgba(184, 196, 214, 0.12);
}

/* --- Smooth scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Selection --- */
::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}

/* --- Page background atmosphere --- */
body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* --- Hero glow layers --- */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: transform;
}

.hero-glow--primary {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(77, 168, 255, 0.18) 0%, rgba(77, 168, 255, 0.06) 40%, transparent 70%);
  top: -250px;
  left: -200px;
}

.hero-glow--secondary {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(53, 128, 212, 0.14) 0%, rgba(53, 128, 212, 0.04) 45%, transparent 70%);
  bottom: -150px;
  right: -180px;
}

.hero-glow--tertiary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 196, 214, 0.08) 0%, transparent 65%);
  top: 40%;
  right: 15%;
}

.hero-glow.is-visible {
  opacity: 1;
}

/* --- Silver flash / shimmer on hero --- */
.silver-flash {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(200, 215, 235, 0.0) 35%,
    rgba(200, 215, 235, 0.04) 45%,
    rgba(220, 230, 245, 0.07) 50%,
    rgba(200, 215, 235, 0.04) 55%,
    rgba(200, 215, 235, 0.0) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* --- Navigation --- */
.nav-wrapper {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(14, 17, 23, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Cards --- */
.sitee-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.sitee-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 1px var(--border-hover);
}

/* --- Card sheen / reflective sweep --- */
.sitee-card .card-sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.015) 30%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.015) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* --- Card icon --- */
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

/* --- Team member card --- */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--silver-glow));
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- Section divider subtle glow --- */
.section-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.5;
}

/* --- Hero character animation --- */
.hero-char {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-accent-line .hero-char {
  text-shadow: 0 0 0px transparent;
  transition: text-shadow 0.4s ease;
}

.hero-accent-line {
  white-space: nowrap;
}

/* Accent characters get a subtle glow once revealed */
.hero-accent-line .hero-char[style*="opacity: 1"],
.hero-accent-line .hero-char[style*="opacity:1"] {
  text-shadow: 0 0 20px rgba(77, 168, 255, 0.25);
}

/* Subtext */
.hero-subtext {
  position: relative;
  min-height: 1.8em;
}

#hero-subtext-inner {
  display: inline-block;
}

/* Blinking cursor after the accent line */
.hero-accent-line::after {
  content: '|';
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  opacity: 0;
  margin-left: 2px;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.7; }
}

/* --- Scroll hint at bottom of hero --- */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
}

.scroll-hint-text {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  opacity: 0.5;
}

.scroll-hint-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0.7; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 0.4; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 0.4; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* --- CTA Button --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--accent), #3580d4);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* --- Section headers --- */
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-subheading {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 600px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 17, 23, 0.6);
}

/* --- Accessibility: reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-glow {
    opacity: 0.6 !important;
    transition: none !important;
  }

  .sitee-card:hover,
  .team-card:hover {
    transform: none;
  }

  .card-sheen {
    display: none !important;
  }
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  .hero-glow--primary {
    width: 350px;
    height: 350px;
  }

  .hero-glow--secondary {
    width: 250px;
    height: 250px;
  }

  .sitee-card {
    padding: 1.5rem;
  }
}

/* --- Logo accent --- */
.logo-accent {
  color: var(--accent);
}

/* --- Logo icon --- */
.logo-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 0px transparent);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.logo-link:hover .logo-icon {
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transform: scale(1.06);
}

/* Subtle breathing glow on logo icon — very restrained */
@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(77, 168, 255, 0.0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(77, 168, 255, 0.18)); }
}

.logo-icon--animate {
  animation: logo-breathe 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .logo-icon--animate {
    animation: none;
  }
  .logo-link:hover .logo-icon {
    filter: none;
    transform: none;
  }
}

/* --- Scroll reveal helper --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
