/*=============================================
   THEME: Modern Demo - CSS Design System
   AUTHOR: DangoWeb
   VERSION: 2.0.0
   NO FRAMEWORKS - PURE CSS
   =============================================*/

/*---------------------------------------------
   FONT FACE
   ---------------------------------------------*/
@font-face {
  font-family: "Estedad";
  src: url("../fonts/Estedad.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/*---------------------------------------------
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ---------------------------------------------*/
:root {
  /* Colors - will be overridden by inline CSS per product */
  --theme-primary: #6435fd;
  --theme-primary-rgb: 100, 53, 253;
  --theme-primary-light: #8b6fff;
  --theme-primary-dark: #4a1fd4;
  --theme-secondary: #8ed45a;
  --theme-secondary-rgb: 142, 212, 90;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-off-white: #f8fafc;
  --color-light-gray: #f1f5f9;
  --color-gray: #94a3b8;
  --color-dark-gray: #64748b;
  --color-text: #475569;
  --color-heading: #1e293b;
  --color-dark: #0f172a;
  --color-black: #020617;

  /* Glass Effect Colors */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: rgba(0, 0, 0, 0.05);
  --glass-blur: 20px;

  /* Typography */
  --font-primary: "Estedad", system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(var(--theme-primary-rgb), 0.15);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index Layers */
  --z-base: 1;
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-preloader: 9999;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

/*---------------------------------------------
   RESET & BASE
   ---------------------------------------------*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading);
}

h1 {
  font-size: var(--font-size-6xl);
}
h2 {
  font-size: var(--font-size-5xl);
}
h3 {
  font-size: var(--font-size-4xl);
}
h4 {
  font-size: var(--font-size-3xl);
}
h5 {
  font-size: var(--font-size-2xl);
}
h6 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.9;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: var(--font-size-5xl);
  }
  h2 {
    font-size: var(--font-size-4xl);
  }
  h3 {
    font-size: var(--font-size-3xl);
  }
  h4 {
    font-size: var(--font-size-2xl);
  }
  h5 {
    font-size: var(--font-size-xl);
  }
  h6 {
    font-size: var(--font-size-lg);
  }
}

/*---------------------------------------------
   UTILITY CLASSES
   ---------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.text-justify {
  text-align: justify;
}

/*---------------------------------------------
   PRELOADER
   ---------------------------------------------*/
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-light-gray);
  border-top-color: var(--theme-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*---------------------------------------------
   NAVIGATION - GLASS EFFECT
   ---------------------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding-block: var(--space-md);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding-block: var(--space-sm);
}

/* Header Inner Layout */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-xl);
}

/* Logo - Always on the right in RTL */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 0;
}

.brand-logo img {
  height: 42px;
  width: auto;
  transition: height var(--transition-base);
}

.site-header.scrolled .brand-logo img {
  height: 36px;
}

/* Desktop Navigation */
.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  order: 1;
}

/* Navigation Menu - Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-heading);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--theme-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-spring);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--theme-primary);
}

/* Hamburger Menu - Hidden on desktop, Left side on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
  order: 2;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-heading);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/*---------------------------------------------
   MOBILE NAVIGATION - Separate from desktop
   ---------------------------------------------*/
@media (max-width: 991px) {
  .hamburger {
    display: flex;
    z-index: 1000;
    position: relative;
    margin-left: 0;
    margin-right: auto;
  }

  .desktop-nav {
    position: static;
    flex: unset;
  }

  /* Mobile Menu - Glassmorphism */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);

    /* Glass Effect */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);

    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.4s ease,
      visibility 0.4s ease;
    margin: 0;
    padding: 0;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav-menu li {
    width: auto;
    text-align: center;
  }

  .nav-menu a {
    font-size: var(--font-size-2xl);
    padding: var(--space-md) var(--space-xl);
    color: var(--color-heading);
    font-weight: 700;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.08);
    border-radius: var(--radius-lg);
  }
}

/* Prevent body scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}

/*=============================================
   HOME PAGE - PRODUCTS SHOWCASE
   =============================================*/

/* Hero Home - Centered */
.hero-home {
  min-height: 70vh;
}

.hero-grid-centered {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin-inline: auto;
}

