/* ========== TEMEL RESET & MODERN CSS ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00ffff;
  --primary-dark: #00bfff;
  --primary-glow: rgba(0, 255, 255, 0.5);
  --bg-dark: #000000;
  --bg-overlay: rgba(0, 0, 0, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #bbbbbb;
  --text-tertiary: #888888;
  --border-glow: rgba(0, 255, 255, 0.3);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ========== ADVANCED BACKGROUND SYSTEM ========== */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.9) 0%, #000 100%);
}

.stars-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 85%, white, transparent);
  background-size: 200% 200%;
  animation: twinkle 8s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.nebula-glow {
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(0, 255, 255, 0.08), transparent 40%),
    radial-gradient(ellipse at 90% 80%, rgba(0, 191, 255, 0.06), transparent 40%);
  animation: nebulaFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nebulaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.05); }
}

/* ========== FLOATING PARTICLES ========== */
.particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% {
    transform: translateY(-100px) translateX(100px) scale(1);
    opacity: 0;
  }
}

/* ========== ULTRA MODERN HERO ========== */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5% 8rem 5%;
  text-align: center;
  perspective: 1000px;
}

.hero-bg-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-top: 4rem;
  animation: heroEnter 1.2s var(--transition-smooth);
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 191, 255, 0.05));
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.title-word {
  display: inline-block;
  animation: wordReveal 0.8s var(--transition-smooth) backwards;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.3s; }
.title-word:nth-child(3) { animation-delay: 0.5s; }

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--primary-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  text-shadow: 0 0 80px var(--primary-glow);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s var(--transition-smooth) 0.7s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== PREMIUM CTA BUTTONS ========== */
.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10rem;
  animation: fadeInUp 1s var(--transition-smooth) 0.9s backwards;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff, var(--primary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 0.3;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 30px 80px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  border: 2px solid var(--border-glow);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* ========== STATS SECTION ========== */
.stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 191, 255, 0.02));
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s var(--transition-smooth) 1.1s backwards;
}

.stat {
  text-align: center;
  position: relative;
}

.stat::after {
  content: '';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.stat:last-child::after {
  display: none;
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px var(--primary-glow);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-hint {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  margin: 2rem auto 0;

  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 20;
  text-decoration: none;
  cursor: pointer;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint:hover {
  opacity: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.scroll-icon {
  font-size: 2rem;
  animation: arrowPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

@keyframes arrowPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

/* ========== CONTENT SECTIONS ========== */
section {
  position: relative;
  z-index: 10;
  padding: 6rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s var(--transition-smooth);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* ========== SEARCH BAR ========== */
.search-container {
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
}

.search-wrapper {
  display: flex;
  gap: 1rem;
  position: relative;
}

.search-input {
  flex: 1;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-glow);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 40px var(--primary-glow);
  transform: translateY(-2px);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-btn {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 191, 255, 0.1));
  border: 2px solid var(--primary);
  border-radius: 100px;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 10px 40px var(--primary-glow);
}

/* ========== TRENDING TAGS ========== */
.trending {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trending-label {
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.tag {
  padding: 0.6rem 1.5rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tag:hover {
  background: rgba(0, 255, 255, 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 191, 255, 0.02));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.5s var(--transition-smooth);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.5s ease;
  z-index: -1;
}

.card:hover::before {
  opacity: 0.4;
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 30px 80px rgba(0, 255, 255, 0.3);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.card-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glow);
}

.card-meta {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.card-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.card:hover .card-arrow {
  transform: translateX(10px);
}

/* ========== FEATURED ARTICLES ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.article-card {
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--transition-smooth);
  border: 1px solid rgba(0, 255, 255, 0.1);
  height: 450px;
}

.article-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.15);
}

.article-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
}

.article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

.article-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.article-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 255, 255, 0.3);
  border-color: var(--primary);
}

/* ========== NEWSLETTER ========== */
.newsletter {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 191, 255, 0.05));
  border-radius: 40px;
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(20px);
}

.newsletter-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
  animation: pulse 3s ease-in-out infinite;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
}

.newsletter-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 1.2rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-glow);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

.newsletter-btn {
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 100px;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px var(--primary-glow);
}

.newsletter-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ========== FOOTER ========== */
footer {
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid var(--border-glow);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glow);
  color: var(--text-tertiary);
}

.footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: center;
    margin-bottom: 5rem;
  }

  .btn {
    width: 100%;
    max-width: 400px;
    justify-content: center;
  }

  .stats {
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .stat::after {
    display: none;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .scroll-hint {
    bottom: 1.5rem;
    font-size: 0.75rem;
  }

  .scroll-icon {
    font-size: 1.5rem;
  }

  .search-wrapper {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cards-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .newsletter {
    padding: 3rem 1.5rem;
  }
}

@media (max-height: 700px) {
  .scroll-hint {
    bottom: 1rem;
    font-size: 0.7rem;
  }

  .scroll-icon {
    font-size: 1.3rem;
  }
}

@media (max-height: 600px) {
  .scroll-hint {
    display: none;
  }
}