:root {
  --bg: #fffafb;
  --bg-soft: #fdf2f5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #4b3d46;
  --text-soft: #7b6872;
  --title: #2f2430;
  --primary: #d6a5c0;
  --primary-dark: #c58aac;
  --secondary: #e8d8f3;
  --accent: #f3d7d7;
  --border: rgba(196, 151, 177, 0.24);
  --shadow: 0 20px 60px rgba(208, 168, 189, 0.18);
  --shadow-soft: 0 10px 30px rgba(221, 190, 204, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 80%;
  --transition: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(232, 216, 243, 0.45), transparent 30%),
    radial-gradient(circle at bottom left, rgba(243, 215, 215, 0.38), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading.center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--primary-dark);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--title);
  line-height: 1.3;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
}

h1 span {
  display: block;
  margin-top: 10px;
  font-family: "Vazirmatn", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 500;
  color: var(--text-soft);
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  margin: 0;
}

.bg-blur {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

.blur-1 {
  width: 280px;
  height: 280px;
  top: 120px;
  right: -60px;
  background: rgba(232, 216, 243, 0.9);
}

.blur-2 {
  width: 320px;
  height: 320px;
  bottom: 60px;
  left: -80px;
  background: rgba(243, 215, 215, 0.75);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 251, 0.78);
  border-bottom: 1px solid rgba(214, 165, 192, 0.14);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center; 
  justify-content: center;
  gap: 20px;
}


.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  color: var(--title);
  font-weight: 700;
}

.brand span {
  color: var(--primary-dark);
}


/* Hero */
.hero {
  padding-top: 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-text {
  max-width: 620px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(197, 138, 172, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
  color: var(--title);
  box-shadow: var(--shadow-soft);
}

.full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 650px;
}

.metric-card {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.metric-card strong {
  display: block;
  color: var(--title);
  font-size: 1rem;
  margin-bottom: 4px;
}

.metric-card span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame {
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  border-radius: 36px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(232,216,243,0.58));
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 165, 192, 0.25);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.floating-card {
  position: absolute;
  min-width: 150px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.floating-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 3px;
}

.floating-card strong {
  color: var(--title);
  font-size: 1rem;
}

.card-1 {
  top: 65px;
  left: 5px;
}

.card-2 {
  bottom: 80px;
  right: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.about-card {
  padding: 34px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.about-card p + p {
  margin-top: 16px;
}

/* Skills */
.skills-wrap {
  max-width: 1200px; 
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}


.skill-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--title);
}

.skill-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(232, 216, 243, 0.4);
  overflow: hidden;
}

.skill-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
  transition: width 1.4s ease;
}

/* Services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 28px;
  min-height: 250px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: var(--title);
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  min-height: 360px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(232, 216, 243, 0.25), rgba(214, 165, 192, 0.45)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: var(--shadow-soft);
}

.portfolio-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(243, 215, 215, 0.18), rgba(200, 162, 200, 0.42)),
    url("https://images.unsplash.com/photo-1558655146-d09347e92766?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.portfolio-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(214, 165, 192, 0.48)),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47, 36, 48, 0.6), transparent 55%);
}

.portfolio-content {
  position: absolute;
  right: 22px;
  left: 22px;
  bottom: 22px;
  color: #fff;
  z-index: 1;
}

.portfolio-content span {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio-content h3 {
  color: #fff;
  font-size: 1.3rem;
}

/* تنظیمات کلی بخش */
.contact-section { padding: 100px 0; background: #fafafa; }
.contact-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.contact-header { text-align: center; margin-bottom: 60px; }
.subtitle { color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }
h2 { font-size: 2.5rem; margin-top: 10px; color: #1a1a1a; }

/* گریدِ هوشمند */
.contact-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 20px; 
}

/* کارت‌های مینیمال */
.contact-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #eee;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: #000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-box { 
  font-size: 2rem; 
  margin-bottom: 15px; 
  color: #333; 
}

.contact-card h4 { font-size: 1.1rem; color: #1a1a1a; margin-bottom: 5px; }
.contact-card span { font-size: 0.85rem; color: #777; }


/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .cards-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-content,
  .contact-text,
  .section-heading {
    text-align: center;
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-metrics {
    max-width: 100%;
  }

  .eyebrow {
    justify-content: center;
  }

  .card-1 {
    left: 24px;
  }

  .card-2 {
    right: 24px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 14px;
    display: grid;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: rgba(232, 216, 243, 0.22);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 88px 0;
  }

  .header-inner {
    min-height: 74px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    max-width: 320px;
  }

  .floating-card {
    min-width: 126px;
    padding: 12px 14px;
  }

  .card-1 {
    top: 24px;
    left: 8px;
  }

  .card-2 {
    bottom: 24px;
    right: 8px;
  }

  .about-card,
  .service-card,
  .contact-form,
  .skill-item {
    padding: 22px;
  }

  .portfolio-card {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .brand {
    font-size: 1.55rem;
  }

  .floating-card {
    font-size: 0.88rem;
  }

  .card-1,
  .card-2 {
    position: static;
    margin-top: 12px;
  }

  .hero-visual {
    display: grid;
    gap: 12px;
  }
}
