@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #f2faf6; 
  --bg-secondary: #e6f3ed; 
  --text-primary: #1e293b; 
  --text-secondary: #475569; 
  --text-muted: #64748b; 
  
  --accent-primary: #0d9488; 
  --accent-primary-rgb: 13, 148, 136;
  --accent-secondary: #0284c7; 
  --accent-secondary-rgb: 2, 132, 199;
  --accent-pink: #10b981; 
  --accent-pink-rgb: 16, 185, 129;
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(13, 148, 136, 0.08);
  --glass-border-focus: rgba(13, 148, 136, 0.22);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
  --bg-primary: #0a1111; 
  --bg-secondary: #132020; 
  --text-primary: #f1f5f9; 
  --text-secondary: #cbd5e1; 
  --text-muted: #94a3b8; 
  
  --glass-bg: rgba(20, 42, 42, 0.5); 
  --glass-border: rgba(20, 184, 166, 0.12);
  --glass-border-focus: rgba(20, 184, 166, 0.3);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.25);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.5);
}

.glow-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #a7f3d0 0%, transparent 70%); 
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.orb-2 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #bae6fd 0%, transparent 70%); 
  bottom: -10%;
  right: -5%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.orb-3 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #ccfbf1 0%, transparent 70%); 
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(4%, 6%) scale(1.08) rotate(180deg);
  }
  100% {
    transform: translate(-4%, -4%) scale(0.92) rotate(360deg);
  }
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: all;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-border-focus);
  box-shadow: 0 15px 40px 0 rgba(13, 148, 136, 0.07);
}

.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.8rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.35);
  box-shadow: 0 10px 30px -10px rgba(var(--accent-primary-rgb), 0.15);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 20px -2px rgba(var(--accent-primary-rgb), 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-pink) 100%);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
}

.btn-primary:hover {
  box-shadow: 0 6px 25px -2px rgba(var(--accent-primary-rgb), 0.5);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--glass-border-focus);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.05);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.8rem 0;
}

header.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.04);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
  transition: var(--transition-smooth);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -1px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 70%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-left: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.05);
}

body.dark-mode .theme-toggle {
  background: rgba(18, 30, 30, 0.45);
}

