/* ================================
   CSS Variables & Theme
   ================================ */
:root {
  /* Dark cyberpunk theme */
  --background: hsl(240, 15%, 5%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(240, 15%, 8%);
  --card-foreground: hsl(210, 40%, 98%);
  --primary: hsl(195, 100%, 50%);
  --primary-foreground: hsl(240, 15%, 5%);
  --secondary: hsl(270, 80%, 60%);
  --secondary-foreground: hsl(210, 40%, 98%);
  --muted: hsl(240, 10%, 15%);
  --muted-foreground: hsl(215, 20%, 65%);
  --accent: hsl(210, 100%, 60%);
  --accent-foreground: hsl(240, 15%, 5%);
  --border: hsl(240, 10%, 20%);
  --input: hsl(240, 10%, 15%);
  --ring: hsl(195, 100%, 50%);
  --radius: 0.75rem;
  --glow-cyan: hsl(195, 100%, 50%);
  --glow-purple: hsl(270, 80%, 60%);
  --glow-blue: hsl(210, 100%, 60%);
  --glow-orange: hsl(25, 100%, 55%);
  --glass: hsl(240, 15%, 12%);
  --glass-border: hsl(240, 10%, 25%);
}

/* ================================
   Base Styles
   ================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.rtl {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6 {
  font-family: 'Cairo', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.hidden {
  display: none !important;
}

/* ================================
   Glassmorphism Card
   ================================ */
.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(240, 15%, 12%, 0.8) 0%, hsla(240, 15%, 12%, 0.4) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid hsla(240, 10%, 25%, 0.5);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, hsla(195, 100%, 50%, 0.3) 0%, hsla(270, 80%, 60%, 0.3) 50%, hsla(210, 100%, 60%, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ================================
   Glow Text
   ================================ */
.glow-text {
  background: linear-gradient(135deg, var(--glow-cyan) 0%, var(--glow-purple) 50%, var(--glow-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================================
   Circuit Background
   ================================ */
.circuit-bg {
  background-image: 
    radial-gradient(circle at 25% 25%, hsla(195, 100%, 50%, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, hsla(270, 80%, 60%, 0.05) 0%, transparent 50%);
}

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-hero {
  background: linear-gradient(135deg, hsla(240, 15%, 12%, 0.8), hsla(240, 15%, 15%, 0.6));
  color: var(--foreground);
  border: 1px solid hsla(195, 100%, 50%, 0.3);
}

.btn-hero:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px hsla(195, 100%, 50%, 0.3);
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--primary-foreground);
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--glow-cyan), var(--glow-purple), var(--glow-blue), var(--glow-cyan));
  background-size: 400% 400%;
  animation: gradient-rotate 4s linear infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.btn-glow:hover::before {
  opacity: 0.6;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px hsla(195, 100%, 50%, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s;
}

body.rtl .btn-icon {
  transform: rotate(180deg);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

body.rtl .btn:hover .btn-icon {
  transform: translateX(-4px) rotate(180deg);
}

.btn-icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

/* ================================
   Header
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.5s ease;
}

.header.scrolled {
  background: hsla(240, 15%, 5%, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsla(240, 10%, 20%, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-link {
  position: relative;
}

.logo {
  height: 2rem;
  transition: all 0.3s;
}

.logo-link:hover .logo {
  filter: drop-shadow(0 0 15px hsla(195, 100%, 50%, 0.5));
}

@media (min-width: 768px) {
  .logo {
    height: 2.5rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.nav-link {
  position: relative;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glow-cyan), var(--glow-purple));
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--foreground);
}

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

.lang-btn {
  padding: 0.5rem 1rem;
  background: hsla(240, 15%, 12%, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .mobile-controls {
    display: none;
  }
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: hsla(240, 15%, 5%, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideDown 0.3s ease;
}

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

.nav-link-mobile {
  color: var(--muted-foreground);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.nav-link-mobile:hover {
  color: var(--foreground);
}

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

.circuit-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--background), transparent, var(--background));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}

.hero-glow-cyan {
  top: 25%;
  left: 25%;
  background: hsla(195, 100%, 50%, 0.1);
}

.hero-glow-purple {
  bottom: 25%;
  right: 25%;
  background: hsla(270, 80%, 60%, 0.1);
  animation-delay: 4s;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.hero-container {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    gap: 5rem;
  }
  
  body.rtl .hero-content {
    flex-direction: row-reverse;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
  
  body.rtl .hero-text {
    text-align: right;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsla(240, 10%, 15%, 0.5);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.badge-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.hero-headline {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

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

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
  .hero-description {
    margin: 0 0 2rem;
  }
  
  body.rtl .hero-description {
    margin: 0 0 2rem auto;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
  
  body.rtl .hero-buttons {
    justify-content: flex-end;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(240, 10%, 20%, 0.5);
}

.stat {
  text-align: center;
}

@media (min-width: 1024px) {
  .stat {
    text-align: left;
  }
  
  body.rtl .stat {
    text-align: right;
  }
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.875rem;
  }
}

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

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-content: flex-end;
  }
  
  body.rtl .hero-visual {
    justify-content: flex-start;
  }
}

.logo-wrapper {
  position: relative;
}

.hero-logo {
  width: 16rem;
  filter: drop-shadow(0 0 30px hsla(195, 100%, 50%, 0.3));
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-logo {
    width: 20rem;
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    width: 24rem;
  }
}

.glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.ring-1 {
  width: 150%;
  height: 150%;
  border: 2px solid hsla(195, 100%, 50%, 0.2);
  animation: ring-pulse 4s ease-in-out infinite;
}

.ring-2 {
  width: 200%;
  height: 200%;
  border: 1px solid hsla(270, 80%, 60%, 0.2);
  animation: ring-pulse 4s ease-in-out infinite 0.5s;
}

@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.4; }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fade-in 1s ease 1s forwards;
  opacity: 0;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid hsla(215, 20%, 65%, 0.5);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  animation: scroll-bounce 2s infinite;
}

.scroll-dot {
  width: 0.375rem;
  height: 0.75rem;
  background: var(--primary);
  border-radius: 9999px;
  margin-top: 0.5rem;
  animation: scroll-dot 2s infinite;
}

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

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0; }
}

/* ================================
   Section Styles
   ================================ */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

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

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.section-title-left {
  text-align: left;
}

body.rtl .section-title-left {
  text-align: right;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* ================================
   Services Section
   ================================ */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.service-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px hsla(195, 100%, 50%, 0.3), 0 0 40px hsla(270, 80%, 60%, 0.2);
}

body.rtl .service-card {
  text-align: right;
}

.service-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(195, 100%, 50%, 0.2), hsla(270, 80%, 60%, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

body.rtl .service-icon-wrapper {
  margin-left: auto;
}

.service-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, hsla(195, 100%, 50%, 0.3), hsla(270, 80%, 60%, 0.3));
}

.service-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: all 0.3s;
}

.service-card:hover .service-title {
  background: linear-gradient(135deg, var(--glow-cyan), var(--glow-purple), var(--glow-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.rtl .service-features {
  justify-content: flex-end;
}

.feature-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: hsla(240, 10%, 15%, 0.5);
  border: 1px solid hsla(240, 10%, 20%, 0.5);
  border-radius: 9999px;
  color: var(--muted-foreground);
}

/* ================================
   Portfolio Section
   ================================ */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

body.rtl .project-card {
  text-align: right;
}

.project-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: all 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
  filter: brightness(0.3);
}

.project-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.scan-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, hsla(195, 100%, 50%, 0.03) 2px, hsla(195, 100%, 50%, 0.03) 4px);
}

.project-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, var(--background), hsla(240, 15%, 5%, 0.5), transparent);
}

