/* ===================================================
   HEUREKA DERGİ — Ana Tasarım Sistemi
   "Buldum demenin en modern hali"
   =================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors — Dark Theme (Default) */
  --bg-primary: #0d0b1a;
  --bg-secondary: #141025;
  --bg-tertiary: #1a1530;
  --bg-gradient-start: #1a0d2e;
  --bg-gradient-end: #0a1628;

  --accent-pink: #e84393;
  --accent-pink-light: #fd79a8;
  --accent-purple: #a29bfe;
  --accent-purple-deep: #6c5ce7;
  --accent-green: #55efc4;
  --accent-green-dark: #00b894;
  --accent-blue: #74b9ff;
  --accent-yellow: #ffeaa7;
  --accent-coral: #fab1a0;

  --text-primary: #f8f9fa;
  --text-secondary: #b2bec3;
  --text-muted: #636e72;
  --text-accent: #dfe6e9;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: blur(20px);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --fs-hero: clamp(2.5rem, 6vw, 5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.75rem);
  --fs-h4: clamp(1rem, 1.5vw, 1.25rem);
  --fs-body: clamp(0.9rem, 1.2vw, 1.05rem);
  --fs-small: clamp(0.8rem, 1vw, 0.9rem);
  --fs-xs: 0.75rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 500;
  --z-modal: 1000;
  --z-splash: 9999;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow-pink: 0 0 30px rgba(232, 67, 147, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(162, 155, 254, 0.3);
  --shadow-glow-green: 0 0 30px rgba(85, 239, 196, 0.3);
  --nav-bg: rgba(13, 11, 26, 0.95);
  --nav-mobile-bg: rgba(13, 11, 26, 0.97);
}

/* --- Light Theme Overrides --- */
body.light-theme {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef1f6;
  --bg-gradient-start: #eae8f0;
  --bg-gradient-end: #dce2e9;

  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-muted: #889397;
  --text-accent: #2d3436;

  --glass-bg: rgba(0, 0, 0, 0.04);
  --glass-bg-hover: rgba(0, 0, 0, 0.08);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-border-hover: rgba(0, 0, 0, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --glass-blur: blur(20px);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-mobile-bg: rgba(255, 255, 255, 0.97);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

/* --- Selection --- */
::selection {
  background: var(--accent-purple);
  color: var(--text-primary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-pink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow);
  transform: translateY(-4px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple-deep));
  color: var(--text-primary);
  box-shadow: var(--shadow-glow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(232, 67, 147, 0.5);
  color: #fff;
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
}

.btn-outline:hover {
  background: var(--accent-purple);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-sm) 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-logo img {
  height: 75px;
  width: auto;
  transition: transform var(--transition-base);
}

.navbar-logo:hover img {
  transform: scale(1.05);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
}

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

.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 67, 147, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(162, 155, 254, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 10s ease-in-out infinite reverse;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: var(--z-base);
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.15), rgba(162, 155, 254, 0.15));
  border: 1px solid rgba(232, 67, 147, 0.3);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-pink-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  animation: pulse-badge 2s ease-in-out infinite;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-pink);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 67, 147, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(232, 67, 147, 0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-green));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

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

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: var(--fs-h4);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero-description {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-cover {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-cover-wrapper {
  position: relative;
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform var(--transition-slow);
  cursor: pointer;
}

.hero-cover-wrapper:hover {
  transform: rotateY(-2deg) rotateX(0deg) scale(1.03);
}

.hero-cover-img {
  max-height: 550px;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl), var(--shadow-glow-purple);
  transition: box-shadow var(--transition-base);
}

.hero-cover-wrapper:hover .hero-cover-img {
  box-shadow: var(--shadow-xl), var(--shadow-glow-pink);
}

/* Floating elements around cover */
.hero-cover-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(162, 155, 254, 0.15), transparent 60%);
  border-radius: 50%;
  z-index: -1;
}

/* --- About Mini Section --- */
.about-mini {
  text-align: center;
  padding: var(--space-5xl) 0;
  position: relative;
}

.about-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  border-radius: var(--radius-full);
}

.about-mini-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: var(--fs-h4);
  color: var(--text-secondary);
  line-height: 1.9;
  font-style: italic;
  font-family: var(--font-display);
}

/* --- Issue Showcase --- */
.issue-showcase {
  padding: var(--space-5xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Countdown --- */
.countdown-section {
  padding: var(--space-4xl) 0;
  text-align: center;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  font-family: var(--font-mono);
  font-size: var(--fs-h1);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: var(--space-sm);
}

.countdown-separator {
  font-size: var(--fs-h2);
  color: var(--accent-purple);
  align-self: flex-start;
  padding-top: var(--space-sm);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.1), rgba(162, 155, 254, 0.1));
  border-radius: var(--radius-lg);
  font-size: 1.8rem;
  transition: transform var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

.feature-title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer-desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--fs-small);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-links a:hover {
  color: var(--accent-purple);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-purple);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* --- Archive Page Grid --- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-2xl);
}

.archive-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.archive-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow-purple);
  border-color: var(--accent-purple);
}

.archive-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.archive-card:hover .archive-card-image {
  transform: scale(1.05);
}

.archive-card-info {
  padding: var(--space-lg);
}

.archive-card-title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

.archive-card-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-purple);
}

.archive-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(13, 11, 26, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-2xl);
}

.archive-card:hover .archive-card-overlay {
  opacity: 1;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-text h3 {
  margin-bottom: var(--space-md);
}

.about-text p {
  margin-bottom: var(--space-lg);
}

.team-card {
  text-align: center;
  padding: var(--space-3xl);
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--shadow-glow-purple);
}

