/* Root variables for consistent theming */
:root {
  --primary: #0066cc;
  --secondary: #0099e5;
  --accent: #00c2ff;
  --dark: #0b2240;
  --light-bg: #f7f9fc;
  --text: #333;
  --white: #ffffff;
  --radius: 8px;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background-color: var(--light-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

/* Container utility class */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styles */
header {
  background-color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

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

nav a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav a.active::after, nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.lang-switch .current {
  color: var(--dark);
  font-weight: 600;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero section */
/* Hero section now supports a dynamic slider background */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6rem;
  padding-bottom: 4rem;
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  color: var(--white);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  color: #f0f4f8;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
}

/* remove hero-image because we use background images */
.hero-image {
  display: none;
}
.hero-text {
  flex: 1 1 60%;
}

/* dark overlay for hero to improve readability of text over images */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* Features section */
.features {
  background-color: var(--light-bg);
  padding: 4rem 0;
  text-align: center;
}

.features h2 {
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--dark);
}

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

/* Services overview section */
.services-overview {
  background-color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.services-overview h2 {
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-item {
  background-color: var(--light-bg);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--dark);
}

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

/* CTA Section */
.cta {
  background-image: url('assets/wave-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 4rem 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta .btn-primary {
  background-color: var(--accent);
  color: var(--dark);
}

.cta .btn-primary:hover {
  background-color: var(--secondary);
  color: var(--white);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding-top: 3rem;
}

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

.footer-about h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.footer-about p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--white);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.85rem;
}

/* Tools section */
.tools {
  background-color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.tools h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.tool-item {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.tool-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.tool-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--dark);
}
.tool-item p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

/* Clients section */
.clients {
  background-color: var(--light-bg);
  padding: 4rem 0;
  text-align: center;
}
.clients h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark);
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.client-item {
  background-color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

/* Offices section */
.offices {
  padding: 5rem 0;
  background-image: url('assets/office-new.png');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
  text-align: center;
}
.offices::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.offices-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.offices h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.offices p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Gallery section */
.gallery {
  background-color: var(--light-bg);
  padding: 4rem 0;
  text-align: center;
}

.gallery h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: var(--white);
  font-weight: 600;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .caption {
  transform: translateY(0);
  opacity: 1;
}

/* Map section */
.map-section {
  background-color: var(--white);
  padding: 4rem 0;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--dark);
}

.map-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.map-container iframe {
  border: 0;
  width: 100%;
  max-width: 500px;
  height: 350px;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Responsive styles */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: var(--white);
    height: calc(100vh - 60px);
    width: 250px;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
  }
  nav ul.open {
    transform: translateX(0);
  }
  .burger {
    display: block;
    color: var(--dark);
  }
  .lang-switch {
    display: none;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-image {
    margin-top: 2rem;
  }
}