:root {
  --primary: #2d333a;
  --primary-light: #4a5158;
  --accent: #10b981;
  --accent-light: #34d399;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-light: #e5e7eb;
  --bg-primary: rgb(245,245,245);
  --bg-secondary: rgb(245,245,245);
  --bg-tertiary: #f3f4f6;
  --bg-white: #ffffff;
}

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

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  padding-top: 68px;
}

/* Navigation */
.navbar {
  background-color: var(--bg-secondary);
  backdrop-filter: none;
  border: none;
  padding: 1rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  background-color: transparent;
  /*backdrop-filter: blur(20px);*/
  /*border: 1px solid var(--border-light);*/
  padding: 0.75rem 0;
  /*box-shadow: 0 8px 25px rgba(0,0,0,0.08);*/
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.navbar.scrolled,
.navbar--mobile-open {
  background-color: transparent;
  backdrop-filter: blur(20px);
  /*border: 1px solid var(--border-light);*/
  padding: 0.75rem 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.navbar .container {
  transition: all 0.3s ease;
  position: relative;
}

.navbar.scrolled .container,
.navbar--mobile-open .container {
  /*background-color: var(--bg-white);*/
  /*border: 1px solid var(--border-light);*/
  /*border-radius: 16px;*/
  /*padding: 0.5rem;*/
  margin-left: auto;
  margin-right: auto;
  /*box-shadow: 0 8px 25px rgba(0,0,0,0.08);*/
  /*backdrop-filter: blur(20px);*/
}

/* Remove the breakpoint overrides since we're using container-based approach */

.navbar .container {
  transition: all 0.3s ease;
}

.navbar-brand {
  display: flex;
}
.navbar-brand img {
  height: 28px;
  transition: filter 0.3s ease;
}

.navbar-toggler {
  border: 1px solid rgba(0,0,0,0.2);
  transition: border-color 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar--light .navbar-brand img {
  filter: none;
}

.navbar--dark .navbar-brand img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(8%) saturate(1500%) hue-rotate(187deg) brightness(95%) contrast(95%);
}

.navbar--light .navbar-toggler {
  border-color: rgba(255,255,255,0.6);
}

.navbar--light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar--dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51,51,51,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.navbar--light .navbar-nav .nav-link {
  color: white !important;
}

.navbar-nav .nav-link:hover {
  color: var(--text-primary) !important;
  background-color: var(--bg-tertiary);
}

.btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 14px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: white;
}

.btn-outline-primary {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: var(--bg-white);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 14px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-outline-primary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-tertiary);
}

/* Hero Section */
.hero {
  margin-top: -68px !important;
  padding: calc(3rem + 68px) 1.2rem 3rem;
  /*background: var(--bg-primary);*/
  background: url('/images/heros/mobile.jpg') center center no-repeat;
  background-size: cover;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  /*aspect-ratio: 1 / 1.93;*/
  height: calc(90vh - 64px);
}

.hero .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .hero-text {
    flex-grow: 1;
  }
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--bg-white);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-family: 'Manrope', sans-serif;
} 

.hero p {
  color: var(--bg-white);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 150%;
}

.hero .button {
  display: flex;
  flex-direction: row;
  align-items:start;
  gap:1rem;
}

.pricing-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1f242a 100%);
  color: white;
  padding: 6rem 0 4rem;
}

.pricing-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.pricing-hero .lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
}

.pricing-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.pricing-hero .highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.pricing-hero .highlight-item i {
  color: var(--accent-light);
}

@media (min-width: 768px) {
  .hero {
    margin-top: -68px !important;
    padding: 3rem 0 3rem 6rem;
    /*background: var(--bg-primary);*/
    background: url('/images/heros/desktop@1x.jpg') center center no-repeat;
    background-size: cover;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    height: auto;
    aspect-ratio: 2 / 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
  }
  .hero .hero-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    .hero-text {
      flex-grow: 0;
    }
  } 
  .hero .button {
    margin-top: 1rem;
  }
}

