/* ===================== GLOBAL ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3c8f;
  --primary-light: #2a52bf;
  --accent: #f5a623;
  --dark: #0d1b4b;
  --light: #f0f4ff;
  --white: #ffffff;
  --text: #2d3748;
  --muted: #718096;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(26,60,143,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(13, 27, 75, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
}

.nav-cta:hover { background: #e09614; }
.nav-cta::after { display: none !important; }

.nav-portal {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.83rem !important;
  border: 1px solid rgba(255,255,255,0.35);
  white-space: nowrap;
  transition: all 0.2s !important;
}
.nav-portal:hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: translateY(-1px) !important;
}
.nav-portal::after { display: none !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b4b 0%, #1a3c8f 50%, #0d2d6e 100%);
  display: flex;
  align-items: center;
  padding: 80px 5% 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(42,82,191,0.3) 0%, transparent 70%);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text h1 span { color: var(--accent); }

.hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,166,35,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat { text-align: left; }
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-top: 2px; }

/* ===================== HERO IMAGE / EINSTEIN ===================== */
.hero-image-area {
  flex: 0 0 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}

.orbit-wrapper {
  position: relative;
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radial brain-glow behind photo */
.orbit-wrapper::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, rgba(26,60,143,0.25) 50%, transparent 75%);
  z-index: 3;
  animation: brainPulse 3s ease-in-out infinite;
}

@keyframes brainPulse {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%       { transform: scale(1.1); opacity: 1;   }
}

/* Profile photo */
.profile-img-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #1a3c8f 100%);
  padding: 4px;
  z-index: 5;
  flex-shrink: 0;
  box-shadow:
    0 0 0 8px rgba(245,166,35,0.18),
    0 0 50px rgba(245,166,35,0.25),
    0 0 90px rgba(26,60,143,0.5);
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

/* ===================== EİNSTEİN BALON FORMÜLLER ===================== */
.formula-item {
  position: absolute;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: var(--fs, 0.8rem);
  font-weight: 800;
  padding: 6px 15px;
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.28);
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.18), 0 6px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  transform-origin: center center;
  animation: bubblePop var(--dur, 7s) ease-in-out var(--delay, 0s) infinite both;
}

.formula-item.accent {
  color: var(--accent);
  background: rgba(245,166,35,0.14);
  border-color: rgba(245,166,35,0.45);
  text-shadow: 0 0 14px rgba(245,166,35,0.7);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.2), 0 6px 20px rgba(245,166,35,0.25);
}

.formula-item.green {
  color: #68d391;
  background: rgba(72,187,120,0.12);
  border-color: rgba(72,187,120,0.4);
  text-shadow: 0 0 14px rgba(72,187,120,0.6);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.15), 0 6px 20px rgba(72,187,120,0.2);
}

.formula-item.blue {
  color: #90cdf4;
  background: rgba(99,179,237,0.12);
  border-color: rgba(99,179,237,0.38);
  text-shadow: 0 0 14px rgba(99,179,237,0.6);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.15), 0 6px 20px rgba(99,179,237,0.2);
}

@keyframes bubblePop {
  0%   { transform: rotate(var(--rot,0deg)) scale(0);    opacity: 0;    filter: blur(3px); }
  12%  { transform: rotate(var(--rot,0deg)) scale(1.18); opacity: 1;    filter: blur(0);   }
  20%  { transform: rotate(var(--rot,0deg)) scale(0.93); opacity: 0.96; filter: blur(0);   }
  28%  { transform: rotate(var(--rot,0deg)) scale(1);    opacity: 0.92; filter: blur(0);   }
  62%  { transform: rotate(calc(var(--rot,0deg) + 5deg)) scale(1.05) translateY(-8px);  opacity: 0.88; }
  78%  { transform: rotate(calc(var(--rot,0deg) - 2deg)) scale(1.22) translateY(-12px); opacity: 0.4;  }
  90%  { transform: rotate(var(--rot,0deg)) scale(1.7);  opacity: 0;    filter: blur(4px); }
  100% { transform: rotate(var(--rot,0deg)) scale(0);    opacity: 0;    filter: blur(3px); }
}

