/* ==========================================================================
   Lamset Bokhar UI CSS - Clean, Fresh, Professional Theme
   ========================================================================== */

/* --- Custom Variables --- */
:root {
  /* Colors */
  --clr-primary-dark: #063B63;
  --clr-primary-blue: #0077B6;
  --clr-primary-cyan: #00AEEF;
  --clr-sky-blue: #DFF6FF;
  --clr-white: #FFFFFF;
  --clr-bg-light: #F6FBFF;

  --clr-text-dark: #082A44;
  --clr-text-muted: #5B7184;

  --gradient-accent: linear-gradient(135deg, var(--clr-primary-blue), var(--clr-primary-cyan));

  /* Shadow */
  --shadow-sm: 0 4px 6px rgba(0, 119, 182, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 119, 182, 0.08);
  --shadow-lg: 0 20px 30px rgba(0, 119, 182, 0.12);
  --shadow-glow: 0 10px 25px rgba(0, 174, 239, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Font Definitions --- */
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background-color: var(--clr-primary-dark);
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--clr-bg-light);
  color: var(--clr-text-dark);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--clr-primary-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

p {
  color: var(--clr-text-muted);
  font-weight: 400;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  color: var(--clr-primary-blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  background: var(--clr-sky-blue);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}

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

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.gap-sm { gap: 1rem; }
.gap-md { gap: 2rem; }
.gap-lg { gap: 3rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--clr-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 174, 239, 0.35);
  color: var(--clr-white);
}

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

.btn-outline:hover {
  background: var(--clr-primary-blue);
  color: var(--clr-white);
  transform: translateY(-3px);
}

/* WhatsApp Icon inside btns */
.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1EBE5A;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-primary:active, .btn-outline:active, .btn-whatsapp:active {
  transform: translateY(0) scale(0.95);
  box-shadow: none;
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem; /* Because RTL layout usually puts floating actions on right or left; "bottom-right" requested */
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #1EBE5A;
  animation: none;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Header & Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(0, 119, 182, 0.05);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--clr-primary-dark);
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--clr-text-dark);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  margin: auto;
  width: 0%;
  height: 2px;
  background: var(--clr-primary-cyan);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--clr-primary-blue);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--clr-primary-dark);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(6.25rem, 10vh, 7.5rem) 0 clamp(3rem, 6vh, 4.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(0, 174, 239, 0.16), transparent 28rem),
    linear-gradient(135deg, #FFFFFF 0%, #F6FBFF 45%, #E9F8FF 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: auto -10% -28% 35%;
  height: 42%;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.14), rgba(0, 174, 239, 0.28));
  transform: rotate(-6deg);
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.92fr);
  grid-template-areas: "media content";
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 3rem);
}

.hero-content {
  grid-area: content;
  position: relative;
  z-index: 3;
  max-width: 640px;
  text-align: right;
  animation: heroTextIn 0.9s ease-out both;
}

.hero-content h1 {
  color: var(--clr-primary-dark);
  font-size: clamp(1.9rem, 3.45vw, 2.95rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.hero-content p {
  color: var(--clr-text-muted);
  max-width: 560px;
  font-size: clamp(1rem, 1.45vw, 1.13rem);
  line-height: 1.8;
}

.hero-media {
  grid-area: media;
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 100%;
  animation: heroImageIn 1s 0.12s ease-out both;
}

.hero-media::before,
.hero-media::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-media::before {
  width: 8.5rem;
  height: 8.5rem;
  top: -2.5rem;
  left: -2.5rem;
  background: rgba(0, 174, 239, 0.18);
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-media::after {
  width: 5rem;
  height: 5rem;
  right: -1.5rem;
  bottom: 12%;
  background: rgba(0, 119, 182, 0.14);
  animation: heroFloat 6s 0.5s ease-in-out infinite reverse;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(6, 59, 99, 0.22);
  transform: perspective(1100px) rotateY(-5deg) rotateX(2deg);
  isolation: isolate;
  height: clamp(540px, 66vh, 650px);
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.36), transparent 34%, rgba(0,119,182,0.14));
  pointer-events: none;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroPhotoDrift 8s ease-in-out infinite alternate;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.82);
  color: var(--clr-primary-dark);
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(0, 119, 182, 0.12);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(0, 119, 182, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-badge .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  padding: 0.18rem;
  color: var(--clr-primary-dark);
  background: var(--clr-sky-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(223, 246, 255, 0.12);
}

.hero-btns {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1.65rem;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: translateX(-48px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes heroPhotoDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-media,
  .hero-media::before,
  .hero-media::after,
  .hero-image-wrap img {
    animation: none;
  }
}

/* Base Styles continue...*/
.card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 119, 182, 0.05);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--clr-sky-blue);
  color: var(--clr-primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 24px;
  flex-shrink: 0;
}

.icon-box svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card:hover .icon-box svg {
  transform: scale(1.2) rotate(10deg);
}

/* --- Services Preview Grid --- */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  overflow: hidden;
  padding: 0;
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 25%;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 2rem;
  position: relative;
}

