:root {
  --bg: #1b1a18;
  --bg-soft: #26231f;
  --text: #f0ede8;
  --muted: #c8bfb2;
  --primary: #c89f72;
  --primary-strong: #b78856;
  --card: #2f2b27;
  --border: #4d463f;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
  animation: drift 16s ease-in-out infinite;
}

.orb-one {
  top: -90px;
  left: -120px;
  background: #756b60;
}

.orb-two {
  right: -130px;
  top: 35%;
  background: #9b7b58;
  animation-delay: -7s;
}

.container {
  width: min(var(--max-width), 90%);
  margin: 0 auto;
}

.hero {
  background: radial-gradient(circle at top right, #5f5348 0%, var(--bg) 46%);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

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

.hero-content {
  padding: 3rem 0 2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.3fr minmax(220px, 320px);
  gap: 1.5rem;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid var(--border);
  box-shadow: 0 20px 36px rgba(5, 10, 25, 0.45);
  animation: floatPortrait 4.8s ease-in-out infinite;
}

.eyebrow {
  color: #d6c7b6;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  margin-top: 1rem;
}

.hero-cta {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
}

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

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-soft);
}

.quick-contact {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.quick-contact span::after {
  content: "|";
  margin-left: 0.8rem;
  color: #857a70;
}

.quick-contact span:last-of-type::after {
  content: "";
  margin: 0;
}

.quick-contact a {
  color: #e4bc8f;
}

.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #7f6e5c;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}

.card h3 {
  margin-top: 0;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #3a342f;
  border: 1px solid #584f46;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #eee4d6;
  font-size: 0.9rem;
}

.skill-chip i {
  font-size: 1rem;
}

.cert-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cert-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.cert-item:last-child {
  border-bottom: 0;
}

.cert-logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.cert-logo i {
  color: #fff;
}

.aws-logo {
  background: #1a2437;
}

.oracle-logo {
  background: #cc4b36;
}

.cert-content h3 {
  margin: 0;
  line-height: 1.3;
}

.cert-content p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.cred-btn {
  display: inline-block;
  margin-top: 0.7rem;
  color: #ece2d2;
  font-weight: 600;
  border: 1px solid #8a7e71;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: transparent;
  transition: transform 220ms ease, border-color 220ms ease, color 220ms ease;
}

.cred-btn:hover {
  color: #ffe2be;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.timeline-item ul,
.project-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.timeline-meta p,
.timeline-meta span {
  margin: 0;
  color: var(--muted);
}

.company-link {
  color: #f1c99a;
  border-bottom: 1px dashed rgba(241, 201, 154, 0.55);
}

.company-link:hover {
  color: #ffe2be;
  border-bottom-color: #ffe2be;
}

.stack {
  color: #dac6ae;
  font-size: 0.95rem;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-box a {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  color: #f1c99a;
  transition: transform 220ms ease, border-color 220ms ease;
}

.contact-box a:hover {
  transform: translateY(-2px);
  border-color: #836f58;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes floatPortrait {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.2rem;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    justify-content: flex-start;
  }

  .hero-image {
    max-width: 200px;
    animation: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    right: 5%;
    flex-direction: column;
    background: #2f2a24;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
    min-width: 170px;
  }

  .nav-links.open {
    display: flex;
  }

  .cert-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .quick-contact span::after {
    content: "";
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-orb,
  .hero-image {
    animation: none;
  }

  .card,
  .cred-btn,
  .contact-box a {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
