/* --- VARIABLES --- */
:root {
  --bg-dark: #0f0c29;
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --primary: #00d4ff; /* Cyan Neon */
  --secondary: #7f00ff; /* Purple Neon */
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;
  --radius-lg: 32px;
  --radius-pill: 50px;

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

html,
body {
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

/* --- AMBIENT LIGHTS (Background blobs) --- */
.ambient-light {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
}

.light-1 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: -100px;
  left: -100px;
  animation: float 10s infinite alternate;
}

.light-2 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  bottom: -100px;
  right: -100px;
  animation: float 12s infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 50px);
  }
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  color: #fff;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  border-color: var(--primary);
}

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

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 10px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
}

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

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.header__link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
}

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

.header__burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* --- MOBILE NAV STYLES --- */
@media (max-width: 992px) {
  .header__nav {
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }

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

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .header__burger {
    display: block;
  }

  .header__actions .btn {
    display: none; /* Hide CTA button on mobile header to save space, or move to menu */
  }
}

/* --- MAIN (Padding for fixed header) --- */
.main {
  padding-top: 120px;
  min-height: 80vh; /* Temporary spacer */
}

/* --- FOOTER --- */
.footer {
  margin-top: 80px;
  padding: 60px 20px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--glass-border);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  margin-bottom: 15px;
}

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

.footer__title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

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

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

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

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

@media (max-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__contact-item {
    justify-content: center;
  }
  .header__logo,
  .footer__logo {
    justify-content: center;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Space for fixed header */
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 2;
  max-width: 1000px; /* Focus content */
  text-align: center;
}

.hero__content {
  background: rgba(15, 12, 41, 0.4); /* Dark semi-transparent */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 60px; /* Hyper-rounded container */
  padding: 60px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

  /* Reveal Animation Start State */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge i {
  width: 16px;
  height: 16px;
}

/* Typography */
.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem; /* Large typography */
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(90deg, #00d4ff, #7f00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Buttons */
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.btn--primary {
  background: var(--primary);
  color: #000;
  border: none;
}

.btn--primary:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--primary);
  transform: scale(1.05);
}

.btn--glow {
  position: relative;
  overflow: hidden;
}

/* Stats Row */
.hero__stats {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center for mobile */
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1;
}

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

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 30px;
}

.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__content {
    padding: 40px 20px;
    border-radius: 40px;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__stats {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    width: 100%;
  }
  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
}

/* --- SECTION GENERAL --- */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
  /* Defines the layout structure */
  grid-template-areas:
    "large large tall"
    "wide medium tall";
}

.bento-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg); /* 32px */
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Glassmorphism Hover Effect */
.bento-item:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Grid Areas Assignment */
.bento-item--large {
  grid-area: large;
}
.bento-item--tall {
  grid-area: tall;
  justify-content: space-between;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.03),
    rgba(127, 0, 255, 0.1)
  );
}
.bento-item--wide {
  grid-area: wide;
}
.bento-item--medium {
  grid-area: medium;
}

/* Typography inside cards */
.bento-item h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 20px 0 10px;
  color: #fff;
}

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

/* Icons */
.bento-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.icon-purple {
  background: rgba(127, 0, 255, 0.1);
  color: var(--secondary);
  border-color: rgba(127, 0, 255, 0.2);
}

.icon-blue {
  background: rgba(50, 50, 255, 0.1);
  color: #4facfe;
}

/* Decorative element for large card */
.bento-decoration {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.2) 0%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  margin-top: 20px;
  font-size: 0.9rem;
}

.link-arrow i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* Shield Icon in Wide Card */
.bento-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bento-shield i {
  width: 80px;
  height: 80px;
  color: rgba(255, 255, 255, 0.05);
  transform: rotate(15deg);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "large large"
      "tall tall"
      "wide medium";
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "large"
      "tall"
      "wide"
      "medium";
  }

  .bento-item {
    min-height: 200px;
  }
}

/* --- SOLUTIONS SECTION --- */
.solutions {
  position: relative;
  z-index: 1;
}

.solutions__bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(127, 0, 255, 0.15) 0%,
    transparent 60%
  );
  z-index: -1;
  filter: blur(80px);
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 20px 0;
}

/* 3D Card Styles */
.solution-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.1s ease; /* Quick transition for JS tilt */
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

/* Content layer pushed forward in Z-space */
.solution-card__content {
  transform: translateZ(20px);
}

.solution-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-highlight {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  box-shadow: 0 10px 30px rgba(127, 0, 255, 0.4);
}

.solution-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.solution-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.7;
}

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

.solution-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
}

.solution-card__list li i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Hover State (fallback if JS fails) */
.solution-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .solutions__grid {
    grid-template-columns: 1fr;
  }
  .solution-card {
    transform: none !important; /* Disable 3D on mobile for performance */
  }
}

/* --- PROCESS TIMELINE --- */
.process {
  padding-bottom: 120px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Central Neon Line */
.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  border-radius: 4px;
  overflow: hidden;
}