.hero-home .hero-description {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
}

/*---------------------------------------------
   PRODUCTS GRID
   ---------------------------------------------*/
.products-section {
  padding-block: var(--space-5xl);
  background: var(--color-off-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-2xl);
  max-width: 1200px;
  margin-inline: auto;
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/*---------------------------------------------
   PRODUCT CARD
   ---------------------------------------------*/
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(var(--product-color-rgb), 0.08);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.product-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  border-color: rgba(var(--product-color-rgb), 0.2);
  box-shadow: 0 20px 60px rgba(var(--product-color-rgb), 0.1);
  transform: translateY(-6px);
}

/* Card Visual - Top Section */
.product-card-visual {
  position: relative;
  padding: var(--space-2xl);
  background: linear-gradient(
    135deg,
    rgba(var(--product-color-rgb), 0.03) 0%,
    rgba(var(--product-color-rgb), 0.08) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}

.product-card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(var(--product-color-rgb), 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(30px);
  transition: all var(--transition-base);
}

.product-card:hover .product-card-glow {
  width: 250px;
  height: 250px;
  opacity: 0.8;
}

.product-card-image {
  position: relative;
  z-index: var(--z-base);
}

.product-card-image img {
  max-height: 200px;
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(var(--product-color-rgb), 0.2));
  transition: transform var(--transition-base);
}

.product-card:hover .product-card-image img {
  transform: translateY(-8px) scale(1.03);
}

/* Floating Logo */
.product-card-logo {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: calc(var(--z-base) + 1);
}

.product-card-logo img {
  height: 32px;
  width: auto;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.product-card:hover .product-card-logo img {
  opacity: 1;
}

/* Card Info - Bottom Section */
.product-card-info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}

.product-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-card-name {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-heading);
}

.product-card-subtitle {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--product-color);
  letter-spacing: 0.02em;
}

.product-card-description {
  font-size: var(--font-size-base);
  color: var(--color-dark-gray);
  line-height: 1.9;
  text-align: justify;
}

/* Features Tags */
.product-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(var(--product-color-rgb), 0.05);
  border: 1px solid rgba(var(--product-color-rgb), 0.1);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--product-color);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.feature-tag:hover {
  background: rgba(var(--product-color-rgb), 0.1);
  border-color: rgba(var(--product-color-rgb), 0.2);
}

.feature-tag svg {
  flex-shrink: 0;
}

.feature-tag-more {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--color-dark-gray);
  cursor: default;
}

/* Card Actions */
.product-card-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(var(--product-color-rgb), 0.06);
}

.product-card-actions .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
  justify-content: center;
}

@media (max-width: 480px) {
  .product-card-actions {
    flex-direction: column;
  }
}

/*---------------------------------------------
   CTA SECTION
   ---------------------------------------------*/
.cta-section {
  padding-block: var(--space-5xl);
}

.cta-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(var(--theme-primary-rgb), 0.04) 0%,
    rgba(var(--theme-primary-rgb), 0.1) 100%
  );
  border: 1px solid rgba(var(--theme-primary-rgb), 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  overflow: hidden;
  isolation: isolate;
}

.cta-content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--color-heading);
}

.cta-description {
  font-size: var(--font-size-lg);
  color: var(--color-dark-gray);
  line-height: 2;
  margin-bottom: var(--space-xl);
}

/* CTA Decorative Circles */
.cta-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--theme-primary-rgb), 0.06);
}

.cta-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.cta-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

.cta-circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

/*---------------------------------------------
   ADD RADIUS-2XL
   ---------------------------------------------*/
:root {
  --radius-2xl: 1.5rem;
}
/*=============================================
   HOMEPAGE HERO
   =============================================*/
.hero-homepage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-5xl);
  isolation: isolate;
}

.hero-homepage-content {
  text-align: center;
  max-width: 750px;
  margin-inline: auto;
  position: relative;
  z-index: var(--z-base);
  padding-top: var(--space-3xl);
}

