/* Root variables for colors and fonts */
:root {
  --primary-color: #003366; /* dark blue for navigation background */
  --secondary-color: #6C63FF; /* violet accent for buttons and highlights */
  --light-color: #f5f5f5; /* light background for sections */
  --text-color: #333333; /* dark text for readability */
}

/* Reset some default styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  /* Default fallback background color */
  background-color: var(--light-color);
}

/* Page-specific background images */
body.about-page,
body.services-page,
body.contact-page,
body.careers-page {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Background images for each page */
body.about-page {
  background-image: url('assets/group3.jpg');
}

body.services-page {
  background-image: url('assets/group2.jpg');
}

body.contact-page {
  background-image: url('assets/group1.jpg');
}

body.careers-page {
  background-image: url('hero.png');
}

/* Navigation bar styles */
nav {
  background-color: var(--primary-color);
  padding: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}

nav ul li a:hover,
nav ul li a:focus {
  text-decoration: underline;
}

/* Hero section */
/* Hero section with updated background to showcase our community */
.hero {
  position: relative;
  background-image: url('assets/group1.jpg');
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

/* overlay to improve text contrast */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: #5a53d4; /* slightly darker shade for hover */
}

/* Section styling
   Apply a semi-transparent glass effect to create a "glassy" feel over the page background.
   Each section has padding and rounded corners to improve readability on busy backgrounds. */
section {
  padding: 3rem 1rem;
  margin: 2rem 1rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Services section grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Service cards with glassy effect */
.service-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Interactive hover effect for service cards */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ section styles */
section#faq details {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

section#faq details[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

section#faq summary {
  font-weight: bold;
  color: var(--primary-color);
  outline: none;
}

section#faq p {
  margin-top: 0.5rem;
  line-height: 1.4;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
}

/* Contact & application form styling with glass effect */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 0.25rem;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: #ffffff;
  border: none;
  border-radius: 0.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover,
.contact-form button:focus {
  background-color: #5a53d4;
}

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

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

/* Footer styling */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}