
/* css/style.css */

/* =========================
   CSS VARIABLES
========================= */
:root {
  --nav-offset: 12px;
  --zone-label-gap: 28px;
}

/* =========================
   BASE RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--color-bg);
}

/* =========================
   BASE DOCUMENT
========================= */
body {
  font-family: system-ui, -apple-system, Inter, sans-serif;
  color: var(--color-text);
  overflow-x: hidden;
}

/* =========================
   PAGE WRAPPER (IMPORTANT)
========================= */
.page-content {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* =========================
   HERO LAYOUT
========================= */
.viewport-hero {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas:
    "top-left top top-right"
    "left card right"
    "bottom-left bottom bottom-right";
  position: relative;
}

/* =========================
   HERO CONTAINER
========================= */
.hero-container {
  grid-area: card;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* =========================
   ZONES (BASE)
========================= */
.zone {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease;
}

/* =========================
   ZONE POSITIONS
========================= */
.zone-top {
  grid-area: top;
  align-items: flex-end;
  padding-bottom: var(--zone-label-gap);
}

.zone-right {
  grid-area: right;
  justify-content: flex-start;
  padding-left: var(--zone-label-gap);
}

.zone-bottom {
  grid-area: bottom;
  align-items: flex-start;
  padding-top: var(--zone-label-gap);
}

.zone-left {
  grid-area: left;
  justify-content: flex-end;
  padding-right: var(--zone-label-gap);
}

/* =========================
   ZONE HOVER EFFECTS
========================= */
.zone-top:hover {
  background: radial-gradient(
    ellipse 40% 60% at 50% 100%,
    color-mix(in srgb, var(--color-accent) 12%, transparent),
    transparent
  );
}

.zone-bottom:hover {
  background: radial-gradient(
    ellipse 40% 60% at 50% 0%,
    color-mix(in srgb, var(--color-accent) 12%, transparent),
    transparent
  );
}

.zone-right:hover {
  background: radial-gradient(
    ellipse 50% 40% at 0% 50%,
    color-mix(in srgb, var(--color-accent) 12%, transparent),
    transparent
  );
}

.zone-left:hover {
  background: radial-gradient(
    ellipse 50% 40% at 100% 50%,
    color-mix(in srgb, var(--color-accent) 12%, transparent),
    transparent
  );
}

/* =========================
   ZONE INNER
========================= */
.zone-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease;
}

.zone-top .zone-inner { flex-direction: column-reverse; }
.zone-bottom .zone-inner { flex-direction: column; }
.zone-left .zone-inner { flex-direction: row-reverse; }

/* Hover motion */
.zone-top:hover .zone-inner { transform: translateY(-8px); }
.zone-bottom:hover .zone-inner { transform: translateY(8px); }
.zone-right:hover .zone-inner { transform: translateX(8px); }
.zone-left:hover .zone-inner { transform: translateX(-8px); }

/* =========================
   ZONE BAR
========================= */
.zone-bar {
  background: var(--color-text-muted);
  transition: background 0.2s ease;
}

.zone-top .zone-bar,
.zone-bottom .zone-bar {
  width: 180px;
  height: 3px;
}

.zone-left .zone-bar,
.zone-right .zone-bar {
  width: 3px;
  height: 220px;
}

.zone:hover .zone-bar {
  background: var(--color-accent);
}

/* =========================
   ZONE LABEL
========================= */
.zone-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.zone:hover .zone-label {
  color: var(--color-accent);
}

.zone-right .zone-label,
.zone-left .zone-label {
  writing-mode: vertical-rl;
}

.zone-left .zone-label {
  transform: rotate(180deg);
}

/* =========================
   CARDS
========================= */
.pitch-card,
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: min(1200px, 90vw);
  position: relative;
  z-index: 3;
}

.pitch-card {
  padding: 120px 100px;
}

.contact-card {
  padding: 100px 130px;
}

/* =========================
   HERO SPLIT (NEW)
========================= */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-image-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 340px;
  height: 340px;
  object-fit: cover;

  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);

  filter: grayscale(100%);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    filter 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.03);

  filter: grayscale(0%);
}

