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

:root {
  --primary: #2d9b9b;
  --primary-dark: #1a5c5c;
  --accent: #0a3d3d;
  --light-bg: #f8fbfb;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --border-color: #000000;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: white;
  direction: rtl;
  position: relative;
}

/* Logo Watermark Background */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: url("advoxwebs-logo.png") no-repeat center;
  background-size: contain;
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* AdvoxWebs Logo Gradient - Mega Slow Fade */
.logo-gradient {
  background: linear-gradient(
    90deg,
    #0a3d3d 0%,
    #0a3e3e 5%,
    #0a4040 10%,
    #0b4242 15%,
    #0c4444 20%,
    #0d4646 25%,
    #0e4848 30%,
    #0f4a4a 35%,
    #104c4c 40%,
    #124f4f 45%,
    #145555 50%,
    #165b5b 55%,
    #186161 60%,
    #1a6767 65%,
    #1c6d6d 70%,
    #207575 75%,
    #248787 80%,
    #289b9b 90%,
    #2d9b9b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
  font-weight: 700;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  cursor: pointer;
  font-weight: bold;
}

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

/* Hero Section - RTL Layout (Logo Left + Text Right) */
.hero {
  padding: 4rem 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 380px;
  flex-direction: row-reverse;
}

.hero-left {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flipY 2s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes flipY {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.hero-right {
  flex: 1;
  text-align: right;
  direction: rtl;
}

.hero-right h1 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

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

.hero-tagline {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.hero-problem-line {
  font-size: 1.05rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.hero-problem-line .hero-highlight {
  color: var(--primary);
  font-weight: 600;
}

.hero-description-line {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-top: 2.5rem;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle .highlight {
  color: var(--primary);
  font-weight: 600;
}

.hero-right .cta-button {
  padding: 0.85rem 2.5rem;
  background: #2d9b9b;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-right .cta-button:hover {
  background: #1a5c5c;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(45, 155, 155, 0.2);
}

/* Services Section */
.services {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #1a5c5c;
  font-weight: 700;
  position: relative;
  padding: 1rem 0 1.5rem 0;
  background: linear-gradient(90deg, transparent 0%, rgba(45, 155, 155, 0.1) 50%, transparent 100%);
  border-radius: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0a3d3d 0%, #2d9b9b 100%);
  border-radius: 2px;
}

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

.service-card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation:
    slideInUp 0.6s ease-out both,
    float 3s ease-in-out infinite;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s, 0s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s, 0.3s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s, 0.6s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s, 0.9s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s, 1.2s;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(45, 155, 155, 0.1);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
  padding: 4rem 2rem;
}

.portfolio-content {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: scaleIn 0.5s ease-out both;
  cursor: pointer;
  opacity: 0;
}

.portfolio-item:nth-child(1) {
  animation-delay: 0.2s;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.portfolio-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}

.portfolio-image {
  width: 100%;
  height: 200px;
  background: var(
    --project-color,
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  transition: all 0.3s ease;
  padding: 1rem;
}

.portfolio-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.portfolio-item:hover .portfolio-image {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--accent) 100%
  );
}

.portfolio-info {
  padding: 1.5rem;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  padding: 2rem;
  text-align: center;
  color: black;
}

.cta-section h2 {
  font-size: 2.2rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Footer */
footer {
  background: rgb(180, 180, 180);
  color: black;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  border-top: black 1px solid;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-button {
  color: #aaa;
  float: left;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: var(--primary);
}

.modal-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.modal-section {
  margin-bottom: 2rem;
}

.highlights-list {
  list-style: none;
  padding: 0;
}

.highlights-list li {
  padding: 0.8rem 0;
  padding-right: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.highlights-list li:before {
  content: "✓ ";
  font-weight: bold;
  margin-right: 0.5rem;
}

.modal-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-link:hover {
  transform: translateY(-2px);
}
/* Responsive Hero */
@media (max-width: 1024px) {
  .hero-container {
    gap: 2rem;
  }

  .hero-right h1 {
    font-size: 1.9rem;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .hero-left {
    flex: 0 0 160px;
  }
}

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

  .hero-container {
    flex-direction: column;
    min-height: auto;
    gap: 2rem;
  }

  .hero-left {
    order: -1;
    flex: 1;
  }

  .hero-right {
    text-align: center;
  }

  .hero-right h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-tagline,
  .hero-problem-line,
  .hero-description-line {
    text-align: center;
  }

  .hero-logo {
    width: 150px;
    height: 150px;
  }

  .hero-left {
    flex: 0 0 150px;
  }
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .modal-content {
    margin: 20% auto;
    width: 90%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-container {
    gap: 1.5rem;
  }

  .hero-right h1 {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 0.85rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero-left {
    flex: 0 0 120px;
  }
}
/* Interactive Service Cards */
.service-card-interactive {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card-interactive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2d9b9b 0%, #1a5c5c 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card-interactive:hover::before {
  transform: scaleX(1);
}

.included-link {
  display: inline-block;
  color: #2d9b9b;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.included-link:hover {
  color: #1a5c5c;
}

.included-link::before {
  content: "📋 ";
}
/* Service Card Accordion */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(45, 155, 155, 0.15);
  transform: translateY(-5px);
}

.service-card.expanded {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
  box-shadow: 0 15px 40px rgba(45, 155, 155, 0.2);
  border-color: var(--primary);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
}

.service-header-content {
  flex: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.expand-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.service-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.service-card.expanded .service-content {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
}

.service-content h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.service-content h4:first-child {
  margin-top: 0;
}

.service-content p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}
/* CTA Buttons */
.cta-buttons-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}

.btn-instagram {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1e9e57 100%);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-email {
  background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
}

.btn-email:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(234, 67, 53, 0.3);
}

.btn-icon {
  font-size: 1.2rem;
}
/* Notification Animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}
.hero-cta-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}
.hero-welcome {
  margin-bottom: 1.5rem;
  line-height: 1.4;
  font-size: 2.5rem;
  color: #1a1a1a;
}

.logo-gradient-hero {
  background: linear-gradient(
    90deg,
    #0a3d3d 0%,
    #0a3e3e 5%,
    #0a4040 10%,
    #0b4242 15%,
    #0c4444 20%,
    #0d4646 25%,
    #0e4848 30%,
    #0f4a4a 35%,
    #104c4c 40%,
    #124f4f 45%,
    #145555 50%,
    #165b5b 55%,
    #186161 60%,
    #1a6767 65%,
    #1c6d6d 70%,
    #207575 75%,
    #248787 80%,
    #289b9b 90%,
    #2d9b9b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
    font-size: 4rem;
    margin-right: 20px;
}
.cta-button {
  padding: 0.85rem 2.5rem;
  background: #2d9b9b;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background: #1a5c5c;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(45, 155, 155, 0.2);
}
/* Floating Dots in Hero */
.hero-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.dot-1 {
  width: 80px;
  height: 80px;
  background: #2d9b9b;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.dot-2 {
  width: 60px;
  height: 60px;
  background: #1a5c5c;
   top: 15%;
  right: 25%;
  animation-delay: 1s;
}

.dot-3 {
  width: 40px;
  height: 40px;
  background: #0a3d3d;
  top: 20%;
  right: 50%;
  animation-delay: 2s;
}

.dot-4 {
  width: 70px;
  height: 70px;
  background: #2d9b9b;
  top: 10%;
  left: 30%;
  opacity: 0.4;
  animation-delay: 1.5s;
}

.dot-5 {
  width: 50px;
  height: 50px;
  background: #1a5c5c;
  top: 20%;
  left: 5%;
  opacity: 0.5;
  animation-delay: 2.5s;
}

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

/* Make hero container relative so dots position correctly */
.hero-container {
  position: relative;
  z-index: 1;
}