@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Space+Grotesk:wght@300;400;600&display=swap');

:root {
  --bg-color: #030303;
  --bg-glow: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #444444;
  --accent-border: rgba(255, 255, 255, 0.15);
  --accent-hover: rgba(255, 255, 255, 0.3);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle premium radial glow behind content */
body::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, var(--bg-glow) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

/* Minimalist noise texture overlay for high-end look */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
  pointer-events: none;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  width: 100%;
}

/* Staggered fade-up animation */
.container > * {
  opacity: 0;
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.header {
  position: absolute;
  top: 3rem;
  left: 3.5rem;
  z-index: 50;
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
}

.message-wrapper {
  animation-delay: 0.5s;
  margin-bottom: 5rem;
}

.action-wrapper {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-logo {
  display: block;
  max-width: 100px;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.05));
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  image-rendering: pixelated; /* Ensures pixel art stays sharp */
}

.brand-wrapper:hover .brand-logo {
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  transition: color 0.5s ease;
}

.brand-wrapper:hover .brand {
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.brand::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 12px;
  height: 2px;
  background-color: var(--text-muted);
  transition: all 0.5s ease;
}

.brand-wrapper:hover .brand::after {
  width: 100%;
  background-color: var(--text-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.message {
  font-size: 2.25rem;
  line-height: 1.4;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.message .highlight {
  color: var(--text-primary);
  font-weight: 400;
}

.message .subtext {
  display: block;
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.email-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 1.25rem 2.5rem;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.email-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.7s ease;
}

.email-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-hover);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.email-btn:hover::before {
  left: 100%;
}

.email-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.email-btn:hover .email-icon {
  opacity: 1;
}

@media (max-width: 768px) {
  .message {
    font-size: 1.75rem;
  }
  .message .subtext {
    font-size: 1.1rem;
  }
  .container {
    padding: 1.5rem;
  }
}


/* ==========================================================================
   Security page (/security) — every rule is scoped to new classes so the
   landing page keeps its exact look
   ========================================================================== */

.page-security,
.page-onepage {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Keep the glow pinned to the viewport on a scrolling page */
.page-security::before,
.page-onepage::before {
  position: fixed;
}

.page-security .header {
  position: relative;
  top: 0;
  left: 0;
  padding: 3rem 3.5rem 0;
}

.brand-link {
  text-decoration: none;
  width: fit-content;
}

.security {
  max-width: 1040px;
  margin: 0 auto;
  padding: 5rem 2rem 8rem;
}

.security-hero {
  animation-delay: 0.3s;
  margin-bottom: 5rem;
}

.entity-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 2rem auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.entity-line::before,
.entity-line::after {
  content: '';
  flex-shrink: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent-border);
}

.security-intro {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  animation-delay: 0.55s;
}

.member-card,
.roe {
  position: relative;
  border: 1px solid var(--accent-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Faint highlight line along the top edge, brightened on hover */
.member-card::before,
.roe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.member-card:hover,
.roe:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--accent-hover);
}

.member-card:hover::before,
.roe:hover::before {
  opacity: 1;
}

.member-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
}

.member-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.member-initials {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover .member-initials {
  border-color: var(--accent-hover);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.member-name {
  margin-bottom: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.member-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.member-bio {
  flex-grow: 1;
  margin-bottom: 2.25rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

.member-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.contact-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.email-btn--sm {
  font-size: 0.9rem;
  padding: 0.9rem 1.75rem;
}

.roe {
  padding: 3rem;
  text-align: left;
  animation-delay: 0.8s;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Same short underline as the brand mark */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 12px;
  height: 2px;
  background-color: var(--text-muted);
  transition: all 0.5s ease;
}

.roe:hover .section-title::after {
  width: 48px;
  background-color: var(--text-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.roe-text {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
}

.roe-text .highlight {
  color: var(--text-primary);
  font-weight: 400;
}

@media (max-width: 900px) {
  .team {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-security .header {
    padding: 2rem 1.5rem 0;
  }
  .page-security .brand-logo {
    max-width: 80px;
  }
  .security {
    padding: 3.5rem 1rem 5rem;
  }
  .security-hero {
    margin-bottom: 3.5rem;
  }
  .entity-line {
    letter-spacing: 0.15em;
  }
  .entity-line::before,
  .entity-line::after {
    display: none;
  }
  .security-intro {
    font-size: 1.05rem;
  }
  .member-card,
  .roe {
    padding: 1.75rem;
    border-radius: 22px;
  }
  .member-name {
    font-size: 1.3rem;
  }
  .email-btn--sm {
    max-width: 100%;
    padding: 0.85rem 1.25rem;
    overflow-wrap: anywhere;
  }
  .section-title {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
  }
}

/* Keep the e-mail addresses on one line on the narrowest phones */
@media (max-width: 360px) {
  .email-btn--sm {
    font-size: 0.8rem;
    letter-spacing: 0;
    padding: 0.85rem 1rem;
    gap: 8px;
  }
}


/* ==========================================================================
   One-page homepage — the first screen keeps the original centered layout,
   the security section follows below it
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Rows: header space / message / action / scroll cue. The two 1fr rows
   share the free space equally, so the content stays centered exactly as
   before, and the first row never gets shorter than the header. */
.landing {
  display: grid;
  grid-template-rows: minmax(7rem, 1fr) auto auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
}

.landing .message-wrapper {
  grid-row: 2;
}

.landing .action-wrapper {
  grid-row: 3;
}

.scroll-cue {
  grid-row: 4;
  align-self: end;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.4s ease;
  animation-delay: 1.1s;
}

/* Offset the trailing letter-spacing so the label sits centered over the line */
.scroll-cue-label {
  margin-right: -0.3em;
}

.scroll-cue:hover {
  color: var(--text-primary);
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 48px;
  background-color: var(--accent-border);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--text-primary));
  animation: scrollCue 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollCue {
  0% {
    top: -50%;
  }
  100% {
    top: 100%;
  }
}

/* Security blocks wait off-screen and fade up when scrolled to */
.page-onepage .security > * {
  animation-delay: 0.1s;
}

.reveal-pending .page-onepage .security > * {
  animation-play-state: paused;
}

.reveal-pending .page-onepage .security > .is-visible {
  animation-play-state: running;
}

@media (max-width: 768px) {
  .scroll-cue {
    padding-top: 2rem;
  }
  .scroll-cue-line {
    height: 36px;
  }
}

/* Fit contact@cybercat.com.tr on one line on small phones */
@media (max-width: 480px) {
  .landing .email-btn {
    font-size: 0.9rem;
    padding: 1.1rem 1.75rem;
  }
}

@media (max-width: 360px) {
  .landing .email-btn {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 1rem 1.25rem;
    gap: 10px;
  }
}
