/* CSS RESET & VARIABLES */
:root {
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.4);
  --secondary: #4facfe;
  --secondary-dark: #2a7db5;
  --bg-dark: #070b14;
  --bg-darker: #040609;
  --bg-panel: rgba(18, 25, 41, 0.6);
  --bg-card: rgba(22, 33, 56, 0.8);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.08);
  --success: #10b981;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}
.text-green {
  color: var(--success);
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.py-5 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.w-100 {
  width: 100%;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  outline: none;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-darker);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--primary-glow);
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

/* HEADER (Strictly Consistent) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-base);
  background: rgba(4, 6, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(4, 6, 9, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 60px;
  width: auto;
  filter: invert(1) drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.nav {
  display: none;
}

@media (min-width: 992px) {
  .nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* MOBILE MENU TOGGLE */
.mobile-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: var(--transition-base);
}

.bar-top {
  top: 0;
}
.bar-middle {
  top: 50%;
  transform: translateY(-50%);
}
.bar-bottom {
  bottom: 0;
}

.mobile-toggle.active .bar-top {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active .bar-middle {
  opacity: 0;
}

.mobile-toggle.active .bar-bottom {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(4, 6, 9, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-menu ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-link {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.mobile-link:hover {
  color: var(--primary);
}

.mobile-cta-li {
  margin-top: 1rem;
}

/* SECTION HEADER */
.section-header {
  margin-bottom: 4rem;
}

.sub-heading {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* HERO SECTION (index.html) */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 10s infinite alternate ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 242, 254, 0.15);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(79, 172, 254, 0.1);
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }
}

.badge-wrap {
  margin-bottom: 1.5rem;
}
.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.badge i {
  color: var(--primary);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-panel);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  width: max-content;
  max-width: 100%;
}

@media (max-width: 576px) {
  .hero-stats {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 1rem;
  }
  .stat-divider {
    display: none;
  }
}

.stat-item .stat-num {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* 3D SCENE in Hero */
.scene-3d {
  perspective: 1000px;
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cube-3d {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3d 15s infinite linear;
}

.face {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(22, 33, 56, 0.8);
  border: 2px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2) inset;
  backdrop-filter: blur(5px);
  text-align: center;
}

.face i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.front {
  transform: translateZ(75px);
}
.back {
  transform: rotateY(180deg) translateZ(75px);
}
.right {
  transform: rotateY(90deg) translateZ(75px);
}
.left {
  transform: rotateY(-90deg) translateZ(75px);
}
.top {
  transform: rotateX(90deg) translateZ(75px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(75px);
}

.floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: rgba(10, 15, 22, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.fc-1 {
  top: 10%;
  right: 0;
  animation: float 4s infinite alternate ease-in-out;
}

.fc-2 {
  bottom: 10%;
  left: 0;
  animation: float 5s infinite alternate-reverse ease-in-out;
}

.fc-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 242, 254, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.fc-text {
  font-weight: 600;
}

/* SERVICES SECTION (3D Flip) */
.services-section {
  padding: 6rem 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card-3d {
  background-color: transparent;
  height: 320px;
  perspective: 1000px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.service-card-3d:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card-front .icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 242, 254, 0.2);
  transition: var(--transition-base);
}

.service-card-3d:hover .icon-wrapper {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 0 20px var(--primary-glow);
}

.service-card-front h3 {
  margin-bottom: 1rem;
}
.service-card-front p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-card-back {
  background: linear-gradient(135deg, var(--bg-panel), #0a1424);
  transform: rotateY(180deg);
  border-color: rgba(0, 242, 254, 0.3);
}

.service-card-back h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-card-back ul {
  text-align: left;
  margin-bottom: 1.5rem;
  width: 100%;
  padding: 0 1rem;
}
.service-card-back li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card-back li i {
  color: var(--success);
  font-size: 0.8rem;
}

/* REPORTS SECTION */
.reports-section {
  padding: 6rem 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.reports-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .reports-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-list {
  margin-top: 2rem;
}
.feature-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.feature-list i {
  color: var(--primary);
  font-size: 1.25rem;
}

.mock-dashboard {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: var(--transition-slow);
}

.mock-dashboard:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dash-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.dash-dots {
  display: flex;
  gap: 6px;
  margin-right: 1.5rem;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.r {
  background: #ff5f56;
}
.dot.y {
  background: #ffbd2e;
}
.dot.g {
  background: #27c93f;
}

.dash-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dash-body {
  padding: 2rem;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.m-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.m-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.m-box strong {
  font-size: 1.25rem;
  color: var(--white);
  font-family: var(--font-head);
}

.dash-chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.bar-wrap {
  width: 15%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.bar {
  width: 100%;
  background: linear-gradient(to top, var(--secondary), var(--primary));
  border-radius: 4px 4px 0 0;
  transition: height 1s ease-out;
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
}

.bar-wrap span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* INDUSTRIES SECTION */
.industries-section {
  padding: 6rem 0;
}

.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ind-card {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.ind-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(0, 242, 254, 0.05);
  transition: var(--transition-base);
  z-index: 0;
}

.ind-card:hover::before {
  height: 100%;
}

.ind-card > * {
  position: relative;
  z-index: 1;
}

.ind-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.ind-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.ind-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CALCULATOR SECTION */
.calculator-section {
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>')
    var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
  .calc-wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.calc-info h2 {
  font-size: 2.5rem;
}
.calc-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.calc-app {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-row {
  margin-bottom: 1.5rem;
}
.calc-row label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text-main);
}
.calc-row span {
  color: var(--primary);
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

.calc-result {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
}

.calc-result h4 {
  color: var(--text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-value {
  font-size: 3rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--success);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  padding: 6rem 0;
}
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .testi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testi-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  position: relative;
  transition: var(--transition-base);
}

.testi-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 242, 254, 0.3);
}

.quote-icon {
  font-size: 2rem;
  color: rgba(0, 242, 254, 0.2);
  margin-bottom: 1.5rem;
}

.testi-text {
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--bg-darker);
  font-size: 1.25rem;
}
.author-info h4 {
  margin: 0;
  font-size: 1rem;
}
.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* LIVE CHAT WIDGET */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chat-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-darker);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 20px var(--primary-glow);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-toggle-btn:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
}
.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.ch-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.agent-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 2px;
}
.ch-info h5 {
  margin: 0;
  font-size: 0.95rem;
}
.ch-info span {
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ch-info span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: block;
}

.close-chat {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
}

.chat-body {
  padding: 1.5rem 1rem;
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-darker);
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 85%;
}
.msg-received {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 2px;
}

.chat-input-area {
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border);
}
.chat-input-area input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: var(--text-main);
  outline: none;
}
.chat-input-area button {
  background: var(--primary);
  color: var(--bg-darker);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA SECTION */
.cta-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--bg-darker), var(--bg-dark));
  z-index: -2;
}