/* =========================
   TYPOGRAPHY
========================= */
.badge {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

h1 {
  font-size: 3.4rem;
  font-weight: 600;
  margin: 24px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 650px;
  margin-bottom: 40px;
}

/* =========================
   BUTTONS
========================= */
.cta-group {
  display: flex;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.btn-primary {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-secondary {
  color: var(--color-text-muted);
}

/* =========================
   THEME TOGGLE BUTTON
========================= */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 9999;

  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);

  transition: transform 150ms ease,
              background var(--transition-normal),
              border-color var(--transition-normal);
}

#theme-toggle:hover {
  transform: scale(1.08);
}

#theme-toggle:active {
  transform: scale(0.95);
}

/* =========================
   ICONS
========================= */
.moon,
.sun {
  width: 18px;
  height: 18px;
  position: absolute;
  display: none;
}

.moon {
  display: block;
  border-radius: 50%;
  background: var(--color-text);
}

.moon::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-surface);
}

.sun {
  border-radius: 50%;
  background: var(--color-text);
}

.sun::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0.6;
}

html:not(.dark) .moon { display: block; }
html.dark .sun { display: block; }
html.dark .moon,
html:not(.dark) .sun { display: none; }

/* =========================
   ANIMATIONS
========================= */
@keyframes enterFromBelow { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes enterFromAbove { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes exitToAbove { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes exitToBelow { from { transform: translateY(0); } to { transform: translateY(100%); } }

@keyframes enterFromLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes enterFromRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes exitToLeft { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes exitToRight { from { transform: translateX(0); } to { transform: translateX(100%); } }

.enter-from-below { animation: enterFromBelow 0.4s cubic-bezier(0.76, 0, 0.24, 1) both; }
.enter-from-above { animation: enterFromAbove 0.4s cubic-bezier(0.76, 0, 0.24, 1) both; }
.enter-from-left { animation: enterFromLeft 0.4s cubic-bezier(0.76, 0, 0.24, 1) both; }
.enter-from-right { animation: enterFromRight 0.4s cubic-bezier(0.76, 0, 0.24, 1) both; }

.exit-to-above { animation: exitToAbove 0.4s cubic-bezier(0.76, 0, 0.24, 1) both; }
.exit-to-below { animation: exitToBelow 0.4s cubic-bezier(0.76, 0, 0.24, 1) both; }
.exit-to-left { animation: exitToLeft 0.4s cubic-bezier(0.76, 0, 0.24, 1) both; }
.exit-to-right { animation: exitToRight 0.4s cubic-bezier(0.76, 0, 0.24, 1) both; }

/* =========================
   RESPONSIVE HERO
========================= */
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image {
    width: 240px;
    height: 240px;
  }
}

/* =========================
   RESUME PAGE
========================= */
.resume-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 80px 120px;
  width: min(900px, 90vw);
  position: relative;
  z-index: 3;
  max-height: 85vh;
  overflow-y: auto;
}

/* (resume styles unchanged below — kept as-is for stability) */

.resume-header { padding-bottom: 40px; text-align: center; }

.resume-name {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.resume-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  justify-content: center;
}

.resume-contact a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-size: 1rem;
}

.resume-contact a:hover { opacity: 0.8; }

.resume-section { margin-bottom: 48px; }
.resume-section:last-child { margin-bottom: 0; }

.resume-section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text);
  margin-bottom: 24px;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-item {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.resume-entry { margin-bottom: 32px; }
.resume-entry:last-child { margin-bottom: 0; }

.entry-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.entry-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.entry-subtitle {
  font-size: 0.95rem;
  color: var(--color-accent);
  margin-top: 4px;
  font-style: italic;
}

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

.entry-description {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.entry-detail {
  margin: 8px 0;
  padding-left: 16px;
  position: relative;
}

.entry-detail::before {
  content: "•";
  position: absolute;
  left: 0;
}

.entry-specification {
  font-style: italic;
  margin: 8px 0;
  color: var(--color-text-muted);
}

