:root {
  --bg: #080d1c;
  --card: #101a30;
  --card-light: #162440;
  --primary: #00d9ff;
  --secondary: #7657ff;
  --white: #ffffff;
  --muted: #a5b2ca;
  --border: rgba(255,255,255,.09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
}

.header {
  width: 100%;
  min-height: 75px;
  padding: 14px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,13,28,.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(15px);
}

.logo {
  font-size: 27px;
  font-weight: 900;
  direction: ltr;
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  transition: .3s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 27px;
  cursor: pointer;
}

.hero {
  min-height: 600px;
  padding: 85px 10%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 50px;
  position: relative;
  overflow: hidden;
}

.tag {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.5;
  margin: 20px 0;
}

.hero h1 span {
  color: var(--primary);
}

.hero-content > p {
  color: var(--muted);
  line-height: 2.1;
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.main-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  transition: .3s;
  cursor: pointer;
}

.main-btn {
  background: linear-gradient(120deg,var(--primary),var(--secondary));
  color: #07101d;
  border: 1px solid transparent;
}

.outline-btn {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.main-btn:hover,
.outline-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,217,255,.2);
}

.hero-stats {
  display: flex;
  gap: 35px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  color: var(--primary);
  font-size: 24px;
  direction: ltr;
}

.hero-stats small {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  min-height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-card {
  width: 300px;
  height: 330px;
  border: 1px solid rgba(0,217,255,.4);
  background: linear-gradient(145deg,#152747,#10152b);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 70px rgba(0,217,255,.12);
  transform: rotate(-3deg);
  z-index: 2;
  animation: floating 5s ease-in-out infinite;
}

.visual-icon {
  font-size: 65px;
  color: var(--primary);
}

.visual-card h2 {
  font-size: 35px;
  margin-top: 10px;
}

.visual-card p,
.visual-card span {
  color: var(--muted);
}

.visual-line {
  height: 3px;
  width: 120px;
  background: var(--primary);
  margin: 25px;
}

.glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .25;
}

.glow-one {
  background: var(--primary);
  top: 20px;
  right: 20px;
}

.glow-two {
  background: var(--secondary);
  bottom: 10px;
  left: 20px;
}

.section {
  padding: 85px 10%;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title span {
  color: var(--primary);
  font-weight: 800;
}

.section-title h2 {
  font-size: 34px;
  margin: 10px 0;
}

.section-title p {
  color: var(--muted);
  line-height: 1.9;
}

.service-grid,
.portfolio-grid,
.pricing-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
}

.service-card,
.portfolio-card,
.price-card,
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 17px;
  transition: .35s;
}

.service-card {
  padding: 30px;
}

.service-card:hover,
.portfolio-card:hover,
.price-card:hover,
.review-card:hover {
  transform: translateY(-7px);
  border-color: var(--primary);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-card a,
.portfolio-info a {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

/* PORTFOLIO */

.portfolio-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.portfolio-card {
  overflow: hidden;
}

.project-preview {
  height: 210px;
  margin: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  overflow: hidden;
}

.preview-shop {
  background: linear-gradient(135deg,#3b174c,#121b37);
}

.preview-business {
  background: linear-gradient(135deg,#073d55,#101a30);
}

.preview-tech {
  background: linear-gradient(135deg,#34236c,#101a30);
}

.preview-top {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
}

.preview-shape {
  font-size: 75px;
  color: var(--primary);
  text-shadow: 0 0 30px rgba(0,217,255,.5);
}

.preview-bottom {
  font-size: 11px;
  letter-spacing: 3px;
}

.portfolio-info {
  padding: 15px 20px 25px;
}

.portfolio-info span {
  color: var(--primary);
  font-size: 12px;
}

.portfolio-info h3 {
  margin: 8px 0 15px;
}

.demo-note {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  margin-top: 25px;
}

/* ABOUT */

.about-box {
  background: linear-gradient(120deg,#122746,#171b3c);
  border: 1px solid rgba(0,217,255,.2);
  padding: 50px;
  border-radius: 20px;
}

.about-box h2 {
  font-size: 32px;
  margin: 15px 0;
}

.about-box p {
  color: var(--muted);
  line-height: 2.1;
  margin-bottom: 25px;
  max-width: 650px;
}

/* PRICING */

.pricing-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
}

.price-card {
  padding: 30px 22px;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg,#142d4b,#101a30);
}

.popular-label {
  position: absolute;
  top: -13px;
  left: 20px;
  background: var(--primary);
  color: #07101d;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 20px;
}

.price-label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.price-card h3 {
  font-size: 21px;
  margin: 13px 0;
}

.price-description {
  color: var(--muted);
  font-size: 13px;
  min-height: 28px;
}

.price-value {
  font-size: 22px;
  font-weight: 900;
  margin: 25px 0;
  color: var(--primary);
}

.price-card ul {
  list-style: none;
  margin-bottom: 30px;
}

.price-card li {
  color: var(--muted);
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.price-card .main-btn,
.price-card .outline-btn {
  width: 100%;
}

/* REVIEWS */

.review-card {
  padding: 25px;
}

.review-stars {
  color: #ffc94b;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.review-card > p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  margin-bottom: 25px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  display: grid;
  place-items: center;
  color: #07101d;
  font-weight: 900;
}

.review-user strong,
.review-user small {
  display: block;
}

.review-user strong {
  font-size: 13px;
}

.review-user small {
  color: var(--muted);
  font-size: 11px;
}

/* CONTACT */

.contact-box {
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(0,217,255,.2);
  border-radius: 20px;
  padding: 45px 20px;
}

.contact-icon {
  color: var(--primary);
  font-size: 48px;
  margin-bottom: 10px;
}

.contact-box h3 {
  font-size: 27px;
  margin-bottom: 12px;
}

.contact-box p {
  color: var(--muted);
  margin-bottom: 25px;
}

.contact-box .phone-number {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 800;
}

/* WHATSAPP */

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 25px;
  width: 58px;
  height: 58px;
  background: #20c968;
  color: white;
  display: grid;
  place-items: center;
  border-radius: 50%;
  z-index: 99;
  box-shadow: 0 5px 25px rgba(32,201,104,.35);
  transition: .3s;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.12);
}

/* FOOTER */

.footer {
  padding: 35px 10%;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 13px;
}

/* ANIMATIONS */

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

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

@keyframes floating {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes whatsappPulse {
  0%,100% { box-shadow: 0 5px 25px rgba(32,201,104,.35); }
  50% { box-shadow: 0 5px 35px rgba(32,201,104,.65); }
}

/* MOBILE */

@media (max-width: 950px) {
  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 12px;
  }

  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 5%;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 75px;
    right: 0;
    width: 100%;
    padding: 25px;
    background: #101a30;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 65px 7%;
    gap: 25px;
  }

  .hero-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .hero-stats {
    justify-content: center;
  }

  .visual-card {
    width: 260px;
    height: 290px;
  }

  .section {
    padding: 65px 7%;
  }

  .service-grid,
  .portfolio-grid,
  .pricing-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 27px;
  }

  .about-box {
    padding: 30px 22px;
  }

  .about-box h2 {
    font-size: 25px;
  }

  .whatsapp-float {
    width: 53px;
    height: 53px;
    left: 15px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

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