/* ═══════════════════════════════════════════════════════════
   ENGUUN UUGANBOLD — MAFIA STYLE DESIGN SYSTEM
   - Full-Screen Gender Selector Modal (Male / Female)
   - Deep Black (#04040a) + Crimson Red (#e63946) + Gold (#d4af37)
   - Ambient Soundscape & WebGL Effects
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #04040a;
  --bg-secondary: #0a0a14;
  --bg-card: rgba(12, 12, 24, 0.85);
  --bg-card-hover: rgba(20, 20, 36, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-red: #e63946;
  --accent-red-hover: #ff4d5e;
  --accent-gold: #d4af37;
  --accent-blue: #00b4d8;
  --accent-pink: #ec4899;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-red: rgba(230, 57, 70, 0.4);
  --border-pink: rgba(236, 72, 153, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

body[data-gender="female"] {
  --accent-red: #ec4899;
  --accent-red-hover: #f472b6;
  --border-red: rgba(236, 72, 153, 0.4);
}

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

/* ═══════════════════════════════════════════════════════════
   GENDER SELECTOR MODAL (MAFIA STYLE)
   ═══════════════════════════════════════════════════════════ */
.gender-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: #000000;
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.gender-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gender-split {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .gender-split {
    flex-direction: row;
  }
}

.gender-btn {
  position: relative;
  width: 100%;
  height: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
}

@media (min-width: 768px) {
  .gender-btn {
    width: 50%;
    height: 100%;
  }
}

.gender-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s;
}

.male-bg {
  background: radial-gradient(circle at center, #1a0508 0%, #080203 60%, #000000 100%);
}

.female-bg {
  background: radial-gradient(circle at center, #1a0818 0%, #0c0410 60%, #040206 100%);
}

.gender-btn:hover .gender-bg {
  transform: scale(1.05);
}

.gender-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  transition: opacity 0.5s;
}

.gender-male .gender-grid {
  background-image: linear-gradient(rgba(230, 57, 70, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 57, 70, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
}

.gender-female .gender-grid {
  background-image: radial-gradient(circle, rgba(236, 72, 153, 0.25) 1px, transparent 1px);
  background-size: 30px 30px;
}

.gender-btn:hover .gender-grid {
  opacity: 0.25;
}

.gender-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.gender-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ffffff;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gender-male .gender-icon {
  border: 1px solid rgba(230, 57, 70, 0.4);
  background: rgba(230, 57, 70, 0.08);
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.2);
}

.gender-male:hover .gender-icon {
  border-color: var(--accent-red);
  background: rgba(230, 57, 70, 0.25);
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(230, 57, 70, 0.5);
  color: #ff6b7a;
}

.gender-female .gender-icon {
  border: 1px solid rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.08);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}

.gender-female:hover .gender-icon {
  border-color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.25);
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(236, 72, 153, 0.5);
  color: #f472b6;
}

.gender-content h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .gender-content h2 { font-size: 48px; }
}

.gender-male:hover h2 { color: var(--accent-red); }
.gender-female:hover h2 { color: var(--accent-pink); }

.gender-content p {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
}

.gender-male p { color: rgba(230, 57, 70, 0.9); }
.gender-female p { color: rgba(236, 72, 153, 0.9); }

.gender-center-badge {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

@media (min-width: 768px) {
  .gender-center-badge {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.gender-center-badge span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #cbd5e1;
  font-weight: 700;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════════════════
   BACKGROUND GRID & ORBS
   ═══════════════════════════════════════════════════════════ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

.bg-orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-red);
}

.bg-orb-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-blue);
}

.bg-orb-3 {
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: var(--accent-gold);
  opacity: 0.12;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(4, 4, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: white;
}

.logo-subtitle {
  font-size: 9px;
  font-family: monospace;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  text-transform: uppercase;
}

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

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: white;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-btn:hover {
  background: var(--bg-glass-hover);
  color: white;
  border-color: var(--border-red);
}

.nav-cta {
  background: var(--accent-red);
  color: white;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.4);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 140px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: white;
}

@media (min-width: 768px) {
  .hero-title { font-size: 72px; }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-red) 0%, #ff6b7a 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .hero-desc { font-size: 20px; }
}

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

.btn {
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-red);
  color: white;
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(230, 57, 70, 0.6);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADINGS & CARDS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 36px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .section-title { font-size: 48px; }
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 340px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-red);
  box-shadow: 0 20px 40px rgba(230, 57, 70, 0.15);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--border-red);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.project-card.blue .card-icon {
  background: rgba(0, 180, 216, 0.15);
  border-color: rgba(0, 180, 216, 0.4);
  color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.2);
}

.card-title {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.card-role {
  display: inline-block;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.card-link:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: #020206;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
