/* =========================================
   Variables & General Settings
   ========================================= */
:root {
  --primary: #0b5ed7;
  --primary-dark: #0a4ebd;
  --primary-light: rgba(11, 94, 215, 0.1);
  --secondary: #0a2540;
  --bg-light: #f8f9fa;
  --text-main: #333333;
  --text-muted: #6c757d;
  --white: #ffffff;
  --border-color: #e9ecef;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 94, 215, 0.15);
  --transition: all 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-6 {
  width: 50%;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--secondary);
}

.text-white {
  color: var(--white);
}

/* =========================================
   Typography
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 15px;
}

.bg-dark .section-title {
  color: var(--white);
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 15px 0;
}

.header.scrolled {
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 50%;
  padding-left: 40px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  width: 50%;
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.floating-card i {
  color: var(--primary);
  font-size: 1.5rem;
}

.top-card {
  top: 20px;
  right: -20px;
  animation: float 5s ease-in-out infinite alternate;
}

.bottom-card {
  bottom: 30px;
  left: -30px;
  animation: float 4s ease-in-out infinite alternate-reverse;
}

.hero-bg-shape {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 120%;
  background: var(--primary-light);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* =========================================
   Features Section
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .icon-box {
  background: var(--primary);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
}

/* =========================================
   Capabilities Section
   ========================================= */
.capabilities-content h2 {
  margin-bottom: 15px;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.capability-list li {
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.capability-list i {
  color: var(--primary);
  font-size: 1.2rem;
}

.mockup-frame {
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.mockup-frame img {
  border-radius: calc(var(--radius-lg) - 5px);
}

/* =========================================
   Target Businesses Grid
   ========================================= */
.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.target-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

.target-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.target-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.target-card h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  font-weight: 700;
}

/* =========================================
   Screenshots Slider
   ========================================= */
.slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 37, 64, 0.85);
  color: var(--white);
  padding: 15px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  color: var(--secondary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.prev-btn {
  right: 20px;
}

.next-btn {
  left: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 25px;
  border-radius: 10px;
}

/* =========================================
   Why SmartYX
   ========================================= */
.why-image {
  position: relative;
  padding: 20px;
}

.circle-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 80%;
  background: var(--primary);
  border-radius: 50%;
  z-index: 1;
}

.rounded-img {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  border: 10px solid var(--secondary);
}

.why-point {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.point-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.why-point h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.why-point p {
  color: #b0c4de;
}

/* =========================================
   Free Trial Form
   ========================================= */
.trial-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
}

.trial-content {
  background: var(--primary);
  color: var(--white);
  padding: 60px 40px;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trial-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.trial-form-container {
  padding: 60px 40px;
  width: 60%;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  position: relative;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.error-msg {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.form-control.error {
  border-color: #dc3545;
}

.form-control.error + .error-msg {
  display: block;
}

.success-msg {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
}

/* =========================================
   Footer & Contact
   ========================================= */
.footer {
  background-color: var(--bg-light);
  color: var(--text-main);
}

.footer-top {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
}

.footer-logo {
  margin-bottom: 20px;
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--white);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h3 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.links-col ul li {
  margin-bottom: 12px;
}

.links-col ul a {
  color: var(--text-muted);
  transition: var(--transition);
}

.links-col ul a:hover {
  color: var(--primary);
  padding-right: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.contact-info i {
  color: var(--primary);
  font-size: 1.2rem;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 30px; /* RTL means left side for whatsapp is usually good, or right side. Put it on left so doesn't block right scrollbar or go with defaults */
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

/* =========================================
   Animations
   ========================================= */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.slide-up {
  transform: translateY(40px);
}

.fade-in {
  transform: translateY(0);
}

.pop-in {
  transform: scale(0.9);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .target-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trial-wrapper {
    flex-direction: column;
  }
  .trial-content,
  .trial-form-container {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
  }

  .nav-btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }

  .col-6 {
    width: 100%;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    width: 100%;
    padding-left: 0;
    margin-bottom: 40px;
  }
  .hero-image {
    width: 80%;
  }
  .hero-buttons {
    justify-content: center;
  }

  .capabilities .row {
    flex-direction: column-reverse;
  }
  .capabilities-content {
    margin-top: 40px;
  }

  .why-us .row {
    flex-direction: column;
  }
  .mb-order-1 {
    order: -1;
    margin-bottom: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .contact-info li {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .features-grid,
  .target-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .capability-list {
    grid-template-columns: 1fr;
  }
}
