:root {
  --accent: #1f7a2e;
  --dark: #000000;
  --muted: #000000;
  --bg: #1f7a2e;
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden; /* stop horizontal scrolling */
}

/* Header */
header {
  height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8800;
  overflow: hidden;
}

/* Background video */
.header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.header-overlay {
  width: 100%;
  max-width: 1200px;
  padding: 24px;
  background: linear-gradient(270deg, rgba(199, 196, 196, 0.452), rgba(201, 195, 195, 0.425));
  border-radius: 8px;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#header-logo { height: 64px; width: auto; border-radius: 6px; }

/* language buttons */
.lang-buttons button {
  margin-left: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background: #ffffffaa;
  cursor: pointer;
}
.lang-buttons button:hover { background: #ffffff; }

/* header titles */
#header-title { font-size: 32px; margin: 20px 0 6px; text-align: center; }
#header-sub { margin: 0 0 18px; text-align: center; opacity: 0.95; }

/* nav */
.main-nav ul { list-style: none; padding: 0; display: flex; gap: 18px; justify-content: center; margin: 10px 0 0; }
.main-nav a {
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.548); }

/* Sections */
.section {
  max-width: 1300px;
  margin: 32px auto;
  padding: 18px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.section-header { margin-bottom: 16px; background-image: url(background.jpg); }
.section-header h2 { margin: 0 0 6px; font-size: 30px; text-align: center; }
.section-header p { margin: 0; color: #fafafa; }

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.about-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.about-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Partners */
.partners { margin-top: 18px; }
.partners-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.partner {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fafafa;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.partner img { height: 70px; width: auto; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.service-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
}
.service-img,
.service-video {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Projects */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.project-commit { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.project-commit img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
.project-stats {
  display: flex;
  gap: 12px;
  justify-content: space-around;
  background: #fafafa;
  padding: 12px;
  border-radius: 8px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }

/* Gallery */
.gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.project-card {
  width: calc(20% - 8px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.project-card img,
.project-card video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.project-card figcaption { padding: 10px; }

/* Footer */
footer { background: #222; color: #fff; padding: 18px 10px; margin-top: 20px; }
.footer-contact {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-item a { color: #fff; text-decoration: none; }
.social-icons {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}
.social-icons a i {
  font-size: 40px;
  color: white;
  background: #25D366;
  padding: 12px;
  border-radius: 50%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.social-icons a.instagram i { background: #E1306C; }
.social-icons a.tiktok i { background: #000000; }
.social-icons a.youtube i { background: #fa0000; }
.social-icons a i:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.footer-copy { text-align: center; margin-top: 10px; opacity: 0.9; }

/* Responsive */
@media (max-width: 900px) {
  .project-card { width: calc(50% - 8px); }
  .header-overlay { padding: 16px; }
  #header-title { font-size: 22px; }
}
@media (max-width: 600px) {
  .project-card { width: 100%; }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .header-top { flex-direction: column; gap: 10px; align-items: center; }
  .service-item, .about-card { align-items: center; text-align: center; }
  .service-item div, .about-card div { text-align: center; }
}
@keyframes moveBg {
  from { background-position: 0 0; }
  to { background-position: -1000px 0; }
}
