/* ROOT CSS */

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary-gradient-start: #667eea;
  --primary-gradient-end: #764ba2;
  --accent-color: #f093fb;
  --accent-secondary: #4facfe;

  --bg-dark-1: #0a0e27;
  --bg-dark-2: #151932;
  --bg-dark-3: #1a1f3a;

  --card-bg: rgba(26, 31, 58, 0.7);
  --card-border: rgba(255, 255, 255, 0.12);

  --text-primary: #ffffff;
  --text-secondary: #b8c1ec;
  --text-muted: #7e88b4;

  --success-color: #34d399;
  --error-color: #ef4444;
  --warning-color: #fbbf24;
  --info-color: #60a5fa;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ---------- GLOBAL RESET ---------- */
* {
  box-sizing: border-box;
}

/* ---------- BODY ---------- */
body {
  background-color: #ffffff;
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    135deg,
    var(--bg-dark-1) 0%,
    var(--bg-dark-2) 50%,
    var(--bg-dark-3) 100%
  );
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- ANIMATED BACKGROUND ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.12), transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(79, 172, 254, 0.1), transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* ---------- CONTAINER ---------- */
.container {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 80px;
}

/* ---------- HEADING SECTION (FROM INDEX.CSS) ---------- */
.heading-section {
  margin-bottom: 30px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.heading-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.main-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 24px 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-gradient-start),
    var(--accent-color),
    var(--accent-secondary)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gallery-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
}

.heading {
  font-size: 13px;
  letter-spacing: 1px;
}

.heading-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-gradient-start),
    var(--accent-color),
    transparent
  );
  margin: 28px auto;
  border-radius: 10px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.heading-footer {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-top: 20px;
  font-weight: 600;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-2);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary-gradient-start),
    var(--primary-gradient-end)
  );
  border-radius: 10px;
}

/* ---------- ACCESSIBILITY ---------- */
*:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(102, 126, 234, 0.3);
  color: var(--text-primary);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .main-title { font-size: 2.5rem; }
  .heading-badge { font-size: 0.75rem; padding: 8px 18px; }
}

@media (max-width: 576px) {
  .main-title { font-size: 2rem; }
}
