/* ============================================
   CREOTECK - Premium Website Stylesheet
   Inspired by ReactBits UI Components
   ============================================ */

/* --- CSS Custom Properties / Design Tokens --- */
:root {
  --primary: #5B4CFF;
  --primary-light: #7B6FFF;
  --primary-dark: #4438CC;
  --primary-glow: rgba(91, 76, 255, 0.35);
  --primary-subtle: rgba(91, 76, 255, 0.08);

  --dark-900: #06060e;
  --dark-800: #0a0a16;
  --dark-700: #111122;
  --dark-600: #1a1a2e;
  --dark-500: #2a2a40;
  --gray-400: #6b6b80;
  --gray-300: #9999ab;
  --gray-200: #ccccdd;
  --gray-100: #e8e8f0;
  --light-50: #f5f5f9;
  --white: #ffffff;

  --accent-green: #00d4aa;
  --accent-blue: #00aaff;
  --accent-pink: #ff4c8b;
  --accent-orange: #ff8c42;
  --accent-cyan: #00e5ff;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-padding: 120px 0;
  --container-width: 1200px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px var(--primary-glow);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-900);
  color: var(--gray-200);
  line-height: 1.7;
  cursor: default;
}

body.loading {
  overflow: hidden;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol { list-style: none; }

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

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 120px;
  margin-bottom: 40px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--dark-600);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
  animation: preloaderSlide 1.2s ease-in-out infinite;
}

.preloader-counter {
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes preloaderSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, background 0.3s, transform 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(91, 76, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s,
              transform 0.15s ease-out;
  transform: translate(-50%, -50%);
}

.cursor-dot.hovering {
  width: 60px;
  height: 60px;
  background: rgba(91, 76, 255, 0.15);
  mix-blend-mode: normal;
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--primary);
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--primary-light));
  z-index: 1001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* --- Noise Texture Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.preloader ~ .noise-overlay {
  z-index: 9997;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-dark {
  background: var(--dark-800);
}

.section-gradient {
  background: linear-gradient(180deg, var(--dark-900) 0%, var(--dark-800) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }

/* --- Shiny Text Effect --- */
.shiny-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    120deg,
    var(--white) 0%,
    var(--white) 40%,
    var(--primary-light) 50%,
    var(--white) 60%,
    var(--white) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinySlide 3s ease-in-out infinite;
}

@keyframes shinySlide {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--gray-300);
  font-size: 1.05rem;
  line-height: 1.8;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--gray-300);
}

/* --- Section Headers --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-light);
  margin-bottom: 20px;
  padding: 6px 16px 6px 6px;
  background: var(--primary-subtle);
  border: 1px solid rgba(91, 76, 255, 0.15);
  border-radius: 50px;
}

.section-label .label-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.section-header {
  margin-bottom: 72px;
}

.section-header.text-center .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  isolation: isolate;
}

/* Ripple / Shine effect on buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 40px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--dark-500);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--primary-subtle);
  box-shadow: 0 0 30px rgba(91, 76, 255, 0.15);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-light);
  padding: 16px 4px;
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-ghost .arrow {
  transition: transform var(--transition-smooth);
}

.btn-ghost:hover .arrow {
  transform: translateX(6px);
}

.btn-full {
  width: 100%;
}

/* Magnetic button wrapper */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: padding var(--transition-smooth);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 10px 12px 10px 24px;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 24px;
}

.navbar.scrolled .container {
  background: rgba(6, 6, 14, 0.85);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav-logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.nav-logo img {
  height: 28px;
  width: auto;
  filter: invert(1);
  transition: opacity var(--transition-fast);
}

.nav-logo:hover img {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  position: relative;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  position: relative;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* DarkVeil WebGL Canvas */
.darkveil-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-bg .darkveil-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 14, 0) 0%,
    rgba(6, 6, 14, 0) 75%,
    rgba(6, 6, 14, 0.5) 90%,
    rgba(6, 6, 14, 1) 100%
  );
}

