/* ==========================================================================
   SAIMAN SAH PORTFOLIO — CLEAN & MODERN CYBER STYLESHEET
   ========================================================================== */

:root {
  --font-main: 'Inter', 'Mukta', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --bg-color: #0b0f19;
  --panel-bg: rgba(18, 26, 43, 0.85);
  --panel-border: rgba(0, 243, 255, 0.2);

  --accent-color: #00f3ff;
  --accent-glow: rgba(0, 243, 255, 0.3);
  --green-color: #00ff66;
  --gold-color: #ffd700;
  --red-color: #ff0055;

  --text-main: #f0f4f8;
  --text-muted: #94a3b8;

  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

/* BACKGROUND MATRIX CANVAS */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
}

.overlay-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-size: 30px 30px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  padding: 14px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-accent {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

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

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 20px;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent-color);
  color: #0b0f19;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* BUTTONS */
.cyber-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  border: none;
}

.cyber-btn.primary {
  background: var(--accent-color);
  color: #0b0f19;
}

.cyber-btn.primary:hover {
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.cyber-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cyber-btn.secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.cyber-btn.sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.cyber-btn.full-width {
  width: 100%;
}

/* CONTAINER & SECTIONS */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================= OPENING ENTRY GATEWAY MODAL ================= */
.gateway-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(16px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gateway-overlay.open {
  display: flex;
  opacity: 1;
}

.gateway-card {
  background: rgba(18, 26, 43, 0.95);
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: gatewayPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gatewayPop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

.gateway-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--panel-border);
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.gateway-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.gateway-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.gateway-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gateway-option-card {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.gateway-option-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.2);
}

.opt-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.opt-icon-circle.pro {
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.opt-icon-circle.personal {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid var(--gold-color);
  color: var(--gold-color);
}

.opt-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 243, 255, 0.15);
  color: var(--accent-color);
  padding: 2px 10px;
  border-radius: 10px;
}

.opt-badge.gold {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-color);
}

.gateway-option-card h2 {
  font-size: 1.35rem;
  color: #fff;
}

.gateway-option-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.gateway-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.gateway-lang-hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gateway-lang-btns {
  display: flex;
  gap: 8px;
}

/* PAGE VIEWS TOGGLE */
.page-view {
  display: none;
  flex-direction: column;
  gap: 36px;
}

.page-view.active {
  display: flex;
}

.section-card,
.hero-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
}

/* HERO SECTION */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--panel-border);
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.highlight-name {
  color: var(--accent-color);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-bio {
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* HERO PHILOSOPHY CARD STYLING */
.hero-philosophy-card {
  background: rgba(18, 26, 43, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 215, 0, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-philosophy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
  border-color: #ffd700;
}

.hero-philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #00f3ff, #ffd700);
}

.phil-header {
  margin-bottom: 8px;
}

.phil-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-color);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
}

.phil-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phil-main-text {
  font-family: 'Mukta', 'Inter', var(--font-main);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  line-height: 1.3;
}

.phil-sub-text {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-color);
  font-style: italic;
  font-weight: 500;
}

/* SOCIAL BUTTONS & CHIPS */
.cyber-btn.social-fb {
  background: rgba(24, 119, 242, 0.15);
  border-color: #1877f2;
  color: #4287f5;
}

.cyber-btn.social-fb:hover {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.cyber-btn.social-ig {
  background: rgba(225, 48, 108, 0.15);
  border-color: #e1306c;
  color: #fd5949;
}

.cyber-btn.social-ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
}

