/* ========================================
   POLOGPT REDESIGN - RED/BLACK THEME
   Dark Mode: Red & Black
   Light Mode: White & Red
======================================== */

:root {
  /* Dark Mode Colors - Red & Black */
  --bg-primary-dark: #0a0a0a;
  --bg-secondary-dark: #1a0a0a;
  --bg-card-dark: rgba(20, 0, 0, 0.6);
  --text-primary-dark: #ffffff;
  --text-secondary-dark: #cccccc;
  --text-muted-dark: #999999;
  --accent-red: #ff0000;
  --accent-red-light: #ff3333;
  --accent-red-dark: #cc0000;
  --border-dark: rgba(255, 0, 0, 0.2);
  --border-strong-dark: rgba(255, 0, 0, 0.4);
  
  /* Light Mode Colors - White & Red */
  --bg-primary-light: #ffffff;
  --bg-secondary-light: #fafafa;
  --bg-card-light: rgba(255, 240, 240, 0.9);
  --text-primary-light: #1a1a1a;
  --text-secondary-light: #444444;
  --text-muted-light: #666666;
  --border-light: rgba(255, 0, 0, 0.15);
  --border-strong-light: rgba(255, 0, 0, 0.3);
  
  /* Default to Dark Mode */
  --bg-primary: var(--bg-primary-dark);
  --bg-secondary: var(--bg-secondary-dark);
  --bg-card: var(--bg-card-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: var(--text-muted-dark);
  --border: var(--border-dark);
  --border-strong: var(--border-strong-dark);
  
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* Light Mode Theme Switch */
body.light-mode {
  --bg-primary: var(--bg-primary-light);
  --bg-secondary: var(--bg-secondary-light);
  --bg-card: var(--bg-card-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border: var(--border-light);
  --border-strong: var(--border-strong-light);
}

/* ========================================
   RESET & BASE STYLES
======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ========================================
   DYNAMIC ANIMATED BACKGROUND
======================================== */

.dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #1a0000, #000000, #330000, #1a0000);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

body.light-mode .dynamic-bg {
  background: linear-gradient(45deg, #fff5f5, #ffffff, #ffeaea, #fff5f5);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

.dynamic-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(200, 0, 0, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

body.light-mode .dynamic-bg::before {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 100, 100, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 150, 150, 0.03) 0%, transparent 50%);
}

.dynamic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 0.8s ease, filter 0.8s ease;
  pointer-events: none;
  z-index: 0;
  filter: blur(0);
}

body.light-mode .dynamic-bg::after {
  background-image: url("https://i.pinimg.com/originals/5b/de/92/5bde926985cd7f00c5ec0ba00b9951ca.gif");
  opacity: 0.6;
  filter: blur(4px);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ========================================
   SPLASH SCREEN
======================================== */

.splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000000, #1a0000, #000000);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.splash-content {
  text-align: center;
  animation: splashIn 0.8s ease;
}

.splash-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

.splash-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.splash-loader {
  width: 50px;
  height: 4px;
  background: rgba(255, 0, 0, 0.3);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.splash-loader::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: var(--accent-red);
  animation: loaderSlide 1.5s ease-in-out infinite;
}

@keyframes splashIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes loaderSlide {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* ========================================
   CONTAINER & PAGE
======================================== */

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.container.is-visible {
  opacity: 1;
}

[data-page] {
  opacity: 0;
  transition: opacity 0.8s ease;
}

[data-page].is-visible {
  opacity: 1;
}

/* ========================================
   HEADER / NAVIGATION
======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.5s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border);
}

body.light-mode .header {
  background: transparent;
  backdrop-filter: blur(20px);
}

body.light-mode .header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  border: 2px solid var(--accent-red);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link:hover {
  color: var(--accent-red);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

.launch-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 2rem 60px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  margin-bottom: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

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

@keyframes titleGlow {
  0%, 100% { 
    background-position: 0% 50%;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
  }
  50% { 
    background-position: 100% 50%;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
  }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(90deg, 
    var(--text-primary), 
    var(--accent-red),
    var(--text-primary)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 6s ease-in-out infinite;
  display: inline-block;
}

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 50px;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.stat-icon {
  font-size: 48px;
  filter: grayscale(20%);
}

.stat-content {
  text-align: left;
}

.stat-content h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-date {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  background: var(--bg-card);
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
}

/* ========================================
   SECTIONS
======================================== */

.section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   UPDATE CARD
======================================== */

.update-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s ease;
}

.update-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 40px rgba(255, 0, 0, 0.2);
}

.update-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.update-badge {
  padding: 6px 16px;
  background: var(--accent-red);
  color: #ffffff;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.update-header h3 {
  font-size: 28px;
  color: var(--text-primary);
}

.update-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ========================================
   FEATURE GRID
======================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-red);
  box-shadow: 0 15px 40px rgba(255, 0, 0, 0.2);
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   ROADMAP LIST
======================================== */

.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roadmap-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.3s ease;
}

.roadmap-item:hover {
  transform: translateX(10px);
  border-color: var(--accent-red);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.15);
}

.roadmap-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.roadmap-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.roadmap-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================
   NOTES GRID
======================================== */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.note-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.3s ease;
}

.note-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 35px rgba(255, 0, 0, 0.2);
}

.note-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.note-card ul {
  list-style: none;
  padding: 0;
}

.note-card li {
  padding: 12px 0 12px 28px;
  color: var(--text-secondary);
  position: relative;
  line-height: 1.6;
}

.note-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: bold;
}

.note-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.discord-link {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.discord-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

/* ========================================
   FOOTER
======================================== */

.footer {
  max-width: 1400px;
  margin: 100px auto 0;
  padding: 60px 2rem 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid var(--accent-red);
}

.footer-brand h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent-red);
  padding-left: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.build-info {
  color: var(--text-muted);
}

/* ========================================
   ANIMATIONS
======================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .navigation {
    order: 4;
    width: 100%;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  
  .hero {
    padding: 60px 1.5rem 40px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .notes-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-content {
    text-align: center;
  }
}
