/* --- Variables & Reset --- */
:root {
  /* Colors - Pastel & Glass Theme */
  --bg-body: #f3f6fa;
  --text-main: #2d3440;
  --text-muted: #64748b;
  --accent-primary: #6366f1; /* Soft Indigo */
  --accent-secondary: #ec4899; /* Pink/Rose */
  --accent-gradient: linear-gradient(135deg, #a5b4fc 0%, #f9a8d4 100%);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --blur-val: 16px;

  /* Geometry */
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  /* Layout */
  --container-width: 1240px;
  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(236, 72, 153, 0.1) 0%,
      transparent 40%
    );
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn--primary {
  background: var(--text-main);
  color: #fff;
  box-shadow: 0 10px 20px rgba(45, 52, 64, 0.2);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
}

.header__container {
  max-width: var(--container-width);
  margin: 0 auto;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-val));
  -webkit-backdrop-filter: blur(var(--blur-val));
  border: 1px solid var(--glass-border);
  border-radius: 50px; /* Pill shape */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: var(--glass-shadow);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.header__logo-img {
  width: 32px;
  height: 32px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__menu {
  display: flex;
  gap: 30px;
}

.header__link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

/* Mobile Menu Logic */
@media (max-width: 992px) {
  .header__container {
    padding: 0 20px;
    border-radius: var(--radius-md);
  }

  .header__burger {
    display: block;
  }

  .header__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    margin: 0 20px;
  }

  .header__nav.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
  }
}

/* --- FOOTER --- */
.footer {
  margin-top: 100px; /* Space from main content */
  padding: 20px 20px 0 20px;
}

.footer__container {
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 80px 60px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

.footer__col--brand {
  padding-right: 20px;
}

.footer__logo {
  display: inline-block;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.footer__socials {
  display: flex;
  gap: 15px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.3s;
}

.footer__social-link:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: rotate(10deg);
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--accent-secondary);
  padding-left: 5px; /* Micro-interaction */
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-primary);
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
    padding: 60px 40px;
  }
}

@media (max-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
  }

  .footer__col--brand {
    padding-right: 0;
  }

  .footer__socials,
  .footer__contact-item {
    justify-content: center;
  }
}

/* --- ABOUT SECTION --- */
.about {
  padding: 100px 0;
  position: relative;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Bento Grid Layout */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; /* 2 rows */
  gap: 30px;
}

