/* ── VARIABLES ── */
:root {
  --cream: #FFF8F0;
  --cream-dark: #F5EDE3;
  --white: #FFFFFF;
  --coral: #FF6B6B;
  --coral-light: #FF8E8E;
  --coral-bg: rgba(255, 107, 107, 0.08);
  --navy: #2D3142;
  --navy-light: #4F5D75;
  --slate: #8D99AE;
  --slate-light: #B8C5D6;
  --yellow: #FFD93D;
  --yellow-bg: rgba(255, 217, 61, 0.15);
  --green: #6BCB77;
  --green-bg: rgba(107, 203, 119, 0.12);
  --shadow: 0 4px 20px rgba(45, 49, 66, 0.08);
  --shadow-hover: 0 8px 30px rgba(45, 49, 66, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--cream);
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 49, 66, 0.06);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(45, 49, 66, 0.08);
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--coral);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy-light);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 5vw 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px; height: 400px;
  background: var(--coral-light);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px; height: 300px;
  background: var(--yellow);
  bottom: 10%; left: -80px;
  animation-delay: -3s;
}

.blob-3 {
  width: 250px; height: 250px;
  background: var(--green);
  top: 40%; right: 15%;
  animation-delay: -5s;
  opacity: 0.25;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-hover);
  position: relative;
  z-index: 2;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-ring {
  position: absolute;
  top: -10px; left: -10px;
  right: -10px; bottom: -10px;
  border: 2px dashed var(--coral-light);
  border-radius: 50%;
  animation: spin 20s linear infinite;
  opacity: 0.6;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.photo-dots {
  position: absolute;
  top: -20px; right: -20px;
  display: flex;
  gap: 6px;
}

.photo-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  animation: bounce 1.5s ease-in-out infinite;
}

.photo-dots span:nth-child(2) {
  background: var(--coral);
  animation-delay: 0.2s;
}

.photo-dots span:nth-child(3) {
  background: var(--green);
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--navy);
}

.name-accent {
  color: var(--coral);
  position: relative;
  display: inline-block;
}

.name-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--yellow-bg);
  border-radius: 4px;
  z-index: -1;
}

.hero-tagline {
  font-family: 'Fira Code', monospace;
  font-size: 1.05rem;
  color: var(--navy-light);
  margin-bottom: 1.5rem;
  min-height: 1.8em;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--coral);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--navy-light);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--coral);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--white);
  color: var(--coral);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--coral-light);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--coral-bg);
  transform: translateY(-3px);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate);
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--slate);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 6px;
  background: var(--slate);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: 0.3; top: 14px; }
}

/* ── SECTIONS ── */
section {
  padding: 6rem 5vw;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--coral);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--coral);
  border-radius: 1px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  margin: 1.25rem 0 2.5rem;
}

/* ── ABOUT ── */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--navy-light);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
}

.about-text p strong {
  color: var(--navy);
  font-weight: 600;
}

.about-fun {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fun-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(45, 49, 66, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.fun-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.fun-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.fun-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.fun-card ul {
  list-style: none;
  padding: 0;
}

.fun-card ul li {
  color: var(--navy-light);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.fun-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-size: 0.8rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(45, 49, 66, 0.06);
  transition: all 0.3s;
}

.stat-item:hover {
  border-color: var(--coral-light);
  transform: translateY(-2px);
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--coral);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--slate);
  font-family: 'Fira Code', monospace;
}

/* ── SKILLS ── */
#skills {
  background: var(--cream);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(45, 49, 66, 0.06);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}

.skill-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-hover);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s;
}

.skill-card:hover .skill-icon {
  transform: scale(1.2) rotate(-5deg);
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--coral);
  background: var(--coral-bg);
  border: 1px solid rgba(255, 107, 107, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--coral);
  color: var(--white);
  transform: scale(1.05);
}

.tag.muted {
  color: var(--slate);
  background: rgba(141, 153, 174, 0.08);
  border-color: rgba(141, 153, 174, 0.2);
}

.tag.muted:hover {
  background: var(--slate);
  color: var(--white);
}

/* ── PROJECTS ── */
#projects {
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(45, 49, 66, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  border: 2px solid var(--coral-bg);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.project-badge {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.project-badge.in-progress {
  color: var(--coral);
  background: var(--coral-bg);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.project-badge.completed {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(107, 203, 119, 0.3);
}

.project-badge.ongoing {
  color: #E8A838;
  background: var(--yellow-bg);
  border: 1px solid rgba(255, 217, 61, 0.3);
}

.project-icon {
  font-size: 1.6rem;
  transition: transform 0.3s;
}

.project-card:hover .project-icon {
  transform: rotate(10deg) scale(1.1);
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.92rem;
  color: var(--navy-light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-card code {
  font-family: 'Fira Code', monospace;
  font-size: 0.85em;
  color: var(--coral);
  background: var(--coral-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

/* ── CERTIFICATIONS ── */
#certifications {
  background: var(--cream);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(45, 49, 66, 0.06);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--coral-light);
}

.cert-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cert-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.cert-org {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--coral);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.35rem;
}

.cert-status {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
}

.cert-card.preparing {
  opacity: 0.7;
}

.cert-card.preparing .cert-status {
  color: var(--slate);
}

/* ── CONTACT ── */
#contact {
  background: var(--white);
}

.contact-inner {
  max-width: 600px;
}

.contact-inner p {
  color: var(--navy-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(45, 49, 66, 0.06);
  text-decoration: none;
  transition: all 0.3s;
}

.contact-link:hover {
  border-color: var(--coral-light);
  background: var(--coral-bg);
  transform: translateX(8px);
}

.contact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-arrow {
  color: var(--coral);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.contact-link:hover .contact-arrow {
  transform: translateX(6px);
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem 5vw;
  background: var(--navy);
  text-align: center;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-copy {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer-built {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--slate);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  section {
    padding: 4rem 5vw;
  }

  .hero-photo {
    width: 130px;
    height: 130px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .photo-ring, .photo-dots span, .cursor, .wheel {
    animation: none;
  }
  .skill-card:hover, .project-card:hover, .cert-card:hover, .contact-link:hover {
    transform: none;
  }
}