/* ============================================
   DLIP - EPIC PREMIUM WEBSITE
   Cinematic Animations + 3D Effects
   ============================================ */

/* CSS Variables */
:root {
  --primary: #eddd74;
  --primary-rgb: 237, 221, 116;
  --primary-dark: #d4c55a;
  --dark: #0a1c28;
  --dark-rgb: 10, 28, 40;
  --dark-light: #0f2a3a;
  --dark-lighter: #153448;
  --white: #ffffff;
  --gray: rgba(237, 221, 116, 0.7);
  --gray-light: rgba(237, 221, 116, 0.4);
  
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-text: linear-gradient(135deg, #eddd74 0%, #ffd700 50%, #eddd74 100%);
  --glass: rgba(10, 28, 40, 0.6);
  --glass-border: rgba(237, 221, 116, 0.1);
  
  --shadow-glow: 0 0 40px rgba(237, 221, 116, 0.3);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.3);
  
  --font: 'Cairo', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: none; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

::selection {
  background: var(--primary);
  color: var(--dark);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { 
  background: var(--gradient);
  border-radius: 10px;
}

/* ============================================
   PRELOADER - EPIC
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.preloader-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.preloader-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  filter: blur(60px);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.preloader-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.preloader-logo {
  margin-bottom: 40px;
}

.logo-3d {
  display: flex;
  justify-content: center;
  gap: 5px;
  perspective: 1000px;
}

.logo-3d .letter {
  font-size: 80px;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 
    0 0 20px rgba(var(--primary-rgb), 0.5),
    0 0 40px rgba(var(--primary-rgb), 0.3),
    0 0 60px rgba(var(--primary-rgb), 0.2);
  opacity: 0;
  transform: translateY(50px) rotateX(-90deg);
  transform-style: preserve-3d;
}

.logo-reflection {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: -10px;
}

.logo-reflection span {
  font-size: 80px;
  font-weight: 900;
  background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.3), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scaleY(-1);
  filter: blur(2px);
  opacity: 0;
}

.preloader-text {
  margin-bottom: 30px;
  font-size: 18px;
  color: var(--gray);
  opacity: 0;
}

.loading-dots span {
  animation: dotBounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
}

.preloader-progress {
  width: 300px;
  margin: 0 auto;
  opacity: 0;
}

.progress-bar {
  height: 4px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 10px;
  transition: width 0.3s var(--ease);
  position: relative;
}

.progress-glow {
  position: absolute;
  top: -10px;
  right: 0;
  width: 50px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.8) 0%, transparent 70%);
  filter: blur(5px);
}

.progress-percent {
  margin-top: 15px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}


/* ============================================
   CUSTOM CURSOR - CROSSHAIR
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cursor.hover .cursor-dot {
  width: 30px;
  height: 30px;
  background: rgba(var(--primary-rgb), 0.5);
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 45px;
  height: 45px;
  pointer-events: none;
  z-index: 99998;
  transition: opacity 0.3s ease;
}

.cursor-follower svg {
  width: 100%;
  height: 100%;
}

.cursor-circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  transition: stroke-dashoffset 0.4s ease;
}

.cursor-follower.active .cursor-circle {
  stroke-dashoffset: 0;
}

.cursor-text {
  position: fixed;
  pointer-events: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  z-index: 99997;
  white-space: nowrap;
}

.cursor-text.visible {
  opacity: 1;
}

/* Hide on mobile/tablet */
@media (max-width: 1024px) {
  .cursor,
  .cursor-follower,
  .cursor-text {
    display: none !important;
  }
  
  body {
    cursor: auto !important;
  }
}

/* Hide wrapper - not needed */
.cursor-wrapper {
  display: contents;
}

/* ============================================
   NAVIGATION - GLASS PREMIUM
   ============================================ */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1100px;
  z-index: 1000;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(-100px);
  transition: all 0.6s var(--ease);
}

.nav.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-blur {
  position: absolute;
  inset: 0;
  background: rgba(var(--dark-rgb), 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.nav.scrolled .nav-blur {
  background: rgba(var(--dark-rgb), 0.9);
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  position: relative;
  background: var(--gradient);
  padding: 8px 14px;
  border-radius: 10px;
  overflow: hidden;
}

.logo-box span {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  position: relative;
  z-index: 1;
}

.logo-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.logo-sub {
  font-size: 10px;
  color: var(--gray);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  border-radius: 10px;
  overflow: hidden;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.link-bg {
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 10px;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}

.nav-link:hover .link-bg,
.nav-link.active .link-bg {
  transform: scale(1);
}

.nav-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  overflow: hidden;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  z-index: 0;
}

.cta-glow {
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  border-radius: 27px;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.nav-cta:hover .cta-glow {
  opacity: 0.5;
}

.cta-text,
.cta-icon {
  position: relative;
  z-index: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.toggle-line {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active .toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active .toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    background: rgba(var(--dark-rgb), 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s var(--ease);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 480px) {
  .logo-text { display: none; }
}


/* ============================================
   HERO SECTION - CINEMATIC
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 70% 20%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.bg-particles {
  position: absolute;
  inset: 0;
}

.bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(var(--primary-rgb), 0.15);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(var(--primary-rgb), 0.1);
  bottom: 20%;
  left: 5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(var(--primary-rgb), 0.12);
  top: 50%;
  left: 40%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(20px, 30px) scale(1.05); }
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.float-shape {
  position: absolute;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 20%;
  right: 15%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: 60%;
  right: 25%;
  animation-delay: -5s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  transform: rotate(45deg);
  bottom: 30%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-30px) rotate(180deg); opacity: 0.6; }
}

.float-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  animation: floatIcon 10s ease-in-out infinite;
}

.icon-1 { top: 25%; right: 20%; animation-delay: 0s; }
.icon-2 { top: 55%; right: 12%; animation-delay: -3s; }
.icon-3 { top: 75%; right: 22%; animation-delay: -6s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* Hero Content */
.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 10;
  margin-right: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.badge-icon {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
}

.badge-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.2), transparent);
  transform: translateX(-100%);
  animation: badgeGlow 3s infinite;
}

@keyframes badgeGlow {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

/* Hero Title - Cinematic */
.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 25px;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line .word {
  display: inline-block;
  margin-left: 15px;
  opacity: 0;
  transform: translateY(100%);
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-description {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 35px;
  opacity: 0;
  transform: translateY(30px);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

/* Hero Partners */
.hero-partners {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
}

.partners-img {
  max-height: 60px;
  filter: brightness(1.1);
  transition: transform 0.5s var(--ease);
}

.partners-img:hover {
  transform: scale(1.02);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-radius: 15px;
}

.stat-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 18px;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-suffix {
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: var(--gray);
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  left: -50px;
  bottom: 0;
  z-index: 5;
  opacity: 0;
  transform: translateX(-100px);
}

.visual-container {
  position: relative;
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
  filter: blur(60px);
  animation: visualGlow 4s ease-in-out infinite;
}

@keyframes visualGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.visual-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 50%;
  animation: ringPulse 4s ease-in-out infinite;
}

.ring-1 { width: 300px; height: 300px; animation-delay: 0s; }
.ring-2 { width: 400px; height: 400px; animation-delay: 0.5s; }
.ring-3 { width: 500px; height: 500px; animation-delay: 1s; }

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}

.visual-image {
  position: relative;
  height: 95vh;
  max-height: 850px;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(var(--primary-rgb), 0.3));
  z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 10;
  opacity: 0;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(var(--primary-rgb), 0.5);
  border-radius: 13px;
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--primary);
  border-radius: 4px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

.scroll-text {
  font-size: 12px;
  color: var(--gray);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-visual {
    position: relative;
    margin-top: 40px;
  }

  .visual-image {
    height: 50vh;
    max-height: 400px;
  }

  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .floating-elements { display: none; }
}


/* ============================================
   BUTTONS - MAGNETIC + GLOW
   ============================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-icon {
  transform: translateX(-5px);
}

.btn-primary {
  color: var(--dark);
}

.btn-primary .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  z-index: 0;
}

.btn-primary .btn-glow {
  position: absolute;
  inset: -3px;
  background: var(--gradient);
  border-radius: 33px;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.btn-primary:hover .btn-glow {
  opacity: 0.6;
}

.btn-secondary,
.btn-outline {
  color: var(--primary);
}

.btn-secondary .btn-border,
.btn-outline .btn-border {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 30px;
  transition: all 0.3s var(--ease);
}

.btn-secondary:hover .btn-border,
.btn-outline:hover .btn-border {
  background: rgba(var(--primary-rgb), 0.1);
}

.btn-full {
  width: 100%;
}

/* Glass Card */
.glass-card {
  background: rgba(var(--dark-rgb), 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(var(--primary-rgb), 0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.glow-1 {
  background: var(--primary);
  top: -200px;
  right: -200px;
}

.glow-2 {
  background: var(--primary);
  bottom: -200px;
  left: -200px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 30px;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 25px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-title .word {
  display: inline-block;
  margin-left: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.about-card {
  position: relative;
  padding: 35px 25px;
  border-radius: 20px;
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--primary-rgb), 0.15) 0%, transparent 50%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.about-card:hover .card-glow {
  opacity: 1;
}

.card-border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), transparent, rgba(var(--primary-rgb), 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;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-icon {
  position: relative;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 20px;
}

.icon-ring {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 18px;
  animation: iconRing 2s ease-in-out infinite;
}

@keyframes iconRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0; }
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-card li {
  font-size: 14px;
  color: var(--gray);
  padding-right: 15px;
  position: relative;
}

.about-card li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--primary);
}

.about-card li strong {
  color: var(--primary);
}

.about-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--dark);
}

.liquid-bg {
  position: absolute;
  inset: 0;
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.service-card {
  position: relative;
  padding: 40px 30px;
  background: rgba(var(--dark-rgb), 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
}

.service-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover .service-bg {
  opacity: 1;
}

.service-content {
  position: relative;
  z-index: 1;
}

.service-icon {
  position: relative;
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 25px;
  transition: all 0.5s var(--ease);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.icon-particles {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover .icon-particles {
  opacity: 1;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 14px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary);
}

.service-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
  transition: left 0.8s var(--ease);
}

.service-card:hover .service-shine {
  left: 100%;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   MAP SECTION - CYBER
   ============================================ */
.map-section {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  perspective: 500px;
  transform: rotateX(60deg);
  transform-origin: center top;
  opacity: 0.5;
}

.scan-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(var(--primary-rgb), 0.02) 2px,
    rgba(var(--primary-rgb), 0.02) 4px
  );
  pointer-events: none;
}

.map-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.map-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--dark);
}

.map-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.frame-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary);
}

