:root {
  --ink: #1c0f2e;
  --purple-deep: #2a1046;
  --purple: #4a1a7a;
  --purple-bright: #7b2ff2;
  --pink: #c026d3;
  --white: #ffffff;
  --cream: #faf7fd;
  --grey: #6b6178;
  --whatsapp: #25d366;
  --call: #2f6bff;
  --radius: 18px;
  --container: 1160px;
  --font: 'Cairo', 'Tahoma', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-cards .reveal:nth-child(2) {
  transition-delay: .1s;
}

.service-cards .reveal:nth-child(3) {
  transition-delay: .2s;
}

.service-cards .reveal:nth-child(4) {
  transition-delay: .3s;
}

.gallery-grid .reveal:nth-child(4n+2) {
  transition-delay: .08s;
}

.gallery-grid .reveal:nth-child(4n+3) {
  transition-delay: .16s;
}

.gallery-grid .reveal:nth-child(4n+4) {
  transition-delay: .24s;
}

/* ===== Hero load-in ===== */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.hero .hero-actions {
  animation: riseIn .8s ease both;
}

.hero p {
  animation-delay: .15s;
}

.hero .hero-actions {
  animation-delay: .3s;
}

/* ===== Service detail pages ===== */
.feature-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: right;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e6def2;
  font-size: 1rem;
}

.feature-list i {
  color: var(--pink);
  margin-top: 4px;
  flex-shrink: 0;
}

.service-gallery {
  padding: 90px 0;
}

/* ===== Buttons ===== */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: #06210f;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .55);
}

.btn-call {
  background: var(--call);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(47, 107, 255, .55);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 11, 46, .92);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-bright), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-text {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .3px;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: #e6def2;
  font-weight: 600;
  font-size: .98rem;
  padding: 6px 2px;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple-bright), var(--pink));
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(123, 47, 242, .55), transparent 60%),
    radial-gradient(60% 90% at 100% 20%, rgba(192, 38, 211, .35), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--purple-deep) 55%, var(--purple));
  color: #fff;
  padding: 100px 0 140px;
  overflow: hidden;
}

.hero-inner {
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  margin-bottom: 22px;
  line-height: 1.35;
}

.hero p {
  color: #e6def2;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

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

.wave-divider {
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.hero .wave-divider {
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
}

.hero .wave-divider path {
  fill: var(--cream);
}

.wave-top path {
  fill: var(--cream);
}

.services .wave-divider path {
  fill: var(--cream);
}

.contact-cta .wave-divider {
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
}

.contact-cta .wave-divider path {
  fill: var(--cream);
}

/* ===== About ===== */
.about {
  padding: 90px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 50%;
  box-shadow: 0 30px 60px -20px rgba(74, 26, 122, .35);
  border: 6px solid #fff;
  overflow: hidden;
}

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

.about-photo .slide.active {
  opacity: 1;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 18px;
}

.about-text p {
  color: var(--grey);
  margin-bottom: 28px;
}

/* ===== Services ===== */
.services {
  position: relative;
  background: linear-gradient(180deg, var(--purple-deep), var(--ink));
  color: #fff;
  padding: 20px 0 100px;
}

.services .wave-divider {
  margin-top: -1px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
  color: #cabfe0;
}

.services .section-sub {
  color: #cabfe0;
}

.gallery .section-sub {
  color: var(--grey);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 0 64px 0 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(10, 3, 26, .5);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:nth-child(even) {
  border-radius: 64px 0 28px 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -18px rgba(10, 3, 26, .6);
}

.card-photo {
  aspect-ratio: 4/3.3;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card:hover .card-photo img {
  transform: scale(1.06);
}

.card-body {
  padding: 28px 24px 32px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--purple-bright);
  margin-bottom: 14px;
}

.card p {
  color: var(--grey);
  font-size: .92rem;
  margin-bottom: 22px;
}

.card-link {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-bright), var(--pink));
  padding: 11px 26px;
  border-radius: 999px;
  font-size: .9rem;
  transition: transform .15s ease;
}

.card-link:hover {
  transform: translateY(-2px);
}

/* ===== Gallery ===== */
.gallery {
  padding: 90px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ===== Contact CTA ===== */
.contact-cta {
  position: relative;
  background: linear-gradient(150deg, var(--purple-deep), var(--ink) 60%);
  color: #fff;
  text-align: center;
  padding: 90px 0 140px;
}

.contact-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.contact-cta p {
  max-width: 640px;
  margin: 0 auto 34px;
  color: #e6def2;
}

.contact-cta .hero-actions {
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #cabfe0;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: .8fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-grid h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-grid p {
  margin-bottom: 10px;
}

.footer-social {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #06210f;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  font-size: 1.1rem;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand p {
  color: #b3a7c9;
  font-size: .92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  padding: 22px 0;
  font-size: .9rem;
  color: #9a8dba;
}

/* ===== Floating buttons ===== */
.float-btn {
  position: fixed;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  z-index: 60;
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45);
}

.float-whatsapp {
  left: 20px;
  background: var(--whatsapp);
}

.float-call {
  right: 20px;
  background: var(--call);
}

/* ===== Responsive ===== */
@media (max-width:980px) {
  .main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(20, 9, 36, .98);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .main-nav.open {
    max-height: 400px;
    padding: 10px 0;
  }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .nav-toggle {
    display: flex;
  }

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

  .about-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .about-text .hero-actions {
    justify-content: center;
  }

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

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

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

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

@media (max-width:520px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 70px 0 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }

  .gallery-grid img:hover {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero h1,
  .hero p,
  .hero .hero-actions {
    animation: none;
  }

  .about-photo .slide {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}