/* ===============================================
   EMAAR Residential Contracting
   Enhanced Modern Stylesheet
   Colors: Gold / Navy / White with Gradients
   =============================================== */

/* ========== CSS Variables ========== */
:root {
  --gold: #d4a83f;
  --gold-light: #e8c76a;
  --gold-dark: #b88f2d;
  --navy: #0f1720;
  --navy-light: #1a2530;
  --navy-dark: #060a0f;
  --white: #ffffff;
  --light: #f8f9fa;
  --light-gray: #e8e9ea;
  --text: #222222;
  --text-light: #666666;

  --gradient-gold: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold-light) 100%
  );
  --gradient-navy: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-light) 100%
  );
  --gradient-overlay: linear-gradient(
    135deg,
    rgba(212, 168, 63, 0.1) 0%,
    rgba(15, 23, 32, 0.1) 100%
  );

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 4px 20px rgba(212, 168, 63, 0.3);

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ========== Global Styles ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family:
    "Tajawal",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  direction: rtl;
  background: var(--light);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Background Decorations ========== */
.bg-decoration,
.bg-decoration-2 {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
}

.bg-decoration {
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--gradient-gold);
  border-radius: 50%;
  filter: blur(100px);
  animation: float 20s ease-in-out infinite;
}

.bg-decoration-2 {
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--gradient-navy);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 30px) scale(1.1);
  }
}

/* ========== Header ========== */
.main-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.main-header.scrolled {
  padding: 0;
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo-wrapper {
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
}

.logo-icon {
  font-size: 32px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.logo-text {
  font-family: "Amiri", serif;
}

.logo-subtext {
  font-size: 12px;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 20px;
  left: 20px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--gradient-gold);
  color: var(--navy);
  font-weight: 700;
  margin-right: 10px;
  box-shadow: var(--shadow-gold);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 168, 63, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  transition: var(--transition);
}
/* ========== Hero Section ========== */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(212, 168, 63, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(212, 168, 63, 0.1) 0%,
      transparent 50%
    );
  z-index: 1;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border: 2px solid rgba(212, 168, 63, 0.2);
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation: rotate 20s linear infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 15%;
  animation: rotate 15s linear infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 20%;
  animation: rotate 25s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Hero Wrapper - Flexbox Layout */
.hero-wrapper {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Content */
.hero-content {
  text-align: right;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 168, 63, 0.15);
  color: var(--gold);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 30px;
  border: 1px solid rgba(212, 168, 63, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 30px;
  line-height: 1.3;
  font-family: "Amiri", serif;
}

.title-line {
  display: block;
  color: var(--white);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.title-highlight {
  display: block;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px;
  line-height: 1.9;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 1s both;
}

.btn {
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 168, 63, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: rgba(212, 168, 63, 0.1);
  transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
  position: relative;
  animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-wrapper::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-gold);
  border-radius: 20px;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 168, 63, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: var(--gold);
  font-size: 14px;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: var(--gold);
  margin: 10px auto 0;
  position: relative;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* ========== Section Styles ========== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
  font-family: "Amiri", serif;
}

.dark-section .section-title {
  color: var(--white);
}

.title-decoration {
  width: 80px;
  height: 4px;
  background: var(--gradient-gold);
  margin: 0 auto;
  border-radius: 2px;
}

.dark-section {
  background: var(--gradient-navy);
  color: var(--white);
}

.light-section {
  background: var(--white);
}

/* ========== About Section ========== */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text .lead-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 25px;
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: start;
  padding: 20px;
  background: var(--light);
  border-radius: 12px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(-10px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: var(--navy);
  font-weight: 900;
}

.feature-text h4 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.feature-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.visual-card {
  padding: 35px;
  background: var(--gradient-navy);
  color: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.visual-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.visual-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.visual-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--gold);
  font-family: "Amiri", serif;
}

.visual-card p {
  line-height: 1.7;
  opacity: 0.95;
}

/* ========== Projects Section ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  background: var(--white);
  color: var(--text);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

.dark-section .project-card {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-gold);
  opacity: 0.1;
  border-radius: 0 20px 0 100%;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  width: 150px;
  height: 150px;
  opacity: 0.15;
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--gold);
  font-weight: 700;
}

.dark-section .project-card h3 {
  color: var(--gold-light);
}

.project-card p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-features li {
  padding-right: 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-light);
}

.dark-section .project-features li {
  color: rgba(255, 255, 255, 0.8);
}

.project-features li::before {
  content: "→";
  position: absolute;
  right: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ========== Services Section ========== */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-box {
  position: relative;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border-right: 5px solid var(--gold);
  transition: var(--transition);
  overflow: hidden;
}

.service-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: var(--transition);
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-box:hover::before {
  opacity: 1;
}

.service-number {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 20px;
  font-family: "Amiri", serif;
}

.service-content {
  position: relative;
  z-index: 1;
}

.service-box h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 15px;
  font-weight: 700;
}

