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

:root {
  /* Color Palette - Medical Healing Theme */
  --bg-primary: #0e1512;
  --bg-secondary: #16211d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent-primary: #7CFFC4;
  --accent-secondary: #CFFFE5;
  --accent-tertiary: #A8E6CF;
  --accent-gradient: linear-gradient(135deg, #7CFFC4, #CFFFE5);
  --text-primary: #f5f5f5;
  --text-secondary: #9fb3aa;
  
  /* Layout System */
  --max-width: 1400px;
  --space-desktop: 100px;
  --space-tablet: 70px;
  --space-mobile: 50px;
  
  /* UI Elements */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 8px 32px rgba(124, 255, 196, 0.15);
  --shadow-heavy: 0 20px 50px rgba(0,0,0,0.5);
  --border-glass: 1px solid rgba(124, 255, 196, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Typography Utilities */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-spacing {
  padding: var(--space-desktop) 0;
}

/* Navigation - Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14, 21, 18, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-glass);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent-gradient);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-primary);
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(124, 255, 196, 0.2);
}

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

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

.btn-outline:hover {
  background: rgba(124, 255, 196, 0.1);
  box-shadow: 0 0 15px rgba(124, 255, 196, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background-image: radial-gradient(circle at 50% 30%, rgba(124, 255, 196, 0.08) 0%, transparent 60%),
                    url('images/medic-hero-bg-dark.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(14,21,18,0.8) 0%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.legal-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.badge {
  background: var(--bg-card);
  border: var(--border-glass);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Game Section - The Core Feature */
.game-section {
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
}

.game-wrapper {
  width: 85%;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-heavy);
  border: 1px solid rgba(124, 255, 196, 0.15);
  position: relative;
}

.game-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-header {
  text-align: center;
  margin-bottom: 40px;
}

.game-header h2 {
  font-size: 2.5rem;
}

.game-header p {
  color: var(--text-secondary);
}

/* Features / Cards Layout */
.grid-system {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.glass-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(124, 255, 196, 0.3);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(124, 255, 196, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-primary);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.glass-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Internal Page Headers */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
  border-bottom: var(--border-glass);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

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

/* Content Sections (Legal, About) */
.content-block {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px;
  border-radius: var(--radius-lg);
  border: var(--border-glass);
}

.content-block h2 {
  color: var(--accent-primary);
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.content-block ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.content-block li {
  margin-bottom: 8px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(124, 255, 196, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px;
  border-top: var(--border-glass);
}

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

.footer-brand .brand-logo {
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-legal-box {
  background: rgba(0,0,0,0.3);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.footer-legal-box p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .section-spacing { padding: var(--space-tablet) 0; }
  .game-wrapper { width: 95%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-spacing { padding: var(--space-mobile) 0; }
  
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 24px 0;
    gap: 20px;
    border-bottom: var(--border-glass);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .mobile-menu-btn { display: block; }
  .nav-cta { display: none; }
  
  .hero h1 { font-size: 2.5rem; }
  
  .game-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
  }
  
  .footer-grid { grid-template-columns: 1fr; }
  .content-block { padding: 30px 20px; }
}