@import url("/fonts/fonts.css");

:root {
  --color-palm: #425E04;
  --color-palm-light: #689300;
  --color-amber: #E87300;
  --color-amber-dark: #874515;
  --color-sand: #FFDDC5;
  --color-black: #0D0D0B;
  --color-bg-dark: #0D0D0B;
  --color-text-light: #FAF5EB;

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Noto Sans Arabic", "Amiri", "Cairo", sans-serif;
  --font-sans: "Montserrat", "Inter", sans-serif;

  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --page-gutter: clamp(1.5rem, 4.5vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Lock window scroll for pure full-screen slide transitions */
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* STARSCAPE BACKGROUND */
#starscape {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* TOP SCROLL PROGRESS */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-palm), var(--color-amber));
  z-index: 10000;
  transition: width 0.3s ease;
}

/* PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: clip-path 1.2s cubic-bezier(0.85, 0, 0.15, 1);
  clip-path: circle(150% at 50% 50%);
  overflow: hidden;
}

.preloader.loaded {
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
}

.preloader-logo {
  width: clamp(140px, 20vw, 240px);
  filter: drop-shadow(0 10px 30px rgba(66, 94, 4, 0.4));
  margin-bottom: 1rem;
}

.preloader-counter {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-sand);
}

.preloader-progress-wrap {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1rem;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-palm), var(--color-amber));
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem var(--page-gutter);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.75rem var(--page-gutter);
  background: rgba(13, 13, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 221, 197, 0.08);
}

.header-nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.studio-mark__azri { color: var(--color-amber); }
.studio-mark__divider { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.2); }
.studio-mark__title { color: var(--color-sand); }

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 245, 235, 0.75);
  transition: color 0.2s ease;
}

.header-nav-link:hover { color: var(--color-amber); }

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(66, 94, 4, 0.25);
  border: 1px solid rgba(66, 94, 4, 0.5);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.header-back:hover {
  background: var(--color-palm);
  color: #fff;
}

@media (max-width: 900px) {
  .header-nav-links { display: none; }
}

/* =========================================================================
   FULL-SCREEN SLIDE DECK WRAPPER (VIEWPORT STACK)
   ========================================================================= */
.deck-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.deck-slide {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #0D0D0B;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100vh) scale(0.95);
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease;
  will-change: transform, opacity;
  z-index: 1;
}

.deck-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 10;
}

.deck-slide.prev {
  opacity: 0;
  transform: translateY(-100vh) scale(0.95);
  pointer-events: none;
  z-index: 5;
}

/* Slide 0: Hero Stage */
.hero-stage-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(13, 13, 11, 0.4) 0%, rgba(13, 13, 11, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content-layer {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.5rem;
}

.hero-scrub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-amber);
  background: rgba(13, 13, 11, 0.85);
  border: 1px solid rgba(232, 115, 0, 0.4);
  border-radius: 100px;
  backdrop-filter: blur(12px);
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--color-sand) 70%, var(--color-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-palm-light);
}

.hero-subtitle {
  max-width: 720px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  opacity: 0.85;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250, 245, 235, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line-anim {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, var(--color-amber), transparent);
  animation: pulseLine 1.5s infinite;
}

@keyframes pulseLine {
  0% { transform: scaleY(0.2); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0.2; }
}

/* Full-bleed booklet image */
.fullscreen-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4.5rem 1rem 1.5rem;
  user-select: none;
  cursor: zoom-in;
  transition: transform 0.4s var(--transition-smooth);
}

.fullscreen-slide-img:hover {
  transform: scale(1.02);
}

/* Corner page number badge */
.slide-corner-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  z-index: 10;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-amber);
  background: rgba(13, 13, 11, 0.75);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 221, 197, 0.15);
}

.slide-corner-badge span {
  font-size: 0.7rem;
  color: rgba(250, 245, 235, 0.5);
  font-weight: 400;
}

/* =========================================================================
   RIGHT SIDEBAR NAVIGATION INDICATOR
   ========================================================================= */
.services-nav-sidebar {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: none;
}

.services-nav-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-item-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.25rem 0;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.sidebar-item-btn:hover,
.sidebar-item-btn.active {
  opacity: 1;
}

.sidebar-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sand);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.sidebar-item-btn:hover .sidebar-item-label {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-item-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(250, 245, 235, 0.6);

}

.sidebar-item-btn.active .sidebar-item-num {
  color: var(--color-amber);

}

.sidebar-item-line {
  width: 12px;
  height: 2px;
  background: rgba(250, 245, 235, 0.3);
  transition: width 0.3s ease, background 0.3s ease;
}

.sidebar-item-btn.active .sidebar-item-line {
  width: 28px;
  background: var(--color-amber);
}

@media (max-width: 1024px) {
  .services-nav-sidebar {
    right: 0.75rem;
  }
  .sidebar-item-label { display: none; }
}

/* =========================================================================
   CLOSING END-PAGE CTA SLIDE
   ========================================================================= */
.cta-container {
  max-width: 900px;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.cta-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-amber);
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(232, 115, 0, 0.4);
  border-radius: 100px;
  background: rgba(66, 94, 4, 0.15);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
}

.cta-title span {
  background: linear-gradient(135deg, var(--color-sand), var(--color-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-description {
  max-width: 680px;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: rgba(250, 245, 235, 0.85);
}

.cta-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-primary-cta {
  padding: 0.9rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-palm), var(--color-palm-light));
  color: #FFFFFF;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(66, 94, 4, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(232, 115, 0, 0.5);
}

.btn-secondary-cta {
  padding: 0.9rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 221, 197, 0.3);
  border-radius: 100px;
  color: var(--color-text-light);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-secondary-cta:hover {
  background: rgba(255, 221, 197, 0.1);
  border-color: var(--color-amber);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(250, 245, 235, 0.4);
  margin-top: 2rem;
}

/* =========================================================================
   LIGHTBOX MODAL FOR ZOOM VIEW
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 10001;
}

.modal-close:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

