/* Modern global stylesheet: glass cards, responsive grid, smooth transitions, dark-mode-ready */

:root {
    --bg: #0f1724;
    --card: #3269d6;
    --text: #ffffff;
    --muted: #a7b3c5;
    --accent: #4f9ff8;
    --accent-2: #7ee7b5;
    --glass: rgba(255,255,255,0.04);
    --card-bg: rgba(255,255,255,0.03);
    --radius: 12px;
    --glass-border: rgba(255,255,255,0.12);
    --surface-glow: 0 4px 24px rgba(0,0,0,0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  scrollbar-gutter: stable;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    padding: 32px;
}

/* Typography */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(11,18,32,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--surface-glow);
    margin-bottom: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo {
    display: none;
}

/* Navigation */
nav {
    display: flex;
    gap: var(--nav-gap, 2rem);   /* lock spacing */
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0;          /* lock letter spacing */
    margin: 0;                   /* prevent accidental margins */
    white-space: nowrap;         /* prevent wrapping */
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.btn {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #062037;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
}

nav a.btn::after {
    display: none;
}

nav a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79,159,248,0.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 auto;
    max-width: 1400px;
    background: var(--card);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

/* Slideshow */
.slideshow-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 800px;
    background: rgba(11,18,32,0.8);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.hero-content .btn {
    background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important;
    border: 0 !important;
    padding: 12px 32px;
    border-radius: 10px;
    color: #062037 !important;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79,159,248,0.2);
}

/* Slideshow Navigation */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    color: white;
    background: rgba(11,18,32,0.8);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background: rgba(26,35,50,0.9);
    border-color: var(--accent);
}

/* Dots */
.dot-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Page Title (shared) */
.page-title {
    text-align: center;
    margin: 40px 0 32px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff, var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Shared section titles */
.section-title {
  text-align: center;
  margin: 0 auto 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  font-weight: 700;
}

/* ===== SHARED COUNTER STYLES ===== */
.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(8px, 2vw, 10px) clamp(16px, 3vw, 18px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79,159,248,0.15), rgba(126,231,181,0.15));
  border: 1px solid rgba(79,159,248,0.35);
  transition: all 0.3s ease;
  min-width: clamp(90px, 20vw, 100px);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.counter-item:hover {
  background: linear-gradient(135deg, rgba(79,159,248,0.25), rgba(126,231,181,0.25));
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79,159,248,0.25);
}

.counter-item.active {
  background: linear-gradient(135deg, rgba(79,159,248,0.25), rgba(126,231,181,0.25));
  border-color: var(--accent);
  opacity: 1;
}

.counter-item.off {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0.5;
}

