:root {
  /* Dark mode by default */
  --bg-color: #121212;
  --secondary-color: #1e1e1e;
  --text-color: #e0e0e0;
  --text-light: #a0a0a0;
  --primary-color: #ffffff; /* Headings */
  --accent-color: #e63946;
  --cta-bg: #1e1e1e;
  --cta-text: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Manrope', sans-serif;
}

:root[data-theme="light"] {
  /* Light mode */
  --bg-color: #fafafa;
  --secondary-color: #ffffff;
  --text-color: #2b2b2b;
  --text-light: #666666;
  --primary-color: #1a1a1a; /* Headings */
  --accent-color: #d62828;
  --cta-bg: #1a1a1a;
  --cta-text: #ffffff;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Controls */
.site-header {
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 100;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.lang-switcher {
  display: flex;
  gap: 1rem;
}

.lang-switcher a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
}

.lang-switcher a:hover {
  color: #fff;
}

.lang-switcher a.active {
  color: #fff;
  border-bottom: 2px solid var(--accent-color);
}

/* Theme Toggle */
#theme-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: color 0.3s;
}

#theme-toggle:hover {
  color: var(--accent-color);
}

:root[data-theme="light"] .sun-icon { display: none; }
:root[data-theme="light"] .moon-icon { display: block; }
:root:not([data-theme="light"]) .sun-icon { display: block; }
:root:not([data-theme="light"]) .moon-icon { display: none; }

@media (max-width: 600px) {
  .site-header {
    right: 1rem;
  }
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-top: 3rem;
  text-align: center;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    padding: 0 15px;
  }
  
  .hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #d62828;
}

/* Container for content */
.masonry-gallery, .services-section, .process-section, .cta-section, .about-section, main > p, main > h2, main > h3, main > details {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Masonry Gallery */
.masonry-gallery {
  column-count: 3;
  column-gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.masonry-gallery img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  break-inside: avoid;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.masonry-gallery img:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-gallery {
    column-count: 1;
  }
}

/* Services Stack (Alternating Layout) */
.services-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.service-row {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-media, .service-text {
  flex: 1;
}

.service-media img, .service-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

.service-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .service-row, .service-row.reverse {
    flex-direction: column;
  }
  .service-text {
    order: 2;
  }
  .service-media {
    order: 1;
  }
}

/* Process Section */
.process-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.process-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  overflow: visible;
}

.process-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.process-steps ul {
  list-style: none;
}

.process-steps li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 20px;
}

.process-steps li::before {
  content: "•";
  color: var(--accent-color);
  font-size: 2rem;
  position: absolute;
  left: 0;
  top: -10px;
}

@media (max-width: 768px) {
  .process-videos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .process-videos::-webkit-scrollbar {
    display: none;
  }
  .process-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  .process-videos::after {
    content: '';
    flex: 0 0 1px;
    padding-right: 20px;
  }
}

@media (max-width: 900px) {
  .process-section {
    grid-template-columns: 1fr;
  }
}

/* FAQ Details */
details {
  background: var(--secondary-color);
  padding: 1rem 2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
}

summary {
  font-weight: bold;
  font-size: 1.2rem;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-color);
}

details[open] summary::after {
  content: "-";
}

details p {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background-color: var(--cta-bg);
  color: var(--cta-text);
  padding: 5rem 2rem;
  border-radius: 16px;
  margin-bottom: 4rem;
  margin-top: 4rem;
}

.cta-section h2 {
  color: var(--cta-text);
  margin-top: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.contact-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 2rem;
}

.contact-links span {
  font-size: 1rem;
  color: #ccc;
  font-weight: normal;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--secondary-color);
  margin-top: 4rem;
}
.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-contacts a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.footer-contacts a:hover {
  color: var(--accent-color);
}


/* About Section */
.about-intro {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  line-height: 1.6;
}
.about-section {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-section img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}
@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
  }
}
.about-text ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}
.about-text li {
  margin-bottom: 0.5rem;
}


/* Service Media Grids */
.service-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  flex: 1;
}
.service-media-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

.service-media-complex {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.service-media-complex video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}
.service-media-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.service-media-subgrid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}


/* Auto Slider */
.auto-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex: 1;
}
.auto-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  margin: 0;
  display: block;
}
.auto-slider .slide.active {
  opacity: 1;
  z-index: 2;
}

