:root {
  --primary: #d63384;
  --secondary: #f8d7da;
  --accent: #b76e79;
  --background: #fffafc;
  --text: #333333;
  --glass: rgba(255, 255, 255, 0.55);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --gradient: linear-gradient(135deg, #f9cfe7, #fce8ef 40%, #f7d7e3);
}

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #1f1b1c;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease, filter 0.35s ease;
}

main {
  overflow: hidden;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.top-nav.inner {
  position: sticky;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.cta-phone {
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(214, 51, 132, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(214, 51, 132, 0.35);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 60px 5vw 40px;
  gap: 32px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gradient);
  box-shadow: var(--shadow);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: saturate(0.95) contrast(1.05);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(214, 51, 132, 0.4));
  animation: float 10s ease-in-out infinite;
}

.circle-one { width: 140px; height: 140px; top: 10%; left: 8%; animation-delay: 0s; }
.circle-two { width: 200px; height: 200px; bottom: 8%; right: 12%; animation-delay: 1.5s; }
.circle-three { width: 120px; height: 120px; bottom: 18%; left: 18%; animation-delay: 0.7s; }

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  animation: fadeUp 0.9s ease forwards;
}

.hero-logo {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.hero-title {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  max-width: 580px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 16px 30px rgba(214, 51, 132, 0.3);
}

.btn.ghost {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(183, 110, 121, 0.35);
}

.section {
  padding: 70px 5vw;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.about-grid,
.services-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card,
.service-card,
.testimonial-card,
.contact-card,
.cta-card,
.map-wrapper,
.portfolio-item {
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.services-grid h3 {
  margin-bottom: 8px;
}

.portfolio-preview .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-weight: 600;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item:hover::after,
.portfolio-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.center {
  text-align: center;
  margin-top: 24px;
}

.testimonial-card {
  min-height: 160px;
}

.client {
  font-weight: 600;
  color: var(--accent);
}

.cta {
  padding-top: 0;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.contact-card a {
  display: inline-flex;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.map-wrapper iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 16px;
}

.footer {
  padding: 30px 5vw;
  background: #1f1b1c;
  color: #f7e9f2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: center;
}

.footer a {
  color: #fbe7f3;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand img {
  width: 120px;
  height: auto;
  border-radius: 14px;
}

.brand-name {
  margin: 0;
  font-weight: 700;
}

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

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.socials {
  display: flex;
  gap: 10px;
  font-weight: 600;
}

.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 15px 35px rgba(214, 51, 132, 0.3);
  text-decoration: none;
  opacity: 0.9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(214, 51, 132, 0.35);
}

/* Hover lift for components */
.card:hover,
.service-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.cta-card:hover,
.map-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.12);
}

/* Portfolio page */
.page {
  padding: 30px 0 60px;
}

.page-hero {
  padding: 40px 5vw 10px;
}

.filters {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(214, 51, 132, 0.25);
}

.portfolio-masonry {
  padding: 10px 5vw 60px;
}

.masonry {
  column-count: 3;
  column-gap: 16px;
}

.masonry-item {
  margin: 0 0 16px;
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  background: #fff;
}

.masonry-item img {
  width: 100%;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.masonry-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.masonry-item:hover::after,
.masonry-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(214, 51, 132, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.contact-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    right: 5vw;
    top: 64px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    width: 240px;
    padding: 14px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .cta-phone {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 540px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .portfolio-preview .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .masonry {
    column-count: 1;
  }

  .section {
    padding: 60px 5vw;
  }

  .top-nav {
    padding: 14px 5vw;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-brand img {
    width: 72vw;
    max-width: 220px;
    height: auto;
    border-radius: 16px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    align-items: center;
  }
}
