:root {
  --bg: #120B0D;
  --text: #EAE0E2;
  --primary: #8F323F;       
  --primary-dark: #5E2129;
  --primary-light: #B04857; 
  --accent: #D4A373;
  --accent-hover: #F4D35E;
  --surface: #1E1416; 
  --shadow: rgba(0, 0, 0, 0.6);
  --shadow-strong: rgba(143, 50, 63, 0.3);
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  text-align: center;
  background-color: var(--primary-dark);
  color: #fff;
  padding: 2rem 1rem;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 12px var(--shadow);
}

header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInTitle 1.5s ease forwards;
}

@keyframes fadeInTitle {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.logo-circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-strong);
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.logo-circle img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 50%;
}

.contact-button {
  margin: 1.5rem auto;
  text-align: center;
}

.contact-button a {
  display: inline-block;
  background: var(--primary);
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: glowPulse 2.5s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--shadow), 0 0 20px var(--shadow);
  }
  50% {
    box-shadow: 0 0 20px var(--shadow-strong), 0 0 35px var(--shadow);
  }
}

.contact-button a:hover {
  background: var(--primary-light);
  color: var(--accent-dark);
  transform: scale(1.07);
  box-shadow: 0 0 25px var(--shadow-strong);
}


nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--primary);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  border-radius: 12px;
  margin: 1rem auto;
  max-width: 1000px;
  transition: box-shadow 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: #fff; 
  text-decoration: none;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.dark-theme nav a {
    color: #051209; 
}

nav a:hover,
nav a.active {
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  box-shadow: 0 0 10px var(--shadow-strong);
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section {
  background-color: var(--surface);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 12px var(--shadow);
  transition: background-color 0.3s ease;
}

.section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background-color: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--shadow);
  padding: 1.5rem;
  box-shadow: 0 2px 5px var(--shadow);
  transition: all 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px var(--shadow-strong);
  border-color: var(--primary);
}

.doc-category {
  display: inline-block;
  background-color: var(--primary);
  color: #fff; 
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dark-theme .doc-category {
    color: var(--bg);
}

.doc-card h3 {
    margin-top: 10px;
    color: var(--text);
}

.doc-links a {
  display: block;
  color: var(--primary);
  font-weight: 500;
  margin: 0.3rem 0;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 6px;
  padding: 0.2rem 0.3rem;
}

.doc-links a:hover {
  color: var(--primary-dark);
  background-color: var(--primary-light);
  box-shadow: 0 2px 6px var(--shadow);
}

.dark-theme .doc-links a:hover {
    color: var(--bg); 
}

footer {
  background-color: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 10px var(--shadow);
}

@media (max-width: 600px) {
  nav a { padding: 0.8rem 1rem; font-size: 0.9rem; }
  .section { padding: 1.2rem; }
  .team-member img { display: none; }
  .team-member { width: auto; }
}

.theme-toggle {
  text-align: center;
  margin-top: 1rem;
}

#toggle-theme {
  background-color: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

#toggle-theme:hover {
  background-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.dark-theme #toggle-theme:hover {
    color: var(--bg);
}


.team-section {
  text-align: center;
  padding: 2rem;
  background-color: var(--surface);
  border-radius: 20px;
  box-shadow: 0 6px 12px var(--shadow);
  transition: background-color 0.3s ease;
}

.team-section h2 {
  font-family: inherit;
  margin-bottom: 30px;
  color: var(--primary);
}

.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, color 0.3s ease;
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 10px var(--shadow);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.team-member span {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.team-member:hover {
  transform: translateY(-5px);
  color: var(--accent);
}

.team-member:hover img {
  border-color: var(--accent);
  box-shadow: 0 8px 15px var(--shadow-strong);
}

@media (max-width: 600px) {
  nav a { 
    padding: 0.8rem 1rem; 
    font-size: 0.9rem; 
  }
  
  .section, .team-section { 
    padding: 1.2rem; 
  }
  
  .team-member { 
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .team-container {
    gap: 20px;
  }
}