/* ==========================================================================
   Aprajita Divya — Climate Finance & E&S Specialist
   Design adapted from the "Personal Blog / Community" Figma template
   ========================================================================== */

:root {
  /* Palette */
  --bg: #ffffff;
  --bg-soft: #f1f0f6;
  --surface: #f5f4f9;
  --surface-2: #ecebf3;
  --lavender: #c9b8f5;
  --lavender-strong: #b9a3f0;
  --lavender-soft: #e4dafb;
  --lavender-tint: #efe9fd;
  --ink: #1a1726;
  --ink-soft: #2b2738;
  --muted: #6e6a7c;
  --muted-light: #9b96a8;
  --dark: #14121c;
  --border: rgba(26, 23, 38, 0.10);
  --white: #ffffff;

  --font-display: 'Fredoka', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --radius-full: 999px;

  --shadow-sm: 0 4px 18px rgba(26, 23, 38, 0.06);
  --shadow-md: 0 14px 40px rgba(26, 23, 38, 0.09);
  --shadow-lg: 0 28px 70px rgba(26, 23, 38, 0.12);

  --header-height: 84px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  padding: 0.75rem 1.25rem; background: var(--dark); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Headings */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  background: var(--lavender-tint); padding: 0.45rem 1rem; border-radius: var(--radius-full);
  margin-bottom: 1.4rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
  border: none; cursor: pointer; border-radius: var(--radius-full);
  padding: 0.95rem 1.9rem; transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--lavender); color: var(--ink); }
.btn--primary:hover { background: var(--lavender-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--dark); color: var(--white); padding: 0.8rem 0.8rem 0.8rem 1.5rem; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--with-icon .btn__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--dark);
}
.btn--with-icon .btn__icon svg { width: 17px; height: 17px; }
.btn--round {
  width: 56px; height: 56px; padding: 0; border-radius: 50%;
  background: var(--lavender); color: var(--ink); flex-shrink: 0;
}
.btn--round:hover { background: var(--lavender-strong); transform: translateY(-2px) rotate(8deg); box-shadow: var(--shadow-md); }
.btn--round svg { width: 22px; height: 22px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-height);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink); }
.nav__menu { display: flex; align-items: center; gap: 0.4rem; }
.nav__link {
  padding: 0.5rem 1.05rem; font-size: 0.96rem; font-weight: 500; color: var(--muted);
  border-radius: var(--radius-full); transition: color var(--transition), background var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--ink); background: var(--lavender-tint); }
