/* ============================================
   VELORA — Luxury Beauty Center
   Style: Minimal · Premium · Elegant
   Inspired by Apple, Dior, Chanel
   ============================================ */

/* --------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------- */
:root {
  /* Colors - Light */
  --color-white: #FFFFFF;
  --color-off-white: #F8F6F3;
  --color-beige: #F0EBE5;
  --color-soft-pink: #F2E6E3;
  --color-rose-gold: #C9A89C;
  --color-rose-gold-light: #E8D5CC;
  --color-rose-gold-dark: #B89182;
  --color-rose-gold-glow: rgba(201, 168, 156, 0.35);

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #8A8580;
  --text-light: #B0ABA6;

  /* Surfaces */
  --bg-primary: var(--color-off-white);
  --bg-card: rgba(255, 255, 255, 0.20);
  --bg-card-border: rgba(255, 255, 255, 0.35);
  --bg-card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 8px 24px -8px rgba(0, 0, 0, 0.04);

  /* Buttons */
  --btn-bg: rgba(255, 255, 255, 0.18);
  --btn-border: rgba(255, 255, 255, 0.25);
  --btn-hover-bg: rgba(255, 255, 255, 0.35);
  --btn-hover-border: rgba(255, 255, 255, 0.50);
  --btn-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  --btn-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.20);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

  /* Layout */
  --card-radius: 28px;
  --btn-radius: 14px;
  --card-padding: 48px 40px;
  --card-max-width: 480px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.6s;

  /* Z-index layers */
  --z-particles: 1;
  --z-blobs: 0;
  --z-content: 10;
  --z-header: 20;
  --z-cursor: 999;
  --z-loading: 1000;
  --z-tooltip: 100;

  /* Loading screen */
  --loading-bg: var(--color-off-white);
  --loading-text: var(--text-primary);
}

/* Dark Mode */
[data-theme="dark"] {
  --color-off-white: #0D0D0D;
  --color-beige: #1A1816;
  --color-soft-pink: #1F1B1A;

  --text-primary: #F0EBE5;
  --text-secondary: #8A8580;
  --text-light: #5C5855;

  --bg-primary: #0D0D0D;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);

  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-border: rgba(255, 255, 255, 0.10);
  --btn-hover-bg: rgba(255, 255, 255, 0.10);
  --btn-hover-border: rgba(255, 255, 255, 0.18);
  --btn-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  --btn-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

  --loading-bg: #0D0D0D;
  --loading-text: #F0EBE5;
}




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

/* Prevent text selection and image dragging */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease-out-expo),
              color 0.6s var(--ease-out-expo);
  line-height: 1.6;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-rose-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}


/* --------------------------------------------
   3. Typography - Font loading fallback
   -------------------------------------------- */
.fonts-loaded .heading-font {
  font-family: var(--font-heading);
}

.fonts-loaded .body-font {
  font-family: var(--font-body);
}


/* --------------------------------------------
   4. Loading Screen
   -------------------------------------------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  background-color: var(--loading-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo),
              visibility 0.8s var(--ease-out-expo);
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-logo {
  width: 80px;
  height: 80px;
  opacity: 0;
  animation: loading-logo-in 1.2s var(--ease-out-expo) forwards;
}

@keyframes loading-logo-in {
  0% {
    opacity: 0;
    transform: scale(0.7);
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px var(--color-rose-gold-glow));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(201, 168, 156, 0.15));
  }
}

.loading-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--loading-text);
  opacity: 0;
  animation: loading-text-in 0.8s var(--ease-out-expo) 0.6s forwards;
}

@keyframes loading-text-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
}


/* --------------------------------------------
   5. Background - Animated Gradient & Blobs
   -------------------------------------------- */
.background-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-blobs);
  overflow: hidden;
  pointer-events: none;
}

/* Base gradient */
.background-gradient {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(201, 168, 156, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(242, 230, 227, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(240, 235, 229, 0.06) 0%, transparent 60%),
    var(--bg-primary);
  animation: gradient-shift 20s var(--ease-smooth) infinite alternate;
  transition: background 0.6s var(--ease-out-expo);
}

@keyframes gradient-shift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(2%, -1%) rotate(0.5deg);
  }
  66% {
    transform: translate(-1%, 2%) rotate(-0.5deg);
  }
  100% {
    transform: translate(1%, 1%) rotate(0.3deg);
  }
}

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 156, 0.20), transparent);
  top: -10%;
  left: -5%;
  animation: blob-float-1 25s var(--ease-smooth) infinite alternate;
}

.blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242, 230, 227, 0.25), transparent);
  bottom: -8%;
  right: -5%;
  animation: blob-float-2 30s var(--ease-smooth) infinite alternate;
}

