/* If you have the font files locally, place them here:
   /fonts/CoconAE-Next-Arabic.woff2
   /fonts/CoconAE-Next-Arabic.woff
*/
@font-face {
  font-family: "CoconÆ Next Arabic";
  src:
    url("../fonts/CoconAE-Next-Arabic.woff2") format("woff2"),
    url("../fonts/CoconAE-Next-Arabic.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary-700: #059c8f;
  --color-primary-500: #1fccb7;
  --color-primary-200: #94fbe7;

  --color-secondary-800: #000043;
  --color-secondary-600: #1c1f9b;
  --color-secondary-400: #4044fc;

  --color-accent-700: #bb2b13;
  --color-accent-500: #f15a24;
  --color-accent-200: #f8a779;

  --color-success-600: #0ca67d;
  --color-success-500: #0ad8a1;
  --color-success-200: #9aefd9;
  --color-success-100: #e3fff1;

  --color-danger-700: #982121;
  --color-danger-600: #d62d20;
  --color-danger-500: #ff3424;

  --color-neutral-900: #252222;
  --color-neutral-700: #757575;
  --color-neutral-600: #838387;
  --color-neutral-400: #c9c9c9;
  --color-neutral-300: #dcdcdc;
  --color-neutral-200: #e7e7e7;
  --color-neutral-100: #efefef;
  --color-neutral-50: #f3f4f5;

  --color-white: #ffffff;

  --bg: var(--color-neutral-50);
  --surface: var(--color-white);
  --surface-2: var(--color-neutral-100);

  --text: var(--color-secondary-800);
  --text-muted: var(--color-neutral-700);

  --brand: var(--color-primary-500);
  --brand-strong: var(--color-primary-700);

  --accent: var(--color-accent-500);
  --accent-strong: var(--color-accent-700);

  --border: var(--color-neutral-200);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Animation tokens */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 800ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "CoconÆ Next Arabic",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
}
p {
  color: var(--text-muted);
}
a {
  color: var(--brand-strong);
  text-decoration: none;
}
a:hover {
  color: var(--brand);
}

.section-pad {
  padding: 80px 0;
}

/* ===============================
   Buttons + micro-interactions
=============================== */
.btn-fabrioo {
  background: var(--accent);
  color: var(--color-white);
  border: 1px solid var(--accent-strong);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  transition:
    transform 180ms var(--ease-out),
    background 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.btn-fabrioo:hover {
  background: var(--accent-strong);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(241, 90, 36, 0.22);
}

.btn-fabrioo:active {
  transform: translateY(0);
}

/* ===============================
   Header / Hero
=============================== */
header.header {
  background-image: url(../images/HeroSec.svg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

header.header .overlay {
  background: rgba(243, 244, 245, 0.72);
  padding: 20px 0 60px;
  position: relative;
}

.header-block {
  margin-top: 60px;
}

header.header .header-text h1 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--text);
}

header.header .header-text p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 560px;
  color: var(--text);
}

header.header .header-buttons a img {
  width: 220px;
  max-width: 100%;
}

.appstore-badge {
  height: 64px;
  width: auto;
}

header.header .header-img {
  position: relative;
  min-height: 420px;
}

header.header .header-img img {
  max-width: 260px;
  width: 100%;
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%) rotate(12deg);
}

/* Floating phone (subtle) */
.hero-phone-float.is-visible {
  animation: floatY 6s var(--ease-out) infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateX(-50%) rotate(12deg) translateY(0);
  }
  50% {
    transform: translateX(-50%) rotate(12deg) translateY(-10px);
  }
}

/* ===============================
   Navbar
=============================== */
.fabrioo-navbar {
  background: rgba(0, 0, 67, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.fabrioo-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition:
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.fabrioo-navbar .nav-link:hover,
.fabrioo-navbar .nav-link:focus {
  color: var(--color-primary-200);
  transform: translateY(-1px);
}

/* ===============================
   Feature cards / Product cards
=============================== */
.feature-card,
.product-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.feature-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

/* Icon badge styling */
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 204, 183, 0.14);
  border: 1px solid rgba(31, 204, 183, 0.25);
  transition: transform 220ms var(--ease-out);
}

.feature-card:hover .icon-badge {
  transform: rotate(-3deg) scale(1.05);
}

/* ===============================
   Features section
=============================== */
section.feature {
  background: var(--surface);
}
section.feature .features {
  margin-top: 40px;
}

section.feature .features .d-flex {
  margin-bottom: 18px;
  align-items: flex-start;
  gap: 16px;
}

section.feature .features .d-flex h5 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

section.feature .features .d-flex p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: var(--text-muted);
}

section.feature .feature-img img {
  width: 80%;
  max-width: 320px;
}

/* ===============================
   Products section
=============================== */
section.option {
  background: var(--surface-2);
}
section.option .options {
  margin-top: 10px;
}

section.option .options .d-flex {
  margin-bottom: 18px;
  align-items: flex-start;
  gap: 16px;
}

section.option .options .d-flex h5 {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 6px;
}

section.option .options .d-flex p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: var(--text-muted);
}

section.option .option-img img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 350ms var(--ease-out);
}

section.option .option-img:hover img {
  transform: translateY(-6px) rotate(-0.3deg);
}

/* ===============================
   Slider / Gallery
=============================== */
section.slider {
  background: var(--surface);
}

section.slider .slider-text h3 {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 40px;
}