.counter-item.off:hover {
  opacity: 0.7;
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.counter-label {
  font-size: clamp(0.7rem, 1.8vw, 0.75rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: clamp(3px, 1vw, 4px);
}

.counter-value {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.counter-item.off .counter-value {
  color: var(--muted);
}

/* ===== SHARED DROPDOWN/SELECT STYLES ===== */
.sort-select,
.filter-select {
  padding: clamp(8px, 2vw, 10px) clamp(28px, 6vw, 36px) clamp(8px, 2vw, 10px) clamp(12px, 2.5vw, 14px);
  background: linear-gradient(135deg, rgba(30,58,138,0.4), rgba(17,24,39,0.6));
  border: 1px solid rgba(79,159,248,0.3);
  border-radius: 10px;
  color: #fff;
  font-size: clamp(11px, 2.5vw, 13px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237dd3fc' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right clamp(8px, 2vw, 12px) center;
  background-size: clamp(10px, 2vw, 12px);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: clamp(140px, 30vw, 160px);
  box-sizing: border-box;
}

.sort-select:hover,
.filter-select:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(30,58,138,0.5), rgba(17,24,39,0.7));
  box-shadow: 0 0 0 3px rgba(79,159,248,0.15), 0 4px 12px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.sort-select:focus,
.filter-select:focus {
  outline: 0;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(126,231,181,0.2), 0 4px 12px rgba(0,0,0,0.25);
}

.sort-select option,
.filter-select option {
  background: #0f1825;
  color: #e6eef8;
  padding: 10px;
  font-weight: 500;
}

.sort-select option:first-child,
.filter-select option:first-child {
  color: var(--muted);
}

.sort-select option:checked,
.filter-select option:checked {
  background: linear-gradient(135deg, rgba(79,159,248,0.3), rgba(126,231,181,0.2));
  color: var(--accent-2);
  font-weight: 700;
}

/* ===== SHARED BUTTON STYLES (glass-like, matches dropdown colors) ===== */
.btn-glass {
  background: linear-gradient(135deg, rgba(30,58,138,0.4), rgba(17,24,39,0.6));
  border: 1px solid rgba(79,159,248,0.35);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 26px);
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}

.btn-glass:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(30,58,138,0.5), rgba(17,24,39,0.7));
  box-shadow: 0 0 0 3px rgba(79,159,248,0.15), 0 4px 12px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.btn-glass:focus-visible {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(126,231,181,0.2), 0 4px 12px rgba(0,0,0,0.25);
}

.btn-glass:active { transform: translateY(0); }

/* Optional small variant */
.btn-glass.sm { padding: 8px 16px; border-radius: 8px; font-weight: 600; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(10px, 2vw, 12px) clamp(18px, 4vw, 24px);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

/* Match dropdown idle colors (no gradient) */
.btn-surface {
  background: var(--control, rgba(255,255,255,0.06));
  color: var(--text, #ffffff);
  border-color: var(--glass-border, rgba(148,163,184,0.35));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-surface:hover {
  background: var(--control-hover, rgba(255,255,255,0.10));
  border-color: var(--accent, #4F9FF8);
  box-shadow: 0 0 0 3px rgba(79,159,248,0.15), 0 6px 18px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.btn-surface:focus-visible {
  outline: none;
  border-color: var(--accent, #4F9FF8);
  box-shadow: 0 0 0 3px rgba(79,159,248,0.25);
}

.btn-surface:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.btn-sm { padding: 8px 16px; border-radius: 8px; font-weight: 600; }

/* Hero CTA */
.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-cta .btn { white-space: nowrap; }

@media (max-width: 768px) {
  .hero-cta { bottom: 18%; }
  .hero-cta .btn.btn-sm { padding: 9px 18px; }
}

@media (max-width: 480px) {
  .hero-cta { bottom: 14%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav {
        position: static;
        transform: none;
        margin-top: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.9rem;        /* consistent mobile size */
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* Button: match dropdown idle color, no gradient */
.btn-dropdown {
  background: rgba(17,24,39,0.6);                /* same tone as dropdown idle */
  color: #fff;
  border: 1px solid rgba(79,159,248,0.3);        /* same border as dropdown */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-dropdown:hover {
  background: rgba(17,24,39,0.7);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,159,248,0.15), 0 6px 18px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.btn-dropdown:focus-visible {
  outline: 0;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(126,231,181,0.2);
}

.btn-dropdown:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(15px, 4vw, 15px); /* was clamp(60px, 8vw, 100px) */
  padding: clamp(40px, 6vw, 60px) 0 clamp(20px, 3vw, 30px);
  background: transparent;
  border-top: none;
}

/* Centered “card” background sized like the header/container */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  /* container content (max 1400) + its 24px side paddings = 1400 + 48 */
  width: calc(min(1400px, 100% - 48px) + 48px);
  background: linear-gradient(135deg, rgba(17,24,39,0.8), rgba(11,18,32,0.9));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 0;
}

.footer-content,
.footer-bottom {
  position: relative;
  z-index: 1;                         /* above the pseudo background */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(30px, 5vw, 50px);
  margin-bottom: clamp(30px, 4vw, 40px);
}

.footer-bottom {
  padding-top: clamp(20px, 3vw, 24px);
  border-top: 1px solid rgba(148,163,184,0.2);
  text-align: center;
}

.footer-section h3 {
  color: var(--accent);
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: clamp(13px, 2vw, 14px);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(13px, 2vw, 14px);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 24px) clamp(16px, 3vw, 24px) 0;
  border-top: 1px solid rgba(148,163,184,0.2);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: clamp(12px, 2vw, 13px);
  margin: 0;
}

@media (max-width: 768px) {
  .footer {
    margin-top: clamp(20px, 3vw, 30px); /* was clamp(40px, 6vw, 60px) */
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-links a:hover {
    transform: translateX(0);
  }
}