/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #010e20;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Loading Screen */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 2s ease-in-out 3s forwards;
}

.loading .logo {
  font-size: 3rem;
  color: #ff850f;
  font-weight: 700;
  letter-spacing: 2px;
  animation: takeoff 3s ease-in-out forwards;
}

.loading .takeoff-message {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 1rem;
  opacity: 0;
  animation: messageFade 3s ease-in-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes takeoff {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
}

@keyframes messageFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(1, 14, 32, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.nav-logo {
  font-size: 1.5rem;
  color: #ff850f;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #ff850f;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ff850f;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: fadeUp 1s ease-out;
  color: #fff;
}

.hero p {
  font-size: 1.5rem;
  color: #ff850f;
  animation: fadeUp 1s ease-out 0.5s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 5rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ff850f;
}

.section p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.grid-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 133, 15, 0.3);
}
/* الجريد الخاص بصفحة Our Work فقط */
.social-page .grid-item {
  width: 500px;
  height: 625px;
  overflow: hidden;
  padding: 0;
}

.social-page .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.grid-item i {
  font-size: 4rem;
  color: #ff850f;
  margin-bottom: 1rem;
  display: block;
}

.cta {
  background: #ff850f;
  color: #000;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}

.cta:hover {
  background: #fff;
}

/* Footer */
footer {
  background: #010e20;
  padding: 2rem;
  text-align: center;
}

footer .social-links {
  margin-bottom: 1rem;
}

footer a {
  color: #ff850f;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff;
}

/* Social Links */
.social-links a {
  color: #ff8410;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1.5rem;
}

.social-links a:hover {
  color: #fff;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #ff850f;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #fff;
  border-radius: 5px;
}

.contact-form button {
  background: #ff850f;
  color: #000;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none; /* Add mobile menu if needed */
  }

  .section {
    padding: 3rem 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp Popup */
.whatsapp-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-popup a {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-popup a:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* AOS Overrides */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s, transform 0.6s;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-left"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"] {
  transform: translateX(30px);
}