.theme-toggle:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--accent-primary);
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.15);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  position: absolute;
  stroke: var(--text-primary);
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.dark-mode .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.dark-mode .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 3px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.hero-title span {
  display: inline-block;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 20%, var(--accent-pink) 60%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-container {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.7rem;
  background-color: var(--accent-primary);
  margin-left: 5px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
  box-shadow: 0 10px 40px rgba(13, 148, 136, 0.15);
  animation: morph 8s ease-in-out infinite alternate;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.avatar-inner svg {
  width: 65%;
  height: 65%;
  fill: url(#avatar-gradient);
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 35% 55% 65% 45% / 45% 55% 35% 55%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.floating-card {
  position: absolute;
  padding: 0.9rem 1.3rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  animation: float-card 6s infinite ease-in-out;
}

.floating-card svg {
  width: 24px;
  height: 24px;
}

.card-1 {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(13, 148, 136, 0.25);
  backdrop-filter: blur(10px);
  top: 10%;
  left: -20px;
}

.card-2 {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(2, 132, 199, 0.25);
  backdrop-filter: blur(10px);
  bottom: 10%;
  right: -20px;
  animation-delay: -3s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-primary);
  font-weight: 700;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-primary) 30%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
  width: 100%;
}

.about-card {
  padding: 2.5rem;
  min-width: 0;
  width: 100%;
}

.about-right {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.tabs-header {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.tabs-header::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--accent-primary);
}

.tab-btn.active {
  color: var(--accent-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.skill-card {
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.skill-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-primary);
}

.skill-info {
  flex-grow: 1;
}

.skill-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.skill-progress-bg {
  height: 6px;
  background: rgba(13, 148, 136, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(13, 148, 136, 0.15);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.5);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-date {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-primary);
  background: rgba(13, 148, 136, 0.08);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

.timeline-org {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.8rem;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cert-item {
  padding: 1.2rem;
}

.cert-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.cert-sub {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 0.2rem;
}

.cert-desc {
  list-style: none;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cert-desc li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}

.cert-desc li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-primary);
  border-color: var(--glass-border-focus);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  padding: 1.8rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 450px;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: var(--transition-smooth);
}

.project-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 23px 23px 0 0;
  margin: -1.8rem -1.8rem 1.5rem -1.8rem;
  background: rgba(13, 148, 136, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.project-image svg {
  width: 30%;
  height: 30%;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.project-card:hover .project-image svg {
  transform: scale(1.12) translateZ(10px);
  opacity: 0.75;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 17, 17, 0.9) 0%, rgba(10, 17, 17, 0.4) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-btn {
  background: #fff;
  color: var(--accent-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-overlay-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-primary);
}

.project-card:hover .project-overlay-btn {
  transform: translateY(0);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
  transform: translateZ(30px);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(13, 148, 136, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  transition: var(--transition-fast);
}

.project-card:hover .project-tag {
  background: rgba(13, 148, 136, 0.15);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  transition: var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--accent-primary);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(15px);
}

.modal-content {
  position: relative;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  padding: 3rem;
  animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
  from { opacity: 0; transform: scale(0.9) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(15, 23, 42, 0.1);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.modal-image {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: rgba(13, 148, 136, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image svg {
  width: 20%;
  height: 20%;
  opacity: 0.3;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  background: rgba(13, 148, 136, 0.03);
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.meta-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.meta-item-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(13, 148, 136, 0.02);
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-primary);
}

.contact-info-content h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-info-content p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.social-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: rgba(var(--accent-primary-rgb), 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.15);
  transform: translateY(-3px);
}

.social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-form-panel {
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  transition: var(--transition-fast);
}

.form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  width: 100%;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(13, 148, 136, 0.1);
}

.form-input:focus + .form-label, .form-textarea:focus + .form-label {
  color: var(--accent-primary);
}

.form-status {
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: none;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

footer {
  background: rgba(13, 148, 136, 0.03);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-text span {
  color: var(--accent-primary);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .typing-container {
    justify-content: center;
  }
  
  .hero-desc {
    margin: 0 auto;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  .nav-container {
    width: 92%;
    margin: 0 auto;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .avatar-wrapper {
    width: 260px;
    height: 260px;
  }
  
  .card-1 {
    left: -10px;
  }
  
  .card-2 {
    right: -10px;
  }
  
  section {
    padding: 4rem 1.2rem;
  }
  
  .about-card {
    padding: 1.8rem 1.2rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .about-right {
    padding: 1.8rem 1.2rem !important;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
  }
  
  .stat-num {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hobbies-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  
  .contact-form-panel {
    padding: 2rem 1.5rem;
  }
  
  .modal-content {
    padding: 2rem 1.5rem;
  }
  
  .modal-image {
    height: 200px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .orb-1 {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
}

body.dark-mode .orb-2 {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
}

body.dark-mode .orb-3 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
}

body.dark-mode header.scrolled .nav-container {
  background: rgba(20, 42, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .nav-menu {
  background: rgba(14, 28, 28, 0.93);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

body.dark-mode .btn-secondary {
  background: rgba(18, 30, 30, 0.6);
  color: var(--text-primary);
}

body.dark-mode .btn-secondary:hover {
  background: rgba(18, 30, 30, 0.85);
}

body.dark-mode .social-btn {
  background: rgba(18, 30, 30, 0.6);
}

body.dark-mode .social-btn:hover {
  background: rgba(20, 184, 166, 0.12);
}

body.dark-mode .floating-card {
  background: rgba(18, 30, 30, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .form-input, 
body.dark-mode .form-textarea {
  background: rgba(10, 17, 17, 0.6);
}

body.dark-mode .form-input:focus, 
body.dark-mode .form-textarea:focus {
  background: rgba(10, 17, 17, 0.95);
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.15);
}

body.dark-mode .modal-close {
  background: rgba(18, 30, 30, 0.6);
}

body.dark-mode .modal-close:hover {
  background: rgba(20, 184, 166, 0.15);
}

body.dark-mode .project-image {
  background: rgba(20, 184, 166, 0.03);
}

body.dark-mode .project-overlay-btn {
  background: var(--bg-secondary);
  color: var(--accent-primary);
}

body.dark-mode .project-overlay-btn svg {
  fill: var(--accent-primary);
}

@media (max-width: 768px) {
  body.dark-mode .nav-menu {
    background: rgba(14, 28, 28, 0.93);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border);
  }
}

.easter-egg-area {
  padding: 4rem 2rem;
  background: #050a0a;
  border-top: 1px solid rgba(20, 184, 166, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
}

.easter-egg-trigger-container {
  cursor: pointer;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: rgba(10, 17, 17, 0.6);
  border: 1px dashed rgba(20, 184, 166, 0.2);
  transition: var(--transition-fast);
  user-select: none;
}

.easter-egg-trigger-container:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  background: rgba(10, 17, 17, 0.95);
}

.glitch-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: var(--accent-pink);
  letter-spacing: 1px;
}

.terminal-blink-text {
  animation: terminalBlink 1s infinite;
  text-decoration: underline;
  font-weight: bold;
}

@keyframes terminalBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.game-container {
  width: 100%;
  max-width: 1100px;
  margin-top: 2rem;
  background: rgba(10, 17, 17, 0.8) !important;
  border: 1px solid rgba(20, 184, 166, 0.2) !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gameBoot 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.game-container.hidden {
  display: none !important;
}

@keyframes gameBoot {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(20, 184, 166, 0.05);
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.game-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.game-badge {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 2px;
}

.game-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #f1f5f9;
  letter-spacing: -0.5px;
}

.game-stats {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.game-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 140px;
}

.stat-lbl {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #10b981;
}

.stat-bar-bg {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.stat-bar-fill.health {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #10b981);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.game-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
}

.game-alerts-panel, .game-controls-panel, .game-terminal {
  display: flex;
  flex-direction: column;
}

.game-alerts-panel {
  border-right: 1px solid rgba(20, 184, 166, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.game-panel-title {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: #cbd5e1;
  text-transform: uppercase;
}

.game-alerts-list {
  height: 320px;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scrollbar-width: thin;
}

.game-alerts-list::-webkit-scrollbar {
  width: 6px;
}
.game-alerts-list::-webkit-scrollbar-thumb {
  background: rgba(20, 184, 166, 0.2);
  border-radius: 4px;
}

.alert-item {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.alert-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
}

.alert-item.critical::before { background: #ef4444; }
.alert-item.high::before { background: #f59e0b; }
.alert-item.medium::before { background: #0284c7; }
.alert-item.info::before { background: #10b981; }

.alert-item.critical { border-color: rgba(239, 68, 68, 0.15); background: rgba(239, 68, 68, 0.02); }
.alert-item.high { border-color: rgba(245, 158, 11, 0.15); background: rgba(245, 158, 11, 0.02); }
.alert-item.medium { border-color: rgba(2, 132, 199, 0.15); background: rgba(2, 132, 199, 0.02); }
.alert-item.info { border-color: rgba(16, 185, 129, 0.15); background: rgba(16, 185, 129, 0.02); }

.alert-item:hover, .alert-item.active {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.alert-item.active.critical { border-color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.15); }
.alert-item.active.high { border-color: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.15); }
.alert-item.active.medium { border-color: #0284c7; box-shadow: 0 0 10px rgba(2, 132, 199, 0.15); }
.alert-item.active.info { border-color: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.15); }

.alert-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-type {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.critical .alert-type { color: #f87171; background: rgba(239, 68, 68, 0.15); }
.high .alert-type { color: #fbbf24; background: rgba(245, 158, 11, 0.15); }
.medium .alert-type { color: #38bdf8; background: rgba(2, 132, 199, 0.15); }
.info .alert-type { color: #34d399; background: rgba(16, 185, 129, 0.15); }

.alert-time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: #94a3b8;
}

.alert-msg {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-timer-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.alert-timer-fill {
  height: 100%;
  width: 100%;
  transition: width 0.1s linear, background-color 0.3s ease;
}

.critical .alert-timer-fill { background: #ef4444; }
.high .alert-timer-fill { background: #f59e0b; }
.medium .alert-timer-fill { background: #0284c7; }
.info .alert-timer-fill { background: #10b981; }

.alert-item.urgent-blink {
  animation: urgentBlink 0.5s infinite alternate;
}

@keyframes urgentBlink {
  0% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }
  100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); border-color: #ef4444; background: rgba(239, 68, 68, 0.08); }
}

.game-controls-panel {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-alert-details {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 160px;
}

.select-prompt {
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-align: center;
}

.details-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}

.details-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.details-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #f1f5f9;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-lbl {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-val {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #cbd5e1;
  word-break: break-all;
}

.game-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.game-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.8rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
  letter-spacing: 0.5px;
}

.game-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.game-btn:not(:disabled):hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
}

.btn-edr:not(:disabled):hover {
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-fw:not(:disabled):hover {
  background: linear-gradient(135deg, #0284c7 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-ad:not(:disabled):hover {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-soc:not(:disabled):hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.game-terminal {
  border-top: 1px solid rgba(20, 184, 166, 0.15);
  background: #050808;
}

.game-terminal-output {
  height: 120px;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #34d399;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  scrollbar-width: thin;
}

.game-terminal-output::-webkit-scrollbar {
  width: 6px;
}
.game-terminal-output::-webkit-scrollbar-thumb {
  background: rgba(20, 184, 166, 0.2);
  border-radius: 4px;
}

.game-terminal-output div {
  line-height: 1.4;
  animation: logSlide 0.2s ease-out;
}

.game-over-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
  animation: fadeIn 0.4s ease;
  text-align: center;
  width: 100%;
}

.game-over-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: #ef4444;
  letter-spacing: -1px;
}

.game-over-desc {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 450px;
}

.game-over-stats {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
}

.game-over-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  min-width: 120px;
}

.shake {
  animation: shakeEffect 0.3s ease-in-out;
}

@keyframes shakeEffect {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@media (max-width: 1024px) {
  .game-body {
    grid-template-columns: 1fr;
  }
  .game-alerts-panel {
    border-right: none;
    border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  }
}

@media (max-width: 768px) {
  .game-header {
    padding: 1.2rem;
  }
  .game-stats {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }
  .game-stat {
    min-width: auto;
    flex-grow: 1;
  }
  .game-controls-panel {
    padding: 1.2rem;
  }
  .game-action-buttons {
    grid-template-columns: 1fr;
  }
  .game-over-stats {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .game-over-stat {
    width: 100%;
  }
}
