:root {
  --bg-dark: #f8f9fa;
  --accent: #6c757d;
  --accent-timeline: #495057;
  --text-main: #212529;
  --cube-size: 380px;
  --panel-width: 340px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #c8c4c4, #ffffff);
  background-attachment: fixed;
  color: var(--text-main);
}

/* ── SOCIALS ──────────────────────────────────────────── */
.socials {
  position: fixed;
  top: clamp(12px, 3vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.4em;
  z-index: 200;
}

.socials a svg {
  color: rgba(100, 100, 100, 0.75);
  transition: color 0.2s, transform 0.2s;
}

.socials a:hover svg {
  color: rgba(70, 70, 70, 1);
  transform: translateY(-2px);
}

/* ── THREE-COLUMN LAYOUT ──────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: var(--panel-width) 1fr var(--panel-width);
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding-top: 70px;
  /* space for socials */
}

/* ── PANELS (LEFT & RIGHT) ────────────────────────────── */
.panel {
  height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 0.7em 0.8em 1em 0.8em;
  scrollbar-width: thin;
  scrollbar-color: #ced4da transparent;
}

.panel::-webkit-scrollbar {
  width: 5px;
}

.panel::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}

.panel-title {
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #dee2e6;
}

.awards-section-title {
  margin-top: 1em;
}

/* ── EXPERIENCE CARDS ─────────────────────────────────── */
.experience-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid #d7dce1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 8px 12px 10px;
  margin-bottom: 0.5em;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(2px);
}

.experience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

.experience-name {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: var(--text-main);
}

.experience-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-timeline);
}

.experience-dates {
  font-size: 0.73rem;
  color: #6c757d;
}

.experience-desc ul {
  margin: 0.2em 0 0 1em;
  color: #495057;
}

.experience-desc li {
  font-size: 0.76rem;
  line-height: 1.4;
  margin-bottom: 0.15em;
}

/* ── PROJECT + AWARD CARDS ────────────────────────────── */
.project-card,
.award-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  border: 1px solid #d7dce1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 14px 16px 16px;
  margin-bottom: 0.9em;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(2px);
}

.project-card:hover,
.award-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

.project-title,
.award-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-timeline);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.project-meta,
.award-meta {
  font-size: 0.8rem;
  color: #6c757d;
}

.project-desc,
.award-desc {
  font-size: 0.84rem;
  color: #495057;
  line-height: 1.45;
}

.project-link,
.award-link {
  font-size: 0.82rem;
  color: var(--accent-timeline);
  font-weight: 600;
  text-decoration: underline;
  margin-top: 0.3em;
  transition: text-shadow 0.2s;
}

.project-link:hover,
.award-link:hover {
  text-shadow: 0 0 6px var(--accent-timeline);
}

/* ── LOGOS ────────────────────────────────────────────── */
.logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
  display: inline-block;
}

/* ── CENTER COLUMN + CUBE ─────────────────────────────── */
.center-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cube-bg {
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 900px;
  flex-shrink: 0;
}

.cube {
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(20deg);
  transition: transform 0.15s cubic-bezier(.25, 1, .5, 1);
}

.face {
  position: absolute;
  width: var(--cube-size);
  height: var(--cube-size);
  background: linear-gradient(135deg, rgba(229, 208, 167, 0.85) 60%, #d6ccc7 100%);
  border: 1.5px solid #ddcfb9;
  box-shadow: 0 0 64px 4px #d3cbb655, inset 0 0 0 1px #e9ecef;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.front {
  transform: translateZ(calc(var(--cube-size) / 2));
}

.back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2));
}

.right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
}

.left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.top {
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
}

.bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cube-bio,
.cube-location,
.cube-title,
.cube-experience {
  color: #212529;
  text-align: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.cube-bio h2,
.cube-location h2,
.cube-experience h2 {
  font-size: 1.25em;
  margin-bottom: 0.6em;
  color: var(--accent);
  font-weight: bold;
}

.cube-bio p,
.cube-experience p {
  font-size: 0.88em;
  line-height: 1.5;
  color: #495057;
}

.cube-title h1 {
  font-size: 1.6em;
  margin-bottom: 0.4em;
  color: var(--accent);
  font-weight: bold;
}

.cube-title p {
  font-size: 0.95em;
  color: var(--accent-timeline);
  font-weight: 600;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1100px) {
  :root {
    --panel-width: 270px;
    --cube-size: 300px;
  }
}

@media (max-width: 800px) {

  html,
  body {
    overflow: auto;
    height: auto;
  }

  .page-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    overflow: visible;
    padding-top: 70px;
  }

  .center-col {
    padding: 2em 0;
    order: -1;
  }

  .panel {
    height: auto;
    overflow: visible;
    padding: 1em;
  }

  :root {
    --cube-size: 260px;
    --panel-width: 100%;
  }
}