/* Root variables */
:root {
  --primary: #0077b6;
  --secondary: #0096c7;
  --accent: #caf0f8;
  --light: #f0f8ff;
  --dark: #023e8a;
  --gray: #f4f4f4;

  --bg-color: var(--light);
  --text-color: #222;
  --card-bg: white;
  --nav-bg: white;
}

/* Dark mode overrides */
body.dark-mode {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --nav-bg: #1a1a1a;
  --accent: #2b2b2b;
}

/* Sticky footer layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.4s, color 0.4s;
}

main {
  flex: 1;
}

/* Header */
header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 15px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

header p {
  font-size: 1.1em;
  margin-top: 10px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--nav-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
  position: relative;
  z-index: 999;
  padding: 0px;
}

nav a {
  padding: 12px 18px;
  margin: 5px;
  text-decoration: none;
  color: var(--dark);
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  border-radius: 6px;
}

nav a:hover,
nav a:focus {
  background-color: var(--accent);
  color: var(--primary);
  outline: none;
  transform: scale(1.04);
  z-index: 1;
}

.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  background: url("../images/banner.jpg") no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2.8em;
  margin: 0;
  text-shadow: 1px 1px 5px black;
}

.hero p {
  font-size: 1.2em;
  margin-top: 10px;
  text-shadow: 1px 1px 5px black;
}

/* Sections */
.section {
  padding: 40px 20px;
  background-color: var(--card-bg);
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--dark);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* Slider */
.slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  padding: 10px 0;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Responsive Cards */
@media (min-width: 768px) {
  .card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1024px) {
  .card {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}

/* Address Section */
.address-box {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  max-width: 600px;
  margin: 30px auto 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-size: 1.1em;
  color: var(--text-color);
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 10px 10px;
  margin-top: 20px;
}

/* Theme Toggle */
#toggleTheme {
  position: fixed;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 999;
  transition: background 0.3s ease;
  font-size: 1em;
}

#toggleTheme:hover {
  background: var(--secondary);
}

/* Scroll Buttons */
#scrollUp,
#scrollDown {
  position: fixed;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, background 0.3s;
  display: none;
}

#scrollUp {
  bottom: 80px;
}

#scrollDown {
  bottom: 20px;
}

#scrollUp:hover,
#scrollDown:hover {
  background-color: var(--secondary);
}

/* Social Media Icons */
.media-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.media-icons a {
  font-size: 1.8em;
  color: var(--primary);
  transition: color 0.3s ease;
  text-decoration: none;
}

.media-icons a:hover {
  color: var(--secondary);
}

/* Responsive Tablet */
@media (max-width: 768px) {
  header h1 {
    font-size: 2em;
  }

  .hero h2 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  nav a {
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  #toggleTheme {
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    font-size: 0.8em;
  }
}

/* Responsive Mobile */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5em;
    line-height: 1.2;
  }

  header p {
    font-size: 0.9em;
  }

  .hero h2 {
    font-size: 1.6em;
  }

  .hero p {
    font-size: 1em;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card h3 {
    font-size: 1.2em;
  }

  .address-box {
    font-size: 1em;
  }

  #toggleTheme {
    top: 55px;
    right: 10px;
    padding: 4px 8px;
    font-size: 1em;
    font-weight: normal;
    background: transparent;
    color: var(--text-color);
    border: none;
    box-shadow: none;
  }

  #toggleTheme:hover {
    background: none;
    color: var(--primary);
  }

  #scrollUp,
  #scrollDown {
    width: 32px;
    height: 32px;
    font-size: 16px;
    right: 10px;
  }

  #scrollUp {
    bottom: 70px;
  }

  .media-icons {
    gap: 12px;
  }

  .media-icons a {
    font-size: 1.5em;
  }

  footer {
    font-size: 0.9em;
    padding: 15px 10px;
  }
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