.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.map-image {
  width: 100%;
  display: block;
}

/* Hotspots */
.hotspot {
  position: absolute;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 20;
}

.hotspot-ping {
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
  animation: hotspotPing 2s ease-out infinite;
}

@keyframes hotspotPing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.hotspot-core {
  position: absolute;
  inset: 8px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 16px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.4);
}

.hotspot:hover .hotspot-core {
  transform: scale(1.2);
  box-shadow: 0 5px 30px rgba(var(--primary-rgb), 0.6);
}

.hotspot-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  padding: 20px;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 30;
}

.hotspot:hover .hotspot-tooltip,
.hotspot.active .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--primary);
}

.tooltip-header i {
  font-size: 18px;
}

.tooltip-header h4 {
  font-size: 16px;
  font-weight: 700;
}

.hotspot-tooltip p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 10px;
}

.hotspot-tooltip ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hotspot-tooltip li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-light);
}

.hotspot-tooltip li i {
  color: var(--primary);
  font-size: 10px;
}

/* Map Effects */
.map-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: mapScan 4s linear infinite;
  opacity: 0.6;
}

@keyframes mapScan {
  0% { top: 0; }
  100% { top: 100%; }
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(var(--primary-rgb), 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Map Controls */
.map-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

.map-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(var(--dark-rgb), 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--primary);
  font-size: 14px;
  transition: all 0.3s var(--ease);
}

.map-btn:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  background: var(--dark-light);
}

