/* ---------------- CSS CUSTOM PROPERTIES (THEMING) ---------------- */

:root {
  --font-primary: "Poppins", system-ui, -apple-system, sans-serif;
  --font-mono: "Courier New", monospace;

  /* Color Palette */
  --color-bg: #eceae6;
  --color-surface: #ffffff;
  --color-surface-alt: #f8f8f8;
  --color-header: #d3d0cb;
  --color-primary: #0d9c43;
  --color-primary-dark: #0b7f35;
  --color-text: #222222;
  --color-text-light: #555555;
  --color-text-muted: #cccccc;
  --color-border: #eeeeee;
  --color-shadow: rgba(0, 0, 0, 0.1);

  /* Spacing System */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2.5rem;   /* 40px */
  --space-xl: 4rem;     /* 64px */

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 10px var(--color-shadow);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 10px 35px rgba(13, 156, 67, 0.25);
}

/* ---------------- GLOBAL RESET & TYPOGRAPHY ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* Allows user scaling */
}


body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: none;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url(../assets/image2.jpeg);
  background-size: contain;
  background-position: center;
  background-attachment: fixed;
  filter: blur(12px);           
  -webkit-filter: blur(12px);
  z-index: -1;
}

main, header, footer, .container {
  position: relative;
  z-index: 1;
}

/* ---------------- UTILITY CLASSES ---------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ---------------- HEADER & NAVIGATION ---------------- */
.header {
  background-color: var(--color-header);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: center;
  padding: var(--space-sm) 0;
}

.nav__list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-base);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--color-primary);
  outline: none;
}

.nav__link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav__link.active::after,
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* ---------------- MAIN LAYOUT ---------------- */
.main {
  min-height: 100vh;
  padding: var(--space-xl) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

/* ---------------- LOGIN FORM (GLASSMORPHISM) ---------------- */
.form {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/image1.webp") center/cover no-repeat;
  filter: blur(12px);
  transform: scale(1.2);
  opacity: 0.5;
  z-index: -1;
}

.login-header {
  padding: var(--space-md) var(--space-sm) 0;
  text-align: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.form__fields {
  padding: 0 var(--space-lg);
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form__label {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form__input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  background: #fff;
  transform: scale(1.02);
}

.form__submit {
  margin: var(--space-lg) auto 0;
  padding: 0.85rem 2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 80%;
  display: block;
}

.form__submit:hover,
.form__submit:focus {
  background: var(--color-primary-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-xl);
}

/* ---------------- BUTTON (MEET OUR TEAM) ---------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  animation: ctaPulse 4s infinite ease-in-out;
}

.cta-button:hover,
.cta-button:focus {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(13, 156, 67, 0.35);
}

.cta-button .icon {
  font-size: 1.5rem;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: var(--shadow-xl); }
  50% { box-shadow: 0 14px 40px rgba(13, 156, 67, 0.35); }
}

/* ---------------- SERVICES SECTION ---------------- */
.services-section {
  padding: var(--space-xl) var(--space-sm);
  background: var(--color-surface-alt);
}

.services-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card__title {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------------- TEAM PAGE ---------------- */
.team-section {
  padding: var(--space-xl) var(--space-sm);
}

.team-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.team-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  position: relative;
}

.team-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  background: var(--color-primary);
  margin: 1rem auto;
  border-radius: 3px;
}

.team-intro {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

.team-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--color-surface);
}

.team-table thead {
  background: var(--color-primary);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  font-size: 0.9rem;
}

.team-table th,
.team-table td {
  padding: 1.1rem 1.5rem;
  text-align: left;
}

.team-table tbody tr {
  transition: all var(--transition-fast);
}

.team-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.team-table tbody tr:hover {
  background: #e8f5e9;
  transform: translateX(4px);
}

.team-table tbody td:nth-child(2) {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------------- FOOTER ---------------- */
.footer {
  background: #1a1a1a;
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  font-size: 0.95rem;
  margin-top: auto;
}

.footer p {
  margin: 0;
}


/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */
@media (max-width: 992px) {
  .nav__list { gap: 1.5rem; }
  .team-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .main { padding: var(--space-lg) var(--space-sm); }
  .team-table thead { display: none; }
  .team-table, .team-table tbody, .team-table tr, .team-table td {
    display: block;
    width: 100%;
  }
  .team-table tr {
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    background: #fff;
    box-shadow: var(--shadow-md);
  }
  .team-table td {
    text-align: right;
    padding: var(--space-sm) 0;
    position: relative;
    border: none;
  }
  .team-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
  }
  .team-table td:nth-child(1) { 
    order: 1; 
    font-weight: 700; 
    font-size: 1.15rem; 
  }
  .team-table td:nth-child(2) { 
    order: 2; 
  }
  .team-table td:nth-child(3) { 
    order: 3; 
    background: #f0f8f1; 
    border-radius: var(--radius-sm); 
    padding: var(--space-sm); 
  }
}

@media (max-width: 480px) {
  .cta-button {
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
  }
  .login-header { font-size: 1.5rem; }
  .form__submit { width: 90%; }
}

/* ---------------- PRINT STYLES ---------------- */
@media print {
  .header, .footer, .cta-button { display: none; }
  body { background: white; color: black; }
}