/* ============================================
   SIMRAN FATIMA — Cute Pink Developer Portfolio
   Core styles, layout, and page sections
   ============================================ */

:root {
  --pink: #8EC8F0;
  --light-pink: #E7F4FD;
  --soft-pink: #F5FBFF;
  --white: #FFFFFF;
  --text: #243038;
  --gray: #6E7780;
  --accent: #4F9FD8;
  --bg: #F7FBFE;
  --card: #FFFFFF;
  --border: rgba(79, 159, 216, 0.18);
  --shadow: 0 12px 40px rgba(79, 159, 216, 0.12);
  --shadow-soft: 0 8px 24px rgba(36, 48, 56, 0.06);
  --nav-h: 78px;
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
}

[data-theme="dark"] {
  --pink: #8EC8F0;
  --light-pink: #1E2C3A;
  --soft-pink: #15202B;
  --white: #121A22;
  --text: #E8F2FA;
  --gray: #B8C5D0;
  --accent: #7EC4F0;
  --bg: #0F161E;
  --card: #18222C;
  --border: rgba(126, 196, 240, 0.22);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.photo-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.project-shot img,
.placeholder-art img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.project-card .project-shot img {
  height: 180px;
}

.horizontal-card .project-shot img {
  height: 220px;
}

.cert-art img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.modal-art img {
  height: 320px;
}

.hero-photo {
  width: min(380px, 100%);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  border: 6px solid var(--white);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-photo,
.love-photo {
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-photo img,
.love-photo img,
.why-visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.blog-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}

.hobby-photo,
.contact-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}

.skill-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 12px;
}

.journey-cover {
  max-width: 640px;
  margin: 0 auto 32px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.journey-cover img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.edu-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}

.edu-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-text {
  color: var(--gray);
  max-width: 620px;
  font-size: 1.02rem;
}

.center {
  text-align: center;
}

.center .section-text {
  margin-inline: auto;
}

/* Decorative page background */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.blob-1 {
  width: 380px;
  height: 380px;
  background: var(--pink);
  top: -80px;
  right: -60px;
  animation: floaty 9s ease-in-out infinite;
}

.blob-2 {
  width: 280px;
  height: 280px;
  background: var(--light-pink);
  bottom: 10%;
  left: -80px;
  animation: floaty 11s ease-in-out infinite reverse;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--pink) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
}

[data-theme="dark"] .dot-grid {
  opacity: 0.08;
}

/* Page hero banners */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
}

.page-hero p {
  color: var(--gray);
  max-width: 560px;
  margin: 14px auto 0;
}

.sparkle {
  color: var(--accent);
  font-style: normal;
}

/* ================= HOME HERO ================= */
.hero {
  min-height: calc(100vh - 20px);
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 28px) 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.05;
  font-weight: 600;
}

