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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0f1a;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== HEADER ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

[dir="rtl"] header {
  flex-direction: row-reverse;
}

/* ========== LOGO ========== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #60a5fa;
  flex-shrink: 0;
}

.logo-icon {
  color: #3b82f6;
  width: 40px;
  height: 40px;
}

/* ========== NAVIGATION ========== */
nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin: 0 0.7rem;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s ease;
}

nav a:hover {
  color: #3b82f6;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #3b82f6;
  transition: width 0.25s ease;
}

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

nav a:hover::after {
  width: 100%;
}

/* ========== LANGUAGE SWITCH ========== */
.lang {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.lang button {
  background: transparent;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.lang button:hover {
  background: #1e293b;
  border-color: #3b82f6;
}

/* ========== SECTIONS ========== */
section {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ========== HERO ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  min-height: 70vh;
}

.hero-text {
  flex: 1 1 300px;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #f8fafc;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.hero-text p {
  margin-bottom: 1.5rem;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.8;
}

.proof p {
  background: #1e293b;
  color: #60a5fa;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* HERO IMAGE */
.hero-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  box-shadow: 0 0 25px rgba(59,130,246,0.45);
  transition: transform 0.3s ease;
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn.small {
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

.hero-cta {
  background: #16a34a;
  font-size: 1.1rem;
  padding: 0.9rem 2.2rem;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.25);
}

.hero-cta:hover {
  background: #15803d;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
}

/* ========== HEADINGS ========== */
h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #f1f5f9;
}

/* ========== CARDS ========== */
.cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 12px;
  width: 260px;
  border: 1px solid #334155;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  box-shadow: 0 12px 30px rgba(59,130,246,0.2);
}

.card h3 {
  margin-bottom: 0.8rem;
  color: #60a5fa;
}

.project h3 {
  color: #e2e8f0;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

/* ========== ABOUT / CONTACT ========== */
#about,
#contact {
  text-align: center;
}

#about p {
  max-width: 600px;
  margin: 1rem auto;
}

.badge {
  display: inline-block;
  background: #1e293b;
  color: #22c55e;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  margin: 1rem 0;
}

.alt {
  margin-top: 1rem;
  color: #94a3b8;
}

/* ========== WHATSAPP FLOAT ========== */
.floating-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 55px;
  height: 55px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.5);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
}

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

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 2rem;
  color: #475569;
  font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }

  [dir="rtl"] header {
    flex-direction: column;
  }

  nav {
    justify-content: center;
  }

  .logo {
    justify-content: center;
  }

  .lang {
    justify-content: center;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .card {
    width: 100%;
    max-width: 320px;
  }
}

.whatsapp-icon {
    color: white;
}

.floating-btn svg {
    transition: transform 0.2s ease;
}

.floating-btn:hover svg {
    transform: scale(1.15);
}