/* ========================================
   CREATIVE FRONT - Premium Tech Website
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #06060e;
  --bg-secondary: #0c0c18;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --accent-cyan: #00b4d8;
  --accent-blue: #0077b6;
  --accent-purple: #7c3aed;
  --accent-gold: #c9a84c;
  --accent-pink: #ec4899;

  --gradient-primary: linear-gradient(135deg, #00b4d8 0%, #7c3aed 100%);
  --gradient-hero: linear-gradient(135deg, #00b4d8 0%, #7c3aed 50%, #ec4899 100%);
  --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #f0d78c 50%, #c9a84c 100%);

  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #5a5a72;

  --border-color: rgba(255, 255, 255, 0.06);
  --glow-cyan: 0 0 30px rgba(0, 180, 216, 0.3);
  --glow-purple: 0 0 30px rgba(124, 58, 237, 0.3);

  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Space Grotesk', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-primary);
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

body {
  font-family: var(--font-ar);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[dir="ltr"] body {
  font-family: var(--font-en);
}

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

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

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.preloader-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 30px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
  border-radius: 12px;
}

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

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: preloaderBar 1.5s ease-out forwards;
}

@keyframes preloaderBar {
  to { width: 100%; }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 180, 216, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent-purple);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  padding: 12px 0;
  background: rgba(6, 6, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  filter: invert(1);
  transition: var(--transition);
}

.nav-logo:hover img {
  filter: invert(1) drop-shadow(0 0 10px rgba(0, 180, 216, 0.5));
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-en);
}

.lang-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-logo-3d {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 12px;
  animation: heroLogoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(0, 180, 216, 0.3));
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.15);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  color: var(--accent-cyan);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0, 180, 216, 0); }
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-2 {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-amp {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.6em;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.05);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

[dir="ltr"] .btn svg {
  transform: scaleX(1);
}

[dir="rtl"] .btn svg {
  transform: scaleX(-1);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* Floating shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: -10%;
  right: -5%;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  bottom: 10%;
  left: -5%;
  animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-pink);
  top: 30%;
  left: 10%;
  animation: floatShape 18s ease-in-out infinite 2s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: var(--accent-gold);
  bottom: 20%;
  right: 15%;
  animation: floatShape 12s ease-in-out infinite 1s;
}

.shape-5 {
  width: 100px;
  height: 100px;
  background: var(--accent-cyan);
  top: 15%;
  left: 50%;
  animation: floatShape 14s ease-in-out infinite 3s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.15);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid var(--border-color);
}

.about-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.about-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: -1;
}

[dir="rtl"] .about-decoration {
  right: auto;
  left: -20px;
}

.deco-line {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(0, 180, 216, 0.2);
  border-radius: var(--radius-lg);
}

.deco-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: absolute;
  top: -6px;
  right: -6px;
  box-shadow: var(--glow-cyan);
}

.about-mini-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.mini-stat {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.mini-stat:hover {
  border-color: rgba(0, 180, 216, 0.2);
  background: var(--bg-card-hover);
}

.mini-stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.mini-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-content .section-title {
  text-align: start;
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--accent-cyan);
  display: flex;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: rgba(0, 180, 216, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card:hover .service-card-glow {
  opacity: 1;
}

.service-icon-wrapper {
  margin-bottom: 24px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: var(--transition);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card:hover .service-icon {
  background: rgba(0, 180, 216, 0.12);
  box-shadow: var(--glow-cyan);
  transform: scale(1.05);
}

/* Alternate card accent colors */
.service-card:nth-child(2) .service-icon {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.15);
  color: var(--accent-purple);
}
.service-card:nth-child(2):hover .service-icon {
  background: rgba(124, 58, 237, 0.12);
  box-shadow: var(--glow-purple);
}
.service-card:nth-child(2)::before {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.service-card:nth-child(3) .service-icon {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.15);
  color: var(--accent-gold);
}
.service-card:nth-child(3):hover .service-icon {
  background: rgba(201, 168, 76, 0.12);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}
.service-card:nth-child(3)::before {
  background: var(--gradient-gold);
}

.service-hall-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.service-hall-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-hall:hover .service-hall-image img {
  transform: scale(1.05);
}

