/*--------------------------------------------------------------
  CSS Variables
--------------------------------------------------------------*/
:root {
  --primary-color: #3a506a;
  --accent-color: #f8ba2d;
  --dark-color: #0d1926;
  --light-bg: #f8f8f8;
  --white: #fff;
  --footer-bg: #333;
  --text-color: #333;
  --header-overlay: rgba(0, 0, 0, 0.5);
}

/*--------------------------------------------------------------
  Reset & Base Styles
--------------------------------------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--text-color);
  background-image: url("../images/8/c-swimming-pool-1280.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Mobile background adjustments */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-position: top;
  }
}

/* iOS-specific background adjustments */
@supports (-webkit-overflow-scrolling: touch) {
  body {
    background-attachment: scroll;
  }
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

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

/*--------------------------------------------------------------
  Accessibility Helpers
--------------------------------------------------------------*/
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/*--------------------------------------------------------------
  Header Styles
--------------------------------------------------------------*/
.header {
  position: relative;
  background-image: url("../images/l/university-commons-exterior_upscayl_4x_realesrgan-x4plus-1600.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--header-overlay);
}

.header-content {
  position: relative;
  z-index: 2;
}

.header h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/*--------------------------------------------------------------
  Navigation Styles
--------------------------------------------------------------*/
nav {
  position: relative;
  z-index: 10;
  padding: 1rem 2rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.hamburger-icon {
  display: inline-block;
  width: 24px;
  height: 3px;
  background-color: var(--white);
  position: relative;
  transition: transform 0.3s ease;
}
.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: var(--white);
  transition: transform 0.3s ease;
}
.hamburger-icon::before {
  top: -8px;
}
.hamburger-icon::after {
  top: 8px;
}

/* Navigation Menu */
.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu li {
  margin-left: 2rem;
}

.menu a {
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease;
}
.menu a:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }
  .menu {
    flex-direction: column;
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 100%;
    right: 2rem;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 5px 5px;
  }
  .menu.active {
    display: block;
  }
  .menu li {
    margin: 1rem 0;
  }
}

/*--------------------------------------------------------------
  Container & Section Styles
--------------------------------------------------------------*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

/*--------------------------------------------------------------
  Amenities Grid
--------------------------------------------------------------*/
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.amenity {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 2px solid var(--accent-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amenity:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.amenity i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.amenity h3 {
  color: var(--primary-color);
}

/*--------------------------------------------------------------
  Gallery Grid
--------------------------------------------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

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

/*--------------------------------------------------------------
  Lightbox Styles
--------------------------------------------------------------*/
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

#lightbox-image {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/*--------------------------------------------------------------
  About Us & Commitment
--------------------------------------------------------------*/
.about-us, .commitment {
  padding: 3rem 2rem;
  text-align: center;
}

.about-us p,
.commitment p {
  font-size: 1.1rem;
  color: #444;
}

/*--------------------------------------------------------------
  Contact
--------------------------------------------------------------*/
.contact {
  text-align: center;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.1rem;
}

/*--------------------------------------------------------------
  Button
--------------------------------------------------------------*/
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.btn:hover {
  background-color: #e0a827;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
  Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--footer-bg);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}
.footer .container {
  padding: 0;
}

/*--------------------------------------------------------------
  Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .header {
    padding: 3rem 1rem;
    min-height: 300px;
  }
  .header h1 {
    font-size: 2.5rem;
  }
  .header p {
    font-size: 1rem;
  }
  .container {
    padding: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
}