.cta-bg::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 242, 254, 0.1) 0%,
    transparent 70%
  );
  z-index: -1;
}

/* FOOTER (Strictly Consistent) */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 60px;
  filter: invert(1) drop-shadow(0 0 5px rgba(0, 242, 254, 0.3));
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 350px;
}

.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-base);
}
.social-links a:hover {
  background: var(--primary);
  color: var(--bg-darker);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-info li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-contact-info i {
  color: var(--primary);
  margin-top: 4px;
}
.footer-contact-info a {
  color: var(--text-muted);
}
.footer-contact-info a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a:hover {
  color: var(--white);
}

/* SUBPAGES SHARED STYLES */
.page-hero {
  padding: 180px 0 80px;
  background:
    linear-gradient(to bottom, rgba(4, 6, 9, 0.9), var(--bg-dark)),
    url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  border-bottom: 1px solid var(--glass-border);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}
.breadcrumbs a {
  color: var(--white);
  font-weight: 500;
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs i {
  font-size: 0.75rem;
  color: var(--primary);
}

/* CONTACT PAGE STYLES */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info-panel h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-info-panel p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-method-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
}
.contact-method-card:hover {
  transform: translateX(10px);
  border-color: rgba(0, 242, 254, 0.3);
}

.cm-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 242, 254, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
}
.cm-text h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}
.cm-text a,
.cm-text span {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cm-text a:hover {
  color: var(--primary);
}

.contact-form-panel {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.custom-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .custom-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-base);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}
.form-group select option {
  background: var(--bg-darker);
  color: var(--white);
}

/* POPUP */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}
.popup-overlay:target {
  opacity: 1;
  visibility: visible;
}
.popup-box {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.8);
  transition: var(--transition-base);
}
.popup-overlay:target .popup-box {
  transform: scale(1);
}
.popup-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.popup-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* LEGAL PAGES STYLES */
.legal-content .doc-wrapper {
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.legal-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}
.legal-content p {
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
  color: var(--text-main);
}
.legal-content li {
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .legal-content .doc-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* ANIMATIONS */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-20px) rotate(5deg);
  }
}
@keyframes rotate3d {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
  animation-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
  animation-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
  animation-delay: 0.4s;
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}
.animate-fade-left {
  opacity: 0;
  animation: fadeLeft 0.8s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fix utility */
html {
  scroll-padding-top: 80px;
}
