/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --accent-color: #f59e0b;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-light: #f3f4f6;
  --border-color: #e5e7eb;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 1.875rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --header-height: 4rem;
  --section-padding: 5rem 0;
  --container-max-width: 1200px;
  --container-padding: 1rem;
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Shadows */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: var(--h1-font-size); }
h2 { font-size: var(--h2-font-size); }
h3 { font-size: var(--h3-font-size); }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* ===== REUSABLE CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

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

.section__title {
  color: var(--text-color);
  margin-bottom: 1rem;
}

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

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

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

.btn--primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

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

.btn--full {
  width: 100%;
}

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

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

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

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

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

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

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

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

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

.hero__title-accent {
  color: var(--primary-color);
}

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

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

.hero__image {
  position: relative;
}

.hero__img {
  border-radius: 1rem;
  box-shadow: var(--shadow-heavy);
  width: 100%;
  height: auto;
}

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

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

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

.service__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.service__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border-radius: 50%;
}

.service__icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.service__title {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.service__description {
  margin-bottom: 1.5rem;
  text-align: left;
}

.service__features {
  text-align: left;
}

.service__features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.service__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: var(--font-weight-bold);
}

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

.about__content {
  display: contents;
}

.about__text {
  grid-column: 1;
}

.about__image {
  grid-column: 2;
}

.about__description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about__feature-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.about__feature-content h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.about__feature-content p {
  margin: 0;
  font-size: var(--small-font-size);
}

.about__img {
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--bg-light);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__info h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.contact__info p {
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__detail {
  color: var(--text-light);
}

.contact__detail strong {
  color: var(--text-color);
}

/* ===== FORM ===== */
.contact__form {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: var(--normal-font-size);
  transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form__checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
}

.form__checkbox-label {
  font-size: var(--small-font-size);
  color: var(--text-light);
}

.form__checkbox-label a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

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

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

.footer__subtitle {
  color: white;
  margin-bottom: 1rem;
}

.footer__description {
  color: #9ca3af;
  margin: 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: #9ca3af;
  transition: var(--transition);
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
}

.footer__copyright {
  color: #9ca3af;
  font-size: var(--small-font-size);
  margin: 0;
}

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

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-heavy);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav__close,
  .nav__toggle {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .hero__buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__text {
    grid-column: 1;
    order: 1;
  }

  .about__image {
    grid-column: 1;
    order: 2;
  }
  
  .contact__content {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 1rem);
  }
  
  .service__card,
  .contact__form {
    padding: 1.5rem;
  }
}

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

.hero__content,
.service__card,
.about__content {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== SCROLL BEHAVIOR ===== */
.header.scroll-header {
  box-shadow: var(--shadow-medium);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

