:root {
  --bg-color: #0F172A;
  --text-color: #E2E8F0;
  --primary-color: #2e72b9;
  --accent: #2e72b9;
  --header-bg: #1E293B;
  --shadow-color: rgba(255,255,255,0.05);
}

body.light-mode {
  --bg-color: #F8FAFC;
  --text-color: #0F172A;
  --primary-color: #2e72b9;
  --accent: #60A5FA;
  --header-bg: #FFFFFF;
  --shadow-color: rgba(0,0,0,0.05);
}

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.theme-toggle.glow {
  text-shadow: 0 0 8px var(--primary-color), 0 0 16px var(--primary-color);
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px var(--primary-color));
}

.nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 25px;
  transition: all 0.4s ease;
}

.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 65px;
    right: 0;
    width: 100%;
    background: rgba(30, 40, 70, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 12px 12px;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: none;
    transition: all 0.5s ease;
  }

  .nav.active {
    max-height: 300px;
    opacity: 1;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  }

  .hamburger {
    display: block;
  }

  .header.active {
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  }
}


.hero {
  margin-top: 120px;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  color: var(--primary-color);
}

.section {
  padding: 80px 10%;
  text-align: center;
}
.section-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.section-desc {
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 40px;
}
.container {
  max-width: 1200px;
  margin: auto;
}


.about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.about-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  width: 300px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(128, 128, 255, 0.2);
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.service-item {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 25px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(128, 128, 255, 0.2);
}


.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}
.feature-box {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 25px;
  transition: transform 0.4s ease;
}
.feature-box i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.feature-box:hover {
  transform: translateY(-6px);
}


.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--text-color);
  backdrop-filter: blur(8px);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
}
.contact-form .btn {
  background: linear-gradient(90deg, var(--primary-color), var(--accent));
  border: none;
  color: white;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}
.contact-form .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(128, 128, 255, 0.4);
}

.fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}


@keyframes bounce {
  0%, 80%, 100% {
    transform: scaleY(0.4);
  }
  40% {
    transform: scaleY(1);
  }
}
 
footer {
  background: #2e72b9;
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 10%;
  text-align: center;
  color: #ddd;
  font-size: 0.95rem;
  position: relative;
}

footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

footer span {
  color: var(--accent, #09182f);
  font-weight: bold;
}

footer .lang-select select {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
}

footer .lang-select select option {
  background: #09182f;
  color: #fff;
}
@media (max-width: 600px) {
  footer .footer-content {
    flex-direction: column;
  }
}
.success-popup {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; animation: fadeIn 0.5s ease-out;
}
.success-popup.show { display: flex; }

.popup-content {
  background: white; color: #0F172A; padding: 30px 40px;
  border-radius: 20px; text-align: center; max-width: 400px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: popUp 0.6s ease-out;
}
.popup-content i { font-size: 3.5rem; color: #10b981; margin-bottom: 15px; }
.popup-content h3 { font-size: 1.6rem; color: #1a73e8; margin-bottom: 8px; }
.popup-content p { color: #64748b; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popUp { 0% { transform: scale(0.7); opacity: 0; } 70% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }

:root {

  --footer-bg: #050816;          
  --footer-bg-alt: #0b1020;      
  --footer-border: rgba(255,255,255,0.06);
  --footer-text: #f5f5f5;
  --footer-muted: #a0a3b1;
  --footer-accent: #3b82f6;      
  --footer-accent-soft: rgba(59,130,246,0.15);

  --footer-radius: 18px;
  --footer-max-width: 1200px;
  --footer-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer {
  font-family: var(--footer-font);
  background: radial-gradient(circle at top left, #111827, var(--footer-bg));
  color: var(--footer-text);
  padding: 40px 18px 24px;
  border-top: 1px solid var(--footer-border);
  margin-top: 40px;
}

.site-footer .footer-top,
.site-footer .footer-bottom {
  max-width: var(--footer-max-width);
  margin: 0 auto;
}


.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr); 
  gap: 32px;
  padding: 24px 20px 28px;
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.7));
  border-radius: var(--footer-radius);
  border: 1px solid var(--footer-border);
  box-shadow: 0 18px 45px rgba(15,23,42,0.55);
}


.footer-brand .footer-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--footer-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


.footer-brand .footer-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--footer-muted);
}


.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e5e7eb;
}

