:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-secondary: #666666;
  --border-color: #eeeeee;
  --pill-bg: #000000;
  --pill-text: #ffffff;
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --dock-bg: rgba(255, 255, 255, 0.85);
  --dock-border: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #222222;
  --pill-bg: #ffffff;
  --pill-text: #000000;
  --dock-bg: rgba(10, 10, 10, 0.85);
  --dock-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--text-color);
  z-index: 2000;
  width: 0%;
  transition: width 0.1s ease;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 24px;
}

section {
  margin-bottom: 70px;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.hero-text {
  flex-grow: 1;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-color);
  max-width: 500px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
}

.hero-location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-location i {
  margin-right: 2px;
}

.hero-dot {
  opacity: 0.5;
}

.hero-cv-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-cv-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.hero-image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  border: 3px solid var(--border-color);
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* Skills */
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transition: all 0.3s ease;
}

.skill-cloud span {
  background: var(--pill-bg);
  color: var(--pill-text);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.skill-cloud span.top-skill {
  background: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
}

.more-skill {
  display: none;
}

.skills-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 15px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Timeline */
.timeline-container {
  border-left: 1px solid var(--border-color);
  margin-left: 8px;
  padding-left: 24px;
}

.exp-item {
  position: relative;
  margin-bottom: 35px;
}

.exp-marker {
  position: absolute;
  left: -29px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--text-color);
  border-radius: 50%;
}

.sub-marker {
  background: var(--border-color);
  width: 7px;
  height: 7px;
  left: -28px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.exp-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.exp-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.exp-details {
  list-style: none;
}

.exp-details li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  position: relative;
  padding-left: 12px;
}

.exp-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.lang-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.lang-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Education */
.edu-item {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.edu-icon {
  width: 36px;
  height: 36px;
  background: var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.edu-info {
  flex-grow: 1;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.edu-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.edu-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

/* Contact Details */
.section-tag {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-text);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  margin: auto;
  display: block;
  width: 90vw;
  height: 90vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

.close-modal {
  position: absolute;
  top: 40px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Floating Dock */
.dock-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.dock {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .dock {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dock-item {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
}

.dock-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

[data-theme="dark"] .dock-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dock-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
}

@keyframes revealIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-text {
  animation: revealIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
  .container {
    padding: 60px 20px;
  }
  h1 {
    font-size: 2.5rem;
    letter-spacing: -1.5px;
    text-align: center;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }
  .hero-location {
    justify-content: center;
    text-align: center;
  }
  .exp-header,
  .edu-header {
    flex-direction: column;
    gap: 4px;
  }
  .exp-date,
  .edu-date {
    align-self: flex-start;
  }
}
