/* === GENEL STILLER === */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
  color: #2d3748;
  line-height: 1.6;
  background-attachment: fixed;
}

/* === HEADER === */
header {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><rect width="100" height="100" fill="white"/><path d="M30,30 L70,30 L70,70 L30,70 Z" fill="none" stroke="white" stroke-width="2"/></svg>');
  background-size: 50px;
}

header h1 { 
  margin: 0; 
  font-size: 2.5rem; 
  position: relative;
}

/* === BEYAZ AĞIRLIKLI ASIRIN BAŞLIK EFEKTİ === */
.banner {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  padding: 0.5rem;
  position: relative;
  letter-spacing: 2px;
  text-shadow: 0 2px 15px rgba(255, 255, 255, 0.3), 0 4px 30px rgba(255, 255, 255, 0.2), 0 6px 45px rgba(255, 255, 255, 0.1);
  animation: whiteGlow 3s ease-in-out infinite alternate;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  animation: pulseWhite 4s ease-in-out infinite;
}

.banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 20%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.8) 80%, transparent 100%);
  animation: whiteLineFlow 3s ease-in-out infinite;
}

@keyframes whiteGlow {
  0% { text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(255, 255, 255, 0.2), 0 6px 30px rgba(255, 255, 255, 0.1); }
  100% { text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5), 0 4px 40px rgba(255, 255, 255, 0.3), 0 6px 60px rgba(255, 255, 255, 0.2); }
}

@keyframes pulseWhite {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes whiteLineFlow {
  0%, 100% { opacity: 0.5; width: 60%; }
  50% { opacity: 1; width: 90%; }
}

/* === KIDEMLI UZMAN BAŞLIĞI === */
header h2 {
  margin: 0.5rem 0 0;
  font-weight: 300;
  position: relative;
  font-size: 1.3rem;
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
  animation: floatSubtle 4s ease-in-out infinite;
  letter-spacing: 0.5px;
}

header h2 a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
}

header h2 a:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

header h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, 
      rgba(255,255,255,0.4) 0%, 
      rgba(255,255,255,0.1) 50%, 
      rgba(255,255,255,0.4) 100%);
  border-radius: 30px;
  z-index: -1;
  animation: borderRotate 6s linear infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

@keyframes borderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

header h2:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* === SAYFA DÜZENİ === */
#page { 
  display: flex; 
  max-width: 1100px; 
  margin: 2rem auto; 
  gap: 2rem; 
  padding: 0 1rem; 
}

/* === İÇERİK ALANI === */
#content {
  flex: 3;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  position: relative;
}

#content::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #f97316);
  border-radius: 12px 12px 0 0;
}

#content h1 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #dc2626;
  border-bottom: 2px solid #fee2e2;
  padding-bottom: 0.5rem;
}

/* === PROFİL RESMİ VE EFEKTLER === */
.profile-container { 
  display: flex; 
  align-items: flex-start; 
  gap: 2rem; 
  margin: 1.5rem 0; 
}

.profile-img-container {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  padding: 8px;
  will-change: transform;
}

.profile-img {
  border-radius: 50%;
  border: 4px solid #86efac;
  box-shadow: 0 0 8px rgba(134, 239, 172, 0.3), 0 0 16px rgba(134, 239, 172, 0.2);
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  object-fit: cover;
  will-change: transform;
}

.profile-img:hover {
  border-color: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.4), 0 0 24px rgba(74, 222, 128, 0.3);
  transform: scale(1.05);
}

/* Spinner efektleri */
.spinner {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top: 2px solid #dc2626;
  border-right: 2px solid #dc2626;
  animation: spin 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  will-change: transform;
}

.profile-img-container:hover .spinner { opacity: 1; }

