:root {
  --main-green: #1e8c3a;
  --main-blue: #0077b6;
  --white: #fff;
  --dark: #0b0b1d;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  background: var(--dark);
  scroll-behavior: smooth;
}


/* NAVBAR (constrained + centered) */
/* ===== NAVBAR (transparent glass effect) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  /* Transparent glass look */
  background: rgba(0, 0, 0, 0.12);         /* soft transparency */
  -webkit-backdrop-filter: blur(8px);      /* Safari support */
  backdrop-filter: blur(8px);              /* Chrome/Edge/Firefox */
  border-bottom: 1px solid rgba(255,255,255,0.06);

  /* Layout */
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;                 /* centers nav items */
  padding: 0 20px;
}
.brand-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-left: 8px;
  color: #fff;
}

.brand-text span {
  color: #2ecc71;
}


.nav-inner {
  max-width: 1180px;              /* ← constrains width */
  height: 70px;
  margin: 0 auto;                  /* ← centers the bar */
  padding: 0 20px;                 /* comfy edges */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(46, 204, 113, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}
/* --- Earth globe logo --- */
.nav-logo.globe {
  height: 60px;
  width: auto;
  animation: spin 20s linear infinite;
}


/* Alignment for both */
.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}


.nav-logo:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.6));
}

}

.brand-text {
  font-size: 1.25rem;              /* smaller = tighter */
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.brand-text span { color: #1e8c3a; }

/* Links: compact spacing, subtle underline */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;                       /* tighter link spacing */
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: .2px;
  position: relative;
  padding: 6px 2px;
  transition: color .25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: #1e8c3a;
  transition: width .25s ease;
}

.nav-links a:hover { color: #a8ffb3; }
.nav-links a:hover::after { width: 100%; }

/* Mobile toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  width: 40px; height: 40px;
  border-radius: 8px;
}

/* Responsive: collapse links into a menu */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 70px; right: 0; left: 0;
    background: rgba(0, 15, 20, 0.95);
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.show { display: flex; }
}


/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  background: url('images/space-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-align: center;
}


.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
  z-index: 1;
}

.earth {
  width: 620px;             /* bigger globe */
  max-width: 90%;
  z-index: 2;
  transition: transform 1s ease-out; /* smoother movement */
}


.hero-text {
  position: relative;
  z-index: 3;
  margin-top: 30px;
}

.hero-text .glow {
  font-size: 4rem;
  font-weight: 700;
  color: #dfffe3;
  text-shadow: 0 0 6px rgba(30,140,58,0.4), 0 0 20px rgba(30,140,58,0.15);
  letter-spacing: 2px;
  animation: softFade 6s ease-in-out infinite alternate;
}

@keyframes softFade {
  from {
    text-shadow: 0 0 6px rgba(30,140,58,0.4), 0 0 20px rgba(30,140,58,0.15);
  }
  to {
    text-shadow: 0 0 10px rgba(30,140,58,0.3), 0 0 25px rgba(30,140,58,0.1);
  }
}


@keyframes glowPulse {
  from { text-shadow: 0 0 10px #00ff6a; }
  to { text-shadow: 0 0 25px #00ff6a, 0 0 50px #009933; }
}

.hero-text .tagline {
  color: #a8ffb3;
  font-size: 1.3rem;
  margin-top: 10px;
  letter-spacing: 1px;
}

.hero-text .sub {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 5px;
  opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
  }
  .earth {
    width: 280px;
  }
  .hero-text .glow {
    font-size: 2.5rem;
  }
}


/* SECTION STYLES */
section {
  padding: 100px 10%;
  text-align: center;
}

.about, .services, .gallery, .contact {
  background: linear-gradient(180deg, #00111a 0%, #000 100%);
}

.about p {
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.6;
}

.about .arabic {
  direction: rtl;
  font-style: italic;
  color: #a8ffb3;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 100px 0;
  background: radial-gradient(circle at top, #031018, #000);
  text-align: center;
  color: #fff;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Grid Layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 0 60px;
}

/* Card Style */
.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Images */
.service-card img {
  width: 100%;
  max-width: 380px;      /* keeps it from growing too wide */
  height: 220px;         /* taller for more detail */
  object-fit: cover;     /* keeps the image proportional */
  border-radius: 12px;
  margin-bottom: 20px;
  transition: transform 0.4s ease, filter 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-card img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}


/* Titles & Text */
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #2ecc71;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 20px;
}

/* Button */
.service-card .btn {
  display: inline-block;
  background: #2ecc71;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-card .btn:hover {
  background: #27ae60;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.5);
}

/* GALLERY SECTION */
.gallery {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #001020 0%, #000b18 100%);
  color: #fff;
}

.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #00b894;
  letter-spacing: 1px;
}

.gallery-subtext {
  font-size: 1.1rem;
  color: #cfd4d8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: start;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  max-width: 600px;
  margin: 0 auto;
}

.video-card:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.video-card video {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .video-card video {
    height: 260px;
  }
}





/* ===== CONTACT SECTION (Improved Visual Design) ===== */
.contact {
  padding: 100px 20px;
  background: linear-gradient(180deg, #00141f 0%, #000c12 100%);
  color: #fff;
  text-align: center;
  position: relative;
}

.contact h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #2ecc71;
  text-shadow: 0 0 10px rgba(46,204,113,0.4);
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Info Box */
.contact-info {
  text-align: left;
  max-width: 420px;
  line-height: 1.8;
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,255,100,0.05);
}

.contact-info a {
  color: #00e676;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #a8ffb3;
}

/* Form Box */
.contact-form {
  background: rgba(255,255,255,0.08);
  padding: 35px;
  border-radius: 12px;
  width: 360px;
  box-shadow: 0 0 20px rgba(0,255,100,0.08);
  backdrop-filter: blur(6px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255,255,255,0.25);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}

.contact-form button {
  width: 100%;
  background: #1e8c3a;
  border: none;
  padding: 12px;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  background: #29b24c;
  box-shadow: 0 0 12px rgba(46,204,113,0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .contact-info, .contact-form {
    width: 90%;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }
  .earth {
    width: 280px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}
footer {
  background: linear-gradient(180deg, rgba(0, 10, 15, 0.95), rgba(0, 0, 0, 0.98));
  text-align: center;
  padding: 25px 10px;
  border-top: 1px solid rgba(0, 255, 100, 0.15);
  color: #cfcfcf;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -2px 20px rgba(0, 255, 100, 0.05);
}

/* subtle glowing divider effect */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: radial-gradient(circle, rgba(0, 255, 100, 0.5), transparent 70%);
}

/* text glow + hover */
footer p {
  margin: 0;
  color: #a8f5b4;
  text-shadow: 0 0 8px rgba(0, 255, 100, 0.4);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

footer p:hover {
  text-shadow: 0 0 15px rgba(0, 255, 100, 0.8);
  color: #00ff88;
}

