@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --color-primary: #6366f1; /* Friendly Indigo */
  --color-primary-hover: #4f46e5;
  --color-secondary: #f59e0b; /* Bright Amber */
  --color-secondary-hover: #d97706;
  --color-accent: #10b981; /* Fresh Emerald */
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #c7d2fe;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(99, 102, 241, 0.05), 0 2px 4px -1px rgba(99, 102, 241, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
  --shadow-button: 0 4px 14px rgba(99, 102, 241, 0.3);
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

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

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

a:hover {
  color: var(--color-primary-hover);
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

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

/* Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color var(--transition-normal);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  user-select: none;
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: var(--shadow-button);
}

.logo-text span {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--text-light);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-button);
  transition: all var(--transition-bounce);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background-color: var(--color-primary-hover);
  color: var(--text-light);
  transform: translateY(-2px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-icon {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  position: relative;
  transition: background-color var(--transition-fast);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-normal), top var(--transition-normal);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

/* Mobile Nav Active */
.nav-toggle--active .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle--active .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle--active .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 9rem 0 6rem 0;
  background: radial-gradient(circle at 80% 20%, #eff6ff 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, #fef3c7 0%, transparent 40%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-tertiary);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--color-primary);
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-bounce);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--text-light);
  transform: translateY(-3px);
}

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

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-muted);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-art {
  z-index: 2;
  width: 100%;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

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

/* About Us Section */
.about {
  background-color: var(--bg-secondary);
}

.section-title-wrap {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.title-underline {
  display: block;
  width: 3.5rem;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.about-feature:hover {
  transform: translateX(5px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-radius: 0.75rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.about-feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.about-feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.about-image-card {
  position: relative;
  background: linear-gradient(135deg, #e0e7ff, #fef3c7);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-illustration {
  width: 85%;
  height: auto;
  max-width: 340px;
}

/* Games Portfolio Section */
.games {
  background-color: var(--bg-tertiary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.game-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-bounce);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.game-card-banner {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
}

.game-spark .game-card-banner {
  background: linear-gradient(135deg, #a5b4fc, #818cf8);
}
.game-match .game-card-banner {
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
}

.game-card-banner svg {
  z-index: 2;
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-bounce);
}

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

.game-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.game-match .game-badge {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--color-secondary);
}

.game-card h3 {
  margin-bottom: 0.75rem;
}

.game-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.game-features {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.game-feature-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.game-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-top: auto;
}

.game-card-link svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-fast);
}

.game-card:hover .game-card-link svg {
  transform: translateX(4px);
}

/* Contact Us Section */
.contact {
  background-color: var(--bg-secondary);
}

.contact-info-wrap {
  display: flex;
  justify-content: center;
  gap: 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
}

.contact-item-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

.contact-item a {
  color: var(--text-secondary);
}

.contact-item a:hover {
  color: var(--color-primary);
}

/* Footer Section */
.footer {
  background-color: #0f172a; /* Dark footer for contrast */
  color: #94a3b8;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid #1e293b;
}

.footer h1, .footer h2, .footer h3, .footer h4 {
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand .logo {
  color: var(--text-light);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.5rem;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-link a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-link a:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-copyright {
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal-links a {
  color: #64748b;
}

.footer-legal-links a:hover {
  color: #94a3b8;
}

/* Legal Pages Template Specifics */
.legal-body {
  padding-top: 7rem;
  background-color: var(--bg-secondary);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto 5rem auto;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.legal-content p, .legal-content li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  .section { padding: 4.5rem 0; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-image-card {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .contact-info-wrap {
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
  .footer-grid > *:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition: height var(--transition-normal);
    box-shadow: var(--shadow-md);
  }
  
  .nav-links--open {
    height: calc(100vh - 4.5rem);
    padding: 2rem 0;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.15rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-cta {
    margin-top: 1.5rem;
    width: 80%;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > *:first-child {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-info-wrap {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  
  .contact-item {
    max-width: 360px;
    width: 100%;
  }
}