.service-card:nth-child(4)::before {
  background: linear-gradient(135deg, #10b981, #00b4d8);
}

.service-card:nth-child(5) .service-icon {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
}
.service-card:nth-child(5):hover .service-icon {
  background: rgba(236, 72, 153, 0.12);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
}
.service-card:nth-child(5)::before {
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.service-card:nth-child(6) .service-icon {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.15);
  color: #f97316;
}
.service-card:nth-child(6):hover .service-icon {
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}
.service-card:nth-child(6)::before {
  background: linear-gradient(135deg, #f97316, #c9a84c);
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-features li {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 100px;
  transition: var(--transition-fast);
}

.service-card:hover .service-features li {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* ===== WHY US SECTION ===== */
.whyus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.whyus-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
}

.whyus-card:hover {
  border-color: rgba(0, 180, 216, 0.15);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.whyus-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-en);
  line-height: 1;
}

[dir="ltr"] .whyus-number {
  right: auto;
  left: 20px;
}

.whyus-icon {
  color: var(--accent-cyan);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.whyus-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.whyus-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.whyus-card:nth-child(2) .whyus-icon { color: var(--accent-purple); }
.whyus-card:nth-child(3) .whyus-icon { color: var(--accent-gold); }
.whyus-card:nth-child(4) .whyus-icon { color: var(--accent-pink); }

/* ===== STATS SECTION ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 40px 20px;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: var(--border-color);
}

[dir="ltr"] .stat-item::after {
  right: 0;
  left: auto;
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-size: 56px;
  font-weight: 900;
  font-family: var(--font-en);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline;
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.stat-bar {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin: 16px auto 0;
  overflow: hidden;
}

.stat-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1.5s ease;
}

.stat-bar-fill.animated {
  width: var(--fill-width);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: rgba(0, 180, 216, 0.3);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item:hover {
  transform: translateY(-4px);
}

.portfolio-image {
  width: 100%;
  height: 100%;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    hsla(var(--hue), 60%, 50%, 0.1) 0%,
    hsla(var(--hue), 60%, 30%, 0.15) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-placeholder {
  color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(
    135deg,
    hsla(var(--hue), 60%, 50%, 0.15) 0%,
    hsla(var(--hue), 60%, 30%, 0.2) 100%
  );
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 24px 24px;
  background: linear-gradient(to top, rgba(6, 6, 14, 0.9) 0%, transparent 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

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

.portfolio-cat {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portfolio-overlay h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

/* ===== PARTNERS SECTION ===== */
.partners-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-slider {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: partnersScrollRtl 20s linear infinite;
  width: max-content;
}

[dir="ltr"] .partners-slider {
  animation: partnersScrollLtr 20s linear infinite;
}

.partner-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.partner-logo:hover {
  border-color: rgba(0, 180, 216, 0.2);
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: var(--transition);
}

.partner-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
}

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

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

/* ===== CTA SECTION ===== */
.section-cta {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

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

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 180, 216, 0.12);
  top: -30%;
  right: -10%;
  animation: floatShape 15s ease-in-out infinite;
}

.cta-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.1);
  bottom: -30%;
  left: -10%;
  animation: floatShape 18s ease-in-out infinite reverse;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0 12px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  border-radius: 0;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.form-group label {
  position: absolute;
  top: 16px;
  right: 0;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}

[dir="ltr"] .form-group label {
  right: auto;
  left: 0;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -8px;
  font-size: 12px;
  color: var(--accent-cyan);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group select:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
  width: 100%;
}

.btn-submit {
  align-self: flex-start;
}

[dir="rtl"] .btn-submit {
  align-self: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(0, 180, 216, 0.15);
  background: var(--bg-card-hover);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 180, 216, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.08);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
#footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}

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

.footer-logo {
  height: 40px;
  filter: invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links-group h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group li,
.footer-links-group a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .whyus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 6, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 24px;
  }

  .menu-btn {
    display: flex;
  }

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

  .about-content .section-title {
    text-align: center;
  }

  .about-content .section-tag {
    text-align: center;
    display: block;
  }

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

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-item::after {
    display: none;
  }

  .stat-number {
    font-size: 40px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

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

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

  .hero-title {
    font-size: clamp(36px, 8vw, 64px);
  }

  .about-mini-stats {
    gap: 12px;
  }

  .mini-stat {
    padding: 14px;
  }

  .mini-stat-number {
    font-size: 22px;
  }
}

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

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

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .about-mini-stats {
    flex-direction: column;
  }
}

/* ===== SELECTION STYLE ===== */
::selection {
  background: rgba(0, 180, 216, 0.3);
  color: #fff;
}

/* ===== SMOOTH SCROLLBAR FOR MOBILE ===== */
@media (pointer: coarse) {
  html {
    scroll-behavior: smooth;
  }
}
