/* 
  MODERN CUSTOM CSS
  Bu dosya yeni vizyon tasarımı, animasyonları ve "Aksiyon/Hikaye" kısımlarını kapsar.
*/

/* --- HERO ANIMASYONLARI & GLOW EFEKTI --- */

.hero-bg-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0) 60%);
  z-index: 1;
  animation: bgPulse 8s infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

.animated-float {
  position: relative;
  animation: floatElement 6s ease-in-out infinite;
}

.profile-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(20px);
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-dot {
  color: #38bdf8;
  margin: 0 0.5rem;
}

/* --- BUTONLAR --- */

.btn-modern-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

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

.btn-modern-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

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

.arrow-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn-modern-cta:hover .arrow-icon {
  transform: translateX(4px);
}

/* --- STORYTELLING & BIO --- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.story-heading {
  font-size: 1.8rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.highlight-box {
  background: rgba(56, 189, 248, 0.05);
  border-left: 4px solid #38bdf8;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.highlight-box p {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 1.1rem;
}

/* --- PROJE KARTLARI & TEKNIK BLOK --- */

.card-content-featured {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  padding: 2rem !important;
}

.featured-badge {
  background: rgba(56, 189, 248, 0.1);
  color: #0284c7;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  width: max-content;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] .featured-badge {
  color: #38bdf8;
}

.featured-title {
  font-size: 2rem !important;
  margin-bottom: 0 !important;
  color: #111827 !important;
}

.story-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent !important;
  padding: 0.5rem 0;
  border-left: none !important;
}

[data-theme="dark"] .story-block {
  background: transparent !important;
  border-left: none !important;
}

.story-item {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted) !important;
  line-height: 1.6;
}

.story-item strong {
  font-weight: 700;
  color: #111827 !important;
  font-size: 1rem;
}

[data-theme="dark"] .story-item strong {
  color: #111827 !important;
}

/* <a> etiketi içindeyken hover renginin bozulmasını engeller */
.modern-card:hover .story-item {
  color: var(--color-text-muted) !important;
}

.tech-block {
  border-top: 1px dashed var(--color-border-secondary);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.tech-block h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #111827 !important;
}

.tech-block p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-text-muted) !important;
}

/* <a> etiketi hover color override'ı onlemek için */
.modern-card:hover .featured-title,
.modern-card:hover .tech-block h4 {
  color: #111827 !important;
}

.modern-card:hover .tech-block p {
  color: var(--color-text-muted) !important;
}

.card-image-featured {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 16px 16px 0;
}

.card-image-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modern-card:hover .card-image-featured img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .card-featured {
    flex-direction: column !important;
  }
  .card-image-featured {
    border-radius: 0 0 16px 16px !important;
  }
  .card-content-featured {
    padding: 1.5rem !important;
  }
  .featured-title {
    font-size: 1.5rem !important;
  }
}

/* --- SCROLL ANIMASYONLARI --- */

.scroll-animate {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.scroll-animate.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fade-up {
  transform: translateY(40px);
}