.timeline__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
  animation: beam 3s infinite;
}

@keyframes beam {
  0% {
    top: -50%;
  }
  100% {
    top: 150%;
  }
}

/* Items container */
.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 50px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
}

.timeline__item.left {
  left: 0;
  align-items: flex-end;
  text-align: right;
}

.timeline__item.right {
  left: 50%;
  align-items: flex-start;
  text-align: left;
}

/* Dots on the line */
.timeline__dot {
  position: absolute;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-heading);
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.timeline__item.left .timeline__dot {
  right: -25px;
}

.timeline__item.right .timeline__dot {
  left: -25px;
}

/* Content Card */
.timeline__content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  position: relative;
  transition: all 0.6s ease;
  opacity: 0; /* Hidden by default for JS reveal */
}

/* Animation States */
.timeline__item.left .timeline__content {
  transform: translateX(-50px);
  border-bottom-right-radius: 5px; /* Slight shape variation */
}

.timeline__item.right .timeline__content {
  transform: translateX(50px);
  border-top-left-radius: 5px;
}

.timeline__content.active {
  opacity: 1;
  transform: translateX(0);
  border-color: rgba(127, 0, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.timeline__tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 700;
}

.timeline__content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

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

/* RESPONSIVE TIMELINE */
@media (max-width: 768px) {
  .timeline__line {
    left: 30px;
  }

  .timeline__item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
    left: 0;
    margin-bottom: 40px;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .timeline__item.left .timeline__dot,
  .timeline__item.right .timeline__dot {
    left: 5px;
    right: auto;
  }

  .timeline__content {
    border-radius: 30px;
    border-top-left-radius: 5px !important;
    border-bottom-right-radius: 30px !important;
  }

  .timeline__item.left .timeline__content,
  .timeline__item.right .timeline__content {
    transform: translateY(30px); /* Vertical slide on mobile */
  }

  .timeline__content.active {
    transform: translateY(0);
  }
}

/* --- BLOG SECTION --- */
.blog {
  padding-bottom: 100px;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Card Styling */
.blog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px; /* Hyper-rounded */
  padding: 15px; /* Inner spacing for floating look */
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  group: blog-card;
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Image styling */
.blog-card__image-wrapper {
  position: relative;
  height: 220px;
  border-radius: 30px; /* Rounded image */
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  background-color: #2a2a4a; /* Fallback color for placeholder */
  opacity: 0.8;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.1);
}

/* Floating Tag */
.blog-card__tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 12, 41, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content */
.blog-card__content {
  padding: 0 15px 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-card__excerpt strong {
  color: var(--primary);
  font-weight: 500;
}

/* Link with Arrow */
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.blog-card__link i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card__link i {
  transform: translate(3px, -3px);
  color: var(--primary);
}

/* Highlight Card Variation */
.blog-card.highlight {
  border-color: rgba(127, 0, 255, 0.3);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(127, 0, 255, 0.05) 100%
  );
}

@media (max-width: 768px) {
  .blog__grid {
    grid-template-columns: 1fr;
  }
}

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

.contact__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.contact__wrapper {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px; /* Hyper-rounded form */
  padding: 50px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.contact__header {
  text-align: center;
  margin-bottom: 30px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 15px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  transition: color 0.3s;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px; /* Pill shape inputs */
  padding: 15px 20px 15px 50px; /* Space for icon */
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-input:focus + .input-icon, /* This selector won't work with current HTML structure, needs JS or different CSS logic. Keeping simple for now. */
.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.error-msg {
  display: none;
  color: #ff4d4d;
  font-size: 0.8rem;
  margin-top: 5px;
  margin-left: 15px;
}

.form-group.error .form-input {
  border-color: #ff4d4d;
}

.form-group.error .error-msg {
  display: block;
}

.btn--block {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  font-size: 1.1rem;
}

/* Custom Checkbox & Captcha */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.3s;
}

.captcha-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.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.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 15px;
  position: relative;
  transition: all 0.3s;
  flex-shrink: 0;
}

.custom-checkbox:hover .checkmark {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.checkmark.small {
  height: 18px;
  width: 18px;
  border-radius: 4px;
  margin-right: 10px;
}

.checkmark.small:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 10px;
}

.label-text.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: #4cd964; /* Green */
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Right aligned */
  width: 320px;
  background: rgba(15, 12, 41, 0.9);
  border: 1px solid var(--primary);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none; /* Controlled by JS */
  animation: slideIn 0.5s ease;
}

.cookie-content p {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 15px;
  line-height: 1.4;
}

.cookie-content a {
  color: var(--primary);
  text-decoration: underline;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  width: 100%;
}

@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- LEGAL PAGES STYLING (.pages class) --- */
.pages {
  padding: 140px 0 80px; /* Space for fixed header */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.02);
  padding: 40px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 40px 0 20px;
}

.pages p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.7;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #ccc;
}

.pages li {
  margin-bottom: 10px;
}

.pages a {
  color: var(--primary);
}
