/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #06b6d4;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --border-color: #e5e7eb;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Font Sizes */
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 2rem;
  --normal-font-size: 1.125rem;
  --small-font-size: 0.875rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --header-height: 4rem;
  --section-padding: 5rem 0;
  --container-margin: 0 1.5rem;
  --border-radius: 0.75rem;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 768px) {
  :root {
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --section-padding: 3rem 0;
  }
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

h1, h2, h3, h4 {
  font-family: var(--font-secondary);
  font-weight: var(--font-semibold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== REUSABLE CLASSES ===== */
.container {
  max-width: 1200px;
  margin: var(--container-margin);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--section-padding);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section__description {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--box-shadow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(30, 58, 138, 0.3);
}

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

.btn--secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.header.scroll-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--box-shadow);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--secondary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__contact-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  transition: var(--transition);
}

.nav__contact-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(59, 130, 246, 0.05));
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__title-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
}

.hero__img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--bg-light);
}

.services__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service__card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.service__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service__description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service__link {
  color: var(--secondary-color);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.service__link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* ===== ABOUT SECTION ===== */
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__title {
  font-size: var(--h2-font-size);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about__description {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about__features {
  margin-bottom: 2rem;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.about__feature i {
  color: var(--success-color);
  font-size: 1.25rem;
}

.about__img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ===== RESOURCES SECTION ===== */
.resources {
  background: var(--bg-light);
}

.resources__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.resource__card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.resource__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.resource__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.resource__description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.resource__link {
  color: var(--secondary-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
}

.resource__link:hover {
  color: var(--primary-color);
}

/* ===== SUPPORT SECTION ===== */
.support__container {
  max-width: 1000px;
  margin: 0 auto;
}

.support__contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form__group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form__input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--normal-font-size);
  transition: var(--transition);
  background: transparent;
}

.form__input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: var(--small-font-size);
  color: var(--secondary-color);
  background: white;
  padding: 0 0.5rem;
}

.form__submit {
  width: 100%;
  justify-content: center;
}

/* ===== CONTACT INFO ===== */
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact__details h4 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.contact__details a {
  color: var(--secondary-color);
  transition: var(--transition);
}

.contact__details a:hover {
  color: var(--primary-color);
}

/* ===== FAQ SECTION ===== */
.faq__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.faq__item {
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq__question:hover {
  background: var(--bg-light);
}

.faq__question h4 {
  color: var(--primary-color);
  font-size: 1.125rem;
}

.faq__question i {
  color: var(--secondary-color);
  transition: var(--transition);
}

.faq__item.active .faq__question i {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq__item.active .faq__answer {
  max-height: 200px;
}

.faq__answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer__subtitle {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__links a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer__contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  display: flex;
  gap: 1rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__legal a:hover {
  color: white;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chat-widget__button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.chat-widget__button:hover {
  transform: scale(1.1);
}

.chat-widget__window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 400px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: none;
  flex-direction: column;
}

.chat-widget__window.active {
  display: flex;
}

.chat-widget__header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-widget__close {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

.chat-widget__body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 1rem;
}

.chat-message--bot p {
  background: var(--bg-light);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  color: var(--text-color);
}

.chat-widget__footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.chat-widget__input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  outline: none;
}

.chat-widget__send {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.chat-widget__send:hover {
  background: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  .container {
    margin: 0 2rem;
  }
  
  .hero__container,
  .about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .support__contact {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 3rem;
  }
  
  .nav__link {
    font-size: 1.25rem;
  }
  
  .nav__close,
  .nav__toggle {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
  }
  
  .nav__contact-btn span {
    display: none;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
  }
  
  .services__container,
  .resources__container {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }
  
  .chat-widget__window {
    width: 300px;
    height: 350px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    margin: 0 1rem;
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .service__card,
  .resource__card {
    padding: 1.5rem;
  }
  
  .chat-widget__window {
    width: 280px;
    right: -10px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