.aurora-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%);
  animation: auroraPulse 10s ease-in-out infinite;
}

@keyframes auroraPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.stars-bg {
  position: absolute;
  inset: 0;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.video-player {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.video-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.frame-line {
  position: absolute;
  background: var(--primary);
}

.line-top, .line-bottom {
  height: 2px;
  width: 50px;
}

.line-left, .line-right {
  width: 2px;
  height: 50px;
}

.line-top { top: 0; left: 0; }
.line-bottom { bottom: 0; right: 0; }
.line-left { top: 0; left: 0; }
.line-right { bottom: 0; right: 0; }

.video-player video {
  width: 100%;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--dark-rgb), 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  transition: opacity 0.5s;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn-wrapper {
  position: relative;
}

.play-btn-ring {
  position: absolute;
  inset: -15px;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
  animation: playRing 2s ease-out infinite;
}

@keyframes playRing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--dark);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-glow);
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.5);
}

.play-btn i {
  margin-right: -5px;
}

.video-info {
  text-align: center;
}

.video-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.video-info p {
  font-size: 14px;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(var(--dark-rgb), 0.9));
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-player:hover .video-controls {
  opacity: 1;
}

.progress-container {
  margin-bottom: 15px;
}

.video-progress {
  height: 4px;
  background: rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.video-progress .progress-filled {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 10px;
}

.video-progress .progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.video-progress:hover .progress-handle {
  opacity: 1;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border-radius: 8px;
  transition: all 0.2s;
}

.control-btn:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.time-display {
  font-size: 13px;
  color: var(--gray);
}

/* Video Stats */
.video-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.video-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 15px;
}