.blob--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(240, 235, 229, 0.20), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blob-float-3 22s var(--ease-smooth) infinite alternate;
}

@keyframes blob-float-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, 40px) scale(1.1);
  }
  100% {
    transform: translate(30px, -20px) scale(0.95);
  }
}

@keyframes blob-float-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50px, -30px) scale(1.15);
  }
  100% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes blob-float-3 {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-45%, -55%) scale(1.2);
  }
  100% {
    transform: translate(-55%, -45%) scale(0.9);
  }
}


/* --------------------------------------------
   6. Particle Canvas
   -------------------------------------------- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-particles);
  pointer-events: none;
}


/* --------------------------------------------
   7. Custom Cursor (Desktop only)
   -------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  .custom-cursor {
    display: block;
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(201, 168, 156, 0.4), rgba(201, 168, 156, 0.05));
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition:
      width 0.3s var(--ease-out-expo),
      height 0.3s var(--ease-out-expo),
      opacity 0.3s var(--ease-out-expo);
    mix-blend-mode: multiply;
    will-change: transform;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }

  [data-theme="dark"] .custom-cursor {
    background: radial-gradient(circle at center, rgba(201, 168, 156, 0.3), rgba(201, 168, 156, 0.02));
    mix-blend-mode: screen;
  }

  /* Cursor glow ring */
  .custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(201, 168, 156, 0.12), transparent 70%);
    animation: cursor-pulse 3s var(--ease-smooth) infinite alternate;
  }

  @keyframes cursor-pulse {
    0% {
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0.5;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.2);
      opacity: 1;
    }
  }

  /* Scale cursor on interactive elements */
  .custom-cursor.hovering {
    width: 32px;
    height: 32px;
  }
}


/* --------------------------------------------
   8. Header controls
   -------------------------------------------- */
.header-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: var(--z-header);
  display: flex;
  gap: 10px;
  align-items: center;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--btn-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-out-expo);
  outline: none;
  position: relative;
}

.control-btn:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-border);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.control-btn:active {
  transform: scale(0.95);
}

/* Theme icon */
.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease-spring);
}

.control-btn .theme-icon-sun {
  display: block;
}

.control-btn .theme-icon-moon {
  display: none;
}

[data-theme="light"] .control-btn .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .control-btn .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .control-btn .theme-icon-moon {
  display: block;
}


/* --------------------------------------------
   9. Main Card
   -------------------------------------------- */
main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: var(--z-content);
}

.card {
  width: 100%;
  max-width: var(--card-max-width);
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--bg-card-shadow);
  text-align: center;
  transition:
    background var(--duration-slow) var(--ease-out-expo),
    border-color var(--duration-slow) var(--ease-out-expo),
    box-shadow var(--duration-slow) var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    opacity 0.8s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(20px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------------------
   10. Logo
   -------------------------------------------- */
.logo-container {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.logo {
  width: 96px;
  height: 96px;
  opacity: 0;
  transform: scale(0.8);
  animation:
    logo-enter 1s var(--ease-out-expo) 0.3s forwards,
    logo-glow 4s var(--ease-smooth) 2s infinite alternate;
}

@keyframes logo-enter {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logo-glow {
  0% {
    filter: drop-shadow(0 0 4px rgba(201, 168, 156, 0));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(201, 168, 156, 0.25));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(201, 168, 156, 0.1));
  }
}


/* --------------------------------------------
   11. Title & Subtitle
   -------------------------------------------- */
.title-wrapper {
  margin-bottom: 8px;
  min-height: 1.2em;
}

.title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--text-primary);
  transition: color var(--duration-slow) var(--ease-out-expo);
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--color-rose-gold);
  margin-left: 2px;
  vertical-align: baseline;
  animation: cursor-blink 1s step-end infinite;
}

.typing-cursor.done {
  animation: cursor-fade 0.4s var(--ease-out-expo) forwards;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes cursor-fade {
  0% { opacity: 1; }
  100% { opacity: 0; width: 0; margin-left: 0; }
}

.subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-rose-gold);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    color var(--duration-slow) var(--ease-out-expo);
}

.subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.subtitle-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-rose-gold);
  margin: 16px auto 20px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo) 0.2s;
}

.subtitle-line.visible {
  opacity: 0.5;
}


/* --------------------------------------------
   12. Buttons
   -------------------------------------------- */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--btn-border);
  box-shadow: var(--btn-shadow);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-spring);
  position: relative;
  overflow: hidden;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Button icon */
.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-label {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
    box-shadow: var(--btn-hover-shadow);
    transform: translateY(-2px);
  }
}

.btn:active {
  transform: translateY(0) scale(0.98);
  background: var(--btn-hover-bg);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 168, 156, 0.2);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-anim 0.6s var(--ease-out-expo) forwards;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* --------------------------------------------
   13. Glory Signature
   -------------------------------------------- */
