@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --bg:        #FFFDFD;
  --bg-alt:    #FDF6ED;
  --accent:    #D4537E;
  --accent-2:  #BA7517;
  --text:      #1B2021;
  --text-soft: #53132A;
  --white:     #ffffff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* global */
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-weight: 300; line-height: 1.7; overflow-x: hidden; }
section { position: relative; z-index: 1; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; color: var(--text);}
h1 { font-size: clamp(52px, 8vw, 96px);  line-height: 1.05;  margin-bottom: 28px; }
h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.1; margin-bottom: 24px; }
h3 { font-size: 22px; line-height: 1.3; }
em { font-style: italic; color: var(--accent); }
a { font-size: 13px; font-weight: 400; letter-spacing: 0.06em; }
p { font-size: 15px; color: var(--text); line-height: 1.9; margin-bottom: 16px; }

/*  */
.container { max-width: 1200px; margin: 0 auto; }
.section-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; display: block; }

/* nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 20px 60px; background: rgba(253, 245, 247, 0.65); backdrop-filter: blur(12px); }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { text-transform: uppercase; color: var(--text-soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* hero */
#hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 60px 80px; max-width: 1200px; margin: 0 auto }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--accent); }
.hero-subtitle { font-size: 16px; font-weight: 300; color: var(--text-soft); max-width: 520px; margin-bottom: 48px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; background: var(--accent); color: var(--white); font-family: 'DM Sans', sans-serif; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 24px rgba(212,83,126,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,83,126,0.4); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; background: transparent; color: var(--text); font-family: 'DM Sans', sans-serif; border: 1.5px solid var(--accent); transition: border-color 0.2s, color 0.2s; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; animation: float 2.4s ease-in-out infinite; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); }
@keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* about */
#about { background: var(--bg-alt); padding: 100px 60px; }
.about-inner {  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.skill-tag { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; color: var(--text); border: 1px solid rgba(212, 83, 126, 0.5); } 
.skill-tag.active { background: var(--accent); color: white; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { background: var(--bg-alt); border: 1px solid var(--accent); border-radius: 16px; padding: 28px 24px; }
.stat-number { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; color: var(--accent); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

/* learning */
#learning { padding: 100px 60px; border-bottom: 1px solid var(--accent); }
.learning-header { margin-bottom: 52px; }
.learning-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course-card { background: var(--bg); border: 1px solid var(--accent); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; transition: transform 0.3s, box-shadow 0.3s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(212,83,126,0.15); }
.course-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.platform-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; color: white; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; flex-shrink: 0; }
.badge-udemy { background: #A435F0; }
.badge-fcc { background: #0A0A23; }
.badge-coursera { background: #0056D2; }
.badge-scrimba { background: #CED19A; }
.badge-cs50 { background: #A51C30;}
.course-number { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; color: var(--accent); line-height: 1; user-select: none; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.course-tag { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 12px; background: var(--bg-alt); color: var(--text); }
.course-cert { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--accent); margin-top: auto; transition: gap 0.2s; }
.course-cert:hover { gap: 10px; }
.not-cert { text-decoration: none; cursor: default;}

/* projects */
#projects { padding: 100px 60px; max-width: 1200px; margin: 0 auto; }
.projects-header { margin-bottom: 56px; }
.projects-group { margin-bottom: 64px; }
.group-label { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.group-label-line { flex: 1; height: 1px; background: var(--accent); }
.group-label-text { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); white-space: nowrap; }
.group-label-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge-projects { background: var(--bg); color: var(--accent); border: 1px solid rgba(212,83,126,0.2); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.project-card { background: var(--bg); border: 1px solid var(--accent); border-radius: 20px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(212,83,126,0.15); }
.card-image { height: 200px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.card-image img { width: 100%; height: 100%; object-fit: 100%; }
.card-icon { font-size: 44px; position: relative; z-index: 1; }
.card-body { padding: 24px 28px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.card-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 12px; background: var(--bg-alt); color: var(--text); }
.card-title { font-family: 'Cormorant Garamond', serif; font-weight: 400; color: var(--text); margin-bottom: 8px; }
.card-links { display: flex; gap: 14px; }
.card-link { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.card-link:hover { gap: 10px; }
.card-link.github { color: var(--text-soft); }

/* contact */
#contact { background: var(--text); padding: 100px 60px; position: relative; overflow: hidden; }
.contact-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; pointer-events: none; }
.cb1 { width: 500px; height: 500px; background: var(--accent); top: -150px; right: -100px; }
.cb2 { width: 300px; height: 300px; background: var(--accent-2); bottom: -80px; left: 10%; }
.contact-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.contact-left { max-width: 540px; }
.contact-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.contact-title { font-size: clamp(40px, 5vw, 72px); color: var(--white); }
.contact-text { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.8; }
.contact-right { display: flex; flex-direction: column; gap: 16px; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 20px 28px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); text-decoration: none; color: var(--white); font-size: 14px; transition: background 0.2s, border-color 0.2s; min-width: 260px; }
.contact-link:hover { background: rgba(212,83,126,0.2); border-color: rgba(212,83,126,0.5); }
.contact-link-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-link-text { display: flex; flex-direction: column; gap: 2px; }
.contact-link-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; }

/* footer */
footer { background: var(--text); padding: 24px 60px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.3); }
footer span { color: var(--accent); }

/* fade-in */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  #hero, #projects, #contact, #learning { padding: 100px 24px 60px; }
  #about { padding: 60px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { flex-direction: column; }
}