/* ==========================================================================
   ARAE PAINTING - PREMIUM DIGITAL MARKETING AGENCY STYLES
   AWWARDS-Level Quality | Pure CSS
   ========================================================================== */

/* --- 1. CSS Variables & Theme Configuration --- */
:root {
  /* Color Palette - Dark Theme with Neon Accents */
  --bg-base: #030305;
  --bg-surface: #0a0a0e;
  --bg-surface-light: #15151c;
  --bg-glass: rgba(10, 10, 14, 0.6);
  --bg-glass-border: rgba(255, 255, 255, 0.05);

  --accent-primary: #00f0ff; /* Electric Cyan */
  --accent-primary-glow: rgba(0, 240, 255, 0.3);
  --accent-secondary: #7000ff; /* Deep Neon Purple */
  --accent-tertiary: #ff0055; /* Hot Pink */

  --text-main: #ffffff;
  --text-muted: #8b8b99;
  --text-dark: #000000;

  --border-color: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Spacing System */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(2rem, 4vw, 3rem);
  --space-lg: clamp(4rem, 8vw, 6rem);
  --space-xl: clamp(6rem, 12vw, 10rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --transition-fast: 0.3s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-in-out-circ);

  /* Layout */
  --container-width: 1440px;
  --header-height: 90px;
}

/* --- 2. Reset & Global Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: initial; /* Handled by Lenis in JS */
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none; /* Custom cursor */
}

/* Noise Overlay for Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section-padding {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* --- 3. Custom Cursor --- */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s,
    border-color 0.3s;
}

.cursor-outline.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  backdrop-filter: blur(2px);
}

/* --- 4. Typography Utils --- */
.text-gradient {
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.display-1 {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
}

.display-2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
}

/* --- 5. Buttons & Interactive Elements --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  background: transparent;
  overflow: hidden;
  transition: var(--transition-fast);
  z-index: 1;
}

.btn-primary {
  color: var(--text-dark);
  background-color: var(--text-main);
  border-radius: 100px;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  color: var(--text-main);
  box-shadow: 0 0 30px var(--accent-primary-glow);
  transform: scale(1.05);
}

.btn-outline {
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 100px;
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--text-dark);
}

/* Magnetic wrapper for JS */
.magnetic-wrap {
  display: inline-block;
}

/* --- 6. STRICT Header Styling (Used on ALL Pages) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition:
    background-color 0.4s ease,
    border-bottom 0.4s ease,
    backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-glass-border);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 40px;
  transition: var(--transition-fast);
}

.logo:hover img {
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: none;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-base);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-out-expo);
    z-index: 999;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-link {
    font-size: 2rem;
    font-family: var(--font-heading);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.is-open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .header-actions .btn {
    display: none;
  }
}

/* --- 7. Index Page: Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Abstract 3D glowing elements */
.hero-glare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    var(--accent-secondary) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  transform: translate(-50%, -50%);
  opacity: 0.15;
  filter: blur(100px);
  z-index: -1;
  animation: pulseGlow 8s infinite alternate;
}

.hero-glare-2 {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(
    circle,
    var(--accent-primary) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  opacity: 0.1;
  filter: blur(80px);
  z-index: -1;
  animation: floatOrb 12s infinite linear;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}

.hero-title {
  max-width: 1000px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* --- 8. Index Page: Marquee (Partners/Clients) --- */
.marquee-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-surface);
}

.marquee-container {
  display: flex;
  white-space: nowrap;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-container:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.marquee-item i {
  color: var(--accent-primary);
  font-size: 1rem;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- 9. Index Page: About / Philosophy --- */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.about-visual {
  position: relative;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-surface-light);
}

/* 3D Wireframe Globe CSS Hack */
.css-globe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: rotateGlobe 20s linear infinite;
}

.css-globe::before,
.css-globe::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.css-globe::before {
  transform: rotateX(75deg);
}
.css-globe::after {
  transform: rotateY(75deg);
}

@keyframes rotateGlobe {
  0% {
    transform: translate(-50%, -50%) rotateX(0) rotateY(0);
  }
  100% {
    transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg);
  }
}

/* --- 10. Index Page: Services (Bento Grid) --- */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-md);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 350px;
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: var(--transition-slow);
  group: card;
}

