/* ===============================================
   Template 1: Modern Corporate
   Professional, clean design with corporate elegance
   =============================================== */

:root {
  --primary-color: #12347d;
  --primary-light: #3456a1;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #555555;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-lighter: #f0f2f5;
  --bg-footer: #1a1a1a;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --logo-filter: brightness(0) invert(1);
}

.dark-theme {
  --primary-color: #60a5fa;
  --primary-light: #93c5fd;
  --text-dark: #f8f9fa;
  --text-medium: #e5e7eb;
  --text-light: #d1d5db;
  --bg-white: #0f172a;
  --bg-light: #1e293b;
  --bg-lighter: #334155;
  --bg-footer: #020617;
  --border-color: #334155;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dark-theme .navbar__logo,
.footer__logo {
  filter: var(--logo-filter);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img, svg {
  display: block;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  scroll-margin-top: 80px;
}

/* Skip to Main Content Link */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}

.skip-to-main:focus {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  z-index: 10001;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===============================================
   Navigation
   =============================================== */

.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar__menu-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.navbar__link {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

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

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Toggle Buttons */
.btn--icon {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.btn--icon:hover {
  background-color: var(--bg-light);
  border-color: var(--border-color);
}

.theme-toggle-mobile {
  display: none !important;
  margin-left: auto;
  margin-right: 1rem;
}

#theme-toggle .icon-sun,
.theme-toggle-mobile .icon-sun {
  display: none;
}

.dark-theme #theme-toggle .icon-sun,
.dark-theme .theme-toggle-mobile .icon-sun {
  display: block;
}

.dark-theme #theme-toggle .icon-moon,
.dark-theme .theme-toggle-mobile .icon-moon {
  display: none;
}

/* Mobile Toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.navbar__toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}

.navbar__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .theme-toggle-mobile {
    display: flex !important;
  }

  #theme-toggle {
    display: none;
  }

  .navbar__menu-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    gap: 1.5rem;
    align-items: flex-start;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar__menu-wrapper.active {
    display: flex !important;
    z-index: 1001;
  }

  .navbar__menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem;
  }

  .navbar__link {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dark-theme .navbar__link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar__link:last-child {
    border-bottom: none;
  }

  .navbar__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 1rem;
  }

  .navbar__btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .theme-toggle-mobile {
    margin-right: 0.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--primary-light);
}

.btn--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.dark-theme .btn--secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.dark-theme .btn--secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* ===============================================
   Hero Section
   =============================================== */

.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-white) 100%);
  margin-top: 72px; /* Offset fixed navbar */
}

.hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero__description {
  font-size: 18px;
  color: var(--text-medium);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===============================================
   Vision & Mission
   =============================================== */

.vision-mission {
  padding: 80px 0;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.vision-mission__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.vision-mission__card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vision-mission__title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
}

.vision-mission__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
}

.dark-theme .vision-mission {
  background-color: var(--bg-light);
}

.dark-theme .vision-mission__card {
  background-color: var(--bg-lighter);
  border-color: var(--border-color);
}

.dark-theme .vision-mission__title {
  color: var(--primary-color);
}

.dark-theme .vision-mission__text {
  color: var(--text-medium);
}

/* ===============================================
   Common Section Styles
   =============================================== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header__title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-header__divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.section-header__subtitle {
  font-size: 18px;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
}

/* ===============================================
   About Section
   =============================================== */

.about {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.about__content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-medium);
}

.about__intro {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-weight: 500;
}

.about__text {
  margin-bottom: 20px;
}

.about__narrative {
  margin-top: 32px;
  padding: 32px;
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

/* ===============================================
   Services Section
   =============================================== */

.services {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 40px 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background-color: var(--bg-lighter);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.service-card__title {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card__description {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===============================================
   Why Choose Us
   =============================================== */

.why-choose {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.feature-item__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.2;
  line-height: 1;
}

.feature-item__title {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-item__description {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===============================================
   Approach Section
   =============================================== */

.approach {
  padding: 100px 0;
  background-color: var(--bg-lighter);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.approach-card {
  background-color: var(--bg-white);
  padding: 36px 28px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.approach-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.approach-card__title {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.approach-card__text {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===============================================
   Contact Section
   =============================================== */

.contact {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.contact__content {
  max-width: 800px;
  margin: 60px auto 0;
}

.contact__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  text-align: center;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.contact__title {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact__link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.contact__link:hover,
.contact__link:focus {
  color: var(--primary-light);
  outline: none;
  text-decoration: underline;
}

.contact__text {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===============================================
   Footer
   =============================================== */

.footer {
  background-color: var(--bg-footer);
  color: #ffffff;
  padding: 60px 0 24px;
  transition: background-color 0.3s ease;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer__title {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover,
.footer__link:focus {
  color: var(--bg-white);
  outline: none;
  text-decoration: underline;
}

.footer__contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ===============================================
   Responsive Design
   =============================================== */

@media (max-width: 968px) {
  .hero__title {
    font-size: 42px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .vision-mission__grid,
  .why-choose__grid {
    grid-template-columns: 1fr;
  }

  .services__grid,
  .approach__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__description {
    font-size: 16px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .section-header__title {
    font-size: 32px;
  }

  .services__grid,
  .approach__grid {
    grid-template-columns: 1fr;
  }
  
  .contact__info {
    flex-direction: column;
    gap: 32px;
  }
}
