/* ================================================
   AHLAME UGC PORTFOLIO — Design System
   Theme: Midnight Rose Gold — Dark Luxury
   ================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================ */
:root {
  /* --- Colors --- */
  --bg-primary: #0A0A0F;
  --bg-secondary: #14141F;
  --bg-tertiary: #1A1A2E;
  --bg-glass: rgba(10, 10, 15, 0.85);
  --bg-glass-light: rgba(20, 20, 31, 0.6);

  --color-primary: #E8A87C;
  --color-secondary: #D4A5A5;
  --color-accent: #C9B037;
  --color-accent-light: #E0C85A;

  --text-primary: #F5F0EB;
  --text-secondary: #8A8A9A;
  --text-muted: #5A5A6A;

  --gradient-hero: linear-gradient(135deg, #E8A87C 0%, #D4A5A5 50%, #C9B037 100%);
  --gradient-glow: linear-gradient(135deg, rgba(232, 168, 124, 0.4), rgba(212, 165, 165, 0.4), rgba(201, 176, 55, 0.4));
  --gradient-overlay: linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.8) 60%, rgba(10, 10, 15, 1) 100%);
  --gradient-bg-radial: radial-gradient(ellipse at 50% 0%, rgba(232, 168, 124, 0.08) 0%, transparent 60%);

  /* --- Typography --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-hero: clamp(3rem, 8vw, 7rem);
  --fs-h1: clamp(2.2rem, 5vw, 4rem);
  --fs-h2: clamp(1.6rem, 3.5vw, 2.8rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.6rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1vw, 0.9rem);
  --fs-xs: 0.75rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.1;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.08em;
  --ls-ultra: 0.2em;

  /* --- Spacing --- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* --- Border Radius --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(232, 168, 124, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(232, 168, 124, 0.25);

  /* --- Transitions --- */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-smooth);
  --transition-slow: 0.7s var(--ease-expo);
  --transition-ultra: 1s var(--ease-expo);

  /* --- Z-Index Scale --- */
  --z-behind: -1;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
}

/* ================================================
   CSS RESET & BASE
   ================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--bg-secondary);
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

html::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--color-primary);
  color: var(--bg-primary);
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
.text-display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.text-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.text-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.text-h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.text-body {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-ultra);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-xs);
}

/* ================================================
   LAYOUT — SECTIONS / SLIDES
   ================================================ */
.slide {
  width: 100%;
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
  position: relative;
  z-index: var(--z-base);
}

.slide__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-fixed);
  transition: background var(--transition-normal), padding var(--transition-normal);
}

.nav--scrolled {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: var(--space-sm) var(--space-xl);
  border-bottom: 1px solid rgba(232, 168, 124, 0.1);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}

.nav__logo span {
  color: var(--color-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width var(--transition-normal);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

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

.nav__cta {
  padding: 0.6rem 1.6rem;
  background: var(--gradient-hero);
  color: var(--bg-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--bg-primary);
}

/* --- Mobile Menu Toggle --- */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: var(--z-modal);
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.nav__toggle--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   SIDE DOT NAVIGATION
   ================================================ */
.dot-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: var(--z-fixed);
}

.dot-nav__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.dot-nav__dot::before {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.dot-nav__dot:hover::before {
  opacity: 1;
}

.dot-nav__dot--active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(232, 168, 124, 0.4);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-hero);
  color: var(--bg-primary);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong);
  color: var(--bg-primary);
}

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

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn--ghost {
  background: var(--bg-glass-light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 168, 124, 0.15);
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  background: rgba(232, 168, 124, 0.1);
  transform: translateY(-2px);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* ================================================
   GLASSMORPHISM CARD
   ================================================ */
.glass-card {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 168, 124, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(232, 168, 124, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ================================================
   SECTION HEADER
   ================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-ultra);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  position: relative;
}

.section-header__tag::before,
.section-header__tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.4;
}

.section-header__tag::before {
  right: calc(100% + 12px);
}

.section-header__tag::after {
  left: calc(100% + 12px);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-sm);
}

.section-header__subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* ================================================
   MARQUEE (Scrolling Brands)
   ================================================ */
.marquee {
  width: 100%;
  overflow: hidden;
  padding: var(--space-md) 0;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary), transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.marquee__item:hover {
  opacity: 1;
  color: var(--color-primary);
}

.marquee__separator {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  opacity: 0.4;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   LIGHTBOX / MODAL
   ================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform var(--transition-slow);
}

.lightbox--active .lightbox__content {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox__close:hover {
  background: var(--color-primary);
  color: var(--bg-primary);
  transform: rotate(90deg);
}

/* ================================================
   SOCIAL ICONS
   ================================================ */
.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 168, 124, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-normal);
  background: var(--bg-glass-light);
}

.social-link:hover {
  color: var(--bg-primary);
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* ================================================
   CURSOR GLOW (Custom cursor effect)
   ================================================ */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(232, 168, 124, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: var(--z-behind);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ================================================
   LOADING SCREEN
   ================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transition: opacity 0.6s var(--ease-expo), visibility 0.6s;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__name {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-hero);
  border-radius: 2px;
  animation: loadProgress 1.8s var(--ease-expo) forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.relative { position: relative; }

/* --- Classes replacing inline styles --- */
.hero__line--block {
  display: block;
  margin-top: 0.2em;
}

.section-header--left {
  text-align: left;
}

.btn--submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.footer__heart {
  color: var(--color-primary);
}
