/* 🎨 ألوان أساسية: #7399D0 - #61BEB2 */

/* ===================== */
/* 🌍 القواعد العامة */
/* ===================== */
:root {
    --primary-color: #7399D0;
    --secondary-color: #61BEB2;
    --dark-color: #20264D;
    --light-color: #f5f5f5;
    --text-color: #333;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/* ===================== */
/* 🧭 HEADER */
/* ===================== */
.header {
  background-color: white;
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.header .logo {
  color: var(--dark-color);
  font-size: 28px;
  font-weight: bold;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.header .main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .main-nav > li > a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  position: relative;
  color: var(--text-color);
  padding: 0 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.header .main-nav > li > a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.header .main-nav > li > a:hover {
  color: var(--primary-color);
}

.header .main-nav > li > a:hover::before {
  width: 80%;
}

/* أزرار التوثيق */
.cta {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(115, 153, 208, 0.4);
}

.cta.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta.secondary:hover {
  background: white;
  color: var(--dark-color);
}

* 🔐 تنسيقات زر SIGN IN في النافبار */
/* ===================== */
#auth-buttons {
    display: flex !important;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

#auth-buttons .cta {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color)) !important;
    color: white !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    white-space: nowrap !important;
    min-width: 80px !important;
    height: 40px !important;
    line-height: 1 !important;
}

#auth-buttons .cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(115, 153, 208, 0.4) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* ===================== */
/* 🏔️ LANDING */
/* ===================== */
.landing {
  min-height: 100vh;
  background-image: url('/static/img/2108.w023.n001.921B.p1.921.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 80px;
}

.landing .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(32, 38, 77, 0.8), rgba(115, 153, 208, 0.6));
}

.landing .text {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  color: white;
  z-index: 2;
}

.landing .content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.landing .content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 600px;
}

.landing-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.landing-cta {
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================== */
/* 🏷️ العناوين العامة */
/* ===================== */
.products {
  margin: 100px auto 50px;
  border: 2px solid var(--dark-color);
  padding: 15px 30px;
  font-size: 2.5rem;
  width: fit-content;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.products:hover {
  color: white;
  border: 2px solid white;
}

.products::before,
.products::after {
  content: "";
  width: 15px;
  height: 15px;
  position: absolute;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.products::before { left: -40px; }
.products::after { right: -40px; }

.products:hover::before {
  z-index: -1;
  animation: left-move 0.5s ease-out forwards;
}

.products:hover::after {
  z-index: -1;
  animation: right-move 0.5s ease-out forwards;
}

@keyframes left-move {
  0% { left: -40px; width: 15px; height: 15px; }
  50% { left: 0; width: 15px; height: 15px; border-radius: 50%; }
  100% { left: 0; border-radius: 0; width: 100%; height: 100%; }
}

@keyframes right-move {
  0% { right: -40px; width: 15px; height: 15px; }
  50% { right: 0; width: 15px; height: 15px; border-radius: 50%; }
  100% { right: 0; border-radius: 0; width: 100%; height: 100%; }
}

/* ===================== */
/* 🧰 SERVICES */
/* ===================== */
.services {
  padding: 80px 20px;
  background: var(--light-color);
}

.services .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.services .box {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.services .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.services .box .img-holder {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.services .box .img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.services .box:hover .img-holder img {
  transform: scale(1.1);
}

.services .box h2 {
  margin: 25px 25px 15px;
  font-size: 1.5rem;
  color: var(--dark-color);
  font-weight: 600;
}

.services .box p {
  line-height: 1.7;
  font-size: 1rem;
  margin: 0 25px 25px;
  color: #666;
}

.services .box a {
  display: inline-block;
  border: 2px solid var(--primary-color);
  padding: 12px 30px;
  margin: 0 25px 30px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  border-radius: 25px;
  transition: all 0.3s ease;
  background: linear-gradient(to right, var(--primary-color) 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}

.services .box:hover a {
  background-position: left bottom;
  color: white;
  border-color: var(--primary-color);
}

/* ===================== */
/* 🏢 ABOUT */
/* ===================== */
.about-full {
  padding: 80px 20px;
  background: white;
}

.about-full .about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-full .img-holder {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.about-full .img-holder img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-full .text-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.about-full .text-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-weight: 700;
}

.about-full .text-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #666;
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.stat-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* ===================== */
/* 📞 CONTACT */
/* ===================== */
.contact {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8fbff, #e8f4f8);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 25px;
  font-weight: 700;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.contact-info .icon {
  width: 40px;
  margin-right: 15px;
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.contact-info a {
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.contact-info p:hover .icon,
.contact-info p:hover a {
  color: var(--secondary-color);
}

.business-hours {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.business-hours h4 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(97, 190, 178, 0.1);
  outline: none;
}

.contact-form button {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(115, 153, 208, 0.3);
}

/* ===================== */
/* 🧱 PORTFOLIO */
/* ===================== */
.portfolio {
  padding: 80px 20px;
  background: white;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item h3 {
  padding: 20px 15px 10px;
  font-size: 1.3rem;
  color: var(--dark-color);
  font-weight: 600;
}

.portfolio-item p {
  padding: 0 15px 20px;
  color: #666;
  font-size: 0.9rem;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ===================== */
/* ⚓ FOOTER */
/* ===================== */
.footer {
  background: linear-gradient(135deg, var(--dark-color), #2c3e50);
  color: white;
  padding: 60px 20px 20px;
}

.footer-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  padding: 0;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #bdc3c7;
}

.footer-section a {
  color: #bdc3c7;
  transition: color 0.3s ease;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: #bdc3c7;
}

.newsletter-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: var(--secondary-color);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding: 25px 0 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #bdc3c7;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--secondary-color);
  margin: 0 10px;
}

/* ===================== */
/* 📱 Responsive */
/* ===================== */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    padding: 10px;
  }
  
  .header .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }
  
  .header .main-nav > li > a {
    height: 60px;
    padding: 0 15px;
    font-size: 0.9rem;
  }
  
  .landing {
    margin-top: 140px;
    text-align: center;
  }
  
  .landing .content h2 {
    font-size: 2.5rem;
  }
  
  .landing .content p {
    font-size: 1.1rem;
  }
  
  .landing-buttons {
    justify-content: center;
  }
  
  .products {
    font-size: 2rem;
    margin: 80px auto 40px;
  }
  
  .stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-container,
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .services .container {
    grid-template-columns: 1fr;
  }
  
  .portfolio-container {
    grid-template-columns: 1fr;
  }
  
  .footer-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}