.spinner:nth-child(2) {
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  animation: spinReverse 2s linear infinite;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.spinner:nth-child(3) {
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  animation: spin 4s linear infinite;
  border: 2px dashed #dc2626;
  border-top: 2px solid transparent;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* İkon efektleri - Font Awesome ile */
.effect-icon {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  will-change: transform, opacity;
}

.profile-img-container:hover .effect-icon { 
  animation: floatIcons 3s ease-in-out infinite; 
}

.effect-icon:nth-child(4) { top: -15px; left: 50%; animation-delay: 0s; color: #dc2626; }
.effect-icon:nth-child(5) { top: 50%; right: -15px; animation-delay: 0.6s; color: #3b82f6; }
.effect-icon:nth-child(6) { bottom: -15px; left: 50%; animation-delay: 1.2s; color: #10b981; }
.effect-icon:nth-child(7) { top: 50%; left: -15px; animation-delay: 1.8s; color: #f59e0b; }
.effect-icon:nth-child(8) { top: 20%; left: 20%; animation-delay: 0.3s; color: #8b5cf6; font-size: 16px; }
.effect-icon:nth-child(9) { top: 20%; right: 20%; animation-delay: 0.9s; color: #ef4444; font-size: 16px; }
.effect-icon:nth-child(10) { bottom: 20%; right: 20%; animation-delay: 1.5s; color: #06b6d4; font-size: 16px; }
.effect-icon:nth-child(11) { bottom: 20%; left: 20%; animation-delay: 2.1s; color: #84cc16; font-size: 16px; }

@keyframes floatIcons {
  0% { opacity: 0; transform: scale(0) translateY(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) translateY(-8px) rotate(15deg); }
  100% { opacity: 0; transform: scale(0) translateY(-15px) rotate(0deg); }
}

.profile-text { flex: 1; }

/* === GİRİŞ METNİ === */
.intro-text {
  position: relative; 
  font-size: 1.05rem; 
  color: #4a5568; 
  padding-left: 2.2rem; 
  margin-bottom: 2rem; 
  background: transparent;
}

.intro-text > * { 
  position: relative; 
  z-index: 1; 
}

.intro-text::before {
  content: "";
  position: absolute;
  left: 0; 
  top: 0; 
  bottom: 0;
  width: 6px; 
  border-radius: 4px;
  background-color: #dc2626;
  overflow: hidden; 
  z-index: 0;
}

.intro-text::after {
  content: "";
  position: absolute; 
  left: 0; 
  top: -20%;
  width: 6px; 
  height: 20%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
  border-radius: 4px;
  animation: ledFlow 10s linear infinite;
}

@keyframes ledFlow {
  0% { top: -20%; }
  50% { top: 100%; }
  100% { top: -20%; }
}

/* === MERHABA BÖLÜMÜ === */
.hello-section {
  background: linear-gradient(135deg, #fdfaf5 0%, #f5f3ef 100%);
  border: 1px solid #dcd4c3;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2.5rem 0;
  box-shadow: inset 0 0 12px rgba(220, 38, 38, 0.03), 0 8px 22px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.hello-section:hover {
  box-shadow: inset 0 0 15px rgba(220,38,38,0.05), 0 12px 28px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.hello-header { 
  display: flex; 
  align-items: center; 
  margin-bottom: 1rem; 
}

.hello-icon { 
  font-size: 2rem; 
  margin-right: 0.75rem; 
  color: #dc2626; 
}

.hello-title { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: #dc2626; 
  margin: 0; 
}

.hello-text { 
  font-size: 1.05rem; 
  line-height: 1.7; 
  color: #2d3748; 
}

.hello-text p { 
  margin-bottom: 1rem; 
}

.signature { 
  text-align: right; 
  font-weight: 700; 
  font-size: 1.2rem; 
  color: #b91c1c; 
  margin-top: 1.5rem; 
  font-style: italic; 
}

/* === LİSTELER === */
#content ul {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #dc2626;
  border: 1px solid rgba(220,38,38,0.8);
  border-radius: 14px;
  list-style: none;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  color: #2d3748;
  box-shadow: inset 0 0 15px rgba(220, 38, 38, 0.08), 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

#content ul:hover {
  box-shadow: inset 0 0 20px rgba(220, 38, 38, 0.12), 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

#content ul li { 
  margin: 0.5rem 0; 
  padding-left: 0.5rem; 
}

#content ul li::before { 
  content: "•"; 
  color: #dc2626; 
  font-weight: bold; 
  display: inline-block; 
  width: 1em; 
  margin-left: -1em; 
}

/* === LİNKLER === */
#content a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  border-radius: 4px;
  padding: 0.2rem 0.3rem;
}

#content a:hover {
  background-color: rgba(220,38,38,0.1);
  color: #dc2626;
  box-shadow: 0 2px 6px rgba(220,38,38,0.15);
}

/* Odaklanma (Focus) stilleri - Erişilebilirlik */
a:focus, 
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === SIDEBAR === */
#sidebar { 
  flex: 1.05;
  min-width: 205px;
}

#sidebar h2 {
  font-size: 1.2rem; 
  margin-bottom: 0.5rem; 
  color: #dc2626;
  border-bottom: 2px solid #fee2e2;
  padding-bottom: 0.3rem; 
  position: relative;
  cursor: pointer; /* Fare imlecini değiştir */
}

#sidebar h2::after { 
  content: ''; 
  position: absolute; 
  bottom: -2px; 
  left: 0; 
  width: 30px; 
  height: 2px; 
  background: #b91c1c; /* Daha koyu kırmızı */
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.8), 0 0 15px rgba(220, 38, 38, 0.4);
  transition: left 0.1s linear; /* Anlık pozisyon değişimi */
}

/* Kara Şimşek animasyonu - hover durumunda aktif */
#sidebar h2.kara-simsek-aktif::after {
  animation: karaSimsek 2s ease-in-out infinite;
}

@keyframes karaSimsek {
  0% {
    left: 0;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.8), 0 0 15px rgba(220, 38, 38, 0.4);
  }
  25% {
    left: calc(100% - 30px);
    box-shadow: 0 0 15px rgba(220, 38, 38, 1), 0 0 30px rgba(220, 38, 38, 0.6);
  }
  50% {
    left: 0;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.8), 0 0 15px rgba(220, 38, 38, 0.4);
  }
  75% {
    left: calc(100% - 30px);
    box-shadow: 0 0 15px rgba(220, 38, 38, 1), 0 0 30px rgba(220, 38, 38, 0.6);
  }
  100% {
    left: 0;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.8), 0 0 15px rgba(220, 38, 38, 0.4);
  }
}

#sidebar ul { 
  list-style: none; 
  padding: 0; 
}

