/* ===========================================
   Layout - Section Structure, Grid
   =========================================== */

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link .active-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.nav-link.active .active-bar {
  transform: scaleX(1);
}

/* Hamburger */
.hamburger {
  display: none;
  font-weight: 700;
  font-size: 0.875rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  flex-direction: column;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

/* --- Hero --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
  position: relative;
  z-index: 10;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- Works Grid --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* --- QA Strengths Grid --- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Flow Grid --- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

/* --- Contact Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* --- Theme Switcher (fixed bottom-right) --- */
.theme-switcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.theme-switcher-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}

.theme-switcher-label {
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-size: 0.5625rem;
}

.theme-switcher-divider {
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}

.theme-switcher-name {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.theme-buttons {
  display: flex;
  gap: 0.5rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  padding: 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.theme-btn:hover {
  transform: scale(1.1);
}

.theme-btn.active {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

.theme-btn-c {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.theme-btn-c.active { background: #00FFFF; color: #000; border-color: #00FFFF; }

.theme-btn-r {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.theme-btn-r.active { background: #FFE000; color: #000; border-color: #FFE000; }

.theme-btn-e {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.theme-btn-e.active { background: #8b7355; color: #fff; border-color: #8b7355; }

.theme-btn-g {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.theme-btn-g.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }

/* Retro wall bounce toggle */
.retro-wall-toggle {
  position: fixed;
  bottom: 6rem;
  left: 1.5rem;
  z-index: 50;
  display: none;
}

.retro-wall-toggle.visible {
  display: block;
}