.service-card-content h3 {
  margin-bottom: 1rem;
}

/* Process Section */
.process-grid {
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  text-align: center;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-image: linear-gradient(to right, transparent, var(--clr-primary-cyan) 15%, var(--clr-primary-cyan) 85%, transparent);
  z-index: 0;
  opacity: 0.5;
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-num {
  width: 80px;
  height: 80px;
  background: var(--clr-white);
  border: 4px solid var(--clr-sky-blue);
  color: var(--clr-primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.process-step:hover .process-num {
  background: var(--clr-primary-cyan);
  color: var(--clr-white);
  border-color: var(--clr-white);
  transform: scale(1.1);
}

/* --- Responsive Before After Style --- */
.gallery-section {
  background-color: var(--clr-white);
}

.ba-scroll-container {
  display: flex;
  direction: ltr;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ba-scroll-container::-webkit-scrollbar {
  display: none;
}

.ba-item {
  flex: 0 0 min(100%, 500px);
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.ba-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.ba-item:hover img {
  transform: scale(1.02);
}

/* FAQ Section */
.faq-item {
  background: var(--clr-white);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-q {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--clr-primary-dark);
  font-size: 1.1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--clr-primary-blue);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: var(--transition-fast); }

.faq-item.active .faq-icon::after {
  height: 0;
}

.faq-item.active .faq-q {
  color: var(--clr-primary-cyan);
}

.faq-a {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--clr-text-muted);
}

.faq-item.active .faq-a {
  padding: 0 1.5rem 1.25rem;
  max-height: 300px;
}

/* Blog List Grid */
.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

/* Footer Section */
.footer {
  background-color: var(--clr-primary-dark);
  color: var(--clr-sky-blue);
  padding: 4rem 0 1rem;
  margin-top: auto;
  margin-bottom: 0;
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
}

.footer-logo {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.footer-logo:hover {
  transform: scale(1.05) rotate(-3deg);
}

.footer h4 {
  color: var(--clr-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--clr-sky-blue);
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--clr-primary-cyan);
  opacity: 1;
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Utilities classes */
.footer-powered {
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 0;
}

.footer-powered a{
  color: var(--clr-sky-blue);
  /* opacity: 0.8; */
}

.footer-powered a:hover{
  color: var(--clr-primary-cyan);
  opacity: 1;
  padding-right: 5px;
}

.footer-powered .line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .footer-powered {
    flex-direction: column;
    gap: 4px;
  }

  .footer-powered .sep {
    display: none;
  }
}

.overlay-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "media";
  }
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badges, .hero-btns {
    justify-content: center;
  }
  .hero-media {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-image-wrap {
    transform: none;
    border-radius: 24px;
    height: auto;
  }
  .process-grid::before {
    display: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--clr-white);
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(0, 119, 182, 0.05);
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  .header-actions {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo {
    margin: 0 auto 1.5rem auto;
    display: block;
  }
  .hero-badges {
    gap: 0.6rem;
  }
  .hero-badge {
    justify-content: center;
    min-width: min(100%, 220px);
    font-size: 0.88rem;
  }
  .hero-image-wrap img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
  h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
