/* ===== VARIABLES ===== */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --text: #333;
  --background: #f9f9f9;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.left-logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: auto;
  z-index: 101;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  z-index: 100;
  background-color: rgba(44, 62, 80, 0.8);
  padding: 15px 10px;
  border-radius: 25px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-links li {
  margin: 0;
  display: flex;
  justify-content: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
  background-color: var(--secondary);
  transform: scale(1.1);
}

.nav-links a.active {
  background-color: var(--accent);
  transform: scale(1.1);
}

/* ===== SECTION STYLES ===== */
section {
  margin-bottom: 4rem;
  padding: 0 5%;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

#about, #services, .contact-info {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.team-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.team-name {
  margin: 1rem 0 0.5rem;
  padding: 0 1rem;
  color: var(--primary);
}

.team-position {
  padding: 0 1rem 1rem;
  color: var(--secondary);
  font-weight: 500;
}

.team-details {
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.team-card.expanded .team-details {
  max-height: 500px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: var(--light);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  margin-top: 5vh;
  transition: opacity 0.2s ease;
}

.modal-content.fade-out {
  opacity: 0;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  padding: 1rem;
  user-select: none;
  transition: color 0.3s;
  z-index: 1001;
}

.modal-nav:hover {
  color: var(--secondary);
}

.modal-nav.prev {
  left: 20px;
}

.modal-nav.next {
  right: 20px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--secondary);
}

.caption {
  text-align: center;
  color: white;
  padding: 10px 0;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin