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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

body.day-theme {
  background-color: #f9fafb;
  color: #1e293b;
  transition: background-color 0.5s, color 0.5s;
}

body.night-theme {
  background: #1e293b;
  color: #f9fafb !important;
  transition: background-color 0.5s, color 0.5s;
}

#themeToggle {
  cursor: pointer;
}
.night-theme .header,
.night-theme .sidebar,
.night-theme .footer {
  background-color: #0f172a;
  color: white !important;
}

.night-theme .card {
  background-color: #334155;
}

.night-theme .card p {
  color: white !important;
}

.theme-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* New Modern Layout */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  background-color: #f9fafb;
}

.night-theme .layout {
  background-color: #1e293b;
}

/* Sidebar with Glass Effect */
.sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar h3 {
  margin-bottom: 1.5rem;
  color: #667eea;
  font-size: 1.5rem;
  font-weight: 700;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 1rem 0;
}

.sidebar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.75rem 1rem;
  display: block;
  border-radius: 12px;
  transition: all 0.3s;
  background: rgba(102, 126, 234, 0.05);
}

.sidebar a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Main Content Area */
.main {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.night-theme .main {
  background-color: #334155;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #667eea;
}

.section-header:first-child {
  margin-top: 0;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header .see-all {
  font-size: 1rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  border: 2px solid #667eea;
  transition: all 0.3s ease;
}

.section-header .see-all:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Cards Grid with Modern Design */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 2px solid transparent;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.card:hover::before {
  opacity: 0.1;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.15);
}

.card-content {
  padding: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.modeButton {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.modeButton:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}


.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

/* Flex Cards for Tours */
.cards-flex {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cards-flex .card {
  flex: 1 1 300px;
  max-width: 350px;
}

.card-content .btn {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 1rem;
}

.card-content .btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px);
}

/* Gallery with Masonry Effect */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item.g1 {
  grid-column: 1 / span 2;
  grid-row: span 2;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.gallery-item:hover img {
  transform: scale(1.2) rotate(2deg);
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.95) 0%,
    rgba(118, 75, 162, 0.95) 100%
  );
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.night-theme .sidebar a {
  color: white;
}

.night-theme .sidebar a:hover {
  background: white !important;
  color: black !important;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.g1 {
    grid-column: 1 / span 2;
    grid-row: span 1;
  }

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