/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --green:       #5bba7f;
  --green-dark:  #4aa86e;
  --green-deep:  #3d9960;
  --card-bg:     #f5f5f3;
  --text-dark:   #222222;
  --text-mid:    #555555;
  --text-light:  #888888;
  --accent:      #333333;
  --white:       #ffffff;
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background-color: var(--green);
  overflow: hidden;
}

/* =============================================
   BACKGROUND WATERMARK
   ============================================= */
.bg-watermark {
  position: fixed;
  top: -110px;
  left: -10px;
  transform: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(180px, 25vw, 320px);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* =============================================
   TOP LABEL
   ============================================= */
.top-label {
  position: fixed;
  top: 28px;
  left: 36px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  z-index: 10;
}

/* =============================================
   MAIN CARD
   ============================================= */
.card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 1060px);
  height: min(82vh, 580px);
  background: var(--card-bg);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 160px 1fr 320px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.1);
  z-index: 5;
  animation: cardReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* =============================================
   SIDEBAR NAV
   ============================================= */
.sidebar {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar ul li a {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.sidebar ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green-dark);
  transition: width 0.25s ease;
}

.sidebar ul li a:hover {
  color: var(--text-dark);
}

.sidebar ul li a:hover::after,
.sidebar ul li a.active::after {
  width: 100%;
}

.sidebar ul li a.active {
  color: var(--text-dark);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.content {
  padding: 52px 40px 36px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Name */
.name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 8px;
}

/* Job title */
.title {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--text-mid);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

/* Bio */
.bio {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 480px;
}

.cv-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--text-dark);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.cv-link:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

/* =============================================
   CARD FOOTER
   ============================================= */
.card-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.logo-box {
  width: 52px;
  height: 52px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
}

.logo-letter {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--white);
  letter-spacing: 0.05em;
}

.contact-info p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
}

.social-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--text-dark);
}

/* =============================================
   PHOTO AREA
   ============================================= */
.photo-area {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #e0e0de 0%, #c8c8c6 100%);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
  display: block;
}

.photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #d8d8d6 0%, #b8b8b6 100%);
}

.photo-fallback span {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  color: rgba(0,0,0,0.25);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  body { overflow: auto; }

  .card {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 95vw;
    height: auto;
    margin: 60px auto 24px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 260px;
  }

  .sidebar {
    padding: 32px 28px 12px;
    flex-direction: row;
  }

  .sidebar ul {
    flex-direction: row;
    gap: 24px;
  }

  .content {
    padding: 24px 28px 28px;
  }

  .photo-area {
    order: -1;
    height: 260px;
  }

  .bg-watermark {
    display: none;
  }
}
