/* ===================================
   Carol Musyoka — Travel & Photography Blog
   Modern, dark, immersive design
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #161616;
  --color-text: #e8e8e8;
  --color-text-muted: #888888;
  --color-text-dim: #555555;
  --color-accent: #c9a96e;
  --color-accent-hover: #dfc08a;
  --color-white: #ffffff;
  --color-border: #222222;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --content-width: 720px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.35) 70%, transparent 100%);
  transition: background var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.4rem 0.7rem 0.35rem;
  transition: all var(--transition);
}

.nav-logo:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}


/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-col ul a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}



/* ======================================
   Responsive — Mobile (768px) — Nav & Footer
   ====================================== */
@media (max-width: 768px) {
  /* Navigation */
  .site-header {
    padding: 1rem 1.25rem;
  }

  .nav-logo {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem 0.25rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Footer */
  .footer {
    padding: 3rem 1.25rem 2rem;
  }
}

/* ===================================
   Portfolio — Clean Black & White
   =================================== */
.portfolio-page {
  background: #ffffff;
  color: #1a1a1a;
}

/* Portfolio header override — white */
.portfolio-page .site-header {
  background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 70%, transparent 100%);
}
.portfolio-page .site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 #e5e5e5;
}
.portfolio-page .site-header .nav-logo,
.portfolio-page .site-header .nav-links a {
  color: #1a1a1a;
}
.portfolio-page .site-header .nav-toggle span {
  background: #1a1a1a;
}

/* --- Hero --- */
.pf-hero {
  padding: 10rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pf-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pf-hero-greeting {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #666;
  margin-bottom: 0.5rem;
}

.pf-hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.pf-hero-name strong {
  font-weight: 700;
}

.pf-hero-role {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pf-role-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: #1a1a1a;
}

.pf-hero-role span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #555;
  letter-spacing: 0.02em;
}

.pf-role-star {
  color: #1a1a1a;
  font-size: 1.2rem;
}

.pf-hero-bio {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 440px;
}

.pf-hero-bio strong {
  color: #1a1a1a;
  font-weight: 600;
}

.pf-hero-values {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pf-hero-values li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.8;
}

.pf-hero-values li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #1a1a1a;
  font-weight: 700;
}

.pf-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero image — floating, no frame */
.pf-hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.pf-floating-img {
  width: 420px;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.6s ease, transform 0.6s ease;
  transform-origin: bottom center;
  animation: pf-float 4s ease-in-out infinite;
}

.pf-floating-img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
  animation-play-state: paused;
}

@keyframes pf-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.pf-image-badge {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

.pf-typed-text {
  color: #fff;
}

.pf-cursor {
  color: #fff;
  animation: pf-blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes pf-blink {
  50% { opacity: 0; }
}

/* Hero stats */
.pf-hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.pf-stat {
  text-align: center;
}

.pf-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.pf-stat-plus {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #1a1a1a;
}

.pf-stat-label {
  display: block;
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
}

/* --- Expertise Strip --- */
.pf-expertise-strip {
  background: #1a1a1a;
  padding: 1.2rem 2rem;
}

.pf-expertise-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.pf-expertise-pill {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: default;
}

.pf-expertise-pill:hover {
  color: #1a1a1a;
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* --- Social Bar --- */
.pf-social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e5e5;
  flex-wrap: wrap;
}

.pf-social-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.pf-social-bar a:hover {
  opacity: 0.5;
}

.pf-social-divider {
  width: 1px;
  height: 16px;
  background: #ccc;
}

/* --- Buttons --- */
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.pf-btn-primary {
  background: #1a1a1a;
  color: #ffffff;
}

.pf-btn-primary:hover {
  background: #333;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pf-btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
}

.pf-btn-outline:hover {
  background: #1a1a1a;
  color: #ffffff;
  transform: translateY(-2px);
}

.pf-btn-dark {
  background: #1a1a1a;
  color: #fff;
  border-radius: 50px;
  padding: 0.7rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pf-btn-dark:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

.pf-btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 0.95rem;
}

/* --- Section Headers --- */
.pf-section-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.pf-section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.pf-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
}

.pf-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
}

.pf-section-right {
  max-width: 360px;
  text-align: right;
}

.pf-section-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Centered section header */
.pf-section-header-centered {
  text-align: center;
}