.hero-homepage .hero-description {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.hero-homepage .hero-actions {
  justify-content: center;
}

/* Floating decorative elements */
.hero-floating {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.hero-floating-1 {
  width: 500px;
  height: 500px;
  background: var(--theme-primary);
  top: -250px;
  left: -150px;
  animation: float-slow 20s ease-in-out infinite;
}

.hero-floating-2 {
  width: 300px;
  height: 300px;
  background: var(--theme-secondary);
  bottom: -100px;
  right: -100px;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.hero-floating-3 {
  width: 200px;
  height: 200px;
  background: #e11d48;
  top: 40%;
  right: 10%;
  animation: float-slow 18s ease-in-out infinite 5s;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}

/* Products Mini Preview */
.hero-products-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-4xl);
  flex-wrap: wrap;
  position: relative;
  z-index: var(--z-base);
}

.hero-product-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.08);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  animation: fadeInUp 0.6s ease backwards;
  cursor: default;
}

.hero-product-preview:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--theme-primary-rgb), 0.15);
}

.hero-product-preview-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    var(--preview-color, var(--theme-primary)) 0%,
    transparent 70%
  );
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(20px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-base);
}

.hero-product-preview:hover .hero-product-preview-glow {
  width: 130px;
  height: 130px;
  opacity: 0.15;
}

.hero-product-preview img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-base);
}

.hero-product-preview:hover img {
  transform: scale(1.05);
}

.hero-product-preview-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-heading);
}

@media (max-width: 768px) {
  .hero-products-preview {
    gap: var(--space-md);
    margin-top: var(--space-2xl);
  }

  .hero-product-preview {
    padding: var(--space-md);
    flex: 1;
    min-width: 100px;
    max-width: 150px;
  }

  .hero-product-preview img {
    width: 80px;
  }
}

/* Back to products link in nav */
.back-to-products {
  display: inline-flex !important;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(var(--theme-primary-rgb), 0.05);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md) !important;
  font-size: var(--font-size-sm) !important;
}

.back-to-products:hover {
  background: rgba(var(--theme-primary-rgb), 0.1);
}

.back-to-products svg {
  width: 14px;
  height: 14px;
}

/* Utility */
.justify-center {
  justify-content: center;
}
/*---------------------------------------------
   HERO SECTION
   ---------------------------------------------*/
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-5xl);
  isolation: isolate;
}

.hero-bg-shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(var(--theme-primary-rgb), 0.03) 0%,
    rgba(var(--theme-primary-rgb), 0.08) 50%,
    rgba(var(--theme-primary-rgb), 0.03) 100%
  );
}

.hero-bg-shape::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--theme-primary-rgb), 0.06) 0%,
    transparent 70%
  );
  transform: rotate(-15deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(var(--theme-primary-rgb), 0.08);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--theme-primary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease backwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--theme-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--theme-primary-rgb), 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(var(--theme-primary-rgb), 0);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, var(--font-size-6xl));
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s 0.1s ease backwards;
}

.hero-title-highlight {
  color: var(--theme-primary);
  position: relative;
}

.hero-title-highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(var(--theme-primary-rgb), 0.15);
  border-radius: var(--radius-full);
  z-index: -1;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--color-dark-gray);
  line-height: 2;
  text-align: justify;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s 0.2s ease backwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  animation: fadeInUp 0.6s 0.3s ease backwards;
}

.hero-image-wrapper {
  position: relative;
  animation: fadeInRight 0.8s 0.4s ease backwards;
}

.hero-image-wrapper img {
  position: relative;
  z-index: var(--z-base);
  filter: drop-shadow(0 20px 60px rgba(var(--theme-primary-rgb), 0.2));
  animation: float 6s ease-in-out infinite;
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(var(--theme-primary-rgb), 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Responsive */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image-wrapper img {
    max-height: 400px;
    margin-inline: auto;
  }

  .hero-description {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-title-highlight::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/*---------------------------------------------
   BUTTONS
   ---------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--theme-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--theme-primary-dark);
  box-shadow: 0 8px 25px rgba(var(--theme-primary-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--theme-primary);
  border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.btn-outline:hover {
  background: rgba(var(--theme-primary-rgb), 0.05);
  border-color: var(--theme-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--theme-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(var(--theme-secondary-rgb), 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 8px 25px rgba(var(--theme-secondary-rgb), 0.4);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.btn-arrow svg {
  width: 20px;
  height: 20px;
}

.btn:hover .btn-arrow {
  transform: translateX(-4px);
}

/*---------------------------------------------
   SECTION TITLE
   ---------------------------------------------*/
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-lg);
  background: rgba(var(--theme-primary-rgb), 0.06);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, var(--font-size-4xl));
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--color-heading);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-dark-gray);
  line-height: 2;
}