.service-box p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  padding-right: 25px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--gold);
  font-weight: 900;
}

/* ========== Engineering Section ========== */
.engineering-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.engineering-visual {
  display: flex;
  justify-content: center;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: var(--gradient-navy);
  color: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.cert-icon {
  font-size: 4rem;
  animation: pulse 2s ease-in-out infinite;
}

.cert-text span {
  display: block;
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.cert-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

.engineering-content .section-header {
  text-align: right;
  margin-bottom: 30px;
}

.engineering-content .lead-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}

.engineering-content p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.engineering-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.eng-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: var(--light);
  border-radius: 12px;
  transition: var(--transition);
}

.eng-feature:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-sm);
}

.eng-icon {
  font-size: 1.8rem;
}

/* ========== Statistics Section ========== */
.stats-section {
  background: var(--gradient-navy);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-card {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.stat-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-gold);
  opacity: 0.1;
  border-radius: 100% 0 20px 0;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.stat-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  font-family: "Amiri", serif;
  display: block;
  margin-bottom: 10px;
}

.stat-value::after {
  content: "+";
  margin-right: 5px;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ========== Structure Section ========== */
.structure-diagram {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.structure-level {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.structure-level::before {
  content: "";
  position: absolute;
  top: -15px;
  right: 50%;
  width: 2px;
  height: 15px;
  background: var(--gold);
}

.structure-level:first-child::before {
  display: none;
}

.structure-box {
  background: var(--white);
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--light-gray);
  transition: var(--transition);
  text-align: center;
  min-width: 200px;
  position: relative;
}

.structure-box::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 50%;
  width: 2px;
  height: 30px;
  background: var(--gold);
  display: none;
}

.structure-level:not(:first-child) .structure-box::before {
  display: block;
}

.structure-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.box-ceo {
  background: var(--gradient-gold);
  color: var(--navy);
  border-color: var(--gold-dark);
}

.box-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.structure-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.structure-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.box-ceo p {
  color: var(--navy);
  opacity: 0.8;
}

/* ========== Contact Section ========== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: start;
  padding: 25px;
  background: var(--light);
  border-radius: 15px;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(-10px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 2.5rem;
}

.contact-details h4 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.contact-details p {
  color: var(--text-light);
  margin: 0;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-group label {
  position: absolute;
  right: 20px;
  top: 15px;
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
  background: var(--light);
  padding: 0 5px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 12px;
  color: var(--gold);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== Footer ========== */
.main-footer {
  background: var(--gradient-navy);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  font-family: "Amiri", serif;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-section h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(-5px);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

/* ========== Back to Top Button ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(212, 168, 63, 0.4);
}

/* ========== Animations ========== */
.hidden {
  opacity: 0;
  transform: translateY(30px);
}

.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Responsive Design ========== */
@media (max-width: 992px) {
  .about-content,
  .engineering-layout,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .engineering-content .section-header {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 15px 0;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: var(--navy);
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    gap: 0;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-right: 0;
    margin-top: 10px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats-mini {
    gap: 30px;
  }

  .section {
    padding: 60px 0;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .engineering-features {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    font-size: 26px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .structure-box {
    min-width: 160px;
  }
}

/* Projects Gallery Section */
.projects-gallery {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: "Cairo", "Tajawal", sans-serif;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d4a574 0%, #f4c896 100%);
  margin: 0 auto;
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.3);
}

.project-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 20, 25, 0) 0%,
    rgba(15, 20, 25, 0.7) 60%,
    rgba(15, 20, 25, 0.95) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info h3 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: "Cairo", "Tajawal", sans-serif;
}

.project-info p {
  font-size: 16px;
  color: #d4a574;
  margin: 0;
  font-family: "Cairo", "Tajawal", sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .projects-gallery {
    padding: 60px 15px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .section-title {
    font-size: 36px;
  }

  .project-image {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .project-image {
    height: 220px;
  }
}

/* ========== Print Styles ========== */
@media print {
  .main-header,
  .hero-buttons,
  .scroll-indicator,
  .back-to-top,
  .mobile-menu-toggle,
  .contact-form {
    display: none;
  }
}
