/* =============================================
   Asia Solar Energy — style.css
   RTL Arabic website, premium design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy: #0A1628;
  --navy-light: #112240;
  --gold: #F5A623;
  --gold-dark: #D4891C;
  --white: #FFFFFF;
  --light-gray: #F8F9FB;
  --text-dark: #1a2340;
  --text-muted: #6b7a99;
  --section-pad: 100px 0;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Section Heading ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 0;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 4px;
  margin: 18px auto 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(245, 166, 35, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
}

.logo-text .brand {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.logo-text .sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 26px !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy) !important;
  border-radius: 50px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.75) 0%, rgba(10, 22, 40, 0.5) 50%, rgba(10, 22, 40, 0.85) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 0 200px;
}

.hero-content {
  max-width: 620px;
  padding-left: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.18);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.5;
  }
}

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 22px;
}

#hero h1 span {
  color: var(--gold);
}

#hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}

.hero-scroll .arrow {
  font-size: 1.2rem;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Scroll Overlay */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(10, 22, 40, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius) var(--radius) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 24px 20px;
  gap: 10px;
  z-index: 3;
}

.hero-stat-item {
  color: var(--white);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-item:first-child {
  border-inline-start: none;
}

.hero-stat-item .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.hero-stat-item .lbl {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  display: block;
}

/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: var(--section-pad);
  background: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius);
  width: 100%;
  height: 440px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-weight: 900;
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.4);
  text-align: center;
  z-index: 2;
}

.about-badge .yr {
  font-size: 2.5rem;
  line-height: 1;
}

.about-badge .txt {
  font-size: 0.8rem;
  font-weight: 600;
}

.about-content .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}

.about-content h2 {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 18px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 14px;
}

.about-features {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.about-feature .icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(245, 166, 35, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* =============================================
   SERVICES
   ============================================= */
#services {
  padding: var(--section-pad);
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid #eaecf0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.06));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* =============================================
   WHY US / STATS
   ============================================= */
#why-us {
  padding: var(--section-pad);
  background: linear-gradient(135deg, var(--navy) 0%, #0d2045 100%);
  position: relative;
  overflow: hidden;
}

#why-us::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08), transparent 70%);
  border-radius: 50%;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.why-us-content .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}

.why-us-content h2 {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
}

.why-us-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin-bottom: 36px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-item .check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--navy);
  font-weight: 700;
  margin-top: 2px;
}

.why-item .txt h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-item .txt p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(245, 166, 35, 0.1);
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-4px);
}

.stat-card .stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-card .stat-suffix {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-card .stat-lbl {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 10px;
  font-weight: 600;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: var(--section-pad);
  background: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item .ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
}

.contact-item .ci-text span {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.contact-item .ci-text a,
.contact-item .ci-text small {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-item .ci-text a:hover {
  color: var(--gold);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--light-gray);
  border: 1.5px solid #e2e6ed;
  border-radius: 10px;
  padding: 13px 16px;
  transition: var(--transition);
  direction: rtl;
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.12);
}

.form-group textarea {
  height: 130px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border: none;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.35);
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(245, 166, 35, 0.5);
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--navy);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.footer-bottom span {
  color: var(--gold);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay helpers */
.delay-1 {
  transition-delay: 0.1s !important;
}

.delay-2 {
  transition-delay: 0.2s !important;
}

.delay-3 {
  transition-delay: 0.3s !important;
}

.delay-4 {
  transition-delay: 0.4s !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {

  .about-grid,
  .why-us-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .about-badge {
    left: -10px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 999;
  }

  .nav-links.open a {
    font-size: 1.4rem;
  }

  .hero-stats {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .hero-btns {
    gap: 12px;
  }

  .btn {
    padding: 13px 28px;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}