/* ==================== ROOT & RESET ==================== */
:root {
  --primary: #0a192f;
  --secondary: #00d9ff;
  --accent: #ff6b35;
  --purple: #7b2ff7;
  --orange: #f7b801;
  --green: #00f5a0;
  --white: #ffffff;
  --light: #f8fafc;
  --gray: #64748b;
  --dark-gray: #1e293b;

  --gradient-primary: linear-gradient(
    135deg,
    #0a192f 0%,
    #1a2942 50%,
    #0a192f 100%
  );
  --gradient-glow: linear-gradient(
    135deg,
    #00d9ff 0%,
    #7b2ff7 50%,
    #ff6b35 100%
  );
  --gradient-card: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1) 0%,
    rgba(123, 47, 247, 0.1) 100%
  );

  --shadow-sm: 0 2px 8px rgba(0, 217, 255, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 217, 255, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 217, 255, 0.3);
  --shadow-xl: 0 12px 48px rgba(0, 217, 255, 0.4);

  --font-primary: "Cairo", sans-serif;
  --font-secondary: "Poppins", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--primary);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ==================== ANIMATED BACKGROUND ==================== */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--primary);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary), transparent);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(50px, -100px) scale(0.9);
  }
  75% {
    transform: translate(-100px, 50px) scale(1.05);
  }
}
/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(10, 25, 47, 0.95);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.logo-icon {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  animation: pulse-glow 3s infinite;
}

.code-bracket {
  color: var(--secondary);
}
.code-slash {
  color: var(--accent);
  margin: 0 -2px;
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px var(--secondary));
  }
  50% {
    filter: drop-shadow(0 0 15px var(--secondary));
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-glow);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s ease;
}

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

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

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

/* ==================== BUTTONS ==================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.primary-cta {
  background: var(--gradient-glow);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
  animation: button-glow 3s infinite;
}

@keyframes button-glow {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(0, 217, 255, 0.6);
  }
}

.primary-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.6);
}

.secondary-cta {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.secondary-cta:hover {
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-3px);
}

.nav-cta {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
  width: min(620px, 100%);
  margin: 0 auto;
  text-align: center;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease-out 0.2s both;
}

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

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--font-secondary);
}

.title-line {
  /* display: block; */
  animation: slideInUp 1s ease-out both;
}

.title-line:nth-child(1) {
  animation-delay: 0.3s;
}
.title-line:nth-child(2) {
  animation-delay: 0.5s;
}
.title-line:nth-child(3) {
  animation-delay: 0.7s;
}
.title-line:nth-child(4) {
  animation-delay: 0.9s;
}

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

.gradient-text {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
  background-size: 200% 200%;
}

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

.accent-text {
  color: var(--accent);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 1.2s both;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 1.4s both;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s ease-out 2s both;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
  animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
  0% {
    height: 0;
    opacity: 0;
  }
  50% {
    height: 40px;
    opacity: 1;
  }
  100% {
    height: 40px;
    opacity: 0;
  }
}

/* ==================== SECTIONS ==================== */
.services,
.features,
.contact {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease-out;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.section-description {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out both;
}

.service-card[data-index="0"] {
  animation-delay: 0.1s;
}
.service-card[data-index="1"] {
  animation-delay: 0.3s;
}
.service-card[data-index="2"] {
  animation-delay: 0.5s;
}

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

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-xl);
}

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

.service-icon-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
  background: rgba(0, 217, 255, 0.2);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 700;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-link:hover {
  gap: 1rem;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  animation: fadeInScale 0.8s ease-out both;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-xl);
}

.feature-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0, 217, 255, 0.1);
  transition: all 0.5s ease;
}

.feature-card:hover .feature-number {
  color: rgba(0, 217, 255, 0.3);
  transform: scale(1.2);
}

.feature-icon-large {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

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

.feature-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.feature-description {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-metrics {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--gray);
}

/* ==================== CONTACT SECTION ==================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: slideInLeft 0.8s ease-out;
}

.contact-description {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form {
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  animation: slideInRight 0.8s ease-out;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--light);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(0, 217, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

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

/* ==================== FOOTER ==================== */
.footer {
  background: rgba(10, 25, 47, 0.95);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  color: var(--gray);
  margin-top: 1rem;
  max-width: 300px;
}

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

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 25, 47, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 2.5rem 1.5rem 4rem;
    gap: 1.25rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: inline-block;
    font-size: 1.5rem;
  }

  .nav-menu-cta {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }

  .nav-menu-cta .cta-button {
    width: min(260px, 80%);
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-actions .nav-cta {
    display: none;
  }

  .nav-menu-cta .nav-cta {
    display: inline-flex;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .floating-card {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==================== RTL SUPPORT ==================== */
html[dir="rtl"] {
  direction: rtl;
}
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-description,
html[dir="rtl"] .section-header,
html[dir="rtl"] .service-card,
html[dir="rtl"] .feature-card,
html[dir="rtl"] .contact-info,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .footer-column,
html[dir="rtl"] .footer-bottom {
  text-align: right;
}
html[dir="rtl"] .service-features li {
  justify-content: flex-end;
}
html[dir="rtl"] .service-features li::before {
  margin-left: 0.5rem;
  margin-right: 0;
}
html[dir="rtl"] .feature-metrics {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-cta-group {
  flex-direction: row-reverse;
}

/* Language toggle styling */
.nav-language {
  position: relative;
  margin-left: 12px;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--light);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s;
  backdrop-filter: blur(4px);
}

.language-button:hover,
.language-button:focus-visible {
  border-color: var(--secondary);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.language-button svg,
.language-button span {
  color: inherit;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 170px;
  background: rgba(7, 20, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  overflow: visible;
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.2s ease, visibility 0.18s;
  backdrop-filter: blur(16px);
  z-index: 5;
}

.language-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: rgba(7, 20, 40, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
  z-index: -1;
}

.language-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  color: var(--light);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-option + .language-option {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(0, 217, 255, 0.08);
  outline: none;
}

.language-option .lang-code {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.85rem;
}

.language-option .lang-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.language-option.active {
  background: linear-gradient(
    120deg,
    rgba(0, 217, 255, 0.18),
    rgba(123, 47, 247, 0.18)
  );
  color: var(--white);
}

.language-option.active .lang-code {
  color: var(--white);
}