.team-name {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.team-role {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--accent-purple);
  margin-bottom: var(--space-md);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3xl);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-cover-wrapper {
    transform: none;
  }

  .hero-cover-img {
    max-height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    z-index: 1000;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    font-size: var(--fs-h3);
  }

  .navbar-logo img {
    height: 55px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: var(--space-4xl);
  }

  .hero-cover-img {
    max-height: 320px;
  }

  .countdown-container {
    gap: var(--space-md);
  }

  .countdown-value {
    font-size: var(--fs-h2);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 1.25rem;
  }

  .hero-cover-img {
    max-height: 280px;
  }

  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--fs-xs);
  }
}

/* --- Control Buttons (Lang, Theme, Music) --- */
.controls-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.lang-btn, .theme-toggle, .music-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  user-select: none;
  height: 32px;
  line-height: 1;
}

.lang-btn:hover, .theme-toggle:hover, .music-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* Feature Images adjustment */
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Logo: transparent PNG — no filter or blend-mode needed, looks same in both themes */
.navbar-logo img,
.footer-logo,
.about-logo-img {
  /* Natural rendering — no color manipulation */
}


/* Page transitions overlay light mode support */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  pointer-events: none;
}

.page-transition.active {
  transform: translateX(0);
}

/* --- Rocket Scroll to Top Button (Logo-style spaceship) --- */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(162, 155, 254, 0.15));
  border: 1.5px solid rgba(162, 155, 254, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(-80px) scale(0.8);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow var(--transition-fast);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 18px rgba(162, 155, 254, 0.3), var(--shadow-md);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: rocket-idle-bob 3s ease-in-out infinite;
}

@keyframes rocket-idle-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1); }
}

.scroll-to-top-btn:hover {
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.3), rgba(108, 92, 231, 0.3));
  border-color: var(--accent-pink);
  box-shadow: 0 0 28px rgba(232, 67, 147, 0.5), var(--shadow-md);
  animation: none;
  transform: scale(1.1);
}

/* The rocket SVG — tilted like the logo rocket */
.rocket-svg {
  width: 28px;
  height: 28px;
  transform: rotate(-40deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 4px rgba(162, 155, 254, 0.8));
}

/* Thruster flame glow under the rocket */
.scroll-to-top-btn::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #fd79a8, transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-to-top-btn.visible::after {
  opacity: 0.6;
  animation: thruster-pulse 1s ease-in-out infinite alternate;
}

@keyframes thruster-pulse {
  from { transform: translateX(-50%) scale(0.8); opacity: 0.4; }
  to   { transform: translateX(-50%) scale(1.4); opacity: 0.9; }
}

/* Launch animation */
.scroll-to-top-btn.launching {
  animation: rocket-launch-shake 0.1s infinite alternate !important;
  border-color: var(--accent-pink);
  box-shadow: 0 0 40px rgba(232, 67, 147, 0.7);
}

.scroll-to-top-btn.launching .rocket-svg {
  transform: rotate(-40deg) translateY(-120px) scale(0.5);
  transition: transform 0.5s cubic-bezier(0.3, -0.5, 0.5, 0.1);
  opacity: 0;
}

@keyframes rocket-launch-shake {
  from { transform: translate(1px, 0) scale(1.05); }
  to   { transform: translate(-1px, -2px) scale(1.05); }
}

/* --- Reader Intro Video Player Overlay --- */
.reader-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: auto;
}

.reader-video-overlay.active {
  opacity: 1;
}

.video-crop-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

/* Cropping bottom-right by 3.5% to hide the Gemini watermark and keeping it sharp */
.video-crop-container video {
  width: 104.5%;
  height: 104.5%;
  object-fit: cover;
  transform: translate(-1.5%, -1.5%);
  max-width: none;
  max-height: none;
}

/* Cover overlay in the bottom right corner as a double protection */
.watermark-cover {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 160px;
  height: 55px;
  background: #000;
  z-index: 10;
  pointer-events: none;
}

.skip-intro-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
}

.skip-intro-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: scale(1.03);
}

.ampersand {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  color: inherit;
  margin: 0 2px;
  font-size: inherit;
  display: inline;
}

/* Light theme: ampersand stays visible */
body.light-theme .ampersand {
  filter: none;
}

/* Logo rendering: transparent PNG */
.navbar-logo img,
.footer-logo {
  mix-blend-mode: normal;
  filter: none;
}

.about-logo-img {
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 40px rgba(162, 155, 254, 0.3));
  transition: transform var(--transition-base), filter var(--transition-base);
}

.about-logo-img:hover {
  transform: scale(1.05);
}

body.light-theme .about-logo-img {
  filter: none;
}

/* --- Elite SVG Icons System --- */
.theme-toggle svg,
.music-toggle svg {
  transition: transform var(--transition-fast) ease, color var(--transition-fast) ease;
}

.theme-toggle:hover svg,
.music-toggle:hover svg {
  transform: scale(1.15) rotate(8deg);
  color: var(--accent-purple);
  filter: drop-shadow(0 0 8px rgba(162, 155, 254, 0.6));
}

body.light-theme .theme-toggle:hover svg,
body.light-theme .music-toggle:hover svg {
  color: var(--accent-pink);
  filter: drop-shadow(0 0 8px rgba(232, 67, 147, 0.4));
}

.btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.btn:hover svg {
  transform: scale(1.1);
}

.archive-card svg {
  transition: transform var(--transition-base) cubic-bezier(0.175, 0.885, 0.32, 1.275), filter var(--transition-base);
}

.archive-card:hover svg {
  transform: scale(1.15) rotate(5deg);
}





