/* ═══════════════════════════════════════════════════════════
   MMS GALLERY — Clean Modern Theme with Light/Dark Mode
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --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-hero: clamp(3rem, 8vw, 7rem);
  /* Light mode (default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #2563eb;
  --accent-secondary: #3b82f6;
  --accent-light: rgba(37, 99, 235, 0.1);
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(248, 250, 252, 0.9);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --gradient-bg: radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
                 radial-gradient(ellipse at 80% 100%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
                 radial-gradient(ellipse at 50% 50%, rgba(147, 197, 253, 0.04) 0%, transparent 70%);
  --dot-pattern: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
  --on-accent: #ffffff;
  --text-on-dark: #ffffff;
  --text-on-dark-secondary: rgba(255, 255, 255, 0.7);
  color-scheme: light;
}

* {
  font-style: normal !important;
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #222222;
  --text-primary: #f5f5f5;
  --text-secondary: #e8e8e8;
  --text-muted: #d0d0d0;
  --text-muted-light: rgba(255, 255, 255, 0.7);
  --accent-primary: #3b82f6;
  --accent-secondary: #60a5fa;
  --accent-light: rgba(59, 130, 246, 0.15);
  --border-color: #2d2d2d;
  --border-light: #3a3a3a;
  --border-light-strong: rgba(255, 255, 255, 0.2);
  --card-bg: #1a1a1a;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(18, 18, 18, 0.95);
  --gradient-bg: radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
                 radial-gradient(ellipse at 80% 100%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
                 radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  --dot-pattern: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
  --on-accent: #ffffff;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #222222;
    --text-primary: #f5f5f5;
    --text-secondary: #e8e8e8;
    --text-muted: #d0d0d0;
    --text-muted-light: rgba(255, 255, 255, 0.7);
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-light: rgba(59, 130, 246, 0.15);
    --border-color: #2d2d2d;
    --border-light: #3a3a3a;
    --border-light-strong: rgba(255, 255, 255, 0.2);
    --card-bg: #1a1a1a;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(18, 18, 18, 0.95);
    --gradient-bg: radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 100%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    --dot-pattern: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
    --on-accent: #ffffff;
    color-scheme: dark;
  }
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  position: relative;
}

h1, h2 {
  font-family: var(--font-heading);
}

h3, h4, h5, h6, p, span,
button, input, label, a {
  font-family: var(--font-body);
}

em, i {
  font-style: normal;
}

/* Background decoration */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-bg);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--dot-pattern);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Page wrap */
.page { position: relative; z-index: 1; }

/* Animated floating shapes */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.bg-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  top: -100px;
  right: -100px;
  opacity: 0.08;
  animation-delay: 0s;
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  bottom: 20%;
  left: -50px;
  opacity: 0.06;
  animation-delay: -7s;
}

.bg-shape-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-primary);
  top: 50%;
  right: 10%;
  opacity: 0.05;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-5deg); }
  75% { transform: translate(-20px, -10px) rotate(3deg); }
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
nav.scrolled { 
  padding: 12px 48px; 
  box-shadow: var(--card-shadow);
}
.nav-logo {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav-logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav-links { 
  display: flex; 
  gap: 32px; 
  list-style: none; 
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
[data-theme="dark"] .nav-links a {
  color: var(--text-muted-light);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-light);
}

/* Account Button */
.nav-account-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  background: var(--accent-light);
  color: var(--accent-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}
.nav-account-btn:hover {
  background: var(--accent-primary);
  color: var(--on-accent);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  font-weight: 600;
}\n.btn-primary:hover { 
  background: var(--accent-secondary); 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  color: #ffffff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
[data-theme="dark"] .btn-ghost {
  color: var(--text-muted-light);
  border-color: var(--border-light-strong);
}
.btn-ghost:hover { 
  border-color: var(--accent-primary); 
  color: var(--accent-primary);
  background: var(--accent-light);
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-danger { 
  background: rgba(239, 68, 68, 0.1); 
  color: var(--danger); 
  border: 1px solid rgba(239, 68, 68, 0.2); 
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }
.btn-success { 
  background: rgba(16, 185, 129, 0.1); 
  color: var(--success); 
  border: 1px solid rgba(16, 185, 129, 0.2); 
}
.btn-success:hover { background: rgba(16, 185, 129, 0.2); }

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(16px);
}
[data-theme="dark"] .glass-card {
  background: rgba(18, 18, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.glass-card:hover { 
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Gallery CTA Button - Premium Style */
.btn-gallery {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), 0 0 0 0 rgba(37, 99, 235, 0.4);
  position: relative;
  overflow: hidden;
}
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), 0 0 0 0 rgba(37, 99, 235, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.btn-gallery:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.btn-gallery:hover::before {
  left: 100%;
}
.btn-gallery:active {
  transform: translateY(-1px) scale(0.98);
}

/* Section */
.section { padding: 80px 48px; position: relative; }
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.section-title em { 
  font-style: normal; 
  color: var(--accent-primary); 
}
.section-description, .card-description, p.section-subtitle {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.05rem;
}
[data-theme="dark"] .section-description,
[data-theme="dark"] .card-description,
[data-theme="dark"] p.section-subtitle {
  color: var(--text-muted-light);
}

/* Form */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
[data-theme="dark"] .form-label {
  color: var(--text-muted-light);
}
.form-help, .form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
[data-theme="dark"] .form-help,
[data-theme="dark"] .form-hint {
  color: var(--text-muted-light);
}
.form-input, .form-select, .form-textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled,
input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-input,
.form-select,
.form-textarea,
input,
select,
textarea {
  color-scheme: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { 
  border-color: var(--accent-primary); 
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--bg-secondary); }

/* Tag badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-primary { background: var(--accent-light); color: var(--accent-primary); }
.badge-green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-yellow { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-gray { 
  background: var(--bg-tertiary); 
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
[data-theme="dark"] .badge-gray {
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid var(--border-light-strong);
  color: var(--text-muted-light);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  max-width: 340px;
  box-shadow: var(--card-shadow-hover);
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-color: var(--success); color: var(--success); }
#toast.error { border-color: var(--danger); color: var(--danger); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.flt {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="dark"] .flt {
  border-color: var(--border-light-strong);
  color: var(--text-muted-light);
}
.flt.active, .flt:hover { 
  border-color: var(--accent-primary); 
  color: var(--accent-primary); 
  background: var(--accent-light); 
}

/* Footer */
footer { 
  background: var(--bg-secondary); 
  border-top: 1px solid var(--border-color); 
  padding: 48px;
  position: relative;
  z-index: 1;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col p, .footer-col address {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: normal;
}
.footer-col a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media(max-width:768px){
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
[data-theme="dark"] .text-muted {
  color: var(--text-muted-light);
}
.text-secondary { color: var(--text-secondary); }
[data-theme="dark"] .text-secondary {
  color: var(--text-muted-light);
}
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* Decorative grid pattern for sections */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

/* Additional card and text styling for better contrast */
.card-title, .gallery-title, .card-name {
  color: var(--text-primary);
  font-weight: 600;
}

.card-meta, .gallery-meta, .item-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}
[data-theme="dark\"] .card-meta,
[data-theme=\"dark\"] .gallery-meta,
[data-theme=\"dark\"] .item-meta {
  color: var(--text-muted-light);
}

/* Text help and hints */
small, .small-text, .help-text {
  color: var(--text-muted);
}
[data-theme=\"dark\"] small,
[data-theme=\"dark\"] .small-text,
[data-theme=\"dark\"] .help-text {
  color: var(--text-muted-light);
}
