/* ============================================
   ELMAZ HIJAB MODELING SCHOOL
   Design System — base.css
   ============================================ */

/* ---- Google Fonts are loaded in HTML ---- */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

input, textarea {
  border: none;
  outline: none;
  font-family: var(--font-body);
}

/* === CSS VARIABLES === */
:root {
  /* Colors */
  --color-primary: #FFFFFF;
  --color-secondary: #6B0F1A;
  --color-secondary-light: #8B1F2A;
  --color-secondary-dark: #4A0A12;
  --color-accent: #C6A769;
  --color-accent-light: #D4BA82;
  --color-accent-dark: #A88B4A;
  --color-dark: #0A0A0A;
  --color-dark-soft: #1A1A1A;
  --color-dark-medium: #141414;
  --color-gray: #888888;
  --color-gray-light: #CCCCCC;
  --color-overlay: rgba(10, 10, 10, 0.6);
  --color-overlay-heavy: rgba(10, 10, 10, 0.8);

  /* Typography */
  --font-heading: 'Playfair Display', 'Cinzel', Georgia, serif;
  --font-body: 'Poppins', 'Inter', -apple-system, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;
  --text-hero: clamp(3rem, 8vw, 7rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;
  --space-section: clamp(5rem, 10vh, 10rem);

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;
  --border-radius: 4px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.4s var(--ease-out);
  --transition-slow: 0.8s var(--ease-out);
  --transition-cinematic: 1.2s var(--ease-in-out);

  /* Z-index Scale */
  --z-base: 1;
  --z-overlay: 10;
  --z-navbar: 100;
  --z-modal: 200;
  --z-chatbot: 300;
  --z-preloader: 1000;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-4xl); }
h4 { font-size: var(--text-3xl); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }

p {
  font-size: var(--text-base);
  color: var(--color-gray-light);
  line-height: 1.8;
  font-weight: 300;
}

.text-accent {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-secondary);
}

/* === UTILITY CLASSES === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-dark);
}

.section-darker {
  background-color: var(--color-dark-soft);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  position: relative;
  padding: 0 var(--space-xl);
}

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

.section-label::before { left: 0; }
.section-label::after { right: 0; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Gold Shimmer Effect on Titles */
.section-title,
.hero-title,
.page-header-content h1,
.program-hero-content h1,
.article-detail-title,
.award-hero-content h2,
.brand-content h2,
.story-content h2,
.program-cta-content h2,
.contact-intro h2,
.timeline-content h3 {
  position: relative;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary) 40%,
    var(--color-accent) 50%,
    var(--color-primary) 60%,
    var(--color-primary) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Gold Divider */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: var(--space-md) auto;
}

/* === SELECTION STYLE === */
::selection {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --space-section: 4rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section-label::before,
  .section-label::after {
    width: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
  }
}
