/* ===== FONT FACES ===== */
@font-face {
  font-family: 'Familjen Grotesk';
  src: url('./fonts/FamiljenGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Familjen Grotesk';
  src: url('./fonts/FamiljenGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zalando Sans';
  src: url('./fonts/ZalandoSansExpanded-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zalando Sans';
  src: url('./fonts/ZalandoSansExpanded-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== VARIABLES CSS ===== */
:root {
  /* Colors - OperaFlow Brand */
  --primary-color: #63c2b2;
  --primary-dark: #52a89a;
  --primary-light: #7dd4c5;
  --secondary-color: #f4b41a;
  --accent-color: #007bff;
  
  --text-color: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --bg-color: #f2f5f0;
  --bg-light: #ffffff;
  --border-color: #bfebe3;
  
  --gradient-primary: linear-gradient(135deg, #63c2b2 0%, #52a89a 100%);
  --gradient-secondary: linear-gradient(135deg, #f4b41a 0%, #d99e16 100%);
  
  /* Typography */
  --body-font: 'Familjen Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: 'Zalando Sans', system-ui, -apple-system, sans-serif;
  --h1-font-size: 3rem;
  --h2-font-size: 2.25rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Spacing */
  --header-height: 4.5rem;
  --section-padding: 6rem 0;
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* 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);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

@media screen and (max-width: 768px) {
  :root {
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
  color: #1f2937;
  background-color: #f2f5f0;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

ul {
  list-style: none;
}

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

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

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

input,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

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

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

.section__title {
  font-family: var(--heading-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-extrabold);
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: var(--font-semibold);
  font-size: var(--normal-font-size);
  transition: var(--transition);
  white-space: nowrap;
}

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

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

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

.button--ghost:hover {
  background: var(--primary-color);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.button--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: var(--transition);
}

.header.scroll-header {
  box-shadow: var(--shadow-md);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
  font-family: var(--heading-font);
}

.nav__logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav__logo i {
  font-size: 1.75rem;
}

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

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

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

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

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

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

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #f2f5f0 0%, #bfebe3 100%);
}

.hero__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 4rem;
}

.hero__title {
  font-family: var(--heading-font);
  font-size: var(--h1-font-size);
  font-weight: var(--font-extrabold);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

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

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2rem;
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat p {
  font-size: var(--small-font-size);
  color: var(--text-light);
  font-weight: var(--font-medium);
}

.hero__img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite;
  border: 3px solid var(--primary-color);
}

.hero__img-wrapper img {
  max-width: 100%;
  height: auto;
}

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

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

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

.feature__card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

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

.feature__icon i {
  font-size: 2rem;
  color: var(--white);
}

.feature__title {
  font-family: var(--heading-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
  margin-bottom: 1rem;
}

.feature__description {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
  background: linear-gradient(135deg, #f2f5f0 0%, #e8f5f1 100%);
}

.benefits__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 4rem;
}

.benefits__list {
  margin-bottom: 2rem;
}

.benefit__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefit__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit__icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.benefit__content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  font-weight: var(--font-semibold);
}

.benefit__content p {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

.benefits__img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 4rem;
  box-shadow: var(--shadow-xl);
}

.benefits__img-wrapper i {
  font-size: 12rem;
  color: var(--white);
}

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

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

.about__card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.about__icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #bfebe3 0%, #63c2b2 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.about__icon i {
  font-size: 2.5rem;
  color: var(--white);
}

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

.about__card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: linear-gradient(135deg, #f2f5f0 0%, #bfebe3 100%);
}

.contact__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: start;
}

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

.contact__info > p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact__details {
  margin-bottom: 2rem;
}

.contact__detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact__detail h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: var(--font-semibold);
}

.contact__detail p {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

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

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

.social__link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.form__group {
  position: relative;
  margin-bottom: 1.5rem;
}

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

.form__input:focus {
  border-color: var(--primary-color);
}

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

.form__label {
  position: absolute;
  top: -0.625rem;
  left: 1rem;
  background: var(--white);
  padding: 0 0.5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-light);
}

/* ===== CTA SECTION ===== */
.cta {
  background: var(--gradient-primary);
  color: var(--white);
}

.cta__container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--heading-font);
  font-size: var(--h2-font-size);
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta__description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  font-family: var(--heading-font);
}

.footer__logo i {
  font-size: 1.75rem;
  color: var(--primary-light);
}

.footer__description {
  opacity: 0.8;
  line-height: 1.7;
}

.footer__title {
  font-family: var(--heading-font);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: var(--font-semibold);
}

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

.footer__links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  color: var(--primary-light);
}

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

.footer__copy {
  opacity: 0.6;
  font-size: var(--small-font-size);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 2rem;
  bottom: -50%;
  background: var(--gradient-primary);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 99;
}

.scrollup:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.scrollup.show-scroll {
  bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 968px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 101;
    overflow-y: auto;
  }

  .nav__menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: -1;
    pointer-events: none;
  }

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

  .nav__menu.show-menu::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
    background-color: transparent !important;
    position: relative;
    z-index: 1;
  }

  .nav__item {
    background-color: transparent !important;
    position: relative;
  }

  .nav__link {
    display: block;
    padding: 0.5rem 0;
  }

  .nav__link::after {
    display: none;
  }

  .nav__close,
  .nav__toggle {
    display: block;
  }

  .nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .hero__container,
  .benefits__container,
  .contact__container {
    grid-template-columns: 1fr;
  }

  .hero__image,
  .benefits__image {
    order: -1;
  }

  .hero__img-wrapper i,
  .benefits__img-wrapper i {
    font-size: 8rem;
  }

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

@media screen and (max-width: 576px) {
  .nav__logo img {
    height: 35px;
  }

  .hero__buttons {
    flex-direction: column;
  }

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

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

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

  .hero__img-wrapper,
  .benefits__img-wrapper {
    padding: 2rem;
  }

  .hero__img-wrapper i,
  .benefits__img-wrapper i {
    font-size: 6rem;
  }

  .scrollup {
    right: 1rem;
  }

  .scrollup.show-scroll {
    bottom: 1rem;
  }
}