/* Aurora Background Effect */
.hero-bg .aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg .aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero-bg .aurora-blob:nth-child(1) {
  top: -15%;
  left: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  animation: auroraFloat1 12s ease-in-out infinite;
}

.hero-bg .aurora-blob:nth-child(2) {
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  animation: auroraFloat2 15s ease-in-out infinite;
}

.hero-bg .aurora-blob:nth-child(3) {
  top: 30%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
  animation: auroraFloat3 10s ease-in-out infinite;
  opacity: 0.2;
}

.hero-bg .grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(3) { left: 35%; animation-duration: 7s; animation-delay: 2s; }
.particle:nth-child(4) { left: 50%; animation-duration: 11s; animation-delay: 0.5s; }
.particle:nth-child(5) { left: 65%; animation-duration: 9s; animation-delay: 3s; }
.particle:nth-child(6) { left: 80%; animation-duration: 8s; animation-delay: 1.5s; }
.particle:nth-child(7) { left: 90%; animation-duration: 12s; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 45%; animation-duration: 9s; animation-delay: 4s; }

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(91, 76, 255, 0.08);
  border: 1px solid rgba(91, 76, 255, 0.15);
  border-radius: 50px;
  padding: 8px 20px 8px 14px;
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s ease forwards 0.5s;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-green);
}