.hero .lead {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  max-width: 600px;
  letter-spacing: -0.01em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-buttons {
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 20px;
}

.feature-card h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* Gallery */
.gallery-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  margin-bottom: 2rem;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-content {
  padding: 1.5rem;

  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.gallery-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Preview Section */
.preview-section {
  background: var(--bg-secondary);
  padding: 6rem 0;
}

.preview-container {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.05);
}

.preview-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f9fa;
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
}

.preview-text {
  position: absolute;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  font-weight: bold;
}

.runner-name {
  font-size: 2.5rem;
  bottom: 40%;
  left: 10%;
}

.finish-time {
  font-size: 2rem;
  bottom: 30%;
  left: 10%;
}

.bib-number {
  font-size: 1.5rem;
  bottom: 20%;
  left: 10%;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.form-control {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 15px;
  transition: all 0.2s ease;
  background: var(--bg-white);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 51, 58, 0.1);
  background: var(--bg-white);
  color: var(--text-primary);
}

.form-select {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 15px;
  background: var(--bg-white);
  color: var(--text-primary);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 51, 58, 0.1);
}

input[type="color"] {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: none;
  overflow: hidden;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border: none;
  border-radius: 6px;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 6px;
}

input[type="color"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  outline: none;
}

/* Process Steps */
.process-step {
  text-align: center;
  padding: 0 1rem;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 28px;
}

.process-step h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 140, 66, 0.15);
}

.pricing-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.pricing-period {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--bg-secondary);
  font-size: 15px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--accent);
  font-weight: 600;
}

.pricing-note {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.addon-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.addon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.addon-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.addon-content h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.addon-price {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.addon-content p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.scalability-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), var(--bg-white));
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.scalability-card h3 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.scalability-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 620px;
}