/* ===================== SECTIONS ===================== */
.section { padding: 90px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: rgba(26,60,143,0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.section-title span { color: var(--primary-light); }
.section-subtitle { color: var(--muted); font-size: 1.05rem; max-width: 600px; }

/* ===================== SERVICES CARDS ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.service-card p { color: var(--muted); font-size: 0.93rem; }

/* ===================== ABOUT STRIP ===================== */
.about-strip {
  background: linear-gradient(135deg, #0d1b4b, #1a3c8f);
  color: white;
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.about-img {
  flex: 0 0 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img { width: 100%; display: block; }

.about-body { flex: 1; }
.about-body .section-tag { background: rgba(245,166,35,0.15); color: var(--accent); }
.about-body .section-title { color: white; }
.about-body .section-subtitle { color: rgba(255,255,255,0.7); max-width: 100%; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(245,166,35,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.feat-item strong { display: block; color: white; font-size: 0.9rem; margin-bottom: 2px; }
.feat-item span { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* ===================== TESTIMONIALS ===================== */
.testimonials { background: var(--light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; }

.testimonial-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.tc-author { display: flex; align-items: center; gap: 10px; }
.tc-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
}
.tc-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.tc-role { font-size: 0.78rem; color: var(--muted); }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), #e09614);
  padding: 70px 5%;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 1rem;
}

.cta-banner p { color: rgba(13,27,75,0.75); font-size: 1.05rem; margin-bottom: 2rem; }

.btn-dark {
  background: var(--dark);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  display: inline-block;
}

.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ===================== FOOTER ===================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p { font-size: 0.9rem; margin-top: 0.8rem; max-width: 300px; }
.footer-col h4 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-credit {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.3s;
  font-size: 0.75rem;
}
.footer-credit:hover { color: rgba(255,255,255,0.9); }

/* ===================== ÖĞRENCİ PORTALI (Ana Sayfa) ===================== */
.student-portal-section {
  background: linear-gradient(135deg, #0d1b4b 0%, #1a3c8f 60%, #0d2d6e 100%);
  padding: 60px 5%;
}

.sps-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.sps-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  flex: 0 0 auto;
}

.sps-logo {
  width: 200px;
  height: auto;
  background: #fff;
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  display: block;
  transition: transform .2s;
}
.sps-logo:hover { transform: translateY(-3px); }

.sps-sub {
  color: rgba(255,255,255,0.55);
  font-size: .78rem;
  letter-spacing: .4px;
  text-align: center;
}

.sps-divider {
  width: 1px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.sps-right {
  flex: 1;
  min-width: 260px;
}

.sps-label {
  color: rgba(255,255,255,0.5);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sps-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.sps-btn-login, .sps-btn-register {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
}

.sps-btn-login {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.sps-btn-login:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

.sps-btn-register {
  background: var(--accent);
  color: #1a1a1a;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
}
.sps-btn-register:hover { background: #e09614; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(245,166,35,0.55); }

.sps-desc-col {
  flex: 1;
  min-width: 200px;
}

.sps-desc {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
}
.sps-desc strong { color: #fff; font-weight: 800; }

.sps-more {
  display: inline-block;
  color: rgba(255,255,255,0.35);
  font-size: .78rem;
  text-decoration: none;
  transition: color .2s;
}
.sps-more:hover { color: rgba(255,255,255,0.75); }

@media(max-width:700px) {
  .sps-divider { display: none; }
  .sps-desc-col { display: none; }
  .sps-inner { justify-content: center; text-align: center; }
  .sps-btns { justify-content: center; }
}

/* ===================== PAGE HEADER ===================== */
.page-header {
  padding: 140px 5% 80px;
  background: linear-gradient(135deg, #0d1b4b, #1a3c8f);
  text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: white; margin-bottom: 0.8rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-text p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-area { flex: none; width: 320px; height: 320px; }
  .orbit-wrapper { width: 320px; height: 320px; }
  .formula-item { font-size: calc(var(--fs, 0.8rem) * 0.85); padding: 4px 9px; }
  .about-flex { flex-direction: column; gap: 2.5rem; }
  .about-img { flex: none; width: 100%; max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid  { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.5rem, 4vw, 2.2rem); }
  .sps-inner { gap: 1.5rem; }
  .sps-divider { height: 70px; }
}

@media (max-width: 700px) {
  .sps-divider { display: none; }
  .sps-desc-col { display: none; }
  .sps-inner { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
  .sps-btns { justify-content: center; }
  .portal-features-grid { grid-template-columns: 1fr 1fr; }
  .portal-cards-wrap { grid-template-columns: 1fr; max-width: 380px; }
}

@media (max-width: 600px) {
  /* Navbar */
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark); padding: 1.2rem 5%; gap: .6rem; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 8px 0; font-size: .95rem; }
  .nav-portal, .nav-cta { display: inline-block; width: 100%; text-align: center; margin-top: .2rem; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 100px 5% 60px; }
  .hero-image-area { width: 260px; height: 260px; }
  .orbit-wrapper { width: 260px; height: 260px; }
  .profile-img-wrap { width: 140px; height: 140px; }
  .formula-item { font-size: calc(var(--fs, 0.8rem) * 0.72); padding: 3px 7px; border-radius: 5px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: .8rem; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .stat-item { text-align: center; }

  /* Sections */
  .section { padding: 60px 5%; }
  .section-inner { gap: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .portal-features-grid { grid-template-columns: 1fr; }
  .portal-bg { padding: 90px 5% 50px; }

  /* CTA */
  .cta-banner { padding: 60px 5%; }
  .cta-banner h2 { font-size: 1.5rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { font-size: .78rem; }

  /* Page header */
  .page-header { padding: 110px 5% 60px; }
  .page-header h1 { font-size: 1.8rem; }

  /* Hizmetler / Hakkimda */
  .services-hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  /* Student portal section */
  .student-portal-section { padding: 40px 5%; }
  .sps-logo { width: 160px; }
}
