/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  display: flex;
  align-items: center;
  padding: 50px 0;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #7f8c8d;
}

.badges {
  display: flex;
  gap: 10px;
}

.badge {
  background-color: #3498db;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Section styles */
section {
  padding: 50px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

/* Contact form styles */
#contact-form {
  max-width: 600px;
  margin: 0 auto;
}

#contact-form div {
  margin-bottom: 15px;
}

#contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #2c3e50;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#contact-form textarea {
  height: 100px;
  resize: vertical;
}

#contact-form button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

#contact-form button:hover {
  background-color: #2980b9;
}

#form-feedback {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

#form-feedback.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-feedback.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

.card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.caption {
  padding: 15px;
  font-weight: bold;
  color: #2c3e50;
}

/* Footer styles */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
}

footer a {
  color: #3498db;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

#contact-links {
  display: flex;
  gap: 35px;
  justify-content: center;
}

#contact-links img {
  width: 40px;
}

/* Toggle button styles */
#toggle-logos {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 20px auto;
  display: block;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

#toggle-logos:hover {
  background-color: #2980b9;
}

/* Footer hidden */
.footer-hidden {
  display: none;
}



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

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .avatar img {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Added CSS to control lightbox visibility based on aria-hidden attribute */
.lightbox[aria-hidden="true"] {
  display: none;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}
