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

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #EBE4DA;
  background: #0B1628;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: #D4A574;
  color: #0B1628;
}

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

/* ========== ANIMATIONS ========== */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(0.96); }
  66% { transform: translate(20px, -15px) scale(1.04); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Fade-in observer utility */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(11, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(235, 228, 218, 0.05);
}

.nav__spacer {
  width: 180px;
}

.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #EBE4DA;
  letter-spacing: 10px;
  text-align: center;
  flex: 1;
}

.nav__links {
  display: flex;
  gap: 32px;
  width: 180px;
  justify-content: flex-end;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.5);
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav__link:hover,
.nav__link.active {
  color: #D4A574;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(200px, 35vw, 500px);
  font-weight: 300;
  color: #EBE4DA;
  letter-spacing: 40px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 2.5s ease 0.3s;
}

.hero__watermark.loaded {
  opacity: 0.035;
}

.hero__greeting {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.hero__greeting.loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero__greeting span {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.45);
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.15;
  color: #EBE4DA;
  margin: 20px 0 28px;
  letter-spacing: 1px;
  min-height: clamp(50px, 7vw, 85px);
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.hero__title.loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero__cursor {
  display: inline-block;
  width: 3px;
  height: clamp(36px, 5.5vw, 64px);
  background: #D4A574;
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1.06s step-end infinite;
}

.hero__description {
  font-size: 16px;
  font-weight: 400;
  color: rgba(235, 228, 218, 0.6);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s;
}

.hero__description.loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle {
  font-size: 14px;
  color: rgba(235, 228, 218, 0.35);
}

.hero__cta-wrap {
  opacity: 0;
  transition: opacity 1.2s ease 1.3s;
}

.hero__cta-wrap.loaded {
  opacity: 1;
}

.hero__cta {
  display: inline-block;
  margin-top: 44px;
  padding: 14px 38px;
  background: transparent;
  color: #D4A574;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1.5px solid rgba(212, 165, 116, 0.35);
  transition: all 0.4s ease;
  cursor: pointer;
}

.hero__cta:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: rgba(212, 165, 116, 0.6);
}

/* Hero blobs */
.hero__blob-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.06), transparent 70%);
  top: 5%;
  right: -10%;
  animation: float1 20s ease-in-out infinite;
}

.hero__blob-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 196, 217, 0.05), transparent 70%);
  bottom: 10%;
  left: -8%;
  animation: float2 25s ease-in-out infinite;
}

.hero__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 187, 169, 0.04), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ========== SECTIONS (shared) ========== */
.section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--tinted {
  background: rgba(235, 228, 218, 0.03);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #D4A574;
  display: block;
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: #EBE4DA;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  font-size: 15px;
  color: rgba(235, 228, 218, 0.45);
  line-height: 1.75;
  margin-top: 16px;
}

/* ========== PROJECT CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: rgba(235, 228, 218, 0.03);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(235, 228, 218, 0.06);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(212, 165, 116, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card__banner {
  height: 190px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card__banner-circle-1 {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: -30px;
  right: -20px;
}

.card__banner-circle-2 {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  bottom: 20px;
  left: 30px;
}

.card__type-badge {
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 30px;
  position: relative;
  z-index: 1;
}

.card__body {
  padding: 28px 28px 32px;
}

.card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: #EBE4DA;
  line-height: 1.3;
  margin-bottom: 12px;
}

.card__summary {
  font-size: 13.5px;
  color: rgba(235, 228, 218, 0.5);
  line-height: 1.75;
  margin-bottom: 16px;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card__meta-pill {
  font-size: 11px;
  font-weight: 500;
  color: rgba(235, 228, 218, 0.4);
  background: rgba(235, 228, 218, 0.05);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(235, 228, 218, 0.05);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.card__tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 16px;
  letter-spacing: 0.3px;
}

.card__link {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  padding-bottom: 2px;
  cursor: pointer;
  letter-spacing: 0.5px;
  border-bottom: 2px solid;
  transition: opacity 0.3s ease;
}

.card__link:hover {
  opacity: 0.75;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 48px;
}

.about__photo {
  width: 280px;
  height: 360px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(168, 196, 217, 0.06));
  border: 1px solid rgba(235, 228, 218, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(235, 228, 218, 0.25);
}

.about__photo-icon {
  font-size: 48px;
  opacity: 0.6;
}

.about__photo-label {
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 2px;
  margin-top: 8px;
  color: rgba(235, 228, 218, 0.4);
}

.about__text {
  font-size: 15px;
  color: rgba(235, 228, 218, 0.55);
  line-height: 1.85;
  margin-top: 16px;
}

.about__text--highlight {
  font-style: italic;
  color: #D4A574;
}

/* ========== SKILLS / RESUME ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: rgba(235, 228, 218, 0.03);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(235, 228, 218, 0.05);
}

.skill-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: #D4A574;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.skill-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-size: 13px;
  font-weight: 400;
  color: rgba(235, 228, 218, 0.55);
  background: rgba(235, 228, 218, 0.04);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(235, 228, 218, 0.07);
}

.resume-btn-wrap {
  text-align: center;
  margin-top: 48px;
}

.resume-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1.5px solid rgba(212, 165, 116, 0.35);
  border-radius: 40px;
  color: #D4A574;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  cursor: pointer;
}

.resume-btn:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: rgba(212, 165, 116, 0.6);
}

/* ========== CONTACT ========== */
.contact-card {
  background: rgba(235, 228, 218, 0.03);
  border-radius: 22px;
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(235, 228, 218, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  margin-top: 16px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.35);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(235, 228, 218, 0.08);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #EBE4DA;
  background: rgba(235, 228, 218, 0.02);
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(235, 228, 218, 0.25);
}

.form-input:focus,
.form-textarea:focus {
  border-color: #D4A574;
  background: rgba(212, 165, 116, 0.05);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  background: #D4A574;
  color: #0B1628;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.15);
  font-family: 'DM Sans', sans-serif;
}

.form-submit:hover {
  background: #C4915F;
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.25);
}

.contact-success {
  text-align: center;
  padding: 40px 0;
}

.contact-success__icon {
  font-size: 48px;
}

.contact-success__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: #EBE4DA;
  margin-top: 16px;
}

.contact-success__text {
  font-size: 15px;
  color: rgba(235, 228, 218, 0.55);
  margin-top: 8px;
}

.social-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.social-dot {
  color: rgba(235, 228, 218, 0.15);
}

.social-link {
  font-size: 13px;
  font-weight: 500;
  color: #D4A574;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 0.7;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(235, 228, 218, 0.04);
}

.footer__text {
  font-size: 12px;
  color: rgba(235, 228, 218, 0.25);
  letter-spacing: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .nav__spacer {
    display: none;
  }

  .nav__links {
    gap: 16px;
    width: auto;
  }

  .nav__link {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .section {
    padding: 60px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
    text-align: center;
  }

  .about__photo {
    margin: 0 auto;
    width: 220px;
    height: 280px;
  }

  .section__title--left {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 28px 20px;
  }
}
