/*
 * General styles and variables for the MONLAND GROUP website.
 * The design embraces modern web trends such as minimalism, ample white space,
 * responsive layouts and bold accent colours. A dark theme is enabled by default
 * with an optional light mode toggle.
 */

/* Colour palette variables */
:root {
  /* Dark theme colours – inspired by modern 2025 palettes.  A deep blue background paired
     with a vibrant purple accent creates a contemporary, high‑contrast look. */
  --bg-color: #0f172a;             /* primary background */
  --text-color: #e0e8ff;           /* light text for dark mode */
  --accent-color: #6c63ff;         /* vibrant purple accent */
  --accent-hover: #5b52e6;         /* hover state for buttons/links */
  --card-bg: #16213e;              /* dark card background */
  --nav-bg: rgba(15, 23, 42, 0.8); /* translucent nav backdrop */
  --btn-text-color: #ffffff;       /* button text colour for dark mode */

  /* Gradient colours for backgrounds and highlights */
  --gradient-start: #6c63ff;
  --gradient-end: #3b8ff3;

  /* Light theme overrides – gentle neutrals for a fresh, airy aesthetic. */
  --bg-color-light: #f9fafc;
  --text-color-light: #1f2937;
  --card-bg-light: #ffffff;
  --nav-bg-light: rgba(255, 255, 255, 0.85);
  --btn-text-color-light: #ffffff;
  --accent-color-light: #6c63ff;
  --accent-hover-light: #5b52e6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  /* Use Poppins for a modern, legible typeface */
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Light mode overrides */
body.light {
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
}
body.light .navbar {
  background-color: var(--nav-bg-light);
}
/* Light mode component backgrounds */
body.light .service-card,
body.light .feature-item,
body.light .about,
body.light .cta-section {
  /* Use soft gradients in light mode for cards and sections */
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fc 100%);
  color: var(--text-color-light);
}
body.light .btn.primary {
  color: var(--btn-text-color-light);
}
body.light #theme-toggle {
  color: var(--accent-color);
}

/* Light mode navigation text */
body.light .nav-links li a {
  color: var(--text-color-light);
}
body.light .nav-links li a:hover,
body.light .nav-links li a.active {
  color: var(--accent-color);
}
body.light .brand {
  color: var(--accent-color);
}

/* Additional light mode overrides for gradients */
body.light .footer {
  background: var(--nav-bg-light);
}
body.light .cta-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf3 100%);
}
body.light .about {
  background: linear-gradient(135deg, #f7f9fc 0%, #edf1f9 100%);
}
body.light .service-card:hover,
body.light .feature-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

/* Navigation bar */
.navbar {
  background-color: var(--nav-bg);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.75rem 0;
  backdrop-filter: blur(6px);
}

/* Flex layout for nav inner container */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navigation actions: theme and language toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switcher styles */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}
.lang-switcher .lang-btn {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s;
}
.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn.active {
  background-color: var(--accent-color);
  color: var(--btn-text-color);
}

/* Light mode overrides for language buttons */
body.light .lang-switcher .lang-btn {
  border-color: var(--accent-color);
  color: var(--accent-color);
}
body.light .lang-switcher .lang-btn:hover,
body.light .lang-switcher .lang-btn.active {
  background-color: var(--accent-color);
  color: var(--btn-text-color-light);
}
.navbar .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-color);
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-color);
}
#theme-toggle {
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-size: 1.4rem;
  cursor: pointer;
  padding-left: 1rem;
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Increase hero height for a more immersive first impression */
  min-height: 75vh;
  color: var(--text-color);
  text-align: center;
  overflow: visible;
}
.hero .hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(10, 25, 47, 0.55);
  z-index: 0;
}

/* Light mode overlay for hero – lighten the overlay so text remains legible on dark images */
body.light .hero .hero-overlay {
  background: rgba(255, 255, 255, 0.6);
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* New hero grid layout: split hero into text and image sections */
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Make hero text centered on narrow screens and stack image below text */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .hero-text, .hero-image {
    flex: none;
    width: 100%;
  }
  .hero-image img {
    max-width: 80%;
    margin: 0 auto;
  }
}
.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

/* Specific hero backgrounds */
/* Remove individual hero background images; rely on internal image elements */
.home-hero,
.travel-hero,
.it-hero {
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.8) 0%, rgba(10, 25, 47, 0.95) 100%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.btn.primary {
  background-color: var(--accent-color);
  color: var(--btn-text-color);
}
.btn.primary:hover {
  background-color: #52e0c4;
  color: var(--btn-text-color);
}
.btn.secondary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background-color: transparent;
}
.btn.secondary:hover {
  background-color: var(--accent-color);
  color: var(--btn-text-color);
}
.btn-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}
.btn-link:hover {
  color: #52e0c4;
}

/* Services section */
.services {
  padding: 4rem 0;
  text-align: center;
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  /* Use a modern gradient background for service cards */
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.service-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.service-content {
  padding: 2rem;
  text-align: left;
}
.service-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}
.service-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* About section */
.about {
  padding: 5rem 0;
  /* Use a gradient background to give the about section depth and a unique feel */
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: var(--btn-text-color);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}
.about-image img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* Generic sections */
.section {
  padding: 4rem 0;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.section p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 2rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-item {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.35s, box-shadow 0.35s;
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}
.feature-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.feature-item p {
  font-size: 1rem;
  line-height: 1.5;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: var(--btn-text-color);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1rem;
}

/* Footer */
.footer {
  margin-top: auto;
  /* Gradient footer to finish the page with a polished look */
  background: linear-gradient(135deg, #1b2a47 0%, #111b34 100%);
  color: var(--text-color);
  padding: 3rem 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #52e0c4;
}

/* Light mode footer override */
body.light .footer {
  background: var(--nav-bg-light);
  color: var(--text-color-light);
}
body.light .footer-links a:hover {
  color: var(--accent-hover-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image {
    order: -1;
  }
  .nav-links {
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* Multi-language display: stack English and Russian lines */
[data-lang] {
  display: block;
}

/* Styling for Russian text to differentiate visually */
[data-lang="ru"] {
  font-size: 0.9em;
  line-height: 1.3;
}

/* Navigation language sizing */
.nav-links a span[data-lang="ru"] {
  font-size: 0.8em;
  opacity: 0.8;
}