*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0c0c0c;
  --bg2: #141414;
  --bg3: #1c1c1c;
  --accent: #e8d5b0;
  --accent2: #c4a882;
  --text: #f0ece4;
  --muted: #888880;
  --border: rgba(232, 213, 176, 0.12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --mono: "DM Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(232, 213, 176, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  z-index: 999;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: all 0.4s;
}

nav.scrolled {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 213, 176, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 213, 176, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 5rem;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent2);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-name span {
  color: var(--accent);
  display: block;
}

.hero-role {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 420px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--text);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(232, 213, 176, 0.05);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-frame {
  position: relative;
  width: 320px;
  height: 400px;
}

.avatar-frame::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  z-index: 0;
}

.avatar-frame::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 80px;
  height: 80px;
  border-bottom: 2px solid var(--accent2);
  border-left: 2px solid var(--accent2);
  z-index: 3;
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  z-index: 1;
  overflow: hidden;
}

.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.avatar-tag {
  position: absolute;
  bottom: 1.5rem;
  right: -2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  border-radius: 2px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.avatar-tag .tag-num {
  font-size: 1.4rem;
  font-family: var(--serif);
  color: var(--accent);
  display: block;
  line-height: 1;
}

.avatar-tag .tag-label {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent2), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent2);
  letter-spacing: 0.15em;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--accent);
  font-weight: 400;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  transition: all 0.2s;
}

.skill-pill:hover {
  border-color: var(--accent2);
  color: var(--accent);
  background: rgba(232, 213, 176, 0.04);
}

.skill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

/* SOFT SKILLS */
.about-soft-skills {
  margin-top: 2rem;
}

.about-soft-skills h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.soft-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.soft-skills-list span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg3);
}

/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: rgba(232, 213, 176, 0.25);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.25rem;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.project-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 0.25rem;
}

.project-points {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-points li {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}

.project-points li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent2);
}

/* EDUCATION TIMELINE */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent2);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent2);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.contact-link-item:hover {
  border-color: var(--accent2);
  color: var(--accent);
  background: rgba(232, 213, 176, 0.04);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  background: var(--bg3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input,
.form-textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #444;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.2s;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--accent);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.fade-up:nth-child(2) {
  transition-delay: 0.1s;
}
.fade-up:nth-child(3) {
  transition-delay: 0.2s;
}
.fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 0 1.5rem;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 7rem;
  }
  .hero-visual {
    order: -1;
  }
  .avatar-frame {
    width: 220px;
    height: 280px;
  }
  section {
    padding: 4rem 1.5rem;
  }
  .about-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
