/* ==========================================================================
   Pranjal Chawan — Portfolio
   Design language inspired by the "Tabfolio" Framer template:
   soft animated pastel gradient backdrop, floating pill navigation,
   rounded cards, generous whitespace.
   ========================================================================== */

:root {
  --ink: #14151a;
  --ink-soft: #4b4d57;
  --muted: #7a7c87;
  --line: rgba(20, 21, 26, 0.09);
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-bg-solid: #ffffff;
  --pill-bg: rgba(255, 255, 255, 0.55);
  --pill-active-bg: #ffffff;
  --btn-dark: #14151a;
  --btn-dark-text: #ffffff;
  --btn-light-bg: rgba(255, 255, 255, 0.7);
  --btn-light-text: #14151a;
  --shadow-sm: 0 1px 2px rgba(20, 21, 26, 0.06);
  --shadow-md: 0 8px 30px rgba(20, 21, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 21, 26, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --grad-a: #ffd6e8;
  --grad-b: #d7d2ff;
  --grad-c: #cfe8ff;
  --grad-d: #ffe8c9;
  --max-width: 1320px;
  --accent: #6a5bcf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #f4f2fb;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- Animated gradient backdrop ---------- */
.gradient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f5fc 0%, #eef1fb 55%, #f5f2fb 100%);
}

.gradient-backdrop::before,
.gradient-backdrop::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float-blob 22s ease-in-out infinite;
}

.gradient-backdrop::before {
  top: -18%;
  left: -12%;
  background: radial-gradient(circle at 30% 30%, var(--grad-a), var(--grad-c) 60%, transparent 75%);
}

.gradient-backdrop::after {
  top: -8%;
  right: -18%;
  background: radial-gradient(circle at 60% 40%, var(--grad-b), var(--grad-d) 65%, transparent 75%);
  animation-delay: -11s;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-3%, 3%) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-backdrop::before,
  .gradient-backdrop::after {
    animation: none;
  }
}

/* ---------- Layout shell ---------- */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 0;
}

/* ---------- Hero row (hero left, nav right) ---------- */
.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-row .hero {
  flex: 1 1 260px;
  min-width: 0;
}

.hero-row .topbar {
  flex: 0 0 auto;
  padding-top: 4px;
}

/* ---------- Top nav ---------- */
.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.pill-nav {
  display: inline-flex;
  gap: 2px;
  padding: 6px;
  background: var(--pill-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.pill-nav a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.pill-nav a:hover {
  color: var(--ink);
}

.pill-nav a.active {
  background: var(--pill-active-bg);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero {
  padding: 4px 4px 40px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-c));
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.hero p.tagline {
  margin: 0 0 24px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--btn-dark);
  color: var(--btn-dark-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--btn-light-bg);
  color: var(--btn-light-text);
  border-color: rgba(20, 21, 26, 0.08);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #ffffff;
}

/* ---------- Section headings ---------- */
.section {
  padding: 8px 4px 56px;
}

.section + .section {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}

.eyebrow {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Project grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.thumb-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-thumb .thumb-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.project-thumb .thumb-glyph {
  font-size: 44px;
  opacity: 0.9;
}

.thumb-1 { background: linear-gradient(135deg, #ffd6e8, #cfe8ff); }
.thumb-2 { background: linear-gradient(135deg, #d7d2ff, #ffe8c9); }
.thumb-3 { background: linear-gradient(135deg, #cfe8ff, #d7f5df); }
.thumb-4 { background: linear-gradient(135deg, #ffe8c9, #ffd6e8); }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px 22px;
}

.project-meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.project-meta span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.placeholder-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(20, 21, 26, 0.18);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Cards (generic) ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

/* ---------- Socials page ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-info h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.social-info span {
  font-size: 13px;
  color: var(--muted);
}

.social-card .arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.social-card:hover .arrow {
  transform: translateX(3px);
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.about-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #ffd6e8, #d7d2ff, #cfe8ff);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots .dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

.about-copy h2 {
  font-size: 24px;
  margin: 0 0 6px;
  font-weight: 600;
}

.about-copy h2.sub {
  font-size: 20px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 15px;
  margin: 0 0 16px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.tag-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.value-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.value-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Resume page ---------- */
.resume-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--line);
}

.company-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.timeline-item .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.timeline-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tool-card {
  text-align: left;
}

.tool-card h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
}

.tool-card span {
  font-size: 12.5px;
  color: var(--muted);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Footer ---------- */
footer {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

footer .foot-brand h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

footer .foot-brand p {
  margin: 0;
  max-width: 320px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

footer .foot-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

footer .foot-col h5 {
  margin: 0 0 12px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

footer .foot-col a,
footer .foot-col span {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 10px;
}

footer .foot-col a:hover {
  color: var(--ink);
}

.foot-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-carousel {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .hero-row {
    flex-direction: column-reverse;
  }
  .hero-row .hero {
    flex-basis: auto;
  }
  .hero-row .topbar {
    width: 100%;
  }
  .hero h1 {
    font-size: 30px;
  }
  .project-grid,
  .social-grid,
  .values-grid,
  .tools-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .pill-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pill-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }
  footer {
    flex-direction: column;
  }
  .project-thumb {
    height: 280px;
  }
}

/* ==========================================================================
   Case study pages
   ========================================================================== */

.case-subnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 252, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.case-subnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.case-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.case-back:hover {
  transform: translateX(-2px);
}

.case-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.case-tabs::-webkit-scrollbar {
  display: none;
}

.case-tabs a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.case-tabs a:hover {
  color: var(--ink);
}

.case-tabs a.active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.case-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 24px 0;
}

.case-eyebrow {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.case-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  max-width: 820px;
}

.case-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
  margin: 0;
}

.case-hero-image {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.case-hero-image img {
  width: 100%;
  display: block;
}

.case-meta-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.case-meta-grid h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.case-meta-grid p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.case-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 1px;
  background: var(--line);
}

.case-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  scroll-margin-top: 84px;
}

.case-section + .case-section {
  border-top: 1px solid var(--line);
}

.case-eyebrow-accent {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 10px;
}

.case-section h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 14px;
  max-width: 760px;
}

.case-section p.lead {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 760px;
  margin: 0;
}

.case-impact {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.case-impact h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}

.case-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 22px;
}

.case-points span {
  font-size: 14px;
  color: var(--muted);
}

.case-points span b {
  color: var(--ink);
  font-weight: 600;
}

.case-callout {
  margin-top: 24px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  max-width: 720px;
}

.case-callout .mark {
  font-size: 30px;
  font-weight: 700;
  color: var(--grad-b);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.case-callout p {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
  font-weight: 500;
}

.case-image-block {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.case-image-block img {
  width: 100%;
  display: block;
}

.case-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.case-explore {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px 64px;
}

@media (max-width: 780px) {
  .case-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .case-title {
    font-size: 26px;
  }
  .case-section h2 {
    font-size: 21px;
  }
}

/* ---------- LinkedIn posts ---------- */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-date {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.post-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  max-width: 720px;
}

.post-excerpt {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 680px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.post-tags span {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
}

.post-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