/* === SIDEBAR MENÜ EFEKTİ - LAZER İZLEME === */
#sidebar ul li {
  background: #fff;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

#sidebar ul li::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 0;
  height: 0;
  background: radial-gradient(
    circle at center,
    rgba(220, 38, 38, 0.15) 0%,
    rgba(220, 38, 38, 0.08) 30%,
    rgba(220, 38, 38, 0.02) 60%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.3s;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

#sidebar ul li:hover::before {
  width: 300px;
  height: 300px;
  opacity: 1;
}

/* Kenar çizgisi - takip eden lazer hattı */
#sidebar ul li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #dc2626 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

#sidebar ul li:hover::after {
  opacity: 1;
  animation: laserPulse 2s ease-in-out infinite;
}

#sidebar ul li:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(220, 38, 38, 0.12),
    0 0 0 1px rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

@keyframes laserPulse {
  0%, 100% { 
    box-shadow: 
      0 0 5px rgba(220, 38, 38, 0.4),
      0 0 10px rgba(220, 38, 38, 0.2);
  }
  50% { 
    box-shadow: 
      0 0 15px rgba(220, 38, 38, 0.6),
      0 0 25px rgba(220, 38, 38, 0.3);
  }
}

#sidebar a {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: #2d3748;
  font-weight: 500;
  border-radius: 6px;
  border: 2px solid transparent;
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

#sidebar a:hover {
  color: #b91c1c;
  transform: translateX(4px);
  background: rgba(220, 38, 38, 0.03);
}

/* === FOOTER === */
footer {
  text-align: center; 
  padding: 2rem 1.5rem; 
  margin-top: 3rem;
  background: #1f2937; 
  color: #f3f4f6; 
  font-size: 0.9rem; 
  border-top: 4px solid #dc2626;
}

