/*----------------- General Styles -----------------*/
:root {
  --background-light: #ffffff;
  --background-dark: #000000;
  --text-light: #000000;
  --text-dark: #ffffff;
  --surface: #f7f7f7;
  --text: #111;
  --muted: #666;
  --accent: #0000EE;
  --container: 1200px;
  --radius: 10px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--background-light);
  color: var(--text-light);
  transition: background-color 0.3s, color 0.3s;
}


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

h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.25rem;
}

p {
  margin: 0.45rem 0;
  color: var(--muted);
}

.lead {
  color: var(--text);
  margin-bottom: 1rem;
}

.card {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

ul {
  margin: 0.5rem 0 0 1.25rem;
}

li {
  margin: 0.4rem 0;
}

.meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.contact .item {
  flex: 1 1 220px;
  background: #fff;
  border: 1px solid #eee;
  padding: 0.75rem;
  border-radius: 8px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

/*----------------- End General Styles -----------------*/



/*----------------- Navbar -----------------*/
/* Navbar base */
.navbar {
  background: #000;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a img {
  width: 40px;
}


.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding-bottom: 0.25rem;
  position: relative;
  transition: color 0.3s;
}

/* Underline for active/current page */
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #007bff;
  border-radius: 2px;
}


/* Hover underline effect */
.nav-menu a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #007bff;
  border-radius: 2px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media(max-width:768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1rem;
  }
}


/*----------------- End Navbar -----------------*/

/*----------------- Hero Section -----------------*/
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #222;
}

.hero h1 span {
  color: #0077ff;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: #0077ff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #0056cc;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/*----------------- End Hero -----------------*/

/*----------------- About Section -----------------*/
.about {
  padding: 80px 20px;
  background: #f9fafb;
  text-align: center;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #222;
}

.about p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.about-highlights li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
}

/*----------------- End About Section -----------------*/

/*----------------- Services Section -----------------*/
.services {
  padding: 80px 0;
  background: #f9f9f9;
}

.services h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.services .intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 12px;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.5;
}

/*----------------- End Services Section -----------------*/



/*----------------- Portfolio Section Styles -----------------*/
#portfolio {
  padding: 80px 20px;
  background: #f9fafb;
}

.portfolio-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #222;
}

.portfolio-intro {
  max-width: 700px;
  margin: 0 auto 50px auto;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.portfolio-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-item h3 {
  font-size: 1.3rem;
  margin: 15px;
  color: #222;
}

.portfolio-item p {
  font-size: 0.95rem;
  margin: 0 15px 20px;
  color: #666;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-content h2 {
    font-size: 1.8rem;
  }

  .portfolio-intro {
    font-size: 0.95rem;
  }
}

/*----------------- End Portfolio Section -----------------*/


/*----------------- Contact Section Styles -----------------*/
.contact-section {
  padding: 80px 20px;
  background: #f7f7f7;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.contact-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #222;
}

.contact-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Layout */
.contact-layout {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Form */
.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #333;
}

/* Contact Info */
.contact-info {
  flex: 1 1 300px;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.contact-info a {
  color: #000;
  text-decoration: underline;
}

.contact-info p {
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }
  .contact-info {
    text-align: center;
  }
}

/*----------------- End Contact Section Styles -----------------*/


/*----------------- Footer -----------------*/
.footer {

  background: var(--background-dark);
  color: var(--text-dark);
  text-align: center;
  border-top: 1px solid #ddd;
}

.footer .social-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer .social-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.footer .social-links a:hover {
  color: #007bff;
}

/*----------------- End Footer -----------------*/


/*----------------- Responsive -----------------*/
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    /* stretch full width */
    background: var(--background-light);
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 0;
    /* remove rounded corners for full width */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    /* make items spread across width */
  }

  .nav-menu ul li a {
    padding: 0.8rem 1rem;
    width: 100%;
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .container {
    padding: 1rem;
  }

  .contact {
    flex-direction: column;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

@media (max-width: 900px) {

  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image,
  .about-image {
    margin: 0 auto;
  }
}


/* Responsive grid and animations placeholders */
.hero,
.highlights,
.services-overview,
.clients,
.testimonials,
.company-story,
.mission,
.vision,
.values,
.timeline,
.team,
.services-list,
.service-details,
.portfolio-grid,
.modal,
.filters,
.contact-details,
.contact,
.privacy,
.terms {
  padding: 50px;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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



html[dir="rtl"] {
  text-align: right;
}

html[dir="ltr"] {
  text-align: left;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

html[dir="rtl"] .contact .item {
  text-align: right;
}

html[dir="ltr"] .contact .item {
  text-align: left;
}

#lang-select {
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

#lang-select:focus {
  outline: none;

}