.project-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

.project-card:hover .project-description {
  opacity: 1;
  transform: translateY(0);
}

.project-content .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  width: fit-content;
}

.project-card:hover .project-content .btn {
  opacity: 1;
  transform: translateY(0);
}

.project-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid hsla(240, 10%, 20%, 0.5);
  pointer-events: none;
  transition: border-color 0.3s;
}

.project-card:hover .project-border {
  border-color: hsla(195, 100%, 50%, 0.5);
}

.portfolio-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ================================
   About Section
   ================================ */
.about-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
  
  body.rtl .about-grid {
    direction: rtl;
  }
}

.about-left {
  text-align: left;
}

body.rtl .about-left {
  text-align: right;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

body.rtl .profile-header {
  flex-direction: row-reverse;
}

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

.profile-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  filter: blur(20px);
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

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

.profile-image {
  position: relative;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px hsla(195, 100%, 50%, 0.5);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-role {
  color: var(--primary);
}

.about-bio {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Skills */
.skills-section {
  margin-bottom: 2rem;
}

.skills-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  animation: fade-in 0.5s ease forwards;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

body.rtl .skill-header {
  flex-direction: row-reverse;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.rtl .skill-name {
  flex-direction: row-reverse;
}

.skill-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.skill-percentage {
  color: var(--primary);
  font-weight: 700;
}

.skill-bar {
  height: 0.5rem;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 9999px;
  width: 0;
  transition: width 1s ease;
}

/* Languages */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.language-item {
  padding: 1rem;
  text-align: center;
}

.language-circle {
  position: relative;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.5rem;
}

.language-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.language-bg {
  fill: none;
  stroke: var(--muted);
  stroke-width: 4;
}

.language-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 175.93;
  stroke-dashoffset: 175.93;
  transition: stroke-dashoffset 1s ease;
}

.language-percentage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.language-name {
  font-size: 0.875rem;
  color: var(--foreground);
}

/* Timeline */
.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

body.rtl .timeline-title {
  text-align: right;
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

body.rtl .timeline {
  padding-left: 0;
  padding-right: 3rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
}

body.rtl .timeline-line {
  left: auto;
  right: 1rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-node {
  position: absolute;
  left: -3rem;
  top: 0.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: node-glow 2s ease-in-out infinite;
}

body.rtl .timeline-node {
  left: auto;
  right: -3rem;
}

@keyframes node-glow {
  0%, 100% { box-shadow: 0 0 0 hsla(195, 100%, 50%, 0); }
  50% { box-shadow: 0 0 20px hsla(195, 100%, 50%, 0.5); }
}

.timeline-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.timeline-content {
  padding: 1rem;
  transition: all 0.3s;
}

body.rtl .timeline-content {
  text-align: right;
}

.timeline-content:hover {
  box-shadow: 0 0 20px hsla(195, 100%, 50%, 0.3), 0 0 40px hsla(270, 80%, 60%, 0.2);
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.timeline-item-title {
  font-weight: 600;
  margin-top: 0.25rem;
}

.timeline-item-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ================================
   Contact Section
   ================================ */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  body.rtl .contact-grid {
    direction: rtl;
  }
}

.contact-form-wrapper {
  padding: 2rem;
}

body.rtl .contact-form-wrapper {
  order: 2;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.rtl .contact-form {
  text-align: right;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsla(240, 10%, 15%, 0.5);
  border: 1px solid hsla(240, 10%, 20%, 0.5);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

body.rtl .form-input, body.rtl .form-textarea {
  text-align: right;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(195, 100%, 50%, 0.1), 0 0 20px hsla(195, 100%, 50%, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--muted-foreground);
}

.form-textarea {
  resize: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.rtl .contact-info {
  order: 1;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  transition: all 0.3s;
}

body.rtl .contact-card {
  flex-direction: row-reverse;
  text-align: right;
}

.contact-card:hover {
  transform: translateX(5px);
  box-shadow: 0 0 20px hsla(195, 100%, 50%, 0.3), 0 0 40px hsla(270, 80%, 60%, 0.2);
}

body.rtl .contact-card:hover {
  transform: translateX(-5px);
}

.contact-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(195, 100%, 50%, 0.2), hsla(270, 80%, 60%, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.contact-card-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-card-value {
  font-weight: 500;
}

/* Map placeholder */
.map-placeholder {
  height: 16rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsla(240, 10%, 15%, 0.5), var(--background));
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(hsla(240, 10%, 20%, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsla(240, 10%, 20%, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-point {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.map-point-inner {
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--primary);
  animation: map-pulse 2s ease-in-out infinite;
}

.map-point-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: map-ripple 2s ease-out infinite;
}

@keyframes map-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes map-ripple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3); opacity: 0; }
}

.map-coords {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: monospace;
}

body.rtl .map-coords {
  left: auto;
  right: 1rem;
}

/* ================================
   Footer
   ================================ */
.footer {
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid hsla(240, 10%, 20%, 0.5);
  background: linear-gradient(to bottom, var(--background), hsla(240, 10%, 15%, 0.2));
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr repeat(3, auto);
    gap: 4rem;
  }
}

.footer-brand {
  text-align: left;
}

body.rtl .footer-brand {
  text-align: right;
}

.footer-logo {
  height: 2rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px hsla(195, 100%, 50%, 0.3));
}

body.rtl .footer-logo {
  margin-left: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

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

body.rtl .social-links {
  justify-content: flex-end;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: hsla(240, 10%, 15%, 0.5);
  border: 1px solid hsla(240, 10%, 20%, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 0.3s;
}

.social-link:hover {
  color: var(--primary);
  border-color: hsla(195, 100%, 50%, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 0 20px hsla(195, 100%, 50%, 0.3);
}

.social-icon {
  width: 1rem;
  height: 1rem;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-links {
  text-align: left;
}

body.rtl .footer-links {
  text-align: right;
}

.footer-links-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-list a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s;
}

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

/* Newsletter */
.newsletter {
  padding: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .newsletter {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  body.rtl .newsletter {
    flex-direction: row-reverse;
  }
}

.newsletter-content {
  text-align: left;
}

body.rtl .newsletter-content {
  text-align: right;
}

.newsletter-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.newsletter-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .newsletter-form {
    width: auto;
  }
  
  body.rtl .newsletter-form {
    flex-direction: row-reverse;
  }
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  background: hsla(240, 10%, 15%, 0.5);
  border: 1px solid hsla(240, 10%, 20%, 0.5);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  transition: all 0.3s;
}

body.rtl .newsletter-input {
  text-align: right;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(240, 10%, 20%, 0.3);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  body.rtl .footer-bottom {
    flex-direction: row-reverse;
  }
}

.copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

body.rtl .back-to-top {
  flex-direction: row-reverse;
}

.back-to-top:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 1rem;
  height: 1rem;
}

/* ================================
   Toast
   ================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  animation: toast-in 0.3s ease;
}

body.rtl .toast {
  right: auto;
  left: 2rem;
}

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

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.toast-title {
  font-weight: 600;
}

.toast-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ================================
   Animations
   ================================ */
@keyframes gradient-rotate {
  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(-15px); }
}

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

.animate-fade-in {
  animation: fade-in 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.5s; }

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 640px) {
  .hero-badge span {
    font-size: 0.75rem;
  }
  
  .hero-buttons {
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .languages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .language-item {
    padding: 0.75rem 0.5rem;
  }
  
  .language-circle {
    width: 3rem;
    height: 3rem;
  }
  
  .language-percentage {
    font-size: 0.75rem;
  }
  
  .language-name {
    font-size: 0.75rem;
  }
}