footer a { 
  color: #facc15; 
  text-decoration: none; 
  font-weight: 500; 
  transition: color 0.3s ease; 
}

footer a:hover { 
  color: #fff; 
  text-decoration: underline; 
}

footer a:focus {
  outline: 2px solid #facc15;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === DİNAMİK YAŞ EFEKTLERİ === */
.yil-kutlama {
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding: 5px 10px;
  transition: all 0.3s;
  z-index: 1;
}

.yil-kutlama:hover {
  color: #ffeb3b;
  text-shadow: 0 0 10px #ff5722;
}

.fisek {
  position: absolute;
  pointer-events: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: fisek-patla 1.5s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes fisek-patla {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}

.fisek-izi {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  animation: fisek-izi 0.3s linear forwards;
  will-change: transform, opacity;
}

@keyframes fisek-izi {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(var(--iz-tx), var(--iz-ty)); opacity: 0; }
}

.fisek-parlama {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  animation: parlama 0.5s ease-out forwards;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes parlama {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.balon {
  position: absolute;
  pointer-events: none;
  width: 30px;
  height: 40px;
  background: radial-gradient(circle at 15px 15px, var(--balon-renk), transparent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: balon-ucus 4s ease-in forwards;
  z-index: 10;
  will-change: transform, opacity;
}

.balon-ipi {
  position: absolute;
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, #888, #ccc);
  top: 40px;
  left: 15px;
  animation: ip-sallan 2s ease-in-out infinite;
}

@keyframes balon-ucus {
  0% { transform: translate(0, 0) scale(0.8); opacity: 1; }
  100% { transform: translate(var(--balon-tx), var(--balon-ty)) scale(1.2); opacity: 0; }
}

@keyframes ip-sallan {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.balon[data-renk="kirmizi"] { --balon-renk: #ff4444; }
.balon[data-renk="mavi"] { --balon-renk: #4444ff; }
.balon[data-renk="yesil"] { --balon-renk: #44ff44; }
.balon[data-renk="sari"] { --balon-renk: #ffff44; }
.balon[data-renk="pembe"] { --balon-renk: #ff44ff; }
.balon[data-renk="turuncu"] { --balon-renk: #ff8844; }

/* === RESPONSIVE TASARIM === */
@media (max-width: 768px) {
  #page { 
    flex-direction: column; 
  }
  
  header { 
    padding: 1.5rem 1rem; 
  }
  
  .banner { 
    font-size: 2rem; 
    padding: 1rem; 
  }
  
  .profile-container { 
    flex-direction: column; 
    text-align: center; 
  }
  
  .profile-img { 
    align-self: center; 
  }
  
  .intro-text { 
    padding-left: 1.4rem; 
  }
  
  .intro-text::before { 
    width: 5px; 
  }
  
  .hello-section { 
    padding: 1.5rem; 
    margin: 2rem 0; 
  }
  
  .profile-img-container { 
    margin: 0 auto; 
  }
  
  .spinner { 
    top: -3px; 
    left: -3px; 
    right: -3px; 
    bottom: -3px; 
  }
  
  .spinner:nth-child(2) { 
    top: -6px; 
    left: -6px; 
    right: -6px; 
    bottom: -6px; 
  }
  
  .spinner:nth-child(3) { 
    top: -9px; 
    left: -9px; 
    right: -9px; 
    bottom: -9px; 
  }
  
  .effect-icon { 
    font-size: 14px; 
  }
  
  .effect-icon:nth-child(8), 
  .effect-icon:nth-child(9), 
  .effect-icon:nth-child(10), 
  .effect-icon:nth-child(11) { 
    font-size: 12px; 
  }
}

@media (max-width: 480px) {
  header h1 { 
    font-size: 1.8rem; 
  }
  
  .banner { 
    font-size: 2rem; 
  }
  
  .profile-img { 
    width: 120px; 
    height: 120px; 
  }
  
  #content { 
    padding: 1.5rem; 
  }
  
  .hello-section { 
    padding: 1.2rem; 
  }
  
  header h2 {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}