.footer-column a {
  display: block;
  font-size: 13px;
  color: var(--footer-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-column a:hover {
  color: var(--footer-accent);
  transform: translateX(-2px);
}


.footer-bottom {
  padding: 18px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 18px;
  row-gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(148,163,184,0.25);
  margin-top: 26px;
  font-size: 12px;
  color: var(--footer-muted);
}


.footer-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-lang label {
  font-size: 12px;
}

.footer-lang select {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--footer-border);
  background: rgba(15,23,42,0.9);
  color: var(--footer-text);
  font-size: 12px;
  cursor: pointer;
}


.footer-copy {
  text-align: center;
}


.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--footer-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--footer-muted);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-social a:hover {
  background: var(--footer-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--footer-accent-soft);
}


html[dir="rtl"] .footer-top {
  direction: rtl;
}

html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .footer-column a:hover {
  transform: translateX(2px);
}

html[dir="ltr"] .footer-top,
html[dir="ltr"] .footer-bottom {
  direction: ltr;
  text-align: left;
}


@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  html[dir="rtl"] .footer-bottom {
    align-items: flex-end;
  }

  .footer-copy {
    text-align: inherit;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

.horanos-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.horanos-brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.brand-logo {
  height: 38px;
  width: auto;
  transition: filter 0.3s ease;
  order: 1;
}

.horanos-brand:hover .brand-logo {
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

.brand-text {
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
}


@media (max-width: 768px) {
  .brand-logo { height: 32px; }
  .brand-text { font-size: 1rem; }
}
@media (max-width: 480px) {
  .horanos-brand { gap: 6px; }
  .brand-logo { height: 28px; }
  .brand-text { font-size: 0.95rem; }
}


body.light-mode .brand-text {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-item.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.service-item.clickable:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
}


.service-item.clickable h3,
.service-item.clickable p,
.service-item.clickable i {
  pointer-events: none;
}

.services-grid {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.service-item.clickable {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  max-width: 320px;
  flex: 1;
  min-width: 280px;
}


.service-item.clickable:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 183, 255, 0.25);
  border-color: #00b7ff;
  background: linear-gradient(135deg, rgba(0,183,255,0.15), rgba(0,100,255,0.05));
}


.service-item.clickable::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: 0.6s;
  opacity: 0;
}

.service-item.clickable:hover::before {
  animation: shine 1.2s ease-in-out;
  opacity: 1;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}


.icon-glow {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(0, 183, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.icon-glow i {
  font-size: 32px;
  color: #00b7ff;
  transition: all 0.3s ease;
}

.service-item.clickable:hover .icon-glow {
  background: #00b7ff;
  box-shadow: 0 0 25px rgba(0, 183, 255, 0.6);
  transform: scale(1.15);
}

.service-item.clickable:hover .icon-glow i {
  color: white;
  text-shadow: 0 0 15px rgba(255,255,255,0.8);
}


.learn-more {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #00b7ff;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.service-item.clickable:hover .learn-more {
  opacity: 1;
  transform: translateY(0);
}


.service-item.clickable:active {
  transform: translateY(-12px) scale(0.98);
  transition: all 0.1s ease;
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-item.fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.service-item.fade-up[data-aos-delay="150"] { animation-delay: 0.15s; }
.service-item.fade-up[data-aos-delay="300"] { animation-delay: 0.3s; }
 
.new-tab-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0, 183, 255, 0.15);
  border: 1px solid rgba(0, 183, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5) translateY(-10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.new-tab-icon i {
  font-size: 14px;
  color: #00b7ff;
  transition: all 0.3s ease;
}


.service-item.clickable:hover .new-tab-icon {
  opacity: 1;
  transform: scale(1) translateY(0);
  background: #00b7ff;
  box-shadow: 0 0 15px rgba(0, 183, 255, 0.5);
}

.service-item.clickable:hover .new-tab-icon i {
  color: white;
  transform: rotate(-45deg);
}


.service-item.clickable:active .new-tab-icon {
  animation: pulse 0.4s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}


.icon-glow i {
  font-size: 48px; 
}


.service-item.clickable:hover .icon-glow i {
  transform: rotate(360deg) scale(1.2);
  transition: all 0.6s ease;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-link {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}


.social-link::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: 0.5s;
}

.social-link:hover::before {
  opacity: 1;
  animation: shine 1s ease-in-out;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}


.social-link:hover {
  transform: translateY(-10px) scale(1.15);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
}


.social-link[aria-label="Facebook"]:hover     { background: #1877f2; }
.social-link[aria-label="Instagram"]:hover    { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link[aria-label="X (Twitter)"]:hover  { background: #000000; color: #fff; }
.social-link[aria-label="Telegram"]:hover     { background: #229ed9; }


.social-link:active {
  transform: translateY(-7px) scale(0.95);
  transition: 0.1s;
}