:root {
  /* Color Palette */
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --accent-color: #4361ee;
  --accent-hover: #3046c0;
  --secondary-accent: #f72585;
  --border-color: #e2e8f0;
  --success-color: #4cc9f0;

  /* Spacing & Layout */
  --container-width: 1000px;
  --header-height: 70px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  margin-bottom: 80px;
}

.section-header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Banner */
.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 80px 0;
  border-radius: 0 0 40px 40px;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 150%, rgba(67, 97, 238, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: #a5b4fc;
  font-size: 1.25rem;
}

/* Horizontal Gallery (Scroll Snap) */
.gallery-container {
  position: relative;
}

.gallery-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 32px 4px;
  /* Bottom padding for shadow */
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.game-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 180px;
  background-color: #eee;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 10;
}

.card-image::after {
  content: 'NO IMAGE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 12px;
  letter-spacing: 1px;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  background: var(--button-surface, #eef2ff);
  color: var(--accent-color);
}

.btn-secondary:hover {
  background: #e0e7ff;
}

.btn-full {
  width: 100%;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--surface-color);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s;
}

.tool-card:hover {
  border-color: var(--accent-color);
}

/* Illustration Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.portfolio-thumb {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background-color: #f1f5f9;
  flex-shrink: 0;
}

/* Sponsorship & Commission */
.support-section {
  background: linear-gradient(to right, #ffffff, #f8faff);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.support-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-google {
  background: #4285F4;
  color: white;
}

.btn-ecpay {
  background: #00B176;
  color: white;
}

/* Green World color approximation */

/* Footer */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  background: white;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ad-slot {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  flex-wrap: wrap;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.legal-links {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 16px;
}