:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #c4c4c4;
  --accent: #ffb53b; /* gold-ish */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

/* LAYOUT */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* NAVBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
}

/* MOBILE NAV */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* SECTIONS */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-text {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* HERO */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.hero-text {
  max-width: 520px;
}

.hola {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

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

.hero h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* HERO IMAGE */
.hero-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 330px;
  height: 330px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 15px 35px rgba(255, 181, 59, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 22px 50px rgba(255, 181, 59, 0.45);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

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

.btn.outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

/* ABOUT */
#about .section-text {
  margin-top: 0.25rem;
}

.two-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.two-cols ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.two-cols li + li {
  margin-top: 0.4rem;
}

.two-cols span {
  color: var(--text);
  font-weight: 500;
}

/* ABOUT BUTTONS */
.about-btn-wrapper {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* LinkedIn button */
.linked-btn {
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  padding: 0.75rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s ease;
  position: relative;
  border: none;
  overflow: hidden;
}

.linked-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 181, 59, 0.35);
}

.linked-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 181, 59, 0.4);
  opacity: 0;
  transform: scale(1.3);
  transition: 0.35s ease;
}

.linked-btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* GitHub button */
.github-btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s ease;
}

.github-btn:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #000;
  box-shadow: 0 12px 32px rgba(255, 181, 59, 0.35);
}

/* RESUME / TIMELINE */
.resume-intro {
  margin-bottom: 2.5rem;
}

.sub-heading {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.timeline {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.7rem;
}

.timeline-item .dot {
  position: absolute;
  left: -0.9rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.timeline-content .date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.role-summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.timeline-content ul {
  list-style: disc;
  margin-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-content li + li {
  margin-top: 0.25rem;
}

/* EDUCATION */
.sub-heading-edu {
  margin-top: 2.5rem;
}

.edu-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

@media (min-width: 800px) {
  .edu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.edu-card {
  background: #101010;
  border-radius: 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.edu-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.edu-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.edu-card ul {
  list-style: disc;
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.edu-card li + li {
  margin-top: 0.25rem;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 800px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-card {
  background: #101010;
  border-radius: 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease, background 0.35s ease;
  transform-style: preserve-3d;
}

.project-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.project-card a {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.project-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.project-card:hover a::after {
  width: 100%;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  border: 1px solid var(--accent);
  box-shadow: 0 18px 45px rgba(255, 181, 59, 0.32);
  background: radial-gradient(circle at top left, #1b1205 0, #101010 45%, #050505 100%);
}

.project-card:hover p {
  color: #e0e0e0;
}

/* CONTACT BOARD */
.contact-board {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .contact-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.contact-card {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: invert(80%) sepia(60%) saturate(250%) hue-rotate(5deg);
  transition: transform 0.3s ease;
}

.contact-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
}

.contact-card:hover .contact-icon {
  background: #181818;
  box-shadow: 0 14px 30px rgba(255, 181, 59, 0.35);
  transform: translateY(-4px) scale(1.05);
}

.contact-card:hover .contact-icon img {
  transform: scale(1.08);
}

.contact-card:hover h4,
.contact-card:hover p {
  color: #f5f5f5;
}

/* CTA row */
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-question {
  font-size: 1.3rem;
}

.contact-btn {
  background: var(--accent);
  color: #000;
}

/* Social row */
.contact-social {
  text-align: center;
}

.contact-social p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.25s ease;
}

.social-circle i {
  font-size: 0.95rem;
  color: var(--text);
}

.social-circle:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

.social-circle:hover i {
  color: #000;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* TYPING EFFECT VISUAL */
#typing-text {
  color: var(--text);
  border-right: 3px solid var(--accent);
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
}

/* FADE-UP ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

  .hero-inner {
    flex-direction: column-reverse;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-photo img {
    width: 240px;
    height: 240px;
  }

  .nav-links {
    position: absolute;
    right: 1.2rem;
    top: 64px;
    flex-direction: column;
    background: #111;
    padding: 0.75rem 1.1rem;
    border-radius: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: none;
  }

  #nav-wrapper.active .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .edu-list {
    grid-template-columns: 1fr;
  }

  .contact-board {
    grid-template-columns: 1fr 1fr;
  }
}


/* PROJECT IMAGES */
.project-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover .project-img {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