.video-stat i {
  font-size: 20px;
  color: var(--primary);
}

.video-stat .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.video-stat .stat-name {
  font-size: 12px;
  color: var(--gray);
}

/* Related Videos */
.related-videos {
  margin-top: 60px;
}

.related-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.related-card {
  background: rgba(var(--dark-rgb), 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  transform-style: preserve-3d;
}

.related-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
}

.related-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.related-card:hover .related-thumb img {
  transform: scale(1.05);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--dark-rgb), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.related-card:hover .thumb-overlay {
  opacity: 1;
}

.play-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 16px;
}

.duration {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(var(--dark-rgb), 0.8);
  border-radius: 6px;
  font-size: 12px;
  color: var(--primary);
}

.related-info {
  padding: 18px;
}

.related-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.related-info p {
  font-size: 13px;
  color: var(--gray);
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: var(--dark);
}

.wave-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 100%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%);
}

.particles-bg {
  position: absolute;
  inset: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 15px;
  transition: all 0.3s var(--ease);
}

.contact-card:hover {
  transform: translateX(-8px);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.contact-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--dark);
  flex-shrink: 0;
}

.icon-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  border-radius: 12px;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-card:hover .icon-glow {
  opacity: 0.5;
}

.contact-details h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-details p {
  font-size: 14px;
  color: var(--gray);
}

/* Contact Form */
.contact-form {
  padding: 40px;
  border-radius: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 15px 8px;
  background: rgba(var(--primary-rgb), 0.05);
  border: none;
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 10px 10px 0 0;
  color: var(--primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(var(--primary-rgb), 0.08);
  border-bottom-color: var(--primary);
}

.form-group label {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--gray);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.form-group textarea ~ label {
  top: 18px;
  transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 11px;
  color: var(--primary);
  transform: none;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s var(--ease);
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
  width: 100%;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-light);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
  filter: blur(80px);
}

.footer-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(var(--primary-rgb), 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-about {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  transition: all 0.3s var(--ease);
}

.social-link:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray);
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
  padding-right: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--gray);
}

.footer-contact-item i {
  color: var(--primary);
  width: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray);
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--gray);
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 55px;
  height: 55px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.5);
}

.progress-ring {
  position: absolute;
  inset: -3px;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke: rgba(var(--primary-rgb), 0.3);
  stroke-width: 2;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  transition: stroke-dashoffset 0.3s;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: var(--gradient);
  color: var(--dark);
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease);
}

.toast.show {
  transform: translateX(0);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-element {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-text .word {
  opacity: 0;
  transform: translateY(100%);
}

/* ============================================
   TILT EFFECT
   ============================================ */
[data-tilt] {
  transform-style: preserve-3d;
}

[data-tilt] * {
  transform: translateZ(20px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================
   WHITE BREAK SECTION
   ============================================ */
.white-break {
  background: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.white-break::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
}

.white-break::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
}

.white-break-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.white-break-icon {
  width: 80px;
  height: 80px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 32px;
  color: var(--primary);
  box-shadow: 0 10px 40px rgba(10, 28, 40, 0.3);
}

.white-break-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 20px;
}

.white-break-text {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 40px;
}

.white-break-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.wb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.wb-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--dark);
}

.wb-label {
  font-size: 14px;
  color: #777;
  font-weight: 500;
}

.wb-divider {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

@media (max-width: 768px) {
  .white-break {
    padding: 60px 0;
  }
  
  .white-break-stats {
    gap: 25px;
  }
  
  .wb-divider {
    display: none;
  }
}


/* ============================================
   SIDE LOGOS DECORATION
   ============================================ */
.side-logos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.side-logo {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 20px 0;
}

.side-logo img {
  width: 50px;
  height: auto;
  object-fit: contain;
  opacity: 0.15;
}

/* Right Side */
.side-logo-right {
  right: 60px;
  align-items: flex-end;
}

/* Left Side */
.side-logo-left {
  left: 60px;
  align-items: flex-start;
}

/* Hide on smaller screens */
@media (max-width: 1200px) {
  .side-logo img {
    width: 40px;
  }
  
  .side-logo-right {
    right: 40px;
  }
  
  .side-logo-left {
    left: 40px;
  }
}

@media (max-width: 900px) {
  .side-logos {
    display: none;
  }
}
