/* AUTO DARK MODE BASED ON SYSTEM */
@media (prefers-color-scheme: dark) {
  body:not(.light) {
    background: #121212;
    color: #e0e0e0;
  }

  body:not(.light) .mbr-header {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(255,255,255,0.1);
  }

  body:not(.light) .navbar a {
    color: #e0e0e0;
  }

  body:not(.light) .hero-content {
    background: rgba(30,30,30,0.8);
  }

  body:not(.light) .card {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
  }

  body:not(.light) .mbr-footer {
    background: #000;
  }

  body:not(.light) #scrollTopBtn {
    background: #ff784e;
  }
}


/* GLOBAL */
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
.mbr-header {
  background: #ffffff;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
}

/* STICKY HEADER */
.mbr-header {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Shadow kada se scrolla */
body.scrolled .mbr-header {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  background: #fff;
}


.logo {
  font-weight: bold;
  font-size: 20px;
}

.navbar {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* HERO */
.full-hero {
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-content {
  background: rgba(255,255,255,0.8);
  padding: 30px;
  border-radius: 10px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: #ff5722;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* BLOCKS */
.block {
  padding: 40px 0;
}

.two-col {
  display: flex;
  gap: 40px;
}

.img-rounded {
  width: 100%;
  border-radius: 10px;
}

/* CARDS */
.cards {
  display: flex;
  gap: 30px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 45%;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

/* FOOTER */
.mbr-footer {
  background: #222;
  color: white;
  padding: 20px 0;
  text-align: center;
}

/* HEADER LAYOUT */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HAMBURGER ICON */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s;
}

/* MOBILE NAV HIDDEN BY DEFAULT */
.navbar {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 80px 20px;
    gap: 30px;
    transition: right 0.3s ease;
  }

  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }

  /* When menu is open */
  body.menu-open .navbar {
    right: 0;
  }

  /* Hamburger animation */
  body.menu-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  body.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
  }
  body.menu-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

}

/* GALLERY GRID */
.gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.gallery-item {
  width: 30%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* LIGHTBOX OVERLAY */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* SCROLL TO TOP BUTTON */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: #ff5722;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1500;
}

body.scrolled #scrollTopBtn {
  opacity: 1;
  visibility: visible;
}

/* DARK MODE TOGGLE */
.dark-toggle {
  font-size: 22px;
  cursor: pointer;
  margin-left: 20px;
  user-select: none;
}

/* DARK MODE ROOT */
body.dark {
  background: #121212;
  color: #e0e0e0;
}

/* HEADER DARK */
body.dark .mbr-header {
  background: #1e1e1e;
  box-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

body.dark .navbar a {
  color: #e0e0e0;
}

/* HERO DARK */
body.dark .hero-content {
  background: rgba(30,30,30,0.8);
}

/* CARDS DARK */
body.dark .card {
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

/* FOOTER DARK */
body.dark .mbr-footer {
  background: #000;
}

/* LIGHTBOX DARK */
body.dark #lightbox {
  background: rgba(0,0,0,0.95);
}

/* SCROLL BUTTON DARK */
body.dark #scrollTopBtn {
  background: #ff784e;
}
