/* ======= MASTER CSS FILE======== */

/* ===== CSS Variables ===== */
:root {
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4d3e;
  --color-secondary: #f4a261;
  --color-secondary-dark: #e76f51;
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-gray-950: #030712;
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 1rem;
}

/* ===== Dark Mode Variables ===== */
html.dark {
  --color-bg: var(--color-gray-900);
  --color-text: var(--color-gray-200);
  --color-border: var(--color-gray-700);
  --color-card-bg: var(--color-gray-800);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.5;
  background: var(--color-white);
  color: var(--color-gray-900);
  transition:
    background 0.3s ease,
    color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.dark body {
  background: var(--color-gray-900);
  color: var(--color-gray-200);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
html.dark ::-webkit-scrollbar-track {
  background: var(--color-gray-800);
}
html.dark ::-webkit-scrollbar-thumb {
  background: #40916c;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.inline-flex {
  display: inline-flex;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-y-auto {
  overflow-y: auto;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-t-2xl {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-xl {
  box-shadow: var(--shadow-xl);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(245, 245, 245, 0.82) 100%
  );
  z-index: 1;
}

html.dark .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.88) 0%,
    rgba(31, 41, 55, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--color-secondary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-700);
  margin-bottom: 1.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

html.dark .hero-title {
  color: var(--color-white);
}

html.dark .hero-subtitle {
  color: var(--color-gray-300);
}

.hero-divider {
  width: 6rem;
  height: 0.25rem;
  background: var(--color-secondary);
  border-radius: 9999px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
  .hero-section {
    padding: 5rem 0;
  }
}

/* ===== Section Base ===== */
.section {
  padding: 4rem 0;
}

.section-light {
  background: var(--color-white);
}

html.dark .section-light {
  background: var(--color-gray-900);
}

.section-gray {
  background: var(--color-gray-50);
}

html.dark .section-gray {
  background: rgba(31, 41, 55, 0.3);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.section-title .highlight {
  color: var(--color-secondary);
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background: var(--color-secondary);
  border-radius: 9999px;
  margin: 0 auto 1.5rem auto;
}

.section-subtitle {
  color: var(--color-gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

html.dark .section-title {
  color: var(--color-white);
}

html.dark .section-subtitle {
  color: var(--color-gray-300);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
  .section {
    padding: 4rem 0;
  }
}

/* ===== Story Section ===== */
.story-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.story-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.story-title .highlight {
  color: var(--color-secondary);
}

.story-divider {
  width: 4rem;
  height: 0.25rem;
  background: var(--color-secondary);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.story-text {
  color: var(--color-gray-600);
  line-height: 1.625;
  margin-bottom: 1rem;
}

html.dark .story-title {
  color: var(--color-white);
}

html.dark .story-text {
  color: var(--color-gray-300);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(
    to bottom right,
    rgba(45, 106, 79, 0.2),
    rgba(244, 162, 97, 0.2)
  );
  border-radius: 1rem;
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  color: var(--color-gray-600);
}

html.dark .stat-label {
  color: var(--color-gray-400);
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-title {
    font-size: 2.25rem;
  }
}

/* ===== Mission/Vision Cards ===== */
.mv-grid {
  display: grid;
  gap: 2rem;
}

.mv-card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

html.dark .mv-card {
  background: var(--color-gray-900);
}

.mv-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.mv-icon-wrapper i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.mv-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.mv-card p {
  color: var(--color-gray-600);
  line-height: 1.625;
}

html.dark .mv-card h3 {
  color: var(--color-white);
}

html.dark .mv-card p {
  color: var(--color-gray-300);
}

@media (min-width: 768px) {
  .mv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Values Section ===== */
.values-grid {
  display: grid;
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon-wrapper {
  width: 5rem;
  height: 5rem;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.value-icon-wrapper i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--color-gray-600);
  font-size: 0.875rem;
}

html.dark .value-card h3 {
  color: var(--color-white);
}

html.dark .value-card p {
  color: var(--color-gray-300);
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Team Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

.team-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

html.dark .team-card {
    background: var(--color-gray-800);
    border: 1px solid var(--color-gray-700);
}

.team-avatar {
    width: 8rem;
    height: 8rem;
    background: linear-gradient(
        to bottom right,
        var(--color-primary),
        var(--color-secondary)
    );
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: var(--color-white);
    font-size: 1.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.team-avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 1.5rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

html.dark .team-avatar-image {
    border-color: var(--color-gray-700);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

/* Fallback for initials if image not found */
.team-avatar-image:not(:has(img)) {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
}

.team-card .position {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.team-card .bio {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
    flex-grow: 1;
}

html.dark .team-card h3 {
    color: var(--color-white);
}

html.dark .team-card .bio {
    color: var(--color-gray-400);
}

html.dark .team-card .position {
    color: var(--color-secondary);
}

.team-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-shrink: 0;
}

.team-socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.team-socials a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

html.dark .team-socials a {
    background: var(--color-gray-700);
    color: var(--color-gray-300);
}

html.dark .team-socials a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Team section responsive */
@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .team-avatar-image {
        width: 120px;
        height: 120px;
    }
    
    .team-card {
        padding: 1.5rem 1rem;
        min-height: 350px;
    }
}

@media (max-width: 400px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Careers Section ===== */
.careers-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.careers-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.careers-title .highlight {
  color: var(--color-secondary);
}

.careers-divider {
  width: 4rem;
  height: 0.25rem;
  background: var(--color-secondary);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.careers-text {
  color: var(--color-gray-600);
  line-height: 1.625;
  margin-bottom: 1rem;
}

html.dark .careers-title {
  color: var(--color-white);
}

html.dark .careers-text {
  color: var(--color-gray-300);
}

.careers-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.careers-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray-600);
}

.careers-list li i {
  color: var(--color-secondary);
}

html.dark .careers-list li {
  color: var(--color-gray-300);
}

.careers-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.careers-cta:hover {
  background: var(--color-primary-dark);
}

.careers-cta i {
  transition: transform 0.3s ease;
}

.careers-cta:hover i {
  transform: translateX(4px);
}

.careers-card {
  background: linear-gradient(
    to bottom right,
    rgba(45, 106, 79, 0.1),
    rgba(244, 162, 97, 0.1)
  );
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.careers-card i {
  font-size: 3.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.careers-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.careers-card p {
  color: var(--color-gray-600);
}

.careers-card a {
  color: var(--color-secondary);
}

.careers-card a:hover {
  text-decoration: underline;
}

html.dark .careers-card h3 {
  color: var(--color-white);
}

html.dark .careers-card p {
  color: var(--color-gray-300);
}

@media (min-width: 1024px) {
  .careers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .careers-title {
    font-size: 2.25rem;
  }
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-primary-dark)
  );
}

html.dark .cta-section {
  background: linear-gradient(
    to right,
    var(--color-gray-800),
    var(--color-gray-900)
  );
}

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
  background: var(--color-secondary-dark);
  transform: scale(1.05);
}

.cta-btn i {
  transition: transform 0.3s ease;
}

.cta-btn:hover i {
  transform: translateX(4px);
}

@media (min-width: 640px) {
  .cta-section h2 {
    font-size: 2.25rem;
  }
  .cta-section {
    padding: 5rem 0;
  }
}

/* ===== Demo Modal ===== */
#demoModal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

#demoModal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.modal-inner {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
}

html.dark .modal-inner {
  background: rgba(31, 41, 55, 0.9);
}

.modal-header {
  background: rgba(45, 106, 79, 0.95);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1.25rem;
}

.modal-close:hover {
  color: var(--color-white);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="tel"] {
  width: 100%;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-gray-300);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  color: var(--color-gray-900);
}

html.dark .modal-body input[type="text"],
html.dark .modal-body input[type="email"],
html.dark .modal-body input[type="tel"] {
  background: rgba(55, 65, 81, 0.7);
  border-color: var(--color-gray-600);
  color: var(--color-white);
}

.modal-body input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.modal-body .checkbox-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.modal-body .checkbox-wrapper span {
  font-size: 0.875rem;
  color: var(--color-gray-700);
}

html.dark .modal-body .checkbox-wrapper span {
  color: var(--color-gray-300);
}

.modal-body .btn-group {
  display: flex;
  gap: 0.75rem;
}

.btn-submit {
  flex: 1;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.625rem 0;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--color-primary-dark);
}

.btn-cancel {
  flex: 1;
  background: var(--color-gray-300);
  color: var(--color-gray-800);
  padding: 0.625rem 0;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel:hover {
  background: var(--color-gray-400);
}

html.dark .btn-cancel {
  background: var(--color-gray-600);
  color: var(--color-white);
}

html.dark .btn-cancel:hover {
  background: var(--color-gray-500);
}

.modal-body .space-y-4 > * + * {
  margin-top: 1rem;
}

/* ===== AOS Override ===== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* ===== Responsive Helpers ===== */
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

@media (min-width: 640px) {
  .sm\:text-left {
    text-align: left;
  }
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .sm\:block {
    display: block;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .lg\:flex {
    display: flex;
  }
}