/*---------------------------------------------
   FEATURES GRID
   ---------------------------------------------*/
.features-section {
  padding-block: var(--space-5xl);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.06);
  transition: all var(--transition-base);
  position: relative;
  isolation: isolate;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--theme-primary-rgb), 0.03) 0%,
    transparent 100%
  );
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.15);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(var(--theme-primary-rgb), 0.06);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
}

.feature-icon-wrapper svg {
  width: 36px;
  height: 36px;
  stroke: var(--theme-primary);
  fill: none;
  transition: stroke var(--transition-base);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--theme-primary);
  box-shadow: 0 10px 30px rgba(var(--theme-primary-rgb), 0.3);
  transform: scale(1.05);
}

.feature-card:hover .feature-icon-wrapper svg {
  stroke: var(--color-white);
}

.feature-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-heading);
}

.feature-card-description {
  font-size: var(--font-size-base);
  color: var(--color-dark-gray);
  line-height: 1.9;
}

/*---------------------------------------------
   DESCRIPTION SECTION
   ---------------------------------------------*/
.description-section {
  padding-block: var(--space-5xl);
  background: var(--color-off-white);
}

.description-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.description-card p {
  font-size: var(--font-size-lg);
  line-height: 2.2;
  text-align: justify;
  color: var(--color-text);
}

/*---------------------------------------------
   FAQ SECTION
   ---------------------------------------------*/
.faq-section {
  padding-block: var(--space-5xl);
}

.faq-container {
  max-width: 800px;
  margin-inline: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.06);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.12);
}

.faq-item.active {
  border-color: rgba(var(--theme-primary-rgb), 0.2);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(
    135deg,
    rgba(var(--theme-primary-rgb), 0.02) 0%,
    var(--color-white) 100%
  );
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-heading);
  text-align: right;
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.faq-item.active .faq-question {
  color: var(--theme-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--theme-primary-rgb), 0.06);
  transition: all var(--transition-base);
  color: var(--theme-primary);
}

.faq-icon svg {
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  background: var(--theme-primary);
  color: var(--color-white);
}

.faq-item.active .faq-icon svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--color-dark-gray);
  line-height: 2;
  font-size: var(--font-size-base);
}

.faq-answer-inner ul {
  list-style: disc;
  padding-right: var(--space-xl);
  margin-top: var(--space-sm);
}

.faq-answer-inner ul li {
  margin-bottom: var(--space-xs);
}

/*---------------------------------------------
   FOOTER
   ---------------------------------------------*/
.site-footer {
  padding-block: var(--space-3xl);
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.08);
  text-align: center;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--color-dark-gray);
}

.footer-copyright a {
  color: var(--theme-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-copyright a:hover {
  color: var(--theme-primary-dark);
}

.footer-heart {
  display: inline-block;
  color: #e11d48;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.2);
  }
}

/*---------------------------------------------
   BACK TO TOP
   ---------------------------------------------*/
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: var(--z-sticky);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--theme-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--theme-primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(var(--theme-primary-rgb), 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/*---------------------------------------------
   SCROLL REVEAL ANIMATIONS (base)
   ---------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}
.reveal-delay-6 {
  transition-delay: 0.6s;
}

/*---------------------------------------------
   RESPONSIVE UTILITIES
   ---------------------------------------------*/
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .description-card {
    padding: var(--space-xl);
  }
}

/*---------------------------------------------
   RTL SPECIFIC ADJUSTMENTS
   ---------------------------------------------*/
[dir="rtl"] .btn:hover .btn-arrow {
  transform: translateX(-4px);
}

[dir="rtl"] .hero-bg-shape::before {
  right: auto;
  left: -20%;
  transform: rotate(15deg);
}

/*---------------------------------------------
   PRINT STYLES
   ---------------------------------------------*/
@media print {
  .preloader,
  .back-to-top,
  .site-header {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }
}