.cyber-btn.social-x {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cyber-btn.social-x:hover {
  background: #000;
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.cyber-btn.social-threads {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cyber-btn.social-threads:hover {
  background: #101010;
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.social-chip.facebook {
  background: rgba(24, 119, 242, 0.15);
  border: 1px solid rgba(24, 119, 242, 0.4);
  color: #4287f5;
}

.social-chip.facebook:hover {
  background: #1877f2;
  color: #fff;
}

.social-chip.instagram {
  background: rgba(225, 48, 108, 0.15);
  border: 1px solid rgba(225, 48, 108, 0.4);
  color: #fd5949;
}

.social-chip.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
}

.social-chip.whatsapp:hover {
  background: #25D366;
  color: #fff;
}

/* FLOATING HOVERING WHATSAPP BUTTON */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: pulse-wa 2s infinite;
}

.whatsapp-float-btn i {
  font-size: 1.4rem;
}

.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
  background: #20ba5a;
  color: #fff;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.social-chip.x {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.social-chip.x:hover {
  background: #000;
  border-color: #fff;
  color: #fff;
}

.social-chip.threads {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.social-chip.threads:hover {
  background: #101010;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.footer-proverb {
  font-family: 'Mukta', var(--font-mono);
  font-size: 0.92rem;
  color: var(--gold-color);
  margin-top: 6px;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 1.2rem;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.pill-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-item i {
  color: var(--accent-color);
}

.pill-link {
  color: var(--text-muted);
  text-decoration: none;
}

.pill-link:hover {
  color: var(--accent-color);
}

.pill-date-group {
  display: flex;
  flex-direction: column;
}

.bs-tag {
  font-size: 0.72rem;
  color: var(--accent-color);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* HERO EMBLEM CARD */
.hero-avatar-box {
  display: flex;
  justify-content: center;
}

.avatar-card {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--accent-color);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.logo-wrapper {
  width: 140px;
  height: 140px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dni-emblem-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
}

.avatar-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-color);
  margin-bottom: 4px;
}

.avatar-sub {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}

.avatar-dates {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.avatar-dates-bs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-color);
  margin-top: 2px;
}

.avatar-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-color);
  margin-top: 4px;
  font-weight: 600;
}

/* SECTION TITLES */
.section-title {
  margin-bottom: 24px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 4px;
}

.section-title h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.section-title .highlight {
  color: var(--accent-color);
}

.section-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.section-date-bs {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-color);
  margin-top: 2px;
}

.duration-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-color);
  margin-top: 4px;
  font-weight: 600;
}

/* ODNI GRID */
.dni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dni-feature-card {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dni-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.card-icon {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.dni-feature-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.dni-feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-box {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.skill-head i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.skill-head h3 {
  font-size: 0.98rem;
  color: #fff;
}

.skill-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* EDUCATION LIST */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-item {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.edu-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.edu-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.edu-details h3 {
  font-size: 0.98rem;
  color: #fff;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 255, 102, 0.1);
  color: var(--green-color);
  border: 1px solid rgba(0, 255, 102, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
}

/* BEYOND THE CODE & GARAGE */
.beyond-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* GARAGE / CARS GRID */
.garage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.garage-card {
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.garage-card.currentatto {
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.garage-card.dreamdefender {
  border: 1px solid var(--gold-color);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.garage-bg-imgatto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.7) 0%, rgba(11, 15, 25, 0.95) 100%), url('assets/byd_atto3.png') center/cover no-repeat;
  z-index: 1;
}

.garage-bg-imgdefender {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.7) 0%, rgba(11, 15, 25, 0.95) 100%), url('assets/defender.png') center/cover no-repeat;
  z-index: 1;
}

.garage-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.garage-card:hover {
  transform: translateY(-4px);
}

.garage-badge-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 243, 255, 0.15);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--accent-color);
}

.garage-badge-tag.gold {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-color);
  border-color: var(--gold-color);
}

.garage-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.garage-card.dreamdefender .garage-icon {
  color: var(--gold-color);
}

.garage-card h3 {
  font-size: 1.25rem;
  color: #fff;
}

.garage-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* GAME LOGO BADGES */
.game-logo-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-right: 6px;
}

.gta-tag {
  background: #00ff66;
  color: #0b0f19;
}

.rdr-tag {
  background: #ffc107;
  color: #0b0f19;
}

.hitman-tag {
  background: #00f3ff;
  color: #0b0f19;
}