section.slider .slider-carousel .carousel-inner {
  width: 60%;
  margin: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

section.slider .slider-carousel .carousel-control-prev,
section.slider .slider-carousel .carousel-control-next {
  width: 64px;
  height: 64px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  opacity: 1;
  margin-top: 130px;
  background: rgba(255, 255, 255, 0.65);
  transition:
    transform 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

section.slider .slider-carousel .carousel-control-prev:hover,
section.slider .slider-carousel .carousel-control-next:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.85);
}

section.slider .slider-carousel .carousel-indicators {
  bottom: -60px;
}

section.slider .slider-carousel .carousel-indicators button {
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

section.slider .slider-carousel .carousel-indicators button.active {
  background-color: var(--accent);
}

/* ===============================
   FAQ
=============================== */
section.faq {
  background-image: url(../images/FAQBG.svg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

section.faq .overlay {
  background-color: rgba(0, 0, 67, 0.74);
  padding: 70px 0;
}

section.faq .overlay .faq-title h3 {
  font-size: 30px;
  color: var(--color-white);
  margin-bottom: 40px;
}

section.faq .overlay .accordion .accordion-item {
  background-color: rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

section.faq .overlay .accordion .accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

section.faq .overlay .accordion .accordion-item .accordion-header button {
  background-color: transparent;
  font-size: 16px;
  color: var(--color-white);
  border-bottom: 0;
}

section.faq
  .overlay
  .accordion
  .accordion-item
  .accordion-header
  button::after {
  content: none;
}

section.faq .overlay .accordion .accordion-item .accordion-header button i {
  transition: transform 0.2s ease;
}

section.faq
  .overlay
  .accordion
  .accordion-item
  .accordion-header
  button.collapsed
  i {
  transform: rotate(180deg);
}

section.faq .overlay .accordion .accordion-item .accordion-header button:focus {
  border-color: transparent;
  box-shadow: 0 0 0 0;
}

section.faq .overlay .accordion .accordion-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-neutral-200);
  margin: 0;
}

/* ===============================
   Footer
=============================== */
footer.footer {
  background-color: var(--color-secondary-800);
  padding-top: 70px;
  color: var(--color-white);
}

footer.footer .top-footer {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 60px;
}

footer.footer .top-footer .widget h4 {
  font-size: 20px;
  color: var(--color-white);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
  position: relative;
}

footer.footer .top-footer .widget h4::after {
  content: "";
  width: 90px;
  height: 2px;
  background-color: var(--brand);
  position: absolute;
  left: 0;
  bottom: -1px;
}

footer.footer .top-footer .widget p.aboutus-p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
}

footer.footer .top-footer .widget li.list-inline-item a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  display: block;
  text-align: center;
  border-radius: 50%;
  transition:
    transform 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

footer.footer .top-footer .widget li.list-inline-item a:hover {
  background-color: var(--brand);
  transform: translateY(-2px);
}

footer.footer .top-footer .widget ul.tweets {
  list-style: none;
  padding: 0;
}

footer.footer .top-footer .widget ul.tweets li:not(:last-child) {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

footer.footer .top-footer .widget ul.tweets li p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  display: inline;
  margin-left: 8px;
}

footer.footer .top-footer .widget ul.tweets li i {
  color: var(--brand);
}

footer.footer .top-footer .widget form input {
  font-size: 14px;
  color: var(--color-neutral-200);
  line-height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: left;
  transition:
    box-shadow 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

footer.footer .top-footer .widget form input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

footer.footer .top-footer .widget form input:focus {
  box-shadow: 0 0 0 3px rgba(31, 204, 183, 0.25);
  border-color: rgba(31, 204, 183, 0.55);
  transform: translateY(-1px);
}

footer.footer .top-footer .widget form .invalid-feedback {
  margin-top: -8px;
  margin-bottom: 10px;
}

footer.footer .copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 70px;
  text-align: center;
}

/* ===============================
   Reveal on Scroll system
=============================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(6px);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out),
    filter var(--reveal-duration) var(--ease-out);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.reveal-up {
  transform: translate3d(0, 18px, 0);
}
.reveal-down {
  transform: translate3d(0, -18px, 0);
}
.reveal-left {
  transform: translate3d(-18px, 0, 0);
}
.reveal-right {
  transform: translate3d(18px, 0, 0);
}
.reveal-scale {
  transform: scale(0.96);
}

.delay-1 {
  transition-delay: 120ms;
}
.delay-2 {
  transition-delay: 220ms;
}
.delay-3 {
  transition-delay: 340ms;
}

/* small hover helper */
.hover-float {
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
.hover-float:hover {
  transform: translateY(-4px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.is-visible {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-phone-float.is-visible {
    animation: none !important;
  }
  .btn-fabrioo,
  .hover-float,
  .feature-card,
  .product-card,
  section.option .option-img img,
  section.faq .overlay .accordion .accordion-item,
  footer.footer .top-footer .widget li.list-inline-item a {
    transition: none !important;
    transform: none !important;
  }
}

/* ===============================
   Responsive
=============================== */
@media (max-width: 992px) and (min-width: 768px) {
  header.header .header-img {
    min-height: 360px;
  }
  section.slider .slider-carousel .carousel-control-prev,
  section.slider .slider-carousel .carousel-control-next {
    margin-top: 60px;
  }
}

@media (max-width: 768px) {
  header.header .overlay {
    padding-top: 0;
    padding-bottom: 420px;
    text-align: center;
  }

  header.header .header-text p {
    margin-left: auto;
    margin-right: auto;
  }

  header.header .header-img {
    min-height: 320px;
  }

  header.header .header-img img {
    bottom: -360px;
  }

  section.slider .slider-carousel .carousel-control-prev,
  section.slider .slider-carousel .carousel-control-next {
    display: none;
  }

  section.slider .slider-carousel .carousel-inner {
    width: 92%;
  }
}
