:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #556170;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --glass: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] {
  --bg: #071023;
  --card: #0b1220;
  --text: #e6eef8;
  --muted: #98a6bf;
  --accent: #3b82f6;
  --accent-2: #34d399;
  --glass: rgba(255, 255, 255, 0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, Arial;
  background: linear-gradient(180deg, var(--bg), #e9f0ff20);
  color: var(--text);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 40;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo img { width: 44px; height: 44px; border-radius: 8px; }
nav a { margin: 0 12px; font-weight: 600; color: var(--muted); }
a { text-decoration: none; color: inherit; }
.btn {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  display: inline-block;
  margin-top: 10px;
}

/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 1100px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.slide {
  display: none;
  position: relative;
}
.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
}
.text-overlay {
  position: absolute;
  bottom: 20px;
  left: 30px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
}
.fade { animation: fade 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
  user-select: none;
  border-radius: 0 3px 3px 0;
  background: rgba(0,0,0,0.4);
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 3px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active, .dot:hover { background-color: var(--accent); }

/* Services */
.services {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px;
}
.card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Contact & Join forms */
.contact, .join-team, .contact-page form {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  display: grid;
  gap: 10px;
}
input, textarea { padding:10px; border-radius:8px; border:1px solid rgba(0,0,0,0.1); width:100%; }
.join-team { display:flex; gap:20px; flex-wrap:wrap; }
.join-team form { flex:1; }
.join-team img { flex:1; width:100%; border-radius:12px; object-fit:cover; }

/* Footer */
footer { text-align: center; padding: 20px; color: var(--muted); }

/* Theme Switch */
.switch { position: relative; width: 48px; height: 28px; background: var(--glass); border-radius: 18px; padding: 4px; display: inline-block; }
.knob { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #fff, #ddd); transition: all 0.2s; }
.switch[data-on="true"] { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.switch[data-on="true"] .knob { left: 24px; background: white; }

@media (max-width: 768px) {
  .text-overlay { font-size: 14px; padding: 10px; }
  .join-team { flex-direction: column; }
}

.join-team {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 50px auto;
  align-items: flex-start;
}

.join-image {
  flex: 1;
}

.join-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.join-form {
  flex: 2;
}

.join-form h2 {
  margin-bottom: 20px;
}

.join-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.join-form input,
.join-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 16px;
}

.join-form textarea {
  min-height: 120px;
  resize: vertical;
}

.join-form .btn {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  background-color: #222;
  color: white;
  border: none;
}

.join-form .btn:hover {
  background-color: #444;
}

@media (max-width: 768px) {
  .join-team {
    flex-direction: column;
    padding: 0 20px;
  }
}

.contact-banner {
  position: relative;
  width: 100%;
  max-height: 350px;
  overflow: hidden;
  border-radius: 12px;
}

.contact-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-banner h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 48px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.contact-form-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form-container input,
.contact-form-container textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 16px;
}

.contact-form-container textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-container .btn {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
}

/* Contact info below the form */
.contact-info-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding: 0 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

@media (max-width: 768px) {
  .contact-info-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
