/* ========================================
   HERO SECTION — floating card
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 164, 110, 0.07) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: float-slow 20s ease-in-out infinite;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(120, 90, 50, 0.05) 0%, transparent 70%);
  bottom: 5%;
  left: -5%;
  animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

/* The card itself */
.hero-card {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Decorative corner accents — thin gold L-shapes */
.card-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

.card-corner-tl {
  top: 12px;
  left: 12px;
  border-top: 1.5px solid var(--color-accent);
  border-left: 1.5px solid var(--color-accent);
  border-radius: 3px 0 0 0;
  opacity: 0.4;
}

.card-corner-br {
  bottom: 12px;
  right: 12px;
  border-bottom: 1.5px solid var(--color-accent);
  border-right: 1.5px solid var(--color-accent);
  border-radius: 0 0 3px 0;
  opacity: 0.4;
}

/* Inner layout — photo left, text right */
.hero-card-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 340px;
}

/* Photo column */
.hero-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem;
  position: relative;
}

/* Subtle vertical divider between columns */
.hero-photo-col::after {
  content: '';
  position: absolute;
  right: 0;
  top: 2rem;
  bottom: 2rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-border-strong) 30%, var(--color-border-strong) 70%, transparent);
}

.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.hero-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(var(--photo-brightness));
  transition: transform 0.5s var(--ease-out);
}

.hero-photo:hover img {
  transform: scale(1.04);
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-avail);
  background: var(--color-avail-bg);
  border: 1px solid var(--color-avail-border);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.avail-dot {
  width: 5px;
  height: 5px;
  background: var(--color-avail);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(126, 201, 138, 0.4);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Text column */
.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.label-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

#profile-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--color-text-dim);
  line-height: 1.55;
}

/* Contact row */
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.contact-item:hover { color: var(--color-accent-light); }

.contact-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.4;
}

.contact-item a { color: inherit; }
.contact-item a:hover { color: var(--color-accent-light); text-decoration: none; }

/* ========================================
   CONTENT AREA
   ======================================== */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

/* ========================================
   SUMMARY
   ======================================== */
.summary-section {
  padding: 3.5rem 0;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3.5rem;
}

.summary-deco {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.7;
  color: var(--color-accent);
  opacity: 0.1;
  position: absolute;
  top: 1.5rem;
  left: -0.5rem;
  pointer-events: none;
}

.summary-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  color: var(--color-text-dim);
  max-width: 660px;
  position: relative;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 2.5rem 0;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--color-border);
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border-strong);
  justify-self: center;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  margin-bottom: 4.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-number {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-accent);
  opacity: 0.35;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* ========================================
   EXPERIENCE TIMELINE
   ======================================== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-accent) 0%, var(--color-border) 100%);
}

.timeline-entry {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline-entry:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 9px;
  height: 9px;
  transform: translateX(-4px);
  z-index: 1;
}

.timeline-dot::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 10px rgba(200, 164, 110, 0.25);
}

.timeline-entry:first-child .timeline-dot::before {
  width: 11px;
  height: 11px;
  transform: translate(-1px, -1px);
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 16px rgba(200, 164, 110, 0.4);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-dates {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.timeline-company-name {
  font-size: 0.92rem;
  color: var(--color-text-dim);
  margin-bottom: 0.7rem;
  font-weight: 300;
}

.timeline-bullets {
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-text-dim);
  line-height: 1.7;
}

.timeline-bullets li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 1px;
  opacity: 0.45;
  transform: rotate(45deg);
}

/* ========================================
   SKILLS MOSAIC
   ======================================== */
.skills-mosaic {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.skill-group-title {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tag {
  background: var(--color-surface);
  color: var(--color-text-dim);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-out);
  cursor: default;
}

.skill-tag:hover {
  background: var(--color-accent-dim);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(-2px);
}

/* ========================================
   EDUCATION
   ======================================== */
.edu-entry {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.edu-entry:last-child { border-bottom: none; }

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-text);
  flex: 1;
}

.edu-field {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-style: italic;
}

.edu-institution {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
  min-width: 180px;
}

/* ========================================
   PROJECTS
   ======================================== */
.project-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.project-entry:last-child { border-bottom: none; }

.project-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}

.project-name a { color: var(--color-text); transition: color 0.2s; }
.project-name a:hover { color: var(--color-accent); }

.project-tech {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-left: 0.5rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-top: 0.3rem;
  font-weight: 300;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  margin-top: 4.5rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
}

.footer-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
}

.footer-cta a svg {
  width: 14px;
  height: 14px;
}

.cta-email {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  background: transparent;
}

.cta-email:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
}

.cta-call {
  color: var(--color-text-dim);
  border: 1px solid var(--color-border-strong);
  background: transparent;
}

.cta-call:hover {
  border-color: var(--color-text-dim);
  color: var(--color-text);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .hero-card {
    border-radius: 16px;
  }

  .hero-card-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-photo-col {
    padding: 2rem 2rem 1.25rem;
    flex-direction: row;
    gap: 1rem;
  }

  .hero-photo-col::after {
    top: auto;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border-strong) 20%, var(--color-border-strong) 80%, transparent);
  }

  .hero-photo {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .hero-text-col {
    padding: 1.5rem 2rem 2rem;
  }

  .card-corner-tl { top: 8px; left: 8px; width: 20px; height: 20px; }
  .card-corner-br { bottom: 8px; right: 8px; width: 20px; height: 20px; }

  .hero-contact { justify-content: flex-start; }

  .content { padding: 0 1rem 3rem; }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0;
  }
  .stat-divider { display: none; }

  .timeline { padding-left: 1.75rem; }
  .timeline-dot { left: -1.75rem; }

  .edu-entry { flex-direction: column; gap: 0.2rem; }
  .edu-institution { text-align: left; min-width: auto; }
}

@media (max-width: 480px) {
  .hero { padding: 1rem 0.75rem; }
  .hero-card { border-radius: 14px; }
  .hero-photo-col { padding: 1.5rem 1.5rem 1rem; }
  .hero-text-col { padding: 1.25rem 1.5rem 1.5rem; }
  .content { padding: 0 1rem 2rem; }
  #profile-name { font-size: 1.8rem; }
  .hero-photo { width: 80px; height: 80px; border-radius: 12px; }
  .card-corner { display: none; }
}

/* ========================================
   LIGHT MODE OVERRIDES
   ======================================== */
@media (prefers-color-scheme: light) {
  .shape-1 {
    background: radial-gradient(circle, rgba(154, 123, 66, 0.05) 0%, transparent 70%);
  }
  .shape-2 {
    background: radial-gradient(circle, rgba(120, 90, 50, 0.04) 0%, transparent 70%);
  }

  .hero-card {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.03),
      0 4px 12px rgba(0, 0, 0, 0.04),
      0 12px 36px rgba(0, 0, 0, 0.06);
  }

  .hero-photo {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  }

  .hero-photo:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  }

  .hero-photo img {
    filter: contrast(1.02) brightness(1);
  }

  .timeline-entry:first-child .timeline-dot::before {
    box-shadow: 0 0 0 4px var(--color-bg), 0 0 12px rgba(154, 123, 66, 0.2);
  }

  .timeline-dot::before {
    box-shadow: 0 0 0 4px var(--color-bg), 0 0 6px rgba(154, 123, 66, 0.12);
  }

  .avail-dot {
    box-shadow: 0 0 5px rgba(45, 138, 62, 0.25);
  }

  .skill-tag {
    background: var(--color-surface);
    border-color: var(--color-border-strong);
  }
}
