:root {
  --color-bg: #121212;
  --color-bg-card: #1e1e1e;
  --color-text: #ffffff;
  --color-accent: #FFD700;
  --color-border: #444;
  --font-title: 'Sedgwick Ave', cursive;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image: url('../../bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--color-text);
  padding-top: 5rem;
}

.text-accent {
  color: var(--color-accent);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  background-color: #000000;
  height: 5rem;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-link {
  color: var(--color-accent);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.2rem;
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-separator {
  margin: 0 0.5rem;
  color: #ffffff;
}

.logo-circle {
  width: 120px;
  height: 120px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-accent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -10px;
  overflow: hidden;
  z-index: 1001;
  cursor: pointer;
}

.nav-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hamburger-btn {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  transition: transform 0.3s ease;
}

.mobile-menu.hidden {
  transform: translateY(-100%);
  display: flex !important;
}

.mobile-link {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 2rem;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 0.5rem;
  width: 80%;
  text-align: center;
}

.close-menu-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  cursor: pointer;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Banner Section */
.banner-section {
  width: 100%;
  height: 30vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.banner-text {
  position: relative;
  z-index: 3;
  font-family: var(--font-title);
  font-size: 4rem;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
}

/* Info Section */
.info-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

/* Barbers Section */
.barbers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.barber-card {
  position: relative;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.barber-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 48px rgba(255, 215, 0, 0.2);
}

.barber-media {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.barber-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: blur(8px);
}

.barber-img {
  width: auto;
  height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.barber-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 3;
  text-align: center;
}

.barber-name {
  font-family: var(--font-title);
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.barber-role {
  color: var(--color-text);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.social-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-card:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-5px);
}

/* Footer */
#main-footer {
  background: var(--color-bg-card);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

#main-footer p {
  margin: 0.5rem 0;
}

#main-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

#main-footer a:hover {
  text-decoration: underline;
}

/* Barber Page Layout */
.barber-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.barber-sidebar {
  width: 100%;
  height: 400px;
  position: relative;
}

.barber-content {
  padding: 2rem 1rem;
  flex: 1;
}

.barber-content h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
}



/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.barber-content h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* Calendar */
.calendar-container {
  margin-bottom: 3rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.day-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.day-card:hover:not(.disabled) {
  background: var(--color-accent);
  color: var(--color-bg);
}

.day-card.active {
  background: var(--color-accent);
  color: var(--color-bg);
}

.day-card.disabled {
  background: #2a2a2a;
  color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.day-name {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.day-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent);
}

.day-card:hover:not(.disabled) .day-number,
.day-card.active .day-number {
  color: var(--color-bg);
}

.day-card.disabled .day-number {
  color: #666;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--color-accent);
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

#modal-date-display {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.time-slot {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 1rem 0.5rem;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slot:hover:not(.taken) {
  background: var(--color-accent);
  color: var(--color-bg);
}

.time-slot.selected {
  background: var(--color-accent);
  color: var(--color-bg);
}

.time-slot.taken {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.form-input {
  padding: 0.8rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 5px;
  font-family: var(--font-body);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Buttons */
.btn {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-title);
  transition: all 0.3s ease;
  border-radius: 5px;
  font-size: 1rem;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* FABs (Floating Action Buttons) */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 900;
}

.fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.fab:hover {
  transform: scale(1.1);
}

.fab-whatsapp {
  background: #25D366;
}

.fab-phone {
  background: #007bff;
}

/* Admin Styles */
.login-container {
  height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.admin-dashboard {
  padding: 2rem 0;
  min-height: calc(100vh - 5rem);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.barber-list {
  margin-bottom: 2rem;
}

.barber-list h3 {
  font-family: var(--font-title);
  margin-bottom: 1rem;
}

.barber-list-item {
  background: var(--color-bg-card);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.edit-form-container {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
  border: 1px solid var(--color-border);
}

.edit-form-container h3 {
  font-family: var(--font-title);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 5px;
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox-item {
  background: var(--color-bg);
  padding: 0.8rem 1rem;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.checkbox-item:hover {
  border-color: var(--color-accent);
}

.checkbox-item.checked {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.fab-action {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.fab-action:hover {
  transform: scale(1.1);
}

.fab-save {
  background: var(--color-accent);
  color: var(--color-bg);
}

.fab-logout {
  background: #ff4444;
  color: white;
}

.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.hidden-desktop {
  display: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffed4e;
}

/* Responsive Design */
@media (min-width: 768px) {
  .barbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-content {
    flex-direction: row;
    gap: 3rem;
  }

  .info-text,
  .map-container {
    flex: 1;
  }

  .hidden-desktop {
    display: block;
  }

  /* Hide FABs on desktop */
  .fab-container {
    display: none;
  }
}

@media (min-width: 1024px) {
  .barber-layout {
    flex-direction: row;
  }

  .barber-sidebar {
    width: 25%;
    height: 100vh;
    position: sticky;
    top: 0;
  }

  .barber-content {
    width: 75%;
    padding: 4rem;
  }

  .banner-text {
    font-size: 5rem;
  }
}

@media (max-width: 768px) {

  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger-btn {
    display: block;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
  }

  .logo-circle {
    width: 100px;
    height: 100px;
  }

  .banner-text {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .barber-card {
    height: 500px;
  }

  .week-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
  }

  .day-card {
    padding: 0.5rem 0.25rem;
  }

  .day-name {
    font-size: 0.7rem;
  }

  .day-number {
    font-size: 1.2rem;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-header h2 {
    font-size: 1.5rem;
  }

  .hidden-desktop {
    display: flex;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}