/* Specific Grid Placements */
.bento-card:nth-child(1) {
  grid-column: span 2;
}
.bento-card:nth-child(4) {
  grid-column: span 2;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover::before {
  opacity: 1;
}
.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card-content p {
  color: var(--text-muted);
}

.card-arrow {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  transition: var(--transition-fast);
}

.bento-card:hover .card-arrow {
  background: var(--text-main);
  color: var(--text-dark);
  transform: rotate(0);
}

/* --- 11. Index Page: Industry Solutions (Tabs) --- */
.industry-section {
  background: var(--bg-surface-light);
  border-radius: 40px;
  padding: var(--space-lg) var(--space-sm);
  margin: 0 var(--space-sm);
}

.tabs-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.tabs-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  cursor: none;
  transition: var(--transition-fast);
  position: relative;
}

.tab-btn.active {
  color: var(--text-main);
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: grid;
}

.tab-visual {
  background: var(--bg-base);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* CSS Grid Abstract Illustration */
.abstract-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 10px;
  height: 300px;
}

.grid-cell {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  transition: background 0.3s;
}
.grid-cell:nth-child(even) {
  background: rgba(0, 240, 255, 0.05);
}
.grid-cell:nth-child(7n) {
  background: rgba(112, 0, 255, 0.1);
  animation: pulseCell 2s infinite alternate;
}

@keyframes pulseCell {
  to {
    background: rgba(112, 0, 255, 0.4);
    transform: scale(1.1);
  }
}

/* --- 12. Index Page: Dashboard / Campaign Reports UI Mockup --- */
.reports-section {
  text-align: center;
}

.dashboard-mockup {
  margin-top: 4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

/* Top bar */
.dash-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
}

.metric-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.metric-card h4 {
  font-size: 2rem;
  margin: 0.5rem 0;
}
.metric-card .trend {
  color: #00ff88;
  font-size: 0.8rem;
}

/* CSS Bar Chart */
.dash-chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 2%;
  padding-top: 2rem;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(
    to top,
    rgba(0, 240, 255, 0.1),
    var(--accent-primary)
  );
  border-radius: 4px 4px 0 0;
  animation: growBar 2s var(--ease-out-expo) forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

@keyframes growBar {
  to {
    transform: scaleY(1);
  }
}

/* --- 13. Index Page: Service Calculator --- */
.calculator-section {
  background: linear-gradient(135deg, var(--bg-surface), #0a0a14);
  border-top: 1px solid var(--border-color);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-form {
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.range-group {
  margin-bottom: 2rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: none;
  margin-top: -8px;
  box-shadow: 0 0 10px var(--accent-primary);
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: none;
  background: var(--border-color);
  border-radius: 2px;
}

.calc-result {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.calc-result h3 {
  font-size: 3rem;
  color: var(--accent-secondary);
}

/* --- 14. Index Page: Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  padding: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.03);
  font-family: serif;
  line-height: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--border-color);
}

/* --- 15. Form & Contact Global Styles --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-block h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.contact-details-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-detail-item .icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- 16. STRICT Footer Styling (Used on ALL Pages) --- */
.footer {
  background: var(--bg-surface-light);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Footer Giant Background Text */
.footer::before {
  content: "ARAE";
  position: absolute;
  bottom: -5vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 25vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  z-index: 0;
  pointer-events: none;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
  margin-bottom: 4rem;
}

.footer-about .logo img {
  height: 52px;
  margin-bottom: 1.5rem;
}

.footer-about-text {
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 2rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--text-main);
  color: var(--text-dark);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.footer-contact i {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom ul {
  display: flex;
  gap: 2rem;
}

.footer-bottom a:hover {
  color: var(--text-main);
}

/* --- 17. Legal Pages specific content styling --- */
.legal-page {
  padding-top: calc(var(--header-height) + var(--space-lg));
}

.page-header-section {
  padding-top: calc(var(--header-height) + var(--space-md));
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.page-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.page-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* --- 18. Live Chat Floating Widget --- */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
  border: none;
  cursor: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-btn:hover {
  transform: scale(1.1);
}

/* --- 19. Responsive Media Queries --- */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card:nth-child(1),
  .bento-card:nth-child(4) {
    grid-column: span 1;
  }
  .calc-wrapper,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .dash-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-about {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
  }
  .stat-item h3 {
    font-size: 2rem;
  }
}

/* --- 20. Utilities & Animations (GSAP Targets) --- */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.char {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes floatOrb {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(50px, 50px) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}
@keyframes pulseGlow {
  0% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.1);
  }
}