.glory-section {
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
  z-index: var(--z-content);
}

.glory-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
  transition: color var(--duration-slow) var(--ease-out-expo);
}

.glory-link {
  position: relative;
  display: inline-block;
  color: var(--color-rose-gold);
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: color 0.3s var(--ease-out-expo);
}

/* Underline animation */
.glory-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-rose-gold);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .glory-link:hover::after {
    width: 100%;
  }

  .glory-link:hover {
    color: var(--color-rose-gold-dark);
  }
}

/* Tooltip */
.glory-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease-out-expo),
    visibility 0.3s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo);
  pointer-events: none;
}

.glory-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .glory-link:hover .glory-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* CSS-only periodic glow (every ~14s, lasts ~0.6s) */
.glory-link {
  animation: glory-glow 14s ease-in-out infinite;
}

@keyframes glory-glow {
  0%, 95.7% {
    text-shadow: 0 0 0 transparent;
  }
  97.8% {
    text-shadow: 0 0 12px var(--color-rose-gold-glow), 0 0 24px rgba(201, 168, 156, 0.1);
  }
  100% {
    text-shadow: 0 0 0 transparent;
  }
}

/* Keyboard focus for glory link */
.glory-link:focus-visible {
  outline: 2px solid var(--color-rose-gold);
  outline-offset: 4px;
  border-radius: 2px;
}


/* --------------------------------------------
   14. Responsive - Mobile
   -------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --card-padding: 36px 24px;
    --card-radius: 24px;
    --card-max-width: 100%;
  }

  .header-controls {
    top: 16px;
    right: 16px;
    gap: 8px;
  }

  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  .buttons {
    gap: 10px;
    margin-top: 28px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .glory-section {
    padding: 60px 20px 32px;
  }
}

@media (max-width: 360px) {
  :root {
    --card-padding: 28px 18px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  .title {
    font-size: 2.2rem;
  }
}


/* --------------------------------------------
   15. Responsive - Tablet
   -------------------------------------------- */
@media (min-width: 481px) and (max-width: 768px) {
  :root {
    --card-padding: 44px 36px;
  }

  .logo {
    width: 84px;
    height: 84px;
  }
}


/* --------------------------------------------
   16. Responsive - Desktop
   -------------------------------------------- */
@media (min-width: 769px) and (max-width: 1440px) {
  .card {
    padding: 52px 44px;
  }

  .logo {
    width: 100px;
    height: 100px;
  }
}


/* --------------------------------------------
   17. Responsive - Ultra Wide
   -------------------------------------------- */
@media (min-width: 1441px) {
  :root {
    --card-max-width: 520px;
    --card-padding: 60px 52px;
  }

  .logo {
    width: 110px;
    height: 110px;
  }

  .btn {
    padding: 18px 28px;
    font-size: 1rem;
  }
}


/* --------------------------------------------
   18. Dark Mode overrides
   -------------------------------------------- */
[data-theme="dark"] .blob--1 {
  background: radial-gradient(circle, rgba(201, 168, 156, 0.12), transparent);
  opacity: 0.5;
}

[data-theme="dark"] .blob--2 {
  background: radial-gradient(circle, rgba(242, 230, 227, 0.08), transparent);
  opacity: 0.4;
}

[data-theme="dark"] .blob--3 {
  background: radial-gradient(circle, rgba(240, 235, 229, 0.06), transparent);
  opacity: 0.3;
}

[data-theme="dark"] .background-gradient {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(201, 168, 156, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(242, 230, 227, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(240, 235, 229, 0.02) 0%, transparent 60%),
    var(--bg-primary);
}


/* --------------------------------------------
   19. RTL Support
   -------------------------------------------- */
[dir="rtl"] .title {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

[dir="rtl"] .subtitle {
  font-family: var(--font-arabic);
  letter-spacing: 0.1em;
}

[dir="rtl"] .typing-cursor {
  margin-left: 0;
  margin-right: 2px;
}

[dir="rtl"] .header-controls {
  right: auto;
  left: 24px;
}

@media (max-width: 480px) {
  [dir="rtl"] .header-controls {
    right: auto;
    left: 16px;
  }
}


/* --------------------------------------------
   20. Reduced Motion
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card {
    opacity: 1;
    transform: none;
  }

  .logo {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .subtitle {
    opacity: 1;
    transform: none;
  }

  #loading-screen {
    display: none;
  }
}


/* --------------------------------------------
   21. Print Styles
   -------------------------------------------- */
@media print {
  #loading-screen,
  .background-layer,
  #particles-canvas,
  .custom-cursor,
  .header-controls {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
  }

  body {
    color: #000;
    background: #fff;
  }
}