.nav__menu-cta { margin-left: 0.6rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: var(--header-height); min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #f3eefb 0%, #faf8fe 55%, #ffffff 100%); }
.hero__grid {
  position: absolute; inset: -10% 0 0 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(180, 160, 230, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 160, 230, 0.12) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.hero__orb--1 { width: 520px; height: 520px; background: #d8c7fa; top: -140px; left: -120px; }
.hero__orb--2 { width: 560px; height: 560px; background: #e7d5f6; bottom: -180px; right: 8%; }
.hero__grid-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2rem; }
.hero__content { padding: 3rem 0; max-width: 620px; }
.hero__title { font-size: clamp(3rem, 6.5vw, 5.4rem); font-weight: 600; }
.hero__subtitle { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--lavender-strong); margin-top: 0.6rem; }
.hero__lede { color: var(--muted); font-size: 1.06rem; margin-top: 1.5rem; max-width: 540px; }
.hero__actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 2.2rem; }
.hero__image-wrap { position: relative; align-self: end; justify-self: center; height: 100%; display: flex; align-items: flex-end; }
.hero__image { width: 100%; max-width: 540px; filter: drop-shadow(0 30px 50px rgba(26, 23, 38, 0.18)); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { margin-top: -3rem; position: relative; z-index: 2; padding: 0 0 1rem; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-card {
  background: var(--dark); color: var(--white); border-radius: var(--radius-lg);
  padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: var(--shadow-md);
}
.stat-card:nth-child(2) { background: var(--lavender); color: var(--ink); }
.stat-card:nth-child(3) { background: var(--surface-2); color: var(--ink); }
.stat-card__num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; line-height: 1; }
.stat-card__unit { font-size: 1.4rem; margin-left: 0.15rem; opacity: 0.85; }
.stat-card__label { font-size: 0.92rem; opacity: 0.78; line-height: 1.45; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: 6rem 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section__title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.section__sub { color: var(--muted); margin-top: 1rem; font-size: 1.04rem; }

/* ==========================================================================
   Work cards
   ========================================================================== */
.work { background: var(--bg); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.work-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card__top {
  position: relative; padding: 1.6rem 1.6rem 1.4rem; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ink); overflow: hidden;
}
.work-card__top--a { background: linear-gradient(135deg, #cdbcf6, #a98fe9); }
.work-card__top--b { background: linear-gradient(135deg, #cfe3d4, #a9cdb4); }
.work-card__top--c { background: linear-gradient(135deg, #f6d9c9, #efb89c); }
.work-card__top--d { background: linear-gradient(135deg, #c9dcf6, #9fb9ee); }
.work-card__top--e { background: linear-gradient(135deg, #e3d3f0, #c3a9e0); }
.work-card__top--f { background: linear-gradient(135deg, #1f1b2e, #443a63); color: var(--white); }
.work-card__tag {
  align-self: flex-start; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; background: rgba(255, 255, 255, 0.5); color: var(--ink);
  padding: 0.35rem 0.8rem; border-radius: var(--radius-full);
}
.work-card__top--f .work-card__tag { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.work-card__metric { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 1; }
.work-card__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.work-card__title { font-size: 1.22rem; font-weight: 600; line-height: 1.25; }
.work-card__text { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.work-card__loc { margin-top: auto; font-size: 0.82rem; font-weight: 600; color: var(--lavender-strong); padding-top: 0.4rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--bg-soft); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.about__image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__card {
  background: var(--lavender-soft); border-radius: var(--radius-lg); padding: 3rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1.3rem;
}
.about__card p { color: var(--ink-soft); font-size: 1.05rem; }
.about__actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.8rem; }

/* ==========================================================================
   Experience / Timeline
   ========================================================================== */
.experience { background: var(--bg); }
.timeline { max-width: 880px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 158px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 2.5rem; padding-bottom: 2.6rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item__period { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--lavender-strong); text-align: right; padding-top: 0.3rem; }
.timeline-item__content { position: relative; padding-left: 2.2rem; }
.timeline-item__content::before {
  content: ''; position: absolute; left: -7px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--lavender); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--lavender);
}
.timeline-item__role { font-size: 1.4rem; font-weight: 600; }
.timeline-item__org { color: var(--muted); font-weight: 500; margin: 0.25rem 0 1rem; }
.timeline-item__points { display: flex; flex-direction: column; gap: 0.65rem; }
.timeline-item__points li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); font-size: 0.97rem; }
.timeline-item__points li::before { content: ''; position: absolute; left: 0; top: 0.6rem; width: 7px; height: 7px; border-radius: 50%; background: var(--lavender-strong); }

/* ==========================================================================
   Expertise
   ========================================================================== */
.expertise { background: var(--bg-soft); }
.expertise__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.expertise-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); }
.expertise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.expertise-card__title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li { font-size: 0.83rem; font-weight: 500; color: var(--ink-soft); background: var(--lavender-tint); padding: 0.4rem 0.85rem; border-radius: var(--radius-full); }
.tag-list--plain li { background: var(--surface-2); }

.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.4rem; }
.edu__col { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); }
.edu__heading { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.2rem; }
.edu__heading--mt { margin-top: 1.8rem; }
.edu__list { display: flex; flex-direction: column; gap: 1.2rem; }
.edu__list li { display: flex; flex-direction: column; }
.edu__title { font-weight: 600; color: var(--ink); }
.edu__org { color: var(--muted); font-size: 0.92rem; }
.edu__year { color: var(--lavender-strong); font-size: 0.85rem; font-weight: 600; margin-top: 0.15rem; }

/* ==========================================================================
   Beyond the desk — gallery
   ========================================================================== */
.beyond { background: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1.2rem; }
.gallery__item { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--bg-soft); }
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: start; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 2.4rem; border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.form-group input, .form-group textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem; transition: border var(--transition), background var(--transition); resize: vertical;
}
.form-group textarea { border-radius: var(--radius-sm); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-light); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--lavender); background: var(--white); }
.form-group input.error, .form-group textarea.error { border-color: #e06a6a; }
.form-error { color: #d65151; font-size: 0.8rem; margin-top: 0.35rem; min-height: 1rem; }
.contact-form__submit { margin-top: 0.4rem; }
#submit-btn { position: relative; }
.btn__loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(26,23,38,0.3); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn--loading .btn__text { opacity: 0.5; }
.btn--loading .btn__loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 1rem; font-size: 0.92rem; font-weight: 500; }
.form-status.success { color: #2e7d52; }
.form-status.error { color: #d65151; }

.contact__cards { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.8rem; border: 1px solid var(--border); }
.contact-card__title { font-size: 1.15rem; font-weight: 600; }
.contact-card__desc { color: var(--muted); font-size: 0.88rem; margin: 0.4rem 0 0.9rem; }
.contact-card__value { font-weight: 600; color: var(--lavender-strong); word-break: break-word; }
a.contact-card__value:hover { text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--surface-2); padding: 4rem 0 2.5rem; }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.site-footer__logo { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.site-footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-footer__nav a { color: var(--muted); font-weight: 500; font-size: 0.96rem; transition: color var(--transition); }
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__socials { display: flex; gap: 0.7rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--ink); transition: transform var(--transition), background var(--transition), color var(--transition); }
.social-link svg { width: 19px; height: 19px; }
.social-link:hover { background: var(--lavender); transform: translateY(-3px); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; }
.site-footer__bottom p { color: var(--muted); font-size: 0.88rem; }
.site-footer__tag { font-weight: 500; }

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .work__grid, .expertise__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: clamp(2.6rem, 9vw, 4rem); }
}

@media (max-width: 860px) {
  .nav__menu {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.3rem;
    background: var(--white); padding: 1.2rem 1.5rem 2rem; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform var(--transition); z-index: 999;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__link { padding: 0.85rem 1rem; }
  .nav__menu-cta { margin: 0.6rem 0 0; }
  .nav__menu-cta .btn { width: 100%; justify-content: space-between; }
  .nav__toggle { display: flex; }

  .hero { min-height: auto; }
  .hero__grid-layout { grid-template-columns: 1fr; }
  .hero__content { padding: 2rem 0 0; text-align: center; margin: 0 auto; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__image-wrap { justify-self: center; margin-top: 1rem; }
  .hero__image { max-width: 360px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__image { max-height: 460px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .stats__grid, .work__grid, .expertise__grid, .edu { grid-template-columns: 1fr; }
  .about__card { padding: 2rem; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .timeline-item__period { text-align: left; }
  .timeline-item__content { padding-left: 1.4rem; }
  .timeline-item__content::before { left: -4px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .site-footer__top { flex-direction: column; align-items: flex-start; }
}
