/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-color-alt: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  --title-color: #1e293b;
  --text-color: #475569;
  --text-color-light: #64748b;
  --border-color: #e2e8f0;
  --body-color: #ffffff;
  --container-color: #f8fafc;
  --card-color: #ffffff;
  
  /* Typography */
  --body-font: 'Inter', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.875rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  
  /* Border radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-normal);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding: 5rem 0 2rem;
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.section__subtitle {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn__icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.btn--primary {
  background-color: var(--primary-color);
  color: white;
}

.btn--primary:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn--secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--full {
  width: 100%;
}

.btn__loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.header.scroll-header {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav {
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__brand {
  display: flex;
  align-items: center;
}

.nav__logo {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  transition: var(--transition);
}

.nav__logo:hover {
  color: var(--primary-color-alt);
}

.nav__menu {
  position: relative;
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--container-color);
  transition: var(--transition);
}

.nav__close:hover {
  background-color: var(--border-color);
}
.nav__toggle {
  display: none;
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: 7rem;
  background: linear-gradient(135deg, var(--container-color) 0%, white 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  order: 1;
}

.hero__title {
  font-size: var(--biggest-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-bold);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color-light);
  margin-bottom: var(--mb-2-5);
  font-weight: var(--font-normal);
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  order: 2;
  justify-self: center;
}

.hero__image-placeholder {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.hero__img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--container-color);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__content {
  order: 1;
}

.about__description {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-2);
  line-height: 1.7;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight__icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
}

.highlight__icon i {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  stroke-width: 2;
}

.highlight__text {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin: 0;
}

.about__image {
  order: 2;
  justify-self: center;
}

.about__img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* ===== SERVICES SECTION ===== */
.services__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service__card {
  background-color: var(--card-color);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-color);
}

.service__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service__icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--container-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.service__icon i {
  width: 2rem;
  height: 2rem;
  color: var(--primary-color);
  stroke-width: 1.5;
}

.service__card:hover .service__icon {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.service__card:hover .service__icon i {
  color: white;
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

.service__description {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
}

/* ===== INDUSTRIES SECTION ===== */
.industries {
  background-color: var(--container-color);
}

.industries__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-3);
}

.industry__item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.industry__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.industry__icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-0-75);
  transition: var(--transition);
}

.industry__icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
  stroke-width: 2;
}

.industry__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: var(--card-color);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-top: var(--mb-3);
}

.testimonials__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.testimonial__quote {
  font-size: var(--h3-font-size);
  font-style: italic;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
  line-height: 1.5;
}

.testimonial__author {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
}

/* ===== CONTACT SECTION ===== */
.contact__container {
  max-width: 600px;
  margin: 0 auto;
}

.contact__form {
  background-color: var(--card-color);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form__group {
  margin-bottom: var(--mb-1-5);
}

.form__label {
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
  margin-bottom: var(--mb-0-5);
}

.form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--normal-font-size);
  font-family: inherit;
  color: var(--text-color);
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__input.error {
  border-color: var(--error-color);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__error {
  display: block;
  font-size: var(--small-font-size);
  color: var(--error-color);
  margin-top: var(--mb-0-25);
  min-height: 1.2rem;
}

.form__success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: var(--mb-1);
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--title-color);
  padding: 3rem 0 1rem;
  color: white;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-2);
}

.footer__logo-text {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  margin-bottom: var(--mb-0-5);
  display: block;
}

.footer__tagline {
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
  margin: 0;
}

.footer__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  color: white;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary-color);
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.footer__contact-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--mb-1);
  text-align: center;
}

.footer__copyright {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin: 0;
}

/* ===== SCROLL UP BUTTON ===== */
.scroll-up {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  z-index: var(--z-tooltip);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  box-shadow: var(--shadow-lg);
}

.scroll-up i {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.scroll-up:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-2px);
}

.scroll-up.show-scroll {
  bottom: 3rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Medium devices */
@media screen and (max-width: 992px) {
  .container {
    padding-inline: 1.5rem;
  }
  
  .section {
    padding: 4rem 0 2rem;
  }
  
  .hero__container,
  .about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero__content,
  .about__content {
    order: 2;
    text-align: center;
  }
  
  .hero__image,
  .about__image {
    order: 1;
  }
  
  .hero__buttons {
    justify-content: center;
  }
  
  .services__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .industries__container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Small devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    background-color: var(--body-color);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    padding: 4rem 2rem 2rem;
    z-index: var(--z-modal);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    row-gap: 2rem;
  }
  
  .nav__link {
    font-size: var(--normal-font-size);
  }
  
  .nav__close {
    display: flex;
  }
  
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
  }
  
  .nav__toggle span {
    width: 1.5rem;
    height: 0.125rem;
    background-color: var(--title-color);
    transition: var(--transition);
  }
  
  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.3rem, 0.3rem);
  }
  
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.3rem, -0.3rem);
  }
  
  .hero {
    padding-top: 6rem;
  }
  
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .contact__form {
    padding: 1.5rem;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Extra small devices */
@media screen and (max-width: 576px) {
  .container {
    padding-inline: 1rem;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .services__container {
    grid-template-columns: 1fr;
  }
  
  .industries__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service__card,
  .contact__form {
    padding: 1.5rem;
  }
  
  .testimonials {
    padding: 2rem 1.5rem;
  }
  
  .testimonial__quote {
    font-size: var(--normal-font-size);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== SCROLL HEADER EFFECT ===== */
.header.scroll-header {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* ===== LOADING STATES ===== */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading .btn__text {
  opacity: 0;
}

.btn.loading .btn__loading {
  display: block;
}

.loaded .hero__content,
.loaded .hero__image {
  animation: fadeInUp 0.8s ease forwards;
}

.loaded .nav__brand {
  animation: fadeInUp 0.6s ease forwards;
}

.loaded .nav__menu {
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.nav__link:focus,
.form__input:focus,
.footer__link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .nav__toggle,
  .scroll-up,
  .btn {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .hero {
    padding-top: 0;
  }
}

/* ===== MOBILE MENU BACKDROP ===== */
.nav__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav__backdrop.show-backdrop {
  opacity: 1;
  visibility: visible;
}