:root {
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  --color-slate-50: #f8fafc;
  
  --color-teal-400: #2dd4bf;
  --color-teal-500: #14b8a6;
  --color-teal-600: #0d9488;
  --color-teal-900: #134e4a;
  
  --font-inter: 'Inter', sans-serif;
  --font-cairo: 'Cairo', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-slate-950);
  color: var(--color-slate-50);
  font-family: var(--font-inter);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* RTL Support */
body[dir="rtl"] {
  font-family: var(--font-cairo);
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-teal {
  background: rgba(20, 184, 166, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(20, 184, 166, 0.15);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  height: 2.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  color: var(--color-slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-teal-400);
}

.btn-outline {
  background: transparent;
  color: var(--color-slate-50);
  border: 1px solid var(--color-slate-400);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: rgba(20, 184, 166, 0.5);
  background: rgba(19, 78, 74, 0.2);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
}

.teal-blob {
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(13, 148, 136, 0.2);
  filter: blur(120px);
}

.indigo-blob {
  bottom: 25%;
  right: 25%;
  width: 31rem;
  height: 31rem;
  background: rgba(79, 70, 229, 0.1);
  filter: blur(150px);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.gradient-text {
  background: linear-gradient(to bottom right, #ffffff, #e2e8f0, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* RTL gradient override */
body[dir="rtl"] .gradient-text {
  background: linear-gradient(to bottom left, #ffffff, #e2e8f0, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 42rem;
  color: var(--color-slate-400);
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.5rem; }
}

.btn-primary {
  color: var(--color-teal-400);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.1);
}

.hover-raise:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.4);
}

/* Services */
.services {
  padding: 6rem 1.5rem;
  background-color: var(--color-slate-950);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(19, 78, 74, 0.5);
  border: 1px solid rgba(20, 184, 166, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover .icon-wrapper {
  transform: scale(1.1);
}

.icon-core {
  width: 1rem;
  height: 1rem;
  background: var(--color-teal-400);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.8);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--color-teal-400);
}

.card-desc {
  font-weight: 300;
  color: var(--color-slate-400);
  line-height: 1.6;
}

/* Utility Colors & Spacing */
.text-slate-200 { color: var(--color-slate-200); }
.text-slate-400 { color: var(--color-slate-400); }
.text-slate-500 { color: var(--color-slate-400); opacity: 0.6; }
.text-xl { font-size: 1.5rem; font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none; }

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--color-slate-900);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-desc {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.glass-panel {
  aspect-ratio: 4/3;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(20, 184, 166, 0.05);
}

.floating-blob {
  width: 15rem;
  height: 15rem;
  background: rgba(20, 184, 166, 0.3);
  filter: blur(80px);
  animation: float 6s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
  100% { transform: translateY(0px) scale(1); }
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--color-slate-950);
}

.form-wrapper {
  max-width: 32rem;
  margin: 0 auto;
}

.contact-form {
  padding: 2.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.glass-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  color: var(--color-slate-50);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  resize: vertical;
}

.glass-input::placeholder {
  color: var(--color-slate-400);
  opacity: 0.5;
}

.glass-input:focus {
  border-color: var(--color-teal-500);
  background: rgba(20, 184, 166, 0.05);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

/* Footer Section */
.footer {
  background-color: #01040f;
  padding: 4rem 0 2rem;
}

.footer-divider {
  width: 100%;
  max-width: 32rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 0 auto;
}

.footer-logo {
  height: 4rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}
