/* EzzySMP Website - Main Styles */

/* ===== CSS Variables (Design Tokens) ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #141824;
  --bg-card: #1a2030;
  --bg-card-hover: #232d42;
  --accent-light: #00BFFF;
  --accent-dark: #0077FF;
  --accent-gradient: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
  --purple-accent: #8B5CF6;
  --teal-accent: #14B8A6;
  --text-primary: #E8EAF6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --border-color: #2d3748;
  --border-glow: 0 0 15px rgba(0, 191, 255, 0.4);
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 191, 255, 0.05);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1520 50%, var(--bg-primary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 15px 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}

.navbar-brand img {
  height: 40px;
  width: 40px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.navbar-nav a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

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

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--accent-light);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(180deg, rgba(0, 119, 255, 0.15) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 119, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-light);
  box-shadow: var(--border-glow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--accent-gradient);
  border-radius: 50%;
  color: white;
}

.feature-card h3 {
  color: var(--accent-light);
  margin-bottom: 15px;
}

/* ===== Stats Section ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-light);
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--accent-light);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-secondary);
}

.footer-section a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-dark);
  border-color: var(--accent-light);
  color: white;
}

/* ===== Page Header ===== */
.page-header {
  padding: 150px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 119, 255, 0.12) 0%, rgba(139, 92, 246, 0.06) 50%, transparent 100%);
}

.page-header h1 {
  font-size: 3rem;
  color: var(--accent-light);
  margin-bottom: 15px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* ===== Content Sections ===== */
.content-section {
  padding: 60px 0;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
}

.content-card h3 {
  color: var(--accent-light);
  margin-bottom: 20px;
}

/* ===== Lists ===== */
.styled-list {
  list-style: none;
  padding-left: 0;
}

.styled-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text-secondary);
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
}

/* ===== Steps ===== */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number {
  counter-increment: step;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.step-number::before {
  content: counter(step);
}

.step-content h4 {
  color: var(--text-primary);
  margin-bottom: 5px;
}

.step-content p {
  margin: 0;
}

/* ===== Copy Box ===== */
.copy-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-dark);
  border-radius: 10px;
  padding: 15px 20px;
  margin: 20px 0;
}

.copy-box code {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  color: var(--accent-light);
  flex-grow: 1;
}

.copy-box .btn {
  flex-shrink: 0;
}

/* ===== Tables ===== */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-secondary);
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

tr:hover {
  background: var(--bg-card-hover);
}

tr:last-child td {
  border-bottom: none;
}

/* ===== Coming Soon ===== */
.coming-soon {
  text-align: center;
  padding: 100px 20px;
}

.coming-soon-icon {
  font-size: 5rem;
  margin-bottom: 30px;
}

.coming-soon h2 {
  color: var(--accent-light);
  margin-bottom: 20px;
}

.coming-soon p {
  max-width: 500px;
  margin: 0 auto 30px;
}

/* ===== Alerts ===== */
.alert {
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.alert-info {
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid var(--accent-light);
  color: var(--accent-light);
}

.alert-warning {
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.alert-danger {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-accent { color: var(--accent-light); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.hidden { display: none !important; }

/* ===== Animations ===== */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Glow animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.6), 0 0 30px rgba(0, 191, 255, 0.4);
  }
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Rotate animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Shake animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Button shine effect */
.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 0.6s ease;
  pointer-events: none;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

/* Animate in class */
.animate-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Button animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Card animations */
.card, .feature-card {
  transition: all 0.3s ease;
}

.card:hover, .feature-card:hover {
  transform: translateY(-5px);
}

/* Input focus animation */
.form-input:focus, .form-textarea:focus, .form-select:focus {
  animation: glow 2s ease-in-out infinite;
}

/* Loading spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
  margin: 20px auto;
}

/* Badge pulse */
.badge {
  animation: pulse 2s ease-in-out infinite;
}

/* Navbar slide down */
.navbar {
  animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hero content fade in */
.hero-content > * {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }

/* Stagger animation for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Page transition */
body {
  animation: fadeIn 0.5s ease;
}

/* Modal animations */
.modal {
  animation: fadeIn 0.3s ease;
}

.modal-content {
  animation: slideInDown 0.3s ease;
}

/* Toast animations */
.toast {
  animation: slideInRight 0.3s ease;
}

.toast.toast-exit {
  animation: slideInRight 0.3s ease reverse;
}