.about__card {
  background: #fff;
  border-radius: 40px; /* Super rounded */
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

/* Grid Spans */
.about__card--large {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.about__card--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: var(--text-main); /* Dark card contrast */
  color: #fff;
}

.about__card--wide {
  grid-column: span 2;
  background: #fff;
}

/* Card Content Styling */
.about__icon-box {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.about__icon-box--pink {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-secondary);
}

.about__card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about__card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about__card--tall p {
  color: rgba(255, 255, 255, 0.7);
}

.about__card--tall h3 {
  color: #fff;
}

/* Decoration Elements inside cards */
.about__decoration {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 20px;
  width: fit-content;
}

.toggle-switch {
  width: 50px;
  height: 28px;
  background: var(--accent-primary);
  border-radius: 50px;
  position: relative;
}

.toggle-switch__circle {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about__visual-circle {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: linear-gradient(
    45deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  filter: blur(50px);
  opacity: 0.4;
  border-radius: 50%;
}

.about__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.about__stat-num {
  font-family: "Outfit", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
  line-height: 1;
}

.about__stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 10px;
}

.link-arrow:hover {
  gap: 10px;
  text-decoration: underline;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .about__card--large,
  .about__card--tall,
  .about__card--wide {
    grid-column: span 1;
    grid-row: auto;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 60px); /* Account for fixed header */
  padding-bottom: 80px;
  min-height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

/* Typography & Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 4.5rem; /* Huge typography */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero__desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
  opacity: 0.7;
}

.hero__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__btn i {
  margin-left: 8px;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.hero__btn:hover i {
  transform: translateX(4px);
}

/* Secondary Glass Button */
.btn--glass {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* --- VISUAL & ANIMATION --- */
.hero__visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px; /* For 3D feel */
}

/* Animated Glow Blobs */
.hero__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: floatGlow 10s infinite alternate;
}

.hero__glow--1 {
  background: rgba(99, 102, 241, 0.3);
  top: 10%;
  left: 10%;
}

.hero__glow--2 {
  background: rgba(236, 72, 153, 0.3);
  bottom: 10%;
  right: 10%;
  animation-delay: -5s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

/* Glass Cards */
.glass-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 24px;
  border-radius: 30px; /* Hyper-rounded */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
  transition: transform 0.1s linear; /* Smooth mouse tracking */
  will-change: transform;
}

.glass-card__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fff, #f3f6fa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.glass-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.glass-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Positioning cards randomly */
.glass-card--1 {
  top: 15%;
  left: 5%;
  transform: rotate(-5deg);
  z-index: 2;
}

.glass-card--2 {
  top: 45%;
  right: 0%;
  transform: rotate(5deg);
  z-index: 3;
  padding: 30px; /* Bigger card */
}

.glass-card--2 .glass-card__icon {
  color: var(--accent-secondary);
}

.glass-card--3 {
  bottom: 15%;
  left: 20%;
  transform: rotate(-2deg);
  z-index: 1;
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero__title {
    font-size: 3.5rem;
  }
  .glass-card {
    min-width: 200px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
    display: block;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__badge {
    margin: 0 auto 20px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    height: 400px;
    margin-top: 20px;
  }

  .hero__title {
    font-size: 2.8rem;
  }
}

/* --- CASES SECTION (TABS) --- */
.cases {
  padding: 80px 0;
}

/* Tabs Navigation */
.cases__tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.cases__tab {
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.cases__tab:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--accent-primary);
}

.cases__tab.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.cases__tab i {
  width: 18px;
  height: 18px;
}

/* Content Area */
.cases__content-wrapper {
  position: relative;
  min-height: 400px;
}

.cases__item {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cases__item.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cases__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Image Side */
.cases__image-box {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  height: 400px;
}

.cases__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cases__image-box:hover .cases__img {
  transform: scale(1.05);
}

.cases__overlay {
  position: absolute;
  top: 20px;
  left: 20px;
}

.cases__badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Info Side */
.cases__info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cases__info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.cases__list {
  margin-bottom: 40px;
}

.cases__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.cases__list li i {
  color: var(--accent-secondary);
  width: 20px;
}

.cases__cta-box {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cases__cta-box span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
  width: fit-content;
}

/* Responsive */
@media (max-width: 992px) {
  .cases__grid {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .cases__image-box {
    height: 250px;
    order: -1; /* Image on top */
  }
}

/* --- BENEFITS SECTION --- */
.benefits {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, #ebf0f9 100%);
  border-radius: 60px 60px 0 0; /* Visual separation */
}

.benefits__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 30px;
}

.benefits__trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.benefits__trust-badge i {
  color: #f59e0b; /* Gold color for award */
  fill: #f59e0b;
  fill-opacity: 0.2;
}

/* Grid */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  gap: 25px;
  align-items: flex-start;
  border: 1px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Glow Effect */
.benefit-card:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Gradient blob on hover */
.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(99, 102, 241, 0.03) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.benefit-card:hover::before {
  transform: translateX(100%);
}

.benefit-card__icon-wrap {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-card__content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.benefit-card__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Strip */
.faq-strip {
  background: var(--text-main);
  color: #fff;
  border-radius: 40px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Abstract decoration for FAQ */
.faq-strip::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  filter: blur(80px);
  opacity: 0.3;
  border-radius: 50%;
}

.faq-strip__content h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.faq-strip__content p {
  color: rgba(255, 255, 255, 0.7);
}

.faq-strip__action {
  z-index: 2;
}

/* Responsive */
@media (max-width: 992px) {
  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .faq-strip {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .benefits__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

/* Contact Info (Left) */
.contact__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.contact__highlight-item i {
  color: var(--accent-primary);
}

/* Contact Form Box (Right) */
.contact__form-box {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  padding: 50px;
  border-radius: 40px;
  box-shadow: var(--glass-shadow);
  position: relative;
}

/* Form Styles */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: opacity 0.3s ease;
}

.input-group {
  position: relative;
}

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  transition: color 0.3s ease;
}

.input-field {
  width: 100%;
  padding: 16px 20px 16px 50px; /* Space for icon */
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.input-field:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-field:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--accent-primary);
}

/* Validation Error State */
.input-group.error .input-field {
  border-color: var(--accent-secondary);
  background: rgba(236, 72, 153, 0.05);
}

.input-group.error .input-icon {
  color: var(--accent-secondary);
}

.error-message {
  color: var(--accent-secondary);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none; /* Hidden by default */
  padding-left: 10px;
}

.input-group.error .error-message,
.checkbox-group.error .error-message {
  display: block;
}

/* Custom Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 24px;
  width: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

/* Standard Checkmark style */
.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent-primary);
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

/* Captcha Checkmark specialized style */
.checkmark--captcha {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.checkmark--captcha i {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.custom-checkbox input:checked ~ .checkmark--captcha {
  background-color: var(--accent-primary);
  color: #fff;
}

.checkbox-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-text a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Submit Button State */
.contact__submit-btn {
  width: 100%;
  margin-top: 10px;
}

.contact__submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.contact__submit-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
}

.success-message.active {
  display: block;
  animation: fadeUp 0.5s ease forwards;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.success-icon i {
  width: 40px;
  height: 40px;
}

.success-message h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive Contact */
@media (max-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact__info {
    text-align: center;
  }

  .contact__desc {
    margin: 0 auto 30px;
  }

  .contact__highlights {
    align-items: center;
  }

  .contact__form-box {
    padding: 30px;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 9999;
  border: 1px solid rgba(0, 0, 0, 0.05);

  /* Animation state: hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-popup__content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.cookie-popup__icon {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 8px;
  border-radius: 10px;
}

.cookie-popup__text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.cookie-popup__text a {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.cookie-popup__btn {
  width: 100%;
}

@media (max-width: 480px) {
  .cookie-popup {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
  }
}

/* --- LEGAL PAGES STYLES (privacy.html etc) --- */
/* Ці стилі працюватимуть на окремих HTML сторінках */
.pages {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 80vh;
}

.pages__container {
  max-width: 800px; /* Вужчий контейнер для зручного читання */
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.pages p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.pages li {
  margin-bottom: 10px;
  color: var(--text-muted);
  position: relative;
  padding-left: 15px;
}

.pages li::before {
  content: "•";
  color: var(--accent-secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.pages a {
  color: var(--accent-primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.pages a:hover {
  color: var(--accent-secondary);
}

@media (max-width: 768px) {
  .pages__container {
    padding: 30px;
    margin: 0 20px;
    border-radius: 20px;
  }

  .pages h1 {
    font-size: 2rem;
  }
}