.scalability-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.scalability-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.pricing-features .times {
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

footer h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  letter-spacing: 0.01em;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  line-height: 2;
  transition: color 0.2s ease;
}

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

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.social-icons a:hover {
  background: var(--accent);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  /*.navbar.scrolled .container {*/
  /*  border-radius: 12px;*/
  /*  padding: 0.5rem;*/
  /*}*/

  .hero h1 {
    font-size: 2.75rem;
    letter-spacing: -0.03em;
  }

  .hero .lead {
    font-size: 1.15rem;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .preview-container {
    padding: 2rem 1rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-hero {
    padding: 4rem 0 3rem;
  }

  .pricing-hero h1 {
    font-size: 2.4rem;
  }

  .pricing-hero-highlights {
    flex-direction: column;
    gap: 0.75rem;
  }

  .addon-card {
    flex-direction: column;
  }

  .scalability-card {
    padding: 2rem;
  }

  .scalability-card .btn {
    width: 100%;
    margin-top: 1.5rem;
  }
}

/* Main Sample Page Layout */
.sample-container {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page-header {
  text-align: center;
  padding: 1.5rem 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  /*margin-top: 68px; !* Account for fixed navbar *!*/
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Desktop Split Screen Layout */
.sample-content {
  display: flex;
  height: calc(100dvh - 68px); /* 100dvh minus navbar height */
  overflow: hidden;
}

.image-panel {
  flex: 1;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-right: 1px solid var(--border-light);
  position: relative;
}

.sample-image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  display: contents;
}

.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.8) 0%, rgba(99, 99, 99, 0.6) 100%);
  font-size: 50px;
  color: white;display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sample-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.sample-text {
  position: absolute;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Controls Panel */
.controls-panel {
  flex: 0 0 400px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.controls-content {
  flex: 1;
  padding: 2rem 2rem 0 2rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.controls-content::-webkit-scrollbar {
  width: 6px;
}

.controls-content::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.controls-content::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.controls-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.controls-header {
  margin-bottom: 2rem;
}

.controls-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.controls-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Scroll Indicators */
.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 0.5rem;
  z-index: 10;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.scroll-indicator i {
  color: var(--text-muted);
  font-size: 12px;
  animation: bounce 2s infinite;
}

.scroll-indicator-top {
  top: 1rem;
  opacity: 0;
}

.scroll-indicator-bottom {
  bottom: 1rem;
  opacity: 1;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator.hidden {
  opacity: 0;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

/* Color Picker */
.color-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-option.active {
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Action Buttons */
.action-buttons {
  padding: 2rem;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* Mobile Elements */
.mobile-edit-btn {
  display: none;
  position: relative;
  /*bottom: 2rem;*/
  /*right: 2rem;*/
  /*z-index: 1040;*/
  border-radius: 50px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.mobile-controls-modal .modal-content {
  border-radius: 16px;
  border: none;
}

.mobile-controls-modal .modal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem;
}

.mobile-controls-modal .modal-body {
  padding: 1.5rem;
}

/* Button Accent Style */
.btn-accent {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: white;
}

/* Responsive Adjustments for Sample Page */
@media (max-width: 991px) {
  .sample-content {
    height: calc(100dvh - 60px); /* Account for mobile navbar height */
    flex-direction: column;
  }

  .image-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex: 1;
    max-height: calc(-60px + 100dvh);
  }

  .controls-panel {
    flex: none;
    display: none; /* Hide on mobile, use modal instead */
  }

  .mobile-edit-btn {
    display: block;
  }

  .page-header {
    padding: 1rem 0;
    /*margin-top: 60px;*/
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .sample-content {
    height: calc(100dvh - 56px); /* Account for smaller navbar */
  }

  .page-header {
    padding: 0.75rem 0;
    /*margin-top: 56px;*/
  }

  .image-panel {
    padding: 1rem;
  }
}

/* LINKS */
a.no-decoration {
  text-decoration: none;
}

/* Gallery Hero Section */
.gallery-hero {
  background: var(--bg-white);
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(52, 211, 153, 0.03) 100%);
}

.gallery-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item {
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: var(--accent);
}

.gallery-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gallery-hero .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.gallery-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-item i {
  color: var(--accent);
  font-size: 16px;
}

.stat-item span {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

/* Gallery Grid Section */
.gallery-section {
  padding: 4rem 0;
}

.gallery-filters {
  text-align: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin: 0 0.25rem 0.5rem;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Enhanced Gallery Item (extends existing .gallery-item) */
.gallery-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery-content h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.gallery-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-secondary);
}

.gallery-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.gallery-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pagination Section */
.pagination-section {
  padding: 3rem 0;
  text-align: center;
}

.pagination {
  justify-content: center;
  gap: 0.5rem;
}

.page-link {
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}

.page-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Responsive Adjustments for Gallery Page */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 2rem 0 2rem;
  }

  .gallery-hero h1 {
    font-size: 2.25rem;
  }

  .gallery-hero .lead {
    font-size: 1.125rem;
  }

  .gallery-stats {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-filters {
    text-align: left;
  }
}

/* =====================================
   GALLERY MAIN PAGE - NEW CSS CLASSES
   ===================================== */

/* Featured Gallery Grid */
.featured-section {
  padding: 5rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.featured-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  text-decoration: none;
  color: inherit;
}

.featured-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8) 0%, rgba(52, 211, 153, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.featured-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.overlay-text {
  font-size: 1.125rem;
  font-weight: 600;
}

.featured-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.featured-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.featured-count {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.featured-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex-grow: 1;
  overflow-wrap: break-word;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  flex-shrink: 0;
}

.featured-tags {
  display: flex;
  gap: 0.5rem;
}

.view-all-btn {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.view-all-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Recent Activity Section */
.activity-section {
  background: var(--bg-white);
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.activity-content h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.activity-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: normal;
  }

  .featured-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .featured-image {
    height: 220px;
  }
}

.gallery-thumb {
  position: relative;
  height: 240px;              /* same as your previous image height */
  overflow: hidden;
  flex-shrink: 0;
}

/* Move the size rule from .gallery-item img to .gallery-thumb img */
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Scale image on hover, same feel as featured-card */
.gallery-item:hover .gallery-thumb img {
  transform: scale(1.05);
}

/* Reuse existing overlay styles */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8) 0%, rgba(52, 211, 153, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* make whole card clickable via the parent <a> */
}

.overlay-content {
  text-align: center;
  color: #fff;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

/* Extend your featured-card hover rules to gallery-item too */
.featured-card:hover .image-overlay,
.gallery-item:hover .image-overlay {
  opacity: 1;
}

.featured-card:hover .overlay-content,
.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

/* Desk / canvas — 700×400 but responsive */
.polaroid-desk{
  --w: 700px; --h: 400px;
  width:min(100%, var(--w));
  aspect-ratio: 7/4;
  background: radial-gradient(80% 120% at 20% 10%, #3a4148 0%, var(--primary) 60%, #23272c 100%);
  /*border-radius: 16px;*/
  position: relative;
  /*margin: 2rem auto;*/
  box-shadow: 0 12px 30px rgba(0,0,0,.25) inset;
  overflow: hidden;
  height: 100%;
}

/* Shared polaroid look */
.polaroid{
  --pad: 12px;                 /* white frame thickness */
  --lip: 42px;                 /* extra bottom frame (caption area) */
  position: absolute;
  width: clamp(160px, 28%, 220px);
  aspect-ratio: 3/4;
  padding: var(--pad);
  padding-bottom: calc(var(--lip) + var(--pad));
  background: #fff;
  border-radius: 8px;
  box-shadow:
          0 18px 24px rgba(0,0,0,.25),
          0 6px 10px rgba(0,0,0,.2);
  transition: transform .25s ease, box-shadow .25s ease;
}

.polaroid img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display:block;
}

/* Soft vignette to sell the print */
.polaroid::after{
  content:"";
  position:absolute; inset: var(--pad);
  border-radius: 4px;
  box-shadow: inset 0 0 80px rgba(0,0,0,.18);
  pointer-events:none;
}

/* A subtle Sharify-green tint on the photos (remove if not desired) */
.polaroid img{ position:relative; }
.polaroid img::before{ content:none; } /* keep specificity tidy */
.polaroid::before{
  content:"";
  position:absolute; inset: var(--pad);
  border-radius: 4px;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: .12;
  pointer-events:none;
}

/* Layout & playful rotations */
.p1{ left:8%;  top:10%; transform: rotate(-7deg); }
.p2{ left:36%; top:16%; transform: rotate(6deg);  /* z-index:2; */ }
.p3{ right:8%; top:6%;  transform: rotate(-3deg); }

.polaroid:hover{
  transform: translateY(-6px) rotate(var(--rot,0deg));
  box-shadow: 0 26px 40px rgba(0,0,0,.28);
}

/* Green tape on the first one */
.p1::marker{ content:''; } /* Safari marker quirk guard */
.p1 span{display:none;}     /* (placeholder if you want caption later) */
.p1 .tape{display:none;}    /* (example, not used) */
.p1::before{
  /* reuse ::before? we already used it for tint – add tape as extra element */
  content:"";
  position:absolute;
  width:70px; height:18px;
  background: color-mix(in oklab, var(--accent) 86%, white 14%);
  top:-10px; left:24px;
  border-radius: 2px;
  transform: rotate(-6deg);
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
  opacity:.95;
  mix-blend-mode: normal;
}

/* Because p1 already uses ::before, move tint to an inner overlay for it */
.p1 .tint, .p2 .tint, .p3 .tint{ display:none; }

/* Mobile: keep them readable */
@media (max-width: 640px){
  .p1{ left:4%;  top:10%; }
  .p2{ left:30%; top:18%; }
  .p3{ right:4%; top:8%; }
}

/* Tags Section */
.tags-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

/* Tag Cloud Layout */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tag-item:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tag-name {
  font-weight: 600;
}

.tag-count {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-item:hover .tag-count {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

/* Alternative Grid Layout (uncomment if preferred) */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.tag-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.tag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}

.tag-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tag-card-count {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .tags-cloud {
    justify-content: flex-start;
  }

  .tag-item {
    font-size: 14px;
    padding: 0.6rem 1rem;
  }
}

/* Slider Control */
.slider-container {
  position: relative;
  margin-top: 0.5rem;
}

.form-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-slider::-webkit-slider-thumb:hover {
  background: var(--accent-light);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.form-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-slider::-moz-range-thumb:hover {
  background: var(--accent-light);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.form-slider::-moz-range-track {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  border: none;
}

.form-slider:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.slider-value {
  position: absolute;
  top: -2rem;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

.slider-value::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--primary);
}

/* Alternative: Value below slider */
.slider-container.value-below .slider-value {
  position: static;
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.slider-container.value-below .slider-value::after {
  display: none;
}
