:root {
  /* Subpage theming aliases (keeps global palette intact) */
  --page-hero-gradient: radial-gradient(circle at 18% 20%, rgba(0, 229, 255, 0.12), transparent 38%),
                        radial-gradient(circle at 82% 12%, rgba(111, 0, 255, 0.12), transparent 34%),
                        linear-gradient(145deg, #050506 0%, #0a0a0f 55%, #050506 100%);
  --page-surface: rgba(255, 255, 255, 0.04);
  --page-border: rgba(255, 255, 255, 0.08);
  --page-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.14'/></svg>");
}

/* Shared page hero */
.page-hero {
  position: relative;
  padding: clamp(96px, 12vw, 160px) clamp(24px, 5vw, 80px);
  background: var(--page-hero-gradient);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: var(--page-noise);
  opacity: 0.5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0) 0%, rgba(5, 5, 6, 0.6) 80%, #050506 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.8;
}

.neon-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.8), rgba(111, 0, 255, 0.8));
  opacity: 0.7;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.24);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

/* Vision layout */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.vision-block {
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.vision-block:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 229, 255, 0.18);
}

.vision-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.vision-block h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.vision-block p {
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Mission cards */
.mission-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.mission-card {
  position: relative;
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 16px;
  padding: 18px;
  min-height: 170px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.mission-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(111, 0, 255, 0.06));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 229, 255, 0.17);
}

.mission-card:hover::after {
  opacity: 1;
}

.mission-card h3 {
  position: relative;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.mission-card h3::before {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -10px;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.9), rgba(111, 0, 255, 0.8));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.mission-card p {
  margin-top: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* About blocks */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.about-block {
  position: relative;
  padding: 20px;
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.about-block:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62), 0 0 26px rgba(0, 229, 255, 0.18);
}

.about-block h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.about-block p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 20px 0;
}

/* Buttons on subpages */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(111, 0, 255, 0.16));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  transition: 0.24s ease;
}
.last-nav a.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    padding: 18px 25px;
    text-decoration: none;
}

.last-nav a.btn span {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap; /* taşmayı engeller */
}

/* ----- Responsive (Mobil) ----- */
@media (max-width: 480px) {
    .last-nav a.btn {
        width: 90%;           /* buton daha geniş olsun */
        padding: 12px 18px;   /* daha ince padding */
    }

    .last-nav a.btn span {
        font-size: 0.85rem;   /* yazı küçülsün */
    }
}

@media (max-width: 768px) {
    .last-nav a.btn {
        width: 85%;
        padding: 15px 20px;
    }

    .last-nav a.btn span {
        font-size: 0.95rem;
    }
}


.last-nav a.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    padding: 18px 25px;
    text-decoration: none;
}

.last-nav a.btn span {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    /* taşmayı engeller */
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.22);
}

/* Footer overrides for requested links */
footer .footer-column ul li a {
  color: var(--text-secondary);
}

footer .footer-column ul li a:hover {
  color: var(--text-primary);
}

footer .social-media a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

footer .social-media a:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.6);
}

/* Micro animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 1.1s cubic-bezier(.77,.2,.32,1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding: 80px 20px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .mission-grid,
  .vision-grid,
  .about-grid {
    gap: 14px;
  }
}

/* CONTACT FORM STYLES */
.contact-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
  text-align: center;
}

.contact-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--highlight-cyan);
  text-shadow: 0 0 32px var(--highlight-cyan);
  margin-bottom: 1em;
}

.contact-info-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-surface);
  border-radius: 20px;
  box-shadow: 0 16px 48px 0 rgba(0,0,0,0.7);
  padding: 2.5em;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.3em;
}

.contact-form input,
.contact-form textarea {
  background: #0A0A0C;
  color: #fff;
  border: 1.5px solid var(--border-surface);
  border-radius: 12px;
  padding: 0.95em 1.2em;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7a7d8a;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--highlight-cyan);
  background: #0F0F14;
  box-shadow: 0 0 16px 0 rgba(0,229,255,0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  background: linear-gradient(90deg, var(--highlight-cyan) 0%, var(--highlight-purple) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 8px 24px 0 rgba(0,229,255,0.25);
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form button:hover {
  box-shadow: 0 12px 32px 0 var(--highlight-cyan), 0 0 16px 0 var(--highlight-purple);
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--highlight-purple) 0%, var(--highlight-cyan) 100%);
}

.contact-form button:active {
  transform: translateY(0);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .contact-section {
    padding: 40px 15px;
  }

  .contact-section h1 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1.8em;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }
}
