/* ===== Base Styles ===== */
:root {
  /* Colors */
  --primary: #e8aa41;
  --primary-light: #ffd58a;
  --primary-dark: #d68f2a;
  --black: #0b0d12;
  --black-2: #0e1117;
  --white: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e7ebf4;
  --gray-300: #cbd5e1;
  --gray-400: #93a0b3;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #1f2430;
  --gray-800: #2e3646;
  
  /* Theme */
  --bg: var(--black);
  --bg-2: var(--black-2);
  --text: var(--gray-200);
  --text-light: var(--gray-100);
  --text-muted: var(--gray-400);
  --border: var(--gray-700);
  --border-light: var(--gray-800);
  --card-bg: var(--black-2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-brand: 0 10px 30px rgba(232, 170, 65, 0.25);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme */
[data-theme="light"] {
  --bg: var(--white);
  --bg-2: var(--gray-100);
  --text: var(--gray-600);
  --text-light: var(--black);
  --text-muted: var(--gray-500);
  --border: var(--gray-300);
  --border-light: var(--gray-200);
  --card-bg: var(--white);
  --shadow: 0 10px 20px rgba(16, 24, 40, 0.08);
  --shadow-brand: 0 10px 20px rgba(232, 170, 65, 0.15);
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

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

a:hover {
  color: var(--primary-light);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--black);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 170, 65, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(11, 13, 18, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-light);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.navigation {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--text);
  padding: var(--space-sm) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-icon {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
  transition: var(--transition);
}

[data-theme="light"] .theme-icon {
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1001;
}

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

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

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

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

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  padding: var(--space-3xl);
  text-align: center;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-nav-cta {
  margin-top: var(--space-xl);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--space-3xl) * 2);
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(232, 170, 65, 0.6);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-light), var(--primary), #ffea8c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-move 8s linear infinite;
  background-size: 200% 100%;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 90%;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

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

.device-mockup {
  width: 100%;
  max-width: 400px;
  height: 0;
  padding-bottom: 200%;
  position: relative;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(5deg);
}

.device-screen {
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  overflow: hidden;
  backdrop-filter: blur(8px);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.app-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.app-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(232, 170, 65, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon svg {
  color: var(--primary);
}

.app-content h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.app-content p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.floating-badges {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  font-size: var(--text-sm);
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}

.floating-badge svg {
  color: var(--primary);
}

.floating-badge:nth-child(1) {
  top: 10%;
  left: 0;
  animation-delay: 0s;
}

.floating-badge:nth-child(2) {
  top: 70%;
  right: 0;
  animation-delay: 1s;
}

.floating-badge:nth-child(3) {
  bottom: 10%;
  left: 20%;
  animation-delay: 2s;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.counter {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.stat-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* Clients Marquee */
.clients-marquee {
  background: var(--bg-2);
  padding: var(--space-lg) 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: var(--space-2xl);
  animation: marquee 20s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
}

.marquee-item::after {
  content: '•';
  position: absolute;
  right: calc(var(--space-2xl) * -1);
  top: 50%;
  transform: translateY(-50%);
  color: var(--border);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-brand);
  border-color: rgba(232, 170, 65, 0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(232, 170, 65, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-icon svg {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: var(--space-md);
}

.service-features {
  list-style: none;
  margin-top: var(--space-lg);
}

.service-features li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Work Section */
.work {
  background: var(--bg-2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-brand);
}

.work-image {
  height: 240px;
  overflow: hidden;
}

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

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

.work-content {
  padding: var(--space-lg);
}

.work-content h3 {
  margin-bottom: var(--space-sm);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.work-link:hover {
  color: var(--primary-light);
  gap: var(--space-sm);
}

/* Process Section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.process-step {
  position: relative;
  padding: var(--space-xl);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-brand);
}

.step-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.process-step h3 {
  margin-bottom: var(--space-sm);
}

/* Academy Section */
.academy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.academy-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition);
}

.academy-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-brand);
  border-color: rgba(232, 170, 65, 0.3);
}

.academy-card h3 {
  margin-bottom: var(--space-md);
}

.academy-features {
  list-style: none;
  margin: var(--space-lg) 0;
}

.academy-features li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.academy-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Testimonials Section */
.testimonials {
  background: var(--bg);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: var(--space-xl);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.testimonial-content {
  font-size: var(--text-lg);
  font-style: italic;
  margin-bottom: var(--space-lg);
  color: var(--text-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

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

.author-info h4 {
  margin-bottom: 0;
  font-size: var(--text-base);
}

.author-info p {
  font-size: var(--text-sm);
  margin-bottom: 0;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.slider-prev,
.slider-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.slider-prev svg,
.slider-next svg {
  color: var(--text);
  width: 20px;
  height: 20px;
}

.slider-prev:hover svg,
.slider-next:hover svg {
  color: var(--black);
}

.slider-dots {
  display: flex;
  gap: var(--space-sm);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
}

/* Contact Section */
.contact {
  background: var(--bg-2);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.contact-text {
  max-width: 500px;
}

.contact-info {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.info-item svg {
  color: var(--primary);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(232, 170, 65, 0.2);
}

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

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-text {
  margin: var(--space-md) 0;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.social-links a svg {
  color: var(--text);
  width: 20px;
  height: 20px;
}

.social-links a:hover svg {
  color: var(--black);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.links-group h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.links-group a {
  color: var(--text-muted);
  transition: var(--transition);
}

.links-group a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Background Elements */
.bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(232, 170, 65, 0.1), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(92, 141, 255, 0.1), transparent 40%);
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--primary);
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(232, 170, 65, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-image {
    order: -1;
    margin-bottom: var(--space-xl);
  }

  .hero-subtitle {
    max-width: 100%;
  }

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

  .contact-text {
    max-width: 100%;
    text-align: center;
  }

  .contact-info {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .navigation {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--space-3xl) + 80px);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: var(--text-2xl);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* ==== Mobile overflow fixes (append at the end) ==== */

/* 1) إقفال أي overflow أفقي بشكل عام */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}

/* 2) صور وسفج وغيرها ما تتجاوز العرض */
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3) الخلفيات والفكسد عناصر بعرض viewport الحقيقي */
.bg-elements,
.mobile-menu {
  width: 100vw;
}

/* 4) عناصر محتملة للتمدد تُقصّ أطرافها ضمن الموبايل */
@media (max-width: 768px) {
  .section,
  .hero,
  .hero-image,
  .clients-marquee,
  .work,
  .footer {
    overflow: hidden;
  }

  /* 5) تبسيط الـmockup لأنه مع الـrotate/perspective بيعمل صندوق أكبر من الشاشة */
  .device-mockup {
    transform: none !important;
    padding-bottom: 160% !important; /* أقل من 200% لتقليل الطول والتمدد */
  }

  /* 6) تخفيف البادنج بالكونتينر لعرض الهاتف */
  .container {
    padding-left: var(--space-md) !important;
    padding-right: var(--space-md) !important;
  }

  /* 7) الـfloating badges تبقى ضمن الشاشة */
  .floating-badges {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
  }

  /* 8) عناصر الماركيه داخل الحاوية بدون تمدد */
  .marquee-track {
    will-change: transform;
  }

  /* 9) إلغاء المؤشر المخصص على الأجهزة باللمس (أحيانًا يسبب تمدد غريب) */
  .custom-cursor {
    display: none !important;
  }
}

/* 10) ضمان عدم تأثير سكرول تقدّم الصفحة */
.scroll-progress {
  left: 0;
  right: 0;
  width: 0;
}

/* 11) صور داخل الكروت لا تضيف فراغ أبيض أفقي */
.work-image img {
  display: block;
}