.pf-section-title-lg {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

.pf-section-dot {
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.pf-section-lines {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 1.5rem;
}

.pf-section-lines span {
  display: block;
  width: 30px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transform: rotate(-25deg);
}

/* --- Services Grid --- */
.pf-services {
  padding: 5rem 0;
  background: #ffffff;
}

.pf-services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pf-service-card {
  padding: 2.5rem 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pf-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.pf-service-card:hover::before {
  transform: scaleY(1);
}

.pf-service-card > * {
  position: relative;
  z-index: 1;
}

.pf-service-card:hover {
  border-color: #1a1a1a;
}

.pf-service-card:hover h3,
.pf-service-card:hover p,
.pf-service-card:hover .pf-service-link,
.pf-service-card:hover .pf-service-icon {
  color: #ffffff;
}

.pf-service-icon {
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.pf-service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

.pf-service-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.pf-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.4s ease, gap 0.3s ease;
}

.pf-service-link:hover {
  gap: 0.7rem;
}

/* --- Experience --- */
.pf-experience {
  padding: 5rem 0;
  background: #fafafa;
}

.pf-experience-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pf-exp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e5e5;
  cursor: default;
  transition: all 0.3s ease;
}

.pf-exp-item:hover {
  padding-left: 1rem;
}

.pf-exp-company {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

.pf-exp-location {
  font-size: 0.82rem;
  color: #888;
}

.pf-exp-duration {
  font-size: 0.72rem;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 0.4rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.pf-exp-detail {
  padding: 0 0 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.pf-exp-detail p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pf-exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pf-exp-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #666;
  padding: 0.3rem 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  transition: all 0.25s ease;
}

.pf-exp-tags span:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* --- Projects / Case Study --- */
.pf-projects {
  padding: 5rem 0;
  background: #fff;
}

.pf-projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 2rem;
}

.pf-project-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.pf-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: #ccc;
}

.pf-project-image {
  padding: 1.5rem 1.5rem 0;
}

.pf-project-preview {
  width: 100%;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* Landscape previews for web apps */
.pf-project-preview--landscape {
  aspect-ratio: 16 / 9;
}

/* Portrait previews for mobile apps */
.pf-project-preview--portrait {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.pf-project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-project-preview--portrait img {
  width: auto;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

/* Fallback placeholder if image fails */
.pf-project-placeholder {
  width: 100%;
  height: 180px;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pf-project-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}

.pf-project-info {
  padding: 1.5rem;
}

.pf-project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.pf-project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.pf-project-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pf-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.pf-project-tech span {
  font-size: 0.7rem;
  font-weight: 500;
  color: #888;
  padding: 0.25rem 0.6rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.pf-project-tech span:hover {
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.pf-project-links {
  display: flex;
  gap: 0.75rem;
}

.pf-project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pf-project-cta:hover {
  opacity: 0.6;
}

.pf-project-cta-ghost {
  color: #888;
}

/* --- Skills --- */
.portfolio-page .pf-skills {
  padding: 5rem 0;
  background: #fafafa;
}

.portfolio-page .pf-skills-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-page .pf-skill-group {
  padding: 2rem 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-page .pf-skill-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: #1a1a1a;
}

.portfolio-page .pf-skill-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.portfolio-page .pf-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.portfolio-page .pf-skill-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #666;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: #f5f5f5;
  border: 1px solid #eee;
  transition: all 0.25s ease;
  cursor: default;
}

.portfolio-page .pf-skill-tags span:hover {
  color: #fff;
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-2px);
}

/* --- CTA Section --- */
.pf-cta {
  padding: 6rem 2rem;
  background: #1a1a1a;
  text-align: center;
}

.pf-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.pf-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.pf-cta-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.pf-cta-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pf-cta .pf-btn-primary {
  background: #ffffff;
  color: #1a1a1a;
}

.pf-cta .pf-btn-primary:hover {
  background: #f0f0f0;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

.pf-cta .pf-btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}

.pf-cta .pf-btn-outline:hover {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
}

/* --- Card entrance animations --- */
.pf-card-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-card-animate.pf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer override --- */
.portfolio-page .site-footer {
  background: #111;
  border-top: none;
}

.portfolio-page .site-footer h4,
.portfolio-page .site-footer p,
.portfolio-page .site-footer a {
  color: rgba(255,255,255,0.7);
}

.portfolio-page .site-footer a:hover {
  color: #fff;
}

.portfolio-page .footer-bottom p {
  color: rgba(255,255,255,0.3);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .pf-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .pf-hero-text {
    order: 2;
  }

  .pf-hero-image {
    order: 1;
  }

  .pf-hero-bio {
    max-width: 100%;
  }

  .pf-hero-role {
    justify-content: center;
  }

  .pf-hero-actions {
    justify-content: center;
  }

  .pf-hero-values {
    text-align: left;
    display: inline-block;
  }

  .pf-floating-img {
    width: 300px;
  }

  .pf-section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .pf-section-right {
    text-align: left;
  }

  .pf-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pf-hero {
    padding: 7rem 1.5rem 2rem;
  }

  .pf-hero-stats {
    gap: 2rem;
  }

  .pf-stat-num {
    font-size: 2rem;
  }

  .pf-projects-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-page .pf-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-exp-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pf-social-bar {
    gap: 1rem;
  }

  .pf-cta-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .pf-hero-name {
    font-size: 2.5rem;
  }

  .pf-hero-stats {
    flex-direction: row;
    gap: 1.5rem;
  }

  .portfolio-page .pf-skills-grid {
    grid-template-columns: 1fr;
  }

  .pf-expertise-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
  }

  .pf-arrow {
    display: none !important;
  }
}

/* ===================================
   Hand-drawn Arrows
   =================================== */
.pf-arrow {
  color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.pf-arrow.pf-drawn {
  opacity: 0.15;
}

.pf-arrow path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-arrow.pf-drawn path {
  stroke-dashoffset: 0;
}

/* Arrow positions */
.pf-arrow-hero-1 {
  position: absolute;
  top: 8rem;
  right: 5%;
  transform: rotate(-15deg);
  z-index: 1;
}

.pf-arrow-hero-2 {
  position: absolute;
  bottom: 2rem;
  left: 8%;
  transform: rotate(10deg);
  z-index: 1;
}

/* Inline arrows in section titles */
.pf-arrow-inline {
  display: inline-block;
  vertical-align: middle;
  color: #1a1a1a;
  opacity: 0.2;
  margin-left: 0.5rem;
}

/* Section header arrows */
.pf-arrow-section {
  display: block;
  margin: 1rem auto 0;
  color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pf-arrow-section.pf-drawn {
  opacity: 0.15;
}

.pf-arrow-section path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-arrow-section.pf-drawn path {
  stroke-dashoffset: 0;
}

/* CTA arrow */
.pf-arrow-cta {
  display: block;
  margin: 0 auto 1.5rem;
  color: rgba(255,255,255,0.2);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pf-arrow-cta.pf-drawn {
  opacity: 1;
}

.pf-arrow-cta path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-arrow-cta.pf-drawn path {
  stroke-dashoffset: 0;
}

/* Section subtitle */
.pf-section-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.75rem;
}

/* Remove old section lines */
.pf-section-lines { display: none; }

/* ===================================
   Currently Working On
   =================================== */
.pf-wip-section {
  padding: 5rem 0;
  background: #f5f5f5;
}

.pf-wip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pf-wip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pf-wip-card {
  padding: 2.5rem 2rem;
  border: 2px dashed #ccc;
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-wip-card:hover {
  border-color: #1a1a1a;
  border-style: solid;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.pf-wip-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.pf-wip-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.pf-wip-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.pf-wip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pf-wip-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #666;
  padding: 0.3rem 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
  transition: all 0.25s ease;
}

.pf-wip-tags span:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ===================================
   Enhanced Artsy Animations
   =================================== */

/* Stagger-in for card groups */
.pf-card-animate {
  opacity: 0;
  transform: translateY(50px) rotate(0.5deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-card-animate.pf-visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* Hero text reveal */
.pf-hero-text > * {
  opacity: 0;
  transform: translateY(25px);
  animation: pf-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pf-hero-greeting { animation-delay: 0.1s; }
.pf-hero-name { animation-delay: 0.25s; }
.pf-hero-role { animation-delay: 0.4s; }
.pf-hero-bio { animation-delay: 0.55s; }
.pf-hero-values { animation-delay: 0.65s; }
.pf-hero-actions { animation-delay: 0.8s; }

@keyframes pf-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero image pop-in */
.pf-hero-image {
  opacity: 0;
  transform: scale(0.9);
  animation: pf-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes pf-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stat number bounce */
.pf-stat {
  opacity: 0;
  transform: translateY(20px);
  animation: pf-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pf-stat:nth-child(1) { animation-delay: 0.9s; }
.pf-stat:nth-child(2) { animation-delay: 1.05s; }
.pf-stat:nth-child(3) { animation-delay: 1.2s; }

/* Expertise pill stagger */
.pf-expertise-pill {
  opacity: 0;
  transform: translateY(10px);
  animation: pf-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pf-expertise-pill:nth-child(1) { animation-delay: 1.2s; }
.pf-expertise-pill:nth-child(2) { animation-delay: 1.28s; }
.pf-expertise-pill:nth-child(3) { animation-delay: 1.36s; }
.pf-expertise-pill:nth-child(4) { animation-delay: 1.44s; }
.pf-expertise-pill:nth-child(5) { animation-delay: 1.52s; }
.pf-expertise-pill:nth-child(6) { animation-delay: 1.60s; }
.pf-expertise-pill:nth-child(7) { animation-delay: 1.68s; }
.pf-expertise-pill:nth-child(8) { animation-delay: 1.76s; }
.pf-expertise-pill:nth-child(9) { animation-delay: 1.84s; }
.pf-expertise-pill:nth-child(10) { animation-delay: 1.92s; }

/* Experience items slide-in from left */
.pf-exp-item.pf-card-animate {
  transform: translateX(-40px);
}

.pf-exp-item.pf-card-animate.pf-visible {
  transform: translateX(0);
}

/* Project cards scale-in */
.pf-project-card.pf-card-animate {
  transform: translateY(50px) scale(0.97);
}

.pf-project-card.pf-card-animate.pf-visible {
  transform: translateY(0) scale(1);
}

/* Hover tilt on project cards */
.pf-project-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-project-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: #ccc;
}

/* Service card text reveal on hover */
.pf-service-card h3 {
  transition: color 0.4s ease, transform 0.3s ease;
}

.pf-service-card:hover h3 {
  transform: translateX(4px);
}

/* Skill tag wobble on hover */
.portfolio-page .pf-skill-tags span:hover {
  animation: pf-wobble 0.4s ease;
}

@keyframes pf-wobble {
  0% { transform: translateY(-2px) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(2deg); }
  50% { transform: translateY(-2px) rotate(-2deg); }
  75% { transform: translateY(-2px) rotate(1deg); }
  100% { transform: translateY(-2px) rotate(0deg); }
}

/* Section headers fade-in */
.pf-section-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.pf-section-header.pf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* WIP card hover effects */
.pf-wip-card:hover .pf-wip-badge {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* Smooth scroll for the whole page */
.portfolio-page {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .pf-wip-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pf-wip-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Project Detail Pages
   =================================== */

/* --- Hero --- */
.pd-hero {
  background: #fafafa;
  padding: 6rem 0 4rem;
}

.pd-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.25s ease;
}

.pd-back:hover {
  color: #1a1a1a;
}

.pd-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pd-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

.pd-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.pd-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.pd-description {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.pd-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
  transition: all 0.3s ease;
}

.pd-btn-primary {
  background: #1a1a1a;
  color: #fff;
}

.pd-btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* --- Phone Frame Mockup (Android) --- */
.pd-phone-frame {
  width: 260px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
}

.pd-phone-notch {
  width: 80px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 8px;
}

/* --- iPhone Frame Mockup --- */
.pd-iphone-frame {
  width: 260px;
  background: #1a1a1a;
  border-radius: 42px;
  padding: 12px;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.pd-iphone-notch {
  width: 90px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  margin: -1px auto 0;
  position: relative;
  z-index: 2;
  align-self: center;
}

.pd-iphone-frame .pd-phone-screen {
  border-radius: 30px;
  margin-top: -14px;
}

.pd-iphone-indicator {
  width: 100px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  margin: 6px auto 2px;
}

.pd-frame-sm.pd-iphone-frame {
  width: 180px;
  border-radius: 30px;
  padding: 8px;
}

.pd-frame-sm.pd-iphone-frame .pd-iphone-notch {
  width: 60px;
  height: 16px;
  border-radius: 0 0 12px 12px;
}

.pd-frame-sm.pd-iphone-frame .pd-phone-screen {
  border-radius: 22px;
  margin-top: -10px;
}

.pd-frame-sm.pd-iphone-frame .pd-iphone-indicator {
  width: 70px;
  height: 3px;
  margin: 4px auto 1px;
}

.pd-phone-screen {
  background: #f5f5f5;
  border-radius: 24px;
  aspect-ratio: 9/19.5;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.pd-phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #aaa;
}

.pd-phone-placeholder svg {
  width: 48px;
  height: 48px;
}

.pd-phone-placeholder span {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pd-phone-screen img + .pd-phone-placeholder {
  display: none;
}

.pd-phone-screen.pd-placeholder-active .pd-phone-placeholder {
  display: flex;
}

/* --- Browser Frame Mockup (for Sokompare) --- */
.pd-browser-frame {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #e5e5e5;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
}

.pd-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.pd-browser-dots {
  display: flex;
  gap: 5px;
}

.pd-browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
}

.pd-browser-url {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.7rem;
  color: #999;
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  flex: 1;
}

.pd-browser-screen {
  aspect-ratio: 16/10;
  background: #f5f5f5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.pd-browser-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #aaa;
}

.pd-browser-placeholder svg {
  width: 80px;
  height: 48px;
}

.pd-browser-placeholder span {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pd-browser-screen img + .pd-browser-placeholder {
  display: none;
}

.pd-browser-screen.pd-placeholder-active .pd-browser-placeholder {
  display: flex;
}

/* --- Details Section --- */
.pd-details {
  background: #fff;
  padding: 4rem 0 5rem;
}

.pd-details-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pd-section {
  margin-bottom: 4rem;
}

.pd-section:last-child {
  margin-bottom: 0;
}

.pd-section-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
}

.pd-section > p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.85;
}

/* --- Features Grid --- */
.pd-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pd-feature {
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.pd-feature:hover {
  border-color: #1a1a1a;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.pd-feature-num {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ccc;
  margin-bottom: 0.75rem;
}

.pd-feature h3 {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
}

.pd-feature p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.75;
}

/* --- Screenshots Gallery --- */
.pd-screenshots {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.pd-screenshots::-webkit-scrollbar {
  height: 4px;
}

.pd-screenshots::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 2px;
}

.pd-screenshots::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.pd-screenshots:hover {
  mask-image: none;
  -webkit-mask-image: none;
}

.pd-screenshot-phone,
.pd-screenshot-browser {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
}

.pd-screenshot-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.pd-frame-sm.pd-phone-frame {
  width: 180px;
}

.pd-frame-sm.pd-browser-frame {
  width: 340px;
}

/* Web screenshot gallery */
.pd-screenshots-web {
  gap: 2rem;
}

/* --- Tech Grid --- */
.pd-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pd-tech-item {
  padding: 1.2rem 1.4rem;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: border-color 0.25s ease;
}

.pd-tech-item:hover {
  border-color: #1a1a1a;
}

.pd-tech-item h4 {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.pd-tech-item p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
}

/* --- CTA Section --- */
.pd-cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: #1a1a1a;
  border-radius: 16px;
  margin-top: 4rem;
}

.pd-cta-section h2 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.pd-cta-section p {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.pd-cta-section .pd-btn-primary {
  background: #fff;
  color: #1a1a1a;
}

.pd-cta-section .pd-btn-primary:hover {
  background: #f0f0f0;
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .pd-hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .pd-hero-text {
    order: 1;
  }

  .pd-hero-visual {
    order: 0;
  }

  .pd-actions {
    justify-content: center;
  }

  .pd-features {
    grid-template-columns: 1fr;
  }

  .pd-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pd-hero {
    padding: 2rem 0 3rem;
  }

  .pd-tech-grid {
    grid-template-columns: 1fr;
  }

  .pd-phone-frame {
    width: 200px;
  }

  .pd-frame-sm.pd-phone-frame {
    width: 150px;
  }

  .pd-frame-sm.pd-browser-frame {
    width: 280px;
  }

  .pd-iphone-frame {
    width: 200px;
  }

  .pd-frame-sm.pd-iphone-frame {
    width: 150px;
  }

  .pd-cta-section {
    padding: 2rem 1.5rem;
  }
}
