/* ===== VARIABLES ===== */
:root {
  /* Colors based on logo */
  --primary-color: #4169E1;
  --primary-dark: #1E3A8A;
  --primary-light: #60A5FA;
  --secondary-color: #000000;
  --accent-color: #3B82F6;
  
  /* Neutral colors */
  --white-color: #FFFFFF;
  --light-color: #F8FAFC;
  --gray-light: #E2E8F0;
  --gray-color: #64748B;
  --gray-dark: #334155;
  --dark-color: #1E293B;
  --black-color: #0F172A;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-dark: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(65, 105, 225, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%);
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Font sizes */
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 1.75rem;
  --h4-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;
  
  /* Spacing */
  --header-height: 4.5rem;
  --section-padding: 6rem 0;
  --container-margin: 0 1.5rem;
  --container-max-width: 1200px;
  
  /* Border radius */
  --border-radius: 0.75rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;
  
  /* 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);
  --shadow-primary: 0 10px 30px rgba(65, 105, 225, 0.3);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.5s ease;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

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

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

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

.section__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  position: relative;
}

.section__subtitle::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

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

.section__description {
  font-size: var(--normal-font-size);
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  justify-content: center;
}

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

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(65, 105, 225, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

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

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

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

.nav__logo {
  height: 2.5rem;
  width: auto;
}

.nav__menu {
  position: fixed;
  top: var(--header-height);
  left: -100%;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--white-color);
  padding: 2rem 0;
  transition: var(--transition);
  z-index: var(--z-fixed);
}

.nav__menu.show-menu {
  left: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

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

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

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

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

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--dark-color);
  cursor: pointer;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.nav__toggle {
  font-size: 1.25rem;
  color: var(--dark-color);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--light-color) 0%, rgba(65, 105, 225, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50%;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagon" x="0" y="0" width="20" height="17.32" patternUnits="userSpaceOnUse"><polygon points="10,1 18.66,6 18.66,14 10,19 1.34,14 1.34,6" fill="none" stroke="rgba(65,105,225,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)"/></svg>') repeat;
  opacity: 0.3;
  z-index: -1;
}

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

.hero__content {
  text-align: center;
}

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

.hero__title-line {
  display: block;
}

.hero__title-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero__description {
  font-size: 1.125rem;
  color: var(--gray-color);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: center;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: var(--font-extra-bold);
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.hero__stat-text {
  font-size: var(--small-font-size);
  color: var(--gray-color);
  font-weight: var(--font-medium);
}

.hero__image {
  position: relative;
}

.hero__image-container {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0.1;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero__scroll-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--white-color);
  border-radius: 50%;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hero__scroll-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== ABOUT ===== */
.about {
  background: var(--white-color);
}

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

.about__content {
  order: 2;
}

.about__paragraph {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  line-height: 1.7;
}

.about__features {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about__feature {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--light-color);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.about__feature:hover {
  transform: translateX(0.5rem);
  box-shadow: var(--shadow-md);
}

.about__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.about__feature-title {
  font-size: var(--h4-font-size);
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.about__feature-text {
  color: var(--gray-color);
  font-size: var(--small-font-size);
}

.about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  order: 1;
}

.about__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image--1 {
  transform: translateY(2rem);
}

.about__image--2 {
  transform: translateY(-1rem);
}

.about__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about__img:hover {
  transform: scale(1.05);
}

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

.services__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service__card {
  background: var(--white-color);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.service__card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

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

.service__features {
  list-style: none;
}

.service__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-color);
  font-size: var(--small-font-size);
}

.service__features i {
  color: var(--primary-color);
  font-size: 0.75rem;
}

/* ===== TECHNOLOGY ===== */
.technology {
  background: var(--dark-color);
  color: var(--white-color);
}

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

.technology .section__subtitle {
  color: var(--primary-light);
}

.technology .section__title {
  color: var(--white-color);
}

.technology__description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.technology__features {
  display: grid;
  gap: 2rem;
}

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

.technology__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.technology__feature-title {
  font-size: var(--h4-font-size);
  color: var(--white-color);
  margin-bottom: 0.5rem;
}

.technology__feature-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.technology__image {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.technology__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== PROJECTS ===== */
.projects {
  background: var(--white-color);
}

.projects__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project__card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.project__card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.project__image {
  position: relative;
  overflow: hidden;
}

.project__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project__card:hover .project__img {
  transform: scale(1.1);
}

.project__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.project__card:hover .project__overlay {
  opacity: 1;
}

.project__info {
  color: var(--white-color);
}

.project__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.project__description {
  font-size: var(--small-font-size);
  opacity: 0.9;
}

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

.contact__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact__info {
  order: 2;
}

.contact__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.contact__title {
  font-size: var(--h4-font-size);
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact__text {
  color: var(--gray-color);
  line-height: 1.6;
}

.contact__social {
  margin-top: 2rem;
}

.contact__social-title {
  font-size: var(--h4-font-size);
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.contact__social-links {
  display: flex;
  gap: 1rem;
}

.contact__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: 50%;
  transition: var(--transition);
}

.contact__social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.contact__form {
  order: 1;
}

.form {
  background: var(--white-color);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: var(--normal-font-size);
  font-family: inherit;
  transition: var(--transition);
  background: var(--white-color);
}

.form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-color);
  color: var(--white-color);
  padding: 4rem 0 2rem;
}

.footer__container {
  display: grid;
  gap: 3rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer__logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
}

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

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

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: 50%;
  transition: var(--transition);
}

.footer__social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.footer__title {
  font-size: var(--h4-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  gap: 0.5rem;
}

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

.footer__link:hover {
  color: var(--primary-light);
  transform: translateX(0.25rem);
}

.footer__contact {
  display: grid;
  gap: 0.75rem;
}

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

.footer__contact-item i {
  color: var(--primary-light);
}

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

.footer__copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--small-font-size);
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== MEDIA QUERIES ===== */
/* Small devices */
@media screen and (min-width: 568px) {
  .hero__buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices */
@media screen and (min-width: 768px) {
  :root {
    --h1-font-size: 4rem;
    --h2-font-size: 3rem;
    --h3-font-size: 2rem;
  }
  
  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
  }
  
  .nav__list {
    flex-direction: row;
    gap: 2rem;
  }
  
  .nav__close {
    display: none;
  }
  
  .nav__toggle {
    display: none;
  }
  
  .nav__cta {
    display: flex;
  }
  
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .hero__content {
    text-align: left;
  }
  
  .hero__buttons {
    justify-content: flex-start;
  }
  
  .about__container {
    grid-template-columns: 1fr 1fr;
  }
  
  .about__content {
    order: 1;
  }
  
  .about__images {
    order: 2;
  }
  
  .about__features {
    grid-template-columns: 1fr;
  }
  
  .services__container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .technology__container {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact__container {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact__info {
    order: 1;
  }
  
  .contact__form {
    order: 2;
  }
  
  .footer__content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__img {
    height: 500px;
  }
  
  .about__img {
    height: 300px;
  }
  
  .technology__img {
    height: 500px;
  }
  
  .project__img {
    height: 350px;
  }
}