.hero-role {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--light-pink);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-desc {
  margin: 22px 0 28px;
  color: var(--gray);
  max-width: 500px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-line {
  color: var(--gray);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

/* CSS laptop illustration */
.hero-visual {
  position: relative;
  height: 460px;
  display: grid;
  place-items: center;
}

.laptop {
  width: 340px;
  height: 230px;
  background: linear-gradient(180deg, #fff, #e6f3fb);
  border: 10px solid #3a3036;
  border-bottom-width: 16px;
  border-radius: 18px 18px 8px 8px;
  position: relative;
  box-shadow: var(--shadow);
  z-index: 2;
}

[data-theme="dark"] .laptop {
  background: linear-gradient(180deg, #2a2226, #1b1518);
  border-color: #4a4046;
}

.laptop-screen {
  height: 100%;
  padding: 18px;
  background: linear-gradient(160deg, #f5fbff, #e7f4fd);
  overflow: hidden;
}

[data-theme="dark"] .laptop-screen {
  background: linear-gradient(160deg, #2d2228, #1f171b);
}

.code-line {
  height: 8px;
  border-radius: 99px;
  margin-bottom: 10px;
  background: var(--pink);
}

.code-line:nth-child(1) { width: 42%; background: var(--accent); }
.code-line:nth-child(2) { width: 78%; }
.code-line:nth-child(3) { width: 64%; opacity: 0.7; }
.code-line:nth-child(4) { width: 86%; }
.code-line:nth-child(5) { width: 50%; opacity: 0.55; }
.code-line:nth-child(6) { width: 70%; }

.laptop-base {
  width: 400px;
  height: 14px;
  background: #3a3036;
  border-radius: 0 0 18px 18px;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .laptop-base {
  background: #4a4046;
}

.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  animation: floaty 6s ease-in-out infinite;
}

.chip-html { top: 28px; left: 18px; }
.chip-css { bottom: 54px; right: 10px; animation-delay: -2s; }
.chip-heart { top: 70px; right: 36px; animation-delay: -1.4s; }
.chip-star { bottom: 90px; left: 8px; animation-delay: -3s; }

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--pink);
}

.deco-a { width: 120px; height: 120px; top: 10px; right: 30px; }
.deco-b { width: 70px; height: 70px; bottom: 30px; left: 40px; }

/* Intro + stats */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.soft-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--gray);
  font-size: 0.86rem;
}

.goal-banner {
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  border-radius: 32px;
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.goal-banner h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  max-width: 800px;
  margin: 12px auto 18px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
  color: var(--accent);
}

.arrow-link i {
  animation: nudge 1.6s ease-in-out infinite;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.why-visual {
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ================= ABOUT ================= */
.about-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  margin-bottom: 28px;
}

.about-block.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.enjoy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.enjoy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}

.enjoy-card i {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.goal-type {
  margin-top: 20px;
  padding: 70px 30px;
  border-radius: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}

.goal-type p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.25;
}

/* ================= SKILLS ================= */
.skills-dash {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.skill-head h3 {
  font-family: var(--serif);
  font-size: 2rem;
}

.skill-tag {
  background: var(--light-pink);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.bar {
  height: 10px;
  background: var(--soft-pink);
  border-radius: 99px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--accent));
  transition: width 1.4s ease;
}

.skill-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.icon-skill {
  min-height: 160px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
}

.icon-skill i {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ================= PROJECTS ================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 40px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.featured-project {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
}

.project-shot,
.placeholder-art {
  min-height: 320px;
  overflow: hidden;
  background: var(--light-pink);
}

.project-copy {
  padding: 36px 32px 36px 8px;
}

.project-copy h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 8px 0 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 22px;
}

.masonry {
  column-count: 3;
  column-gap: 18px;
}

.masonry .project-card,
.masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.project-card .project-shot {
  min-height: 180px;
}

.project-card .pad {
  padding: 20px;
}

.tech-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.tech {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--light-pink);
  color: var(--accent);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* ================= TIMELINES ================= */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 40px auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--pink), var(--accent));
  border-radius: 99px;
}

.t-item {
  position: relative;
  padding: 0 0 36px 78px;
}

.t-dot {
  position: absolute;
  left: 16px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 6px var(--light-pink);
}

.t-num {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
}

.t-item h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
}

.journey-flow {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 40px auto 0;
  text-align: center;
}

.j-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.j-step.goal {
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  font-family: var(--serif);
  font-size: 1.35rem;
}

.j-arrow {
  color: var(--accent);
  font-size: 1.4rem;
}

/* ================= CERTIFICATES ================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.cert-art {
  min-height: 230px;
  overflow: hidden;
  background: var(--light-pink);
}

.cert-body {
  padding: 24px;
}

/* ================= INTERESTS ================= */
.love-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.pitch {
  height: 280px;
  border-radius: 24px;
  background:
    linear-gradient(#6db36d, #6db36d) center/4px 70% no-repeat,
    linear-gradient(#6db36d, #6db36d) 50% 50%/86% 4px no-repeat,
    radial-gradient(circle at 50% 50%, transparent 38px, #6db36d 39px, #6db36d 42px, transparent 43px),
    #7ec77e;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 10px #68ad68;
}

.ball {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #d9d9d9 40%, #222 41%);
  bottom: 36px;
  left: 46%;
  animation: floaty 3.4s ease-in-out infinite;
}

.hobby-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

/* ================= GALLERY ================= */
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.gallery-item img {
  width: 100%;
  min-height: 220px;
  height: 220px;
  object-fit: cover;
}

.gallery-item.tall img {
  min-height: 320px;
  height: 320px;
}

.gallery-item .cap {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--gray);
}

/* ================= BLOG ================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.blog-card .date {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 8px 0 10px;
}

/* ================= RESUME ================= */
.resume-sheet {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.resume-head {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.resume-head h1 {
  font-family: var(--serif);
  font-size: 3rem;
}

.resume-section h2 {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.86rem;
  margin: 22px 0 8px;
}

/* ================= CONTACT ================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.contact-note {
  background: linear-gradient(160deg, var(--light-pink), var(--soft-pink));
  border-radius: 28px;
  padding: 36px;
  border: 1px solid var(--border);
}

.placeholder-line {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 14px;
  color: var(--gray);
  border: 1px dashed var(--pink);
}

/* Reveal helpers used by JS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