.hero h1 {
  margin-bottom: 28px;
  overflow: hidden;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

/* Variable Proximity */
.variable-proximity {
  font-family: 'Roboto Flex', 'Inter', sans-serif;
  cursor: default;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Split Text Animation */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.animate .char {
  opacity: 1;
  transform: translateY(0);
}

/* Blur Reveal Text Animation */
.blur-reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(15px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-reveal.animate {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hero p {
  font-size: 1.2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
  color: var(--gray-400);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s ease forwards 1.4s;
}

.hero-stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 1.6s;
}

.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Counter Animation */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* --- Marquee / Clients --- */
.clients-section {
  padding: 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.marquee-track span:hover {
  opacity: 1;
  color: var(--white);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Cards with Spotlight/Tilt Effect --- */
.card {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Spotlight gradient follows mouse */
.card .card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(91, 76, 255, 0.08),
    transparent 60%
  );
}

.card:hover .card-spotlight {
  opacity: 1;
}

/* Gradient border on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 76, 255, 0), rgba(91, 76, 255, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background var(--transition-slow);
  pointer-events: none;
}

.card:hover::before {
  background: linear-gradient(135deg, rgba(91, 76, 255, 0.5), rgba(0, 170, 255, 0.3));
}

.card:hover {
  transform: translateY(-6px) perspective(1000px);
  border-color: transparent;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(91, 76, 255, 0.08);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-subtle), rgba(0, 170, 255, 0.06));
  border: 1px solid rgba(91, 76, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-smooth);
}

.card:hover .card-icon {
  background: linear-gradient(135deg, rgba(91, 76, 255, 0.15), rgba(0, 170, 255, 0.1));
  border-color: rgba(91, 76, 255, 0.25);
  transform: scale(1.05);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.card:hover h3 {
  color: var(--primary-light);
}

.card p {
  font-size: 0.95rem;
  color: var(--gray-400);
}

.card .feature-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card .feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-300);
}

.card .feature-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-green);
  flex-shrink: 0;
}

/* --- BorderGlow Card Effect --- */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 20px;
  --glow-padding: 35px;
  --cone-spread: 25;
  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: grid;
  border: 1px solid rgb(255 255 255 / 10%);
  background: var(--card-bg, #0d0b14);
  overflow: visible;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 2px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px,
    rgba(0, 0, 0, 0.1) 0px 4px 8px,
    rgba(0, 0, 0, 0.1) 0px 8px 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.border-glow-card:hover {
  transform: translate3d(0, -6px, 0.01px);
  box-shadow:
    rgba(0, 0, 0, 0.12) 0px 2px 4px,
    rgba(0, 0, 0, 0.12) 0px 4px 8px,
    rgba(0, 0, 0, 0.12) 0px 8px 16px,
    rgba(0, 0, 0, 0.12) 0px 16px 32px,
    rgba(91, 76, 255, 0.06) 0px 0px 40px;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* colored mesh-gradient border */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #0d0b14) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one, radial-gradient(at 80% 55%, #7B6FFF 0px, transparent 50%)) border-box,
    var(--gradient-two, radial-gradient(at 69% 34%, #00aaff 0px, transparent 50%)) border-box,
    var(--gradient-three, radial-gradient(at 8% 6%, #ff4c8b 0px, transparent 50%)) border-box,
    var(--gradient-four, radial-gradient(at 41% 38%, #7B6FFF 0px, transparent 50%)) border-box,
    var(--gradient-five, radial-gradient(at 86% 85%, #00aaff 0px, transparent 50%)) border-box,
    var(--gradient-six, radial-gradient(at 82% 18%, #ff4c8b 0px, transparent 50%)) border-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, #00aaff 0px, transparent 50%)) border-box,
    var(--gradient-base, linear-gradient(#7B6FFF 0 100%)) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one, radial-gradient(at 80% 55%, #7B6FFF 0px, transparent 50%)) padding-box,
    var(--gradient-two, radial-gradient(at 69% 34%, #00aaff 0px, transparent 50%)) padding-box,
    var(--gradient-three, radial-gradient(at 8% 6%, #ff4c8b 0px, transparent 50%)) padding-box,
    var(--gradient-four, radial-gradient(at 41% 38%, #7B6FFF 0px, transparent 50%)) padding-box,
    var(--gradient-five, radial-gradient(at 86% 85%, #00aaff 0px, transparent 50%)) padding-box,
    var(--gradient-six, radial-gradient(at 82% 18%, #ff4c8b 0px, transparent 50%)) padding-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, #00aaff 0px, transparent 50%)) padding-box,
    var(--gradient-base, linear-gradient(#7B6FFF 0 100%)) padding-box;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add;
  -webkit-mask-composite: source-out, source-over, source-over, source-over, source-over, source-over;
  opacity: calc(var(--fill-opacity, 0.5) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(260deg 80% 70% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(260deg 80% 70% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(260deg 80% 70% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(260deg 80% 70% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(260deg 80% 70% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(260deg 80% 70% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(260deg 80% 70% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(260deg 80% 70% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(260deg 80% 70% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(260deg 80% 70% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(260deg 80% 70% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(260deg 80% 70% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(260deg 80% 70% / 10%));
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  z-index: 1;
  padding: 40px;
}

.border-glow-inner .card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-subtle), rgba(0, 170, 255, 0.06));
  border: 1px solid rgba(91, 76, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-smooth);
}

.border-glow-card:hover .border-glow-inner .card-icon {
  background: linear-gradient(135deg, rgba(91, 76, 255, 0.15), rgba(0, 170, 255, 0.1));
  border-color: rgba(91, 76, 255, 0.25);
  transform: scale(1.05);
}

.border-glow-inner .card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 1.5;
}

.border-glow-inner h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

.border-glow-card:hover .border-glow-inner h3 {
  color: var(--primary-light);
}

.border-glow-inner p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.border-glow-inner .feature-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.border-glow-inner .feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-300);
}

.border-glow-inner .feature-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-green);
  flex-shrink: 0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-slow);
  group: portfolio;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(91, 76, 255, 0.08);
}

.portfolio-card .portfolio-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.portfolio-card .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.08);
}

.portfolio-card .portfolio-image .placeholder-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-image .placeholder-visual {
  transform: scale(1.08);
}

.portfolio-card .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 14, 0.95) 0%, rgba(6, 6, 14, 0.4) 40%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .view-btn {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-smooth) 0.1s;
}

.portfolio-card:hover .portfolio-overlay .view-btn {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-info {
  padding: 24px 28px;
}

.portfolio-info .tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.portfolio-info .tag {
  padding: 4px 14px;
  background: var(--primary-subtle);
  border: 1px solid rgba(91, 76, 255, 0.12);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* --- Portfolio Filters --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--white);
  background: var(--dark-600);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* --- Portfolio Skeleton Loader --- */
.portfolio-skeleton-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.portfolio-skeleton {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--dark-600);
  position: relative;
  overflow: hidden;
}

.skeleton-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

.skeleton-info {
  padding: 24px 28px;
}

.skeleton-tag {
  width: 60px;
  height: 22px;
  border-radius: 50px;
  background: var(--dark-600);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.skeleton-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmer 1.5s infinite 0.2s;
}

.skeleton-title {
  width: 75%;
  height: 20px;
  border-radius: 4px;
  background: var(--dark-600);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.skeleton-title::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmer 1.5s infinite 0.4s;
}

.skeleton-text {
  width: 90%;
  height: 14px;
  border-radius: 4px;
  background: var(--dark-600);
  position: relative;
  overflow: hidden;
}

.skeleton-text::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmer 1.5s infinite 0.6s;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 1024px) {
  .portfolio-skeleton-wrap { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-slow);
  position: relative;
}

.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 76, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-card .stars svg {
  width: 16px;
  height: 16px;
  fill: #f5a623;
}

.testimonial-card blockquote {
  font-size: 0.98rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.92rem;
}

.testimonial-author .role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 76, 255, 0.15);
}

.blog-card .blog-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.blog-badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(91, 76, 255, 0.4);
}

.blog-card .blog-image .placeholder-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-image .placeholder-visual {
  transform: scale(1.06);
}

.blog-card .blog-image .placeholder-visual svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  stroke: var(--white);
  fill: none;
  stroke-width: 1;
}

.blog-card .blog-content {
  padding: 28px;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.blog-card .blog-meta .category {
  color: var(--primary-light);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card:hover h3 {
  color: var(--primary-light);
}

.blog-card .blog-content p {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.blog-card .read-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .read-more svg {
  transform: translateX(4px);
}

/* --- Blog Featured --- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
  transition: all var(--transition-slow);
}

.blog-featured:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 76, 255, 0.15);
}

.blog-featured .featured-image {
  min-height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--dark-600));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-featured .featured-image svg {
  width: 80px;
  height: 80px;
  opacity: 0.2;
  stroke: var(--white);
  fill: none;
  stroke-width: 1;
}

.blog-featured .featured-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured .featured-content .blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.blog-featured .featured-content .category {
  color: var(--primary-light);
  font-weight: 600;
}

.blog-featured .featured-content h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-featured .featured-content p {
  margin-bottom: 28px;
  line-height: 1.7;
}

/* --- Blog Pagination --- */
.blog-pagination {
  margin-top: 48px;
}

.blog-pagination nav[aria-label] {
  padding: 0;
  border: none;
}

.blog-pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.blog-pagination .pagination li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-pagination .pagination li a:hover {
  background: var(--dark-600);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.blog-pagination .pagination li.active a {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(91, 76, 255, 0.3);
  pointer-events: none;
}

/* --- Blog Post Detail --- */
.blog-post-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-hero-content .blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.blog-post-hero-content .blog-meta .category {
  color: var(--primary-light);
  font-weight: 600;
}

/* Blog Post Layout — article + sidebar */
.blog-post-wrapper {
  padding: 80px 0;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.blog-post-main {
  min-width: 0;
}

.blog-post-article {
  min-width: 0;
}

/* Related posts inside main column */
.blog-related-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.related-post-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  text-decoration: none;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.related-post-card:hover {
  border-color: rgba(123, 111, 255, 0.3);
  transform: translateY(-2px);
}

.related-post-thumb {
  width: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-post-info {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.related-post-info .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.related-post-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.related-post-card:hover .related-post-info h4 {
  color: var(--primary-light);
}

.related-post-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.blog-post-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.blog-post-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--gray-300);
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  color: var(--white);
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.blog-post-body h2 { font-size: 1.6rem; }
.blog-post-body h3 { font-size: 1.3rem; }
.blog-post-body h4 { font-size: 1.1rem; }

.blog-post-body p {
  margin-bottom: 1.5em;
}

.blog-post-body a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.blog-post-body a:hover {
  color: var(--primary);
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2em 0;
}

.blog-post-body ul,
.blog-post-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.blog-post-body li {
  margin-bottom: 0.5em;
}

.blog-post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1em 1.5em;
  margin: 2em 0;
  background: var(--dark-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--gray-200);
}

.blog-post-body pre {
  background: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.25em;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-post-body code {
  background: var(--dark-700);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-light);
}

.blog-post-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--gray-200);
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.blog-post-body table th,
.blog-post-body table td {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.blog-post-body table th {
  background: var(--dark-700);
  color: var(--white);
  font-weight: 600;
}

.blog-post-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 3em 0;
}

.blog-post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-post-footer .btn svg {
  margin-right: 8px;
}

/* --- Blog Sidebar --- */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background 0.25s ease;
}

.sidebar-post:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-post-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-post-info {
  flex: 1;
  min-width: 0;
}

.sidebar-post-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-200);
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.sidebar-post:hover .sidebar-post-info h5 {
  color: var(--primary-light);
}

.sidebar-post-info span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-post-wrapper {
    padding: 48px 0;
  }
  .blog-post-body { font-size: 1rem; }
  .blog-post-body h2 { font-size: 1.35rem; }
  .blog-post-body h3 { font-size: 1.15rem; }
  .related-post-card {
    flex-direction: column;
  }
  .related-post-thumb {
    width: 100%;
    height: 180px;
  }
  .related-post-info {
    padding: 16px;
  }
}

/* --- CTA Section --- */
.cta-section {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .cta-bg {
  position: absolute;
  inset: 0;
}

.cta-section .cta-bg .magic-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-section .cta-bg .magic-rings canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 36px;
  transition: transform var(--transition-smooth);
}

.contact-info-item:hover {
  transform: translateX(6px);
}

.contact-info-item .icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-subtle), rgba(0, 170, 255, 0.06));
  border: 1px solid rgba(91, 76, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}

.contact-info-item:hover .icon {
  background: linear-gradient(135deg, rgba(91, 76, 255, 0.15), rgba(0, 170, 255, 0.1));
  border-color: var(--primary);
}

.contact-info-item .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.contact-form {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 76, 255, 0.2), transparent 50%, rgba(0, 170, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-200);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  background: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 76, 255, 0.12);
  background: var(--dark-900);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.social-link {
  width: 46px;
  height: 46px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--gray-400);
  transition: fill var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.social-link:hover svg {
  fill: var(--white);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 200px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: 24px;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* --- About Page --- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-content .section-label { align-self: flex-start; }

.story-content h2 {
  margin-bottom: 24px;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.story-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--dark-800);
}

.story-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.story-visual .visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.story-visual .visual-inner .brand-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  opacity: 0.15;
  letter-spacing: -0.02em;
}

.story-visual .visual-inner .year-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
  opacity: 0.5;
}

.story-visual .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 44px 24px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 76, 255, 0.15);
}

.stat-card h3 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 0.88rem;
  color: var(--gray-400);
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  transition: all var(--transition-slow);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 76, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.team-card .team-avatar {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  transition: transform var(--transition-spring);
  box-shadow: 0 8px 24px rgba(91, 76, 255, 0.2);
  overflow: hidden;
}

.team-card .team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card:hover .team-avatar {
  transform: scale(1.1) rotate(5deg);
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card .position {
  font-size: 0.82rem;
  color: var(--primary-light);
  margin-bottom: 0;
  font-weight: 500;
}

.team-card p {
  font-size: 0.85rem;
}

/* --- Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Connecting line between steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-subtle), var(--primary), var(--primary-subtle));
  opacity: 0.3;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.process-step .step-number {
  width: 56px;
  height: 56px;
  background: var(--dark-700);
  border: 2px solid rgba(91, 76, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: all var(--transition-smooth);
}

.process-step:hover .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 24px var(--primary-glow);
  transform: scale(1.1);
}

.process-step h4 {
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
}

/* --- Tech Tags --- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-tag {
  padding: 10px 24px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-300);
  transition: all var(--transition-smooth);
}

.tech-tag:hover {
  background: var(--primary-subtle);
  border-color: rgba(91, 76, 255, 0.3);
  color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(91, 76, 255, 0.1);
}

/* --- Newsletter Form --- */
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 76, 255, 0.12);
}

.newsletter-form input::placeholder {
  color: var(--gray-400);
}

/* --- FAQ --- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-slow);
}

.faq-item:hover {
  border-color: rgba(91, 76, 255, 0.15);
  transform: translateY(-2px);
}

.faq-item h4 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--white);
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* --- Map Placeholder --- */
.map-section {
  height: 400px;
  background: linear-gradient(180deg, var(--dark-800), var(--dark-700));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-section p {
  position: relative;
  z-index: 1;
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  background: var(--dark-800);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 26px;
  filter: invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 280px;
  margin-bottom: 20px;
  color: var(--gray-400);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* --- Footer Newsletter (inside Contact column) --- */
.footer-newsletter-title {
  margin-top: 24px;
}

.footer-newsletter-desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.footer-newsletter-form input::placeholder {
  color: var(--gray-500);
}

.footer-newsletter-form input:focus {
  border-color: var(--primary-light);
}

.footer-newsletter-form .btn {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.85rem;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--gray-300);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-fast);
}

.back-to-top:hover svg {
  stroke: var(--white);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 400ms; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 20px); }
  66% { transform: translate(30px, -40px); }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-green); }
  50% { opacity: 0.4; box-shadow: 0 0 2px var(--accent-green); }
}

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

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid::before {
    display: none;
  }

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

  .hero-stats {
    gap: 32px;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured .featured-content {
    padding: 32px;
  }

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

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

@media (max-width: 900px) {
  .navbar {
    padding: 12px 16px;
  }

  .navbar .container {
    padding: 10px 16px;
    border-radius: 16px;
    position: relative;
    flex-wrap: wrap;
  }

  .navbar.scrolled {
    padding: 8px 16px;
  }

  .navbar.menu-open .container {
    border-radius: 16px;
    background: rgba(6, 6, 14, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    order: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-color: transparent;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
  }

  .nav-links.open {
    max-height: 500px;
    opacity: 1;
    padding: 12px 0 8px;
    border-color: rgba(255, 255, 255, 0.08);
    margin-top: 12px;
  }

  .nav-links a {
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--gray-300);
    width: 100%;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.2s ease, background 0.2s ease;
  }

  .nav-links.open a {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links.open a:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.08s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.11s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.14s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.17s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.20s; }

  .nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-cta { display: none; }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero-content { text-align: center; }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons { justify-content: center; }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: center;
  }

  .services-grid,
  .testimonials-grid,
  .blog-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .stats-row,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .page-hero {
    padding: 160px 0 60px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .card { padding: 28px; }
  .hero { padding-top: 80px; }

  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .contact-form { padding: 28px; }
}

/* --- Lightbox / Portfolio Popup --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 6, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay .lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  cursor: default;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-title {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}

.lightbox-overlay.active .lightbox-title {
  opacity: 1;
}

/* ============================================
   LEGAL PAGES (Privacy Policy & Terms)
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content .legal-updated {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--gray-200);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal-content ul li {
  position: relative;
  padding-left: 20px;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.legal-content a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--accent-blue);
}

/* ============================================
   FORM TOAST NOTIFICATIONS
   ============================================ */
.form-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.form-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.form-toast.success {
  background: rgba(0, 200, 120, 0.9);
  backdrop-filter: blur(10px);
}

.form-toast.error {
  background: rgba(220, 50, 50, 0.9);
  backdrop-filter: blur(10px);
}

/* Spinner inside submit button */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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