.cod-tag {
  background: #ff0055;
  color: #fff;
}

.speed-record-pill {
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--green-color);
  color: var(--green-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.dream-goal-pill {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold-color);
  color: var(--gold-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* GAMING GRID */
.gaming-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.game-card {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-card-header i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.game-card-header h3 {
  font-size: 1.25rem;
  color: #fff;
}

.game-platform-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-color);
  margin-top: -10px;
}

.game-achievements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-name i {
  color: var(--accent-color);
}

.game-stat-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.game-stat-badge.green {
  background: rgba(0, 255, 102, 0.15);
  color: var(--green-color);
  border: 1px solid var(--green-color);
}

.game-stat-badge.gold {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-color);
  border: 1px solid var(--gold-color);
}

.game-stat-badge.cyan {
  background: rgba(0, 243, 255, 0.15);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.game-stat-badge.red {
  background: rgba(255, 0, 85, 0.15);
  color: var(--red-color);
  border: 1px solid var(--red-color);
}

.game-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* PS5 CARD */
.ps5-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ps5-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.ps5-icon-box {
  width: 70px;
  height: 70px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-color);
}

.ps5-body h4 {
  font-size: 1.1rem;
  color: #fff;
}

.ps5-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CONTACT SECTION */
.contact-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(11, 15, 25, 0.6);
  padding: 14px;
  border-radius: 8px;
}

.c-item i {
  font-size: 1.3rem;
  color: var(--accent-color);
}

.c-item strong {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.c-item p,
.email-link {
  font-size: 0.92rem;
  color: #fff;
  text-decoration: none;
}

.email-link:hover {
  color: var(--accent-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
}

#form-response {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green-color);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* TERMINAL MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #090d16;
  border: 1px solid var(--accent-color);
  border-radius: var(--radius);
  width: 100%;
  max-width: 650px;
  height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.modal-header {
  background: #111827;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-color);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.close-btn:hover {
  color: #fff;
}

.modal-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.term-line {
  margin-bottom: 8px;
  line-height: 1.5;
}

.modal-footer {
  padding: 10px 16px;
  background: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt {
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-weight: bold;
}

#term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .dni-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .garage-grid {
    grid-template-columns: 1fr;
  }

  .gaming-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .gateway-options-grid {
    grid-template-columns: 1fr;
  }

  .gateway-card {
    padding: 24px;
  }
}

/* ==========================================================================
   ULTRA-PREMIUM CYBER ANIMATIONS & INTERACTIVE STYLES
   ========================================================================== */

/* PAGE VIEWS FADE & SCALE SLIDE */
.page-view {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* SCROLL REVEAL TRIGGERS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }

/* 3D TILT & SPECULAR LIGHT REFLECTION */
[data-tilt] {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  will-change: transform;
}

[data-tilt]::after {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  z-index: 5;
}

[data-tilt]:hover::after {
  opacity: 1;
}

/* FLOATING LEVITATION KEYFRAMES */
.float-anim {
  animation: floatLevitate 3.5s ease-in-out infinite;
}

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

/* GLOWING PULSE AURA */
.pulse-glow {
  animation: cyberPulse 2.5s ease-in-out infinite;
}

@keyframes cyberPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 243, 255, 0.6);
  }
}

/* BORDER BEAM ROTATING GRADIENT */
.border-beam-box {
  position: relative;
  overflow: hidden;
}

.border-beam-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, var(--accent-color), transparent 30%);
  animation: rotateBorderBeam 5s linear infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.border-beam-box > * {
  position: relative;
  z-index: 1;
}

@keyframes rotateBorderBeam {
  100% {
    transform: rotate(360deg);
  }
}

/* TYPING CURSOR BLINK */
.typed-text {
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-weight: 600;
}

.typing-cursor {
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-weight: 700;
  margin-left: 2px;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* BUTTON CLICK RIPPLE */
.cyber-btn, .social-chip, .whatsapp-float-btn {
  position: relative;
  overflow: hidden;
}

.cyber-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 243, 255, 0.45);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* PARTICLE CANVAS */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* AUDIO TOGGLE BUTTON */
.icon-btn.muted {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.15);
}

