@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* Premium Industrial Gray Palette */
  --primary-color: #2d3748;    /* Dark Granite Gray */
  --secondary-color: #4a5568;  /* Steel Gray */
  --accent-gold: #c4a163;      /* Metallic Gold (Kept for highlights) */
  --accent-silver: #cbd5e1;    /* Refined Gray for text on dark */
  --accent-steel: #718096;     /* Slate Gray */

  --bg-light: #f1f5f9;
  --bg-white: #ffffff;
  --text-dark: #334155;        /* Medium Dark Gray for body */
  --text-light: #64748b;
  --text-white: #f8fafc;
  --text-light: #64748b;
  --text-white: #f8fafc;

  /* Typography */
  --font-main: 'Tajawal', sans-serif;

  /* Layout */
  --container-width: 1200px;
  --transition-speed: 0.4s;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[dir="rtl"] {
  direction: rtl;
}

html[dir="ltr"] {
  direction: ltr;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-gold), #e6c17e);
  border-radius: 2px;
}

/* Shared Hero & Page Headers */
.hero, .page-header {
    position: relative;
    text-align: center;
    color: var(--accent-silver);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(45, 55, 72, 0.35), rgba(45, 55, 72, 0.45));
    z-index: 1;
}

/* Projects Gallery */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(13, 30, 51, 0.9));
    color: white;
}

.gallery-overlay h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

/* Base Header/Navbar Styles */
.header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: none;
  border-bottom: none;
  transition: all var(--transition-speed);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.page-header {
  padding: 150px 0 80px;
  text-align: center;
}

/* About & Vision Layouts */
.about-content, .vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h3, .vision-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.features-list li {
    position: relative;
    padding-right: 35px;
    font-weight: 500;
}

.features-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--accent-gold);
}

/* Products Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-img {
    height: 220px;
    width: 100%;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 25px;
}

/* Projects Layout */
.project-category {
    margin-bottom: 50px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s;
}

.hero-content h1, .page-header h1 {
    color: var(--accent-silver);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p, .page-header p {
    color: var(--accent-silver);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.8;
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.9;
}

.intro-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.intro-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* Core Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card:hover::before {
    transform: scaleX(1);
}


.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header .nav-links a {
  color: var(--text-white);
}

.header.scrolled .nav-links a {
  color: var(--primary-color);
}

.header .logo-img {
  filter: none;
}

.header.scrolled .logo-img {
  filter: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

html[dir="ltr"] .navbar {
  flex-direction: row-reverse;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-switch {
  background: var(--primary-color);
  color: var(--text-white) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch:hover {
  background-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 161, 99, 0.3);
}

/* Vision & Mission Layout */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.vm-card {
    background: var(--bg-light);
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.vm-card:hover { transform: translateY(-10px); }

.vm-card i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
    background: var(--primary-color);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    display: inline-block;
}

.vm-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}


/* Base Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #e6c17e);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(196, 161, 99, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 161, 99, 0.4);
}

.btn-outline {
  border: 2px solid var(--text-white);
  color: var(--text-white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text-white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Contact Page Layout & Forms */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: fit-content;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    background: rgba(45, 55, 72, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(196, 161, 99, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.map-wrapper {
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 60px 0 20px;
  background-image: linear-gradient(rgba(45, 55, 72, 0.97), rgba(45, 55, 72, 0.97)), url('../img/logo-transparent.png');
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: -50px -50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--accent-gold);
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.footer-col p,
.footer-col li {
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 15px;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-col li i {
  color: var(--accent-gold);
  margin-left: 10px;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
  transform: translateX(-5px);
  display: inline-block;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.4);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 1s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  :root {
    --container-width: 95%;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* Header & Navbar */
  .navbar {
    height: 70px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-white);
    flex-direction: column;
    padding: 40px 20px;
    gap: 25px;
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

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

  .nav-links a {
    color: var(--primary-color) !important;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block !important;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
  }
  
  .header.scrolled .menu-toggle {
      color: var(--primary-color);
  }
  
  .header:not(.scrolled) .menu-toggle {
      color: var(--text-white);
  }

  /* Grids */
  .intro-grid, 
  .values-grid, 
  .vm-grid, 
  .about-content, 
  .vision-grid,
  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

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

  /* Hero Section */
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }

  .intro-image {
    order: -1;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .footer-col li i {
      margin: 0 5px;
  }
}

.menu-toggle {
  display: none;
}