/* STAT COUNTERS GRID */
.stat-counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 24px 0;
}

.stat-counter-card {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-counter-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.stat-number-box {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.1rem;
  color: var(--gold-color);
  font-weight: 700;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* TITLE CYBER GLITCH ON HOVER */
.section-title h2:hover {
  animation: cyberGlitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes cyberGlitch {
  0% {
    transform: translate(0);
    text-shadow: none;
  }
  20% {
    transform: translate(-2px, 2px);
    text-shadow: 2px 0 var(--accent-color), -2px 0 var(--red-color);
  }
  40% {
    transform: translate(-2px, -2px);
    text-shadow: -2px 0 var(--accent-color), 2px 0 var(--red-color);
  }
  60% {
    transform: translate(2px, 2px);
    text-shadow: 2px 0 var(--gold-color), -2px 0 var(--accent-color);
  }
  80% {
    transform: translate(2px, -2px);
    text-shadow: -2px 0 var(--gold-color), 2px 0 var(--accent-color);
  }
  100% {
    transform: translate(0);
    text-shadow: none;
  }
}

/* ==========================================================================
   INTERACTIVE CYBER GUI WIDGETS & CONTROL PANELS
   ========================================================================== */

/* STANDALONE GATEWAY WRAPPER (index.html) */
.gateway-standalone-wrapper {
  max-width: 860px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.gateway-options-grid a.gateway-option-card {
  text-decoration: none;
}

/* NAV HIGHLIGHT LINK */
.nav-links a.nav-highlight {
  color: var(--accent-color);
  border: 1px solid var(--panel-border);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 243, 255, 0.08);
}

.nav-links a.nav-highlight:hover {
  background: var(--accent-color);
  color: #0b0f19;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* CYBER HUD WIDGET CARD */
.cyber-hud-card {
  background: rgba(8, 13, 23, 0.85);
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
  margin-bottom: 20px;
}

.cyber-hud-card.mini {
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 20px 0;
  padding: 10px 16px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hud-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-value.active-green { color: var(--green-color); }
.hud-value.gold { color: var(--gold-color); }
.hud-value.cyan { color: var(--accent-color); }

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-light.green {
  background: var(--green-color);
  box-shadow: 0 0 8px var(--green-color);
  animation: blinkStatus 1.5s infinite;
}

@keyframes blinkStatus {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* INTERACTIVE SKILL PROGRESS BARS */
.skill-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), var(--green-color));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--accent-glow);
}

.progress-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
  display: block;
  margin-top: 6px;
  font-weight: 600;
}

/* CAR SPEC SWITCHER GUI (personal.html) */
.car-spec-switcher-gui {
  margin-bottom: 24px;
}

.switcher-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.spec-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.spec-tab-btn:hover {
  border-color: var(--accent-color);
  color: #fff;
}

.spec-tab-btn.active {
  background: rgba(0, 243, 255, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.spec-display-panel {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.15);
}

.spec-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-title-box h3 {
  font-size: 1.3rem;
  color: #fff;
}

.spec-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.spec-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-metric-card i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.metric-value.gold { color: var(--gold-color); }
.metric-value.cyan { color: var(--accent-color); }
.metric-value.green { color: var(--green-color); }

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.margin-top-20 {
  margin-top: 20px;
}

/* GAMING FILTER PILLS GUI */
.gaming-filter-gui {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--accent-color);
  color: #fff;
}

.filter-pill.active {
  background: var(--accent-color);
  color: #0b0f19;
  border-color: var(--accent-color);
  font-weight: 700;
  box-shadow: 0 0 12px var(--accent-glow);
}

@media (max-width: 850px) {
  .cyber-hud-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .cyber-hud-card.mini {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-counters-grid {
    grid-template-columns: 1fr;
  }
}