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

:root {
  --green-bright: #b0fd30;
  --green-mid: #98d92f;
  --green-dark: #71a220;
  --green-hero: #caff00;
  --dark-bg: #272727;
  --footer-bg: #3e3e3e;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: #333;
  overflow-x: clip;
}


/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 160;
  background: rgba(0, 0, 0, 0.52);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.3s;
}

.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li + li::before {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 32px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green-bright);
}

.nav-links a.active {
  color: var(--green-bright);
}

.mobile-menu ul a.active {
  color: var(--green-bright);
}

/* ── HAMBURGER BUTTON ────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease,
    width 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ──────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu ul li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu ul a {
  color: var(--white);
  text-decoration: none;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.mobile-menu ul a:active {
  color: var(--green-bright);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 950px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(0, 0, 0) 14%,
    rgb(50, 50, 50) 52%,
    rgba(70, 70, 70, 0.78) 74%,
    rgba(97, 97, 97, 0.47) 87%,
    rgba(139, 139, 139, 0.51) 100%
  );
  opacity: 0.56;
}

.hero-overlay-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 330px;
  background: linear-gradient(
    180deg,
    rgba(217, 217, 217, 0) 0%,
    rgba(236, 236, 236, 0.49) 23%,
    rgba(244, 244, 244, 0.71) 40%,
    rgb(255, 255, 255) 64%
  );
}

.hero-content-bg {
  position: absolute;
  top: 330px;
  left: 0;
  right: 0;
  height: 190px;
  background: rgba(0, 0, 0, 0.32);
}

.hero-text {
  position: absolute;
  top: 334px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.hero-text h1 {
  font-size: clamp(52px, 6.25vw, 90px);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 4px 4px black;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.hero-text h1 span {
  font-weight: 400;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 500;
  color: var(--green-hero);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ── ABOUT US ────────────────────────────────────────────────── */
.about {
  background: #fff;
  padding: 80px 60px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}

.about-text h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 28px;
}

.about-text p {
  font-size: 22px;
  font-weight: 400;
  color: #777;
  line-height: 1.65;
}

.about-text p strong {
  color: var(--green-dark);
  font-weight: 700;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 344px;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

.about-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgb(255, 255, 255) 80%
  );
}

.portfolio-btn-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;  
  background: #333;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  padding: 14px 30px;
  text-decoration: none;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 50%,
    calc(100% - 20px) 100%,
    0 100%
  );
  transition: background 0.2s;
}

.portfolio-btn:hover {
  background: var(--green-dark);
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services {
  background: var(--dark-bg);
  padding: 60px 60px 80px;
  position: relative;
}

.services-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--green-bright);
  margin-bottom: 50px;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.service-block.reverse {
  direction: rtl;
}
.service-block.reverse > * {
  direction: ltr;
}

.service-img-wrap {
  position: relative;
  height: 344px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(39, 39, 39, 0) 0%,
    rgb(39, 39, 39) 80%
  );
}

.service-block.reverse .service-img-wrap::after {
  background: linear-gradient(
    90deg,
    rgba(39, 39, 39, 0) 0%,
    rgb(39, 39, 39) 80%
  );
}

.service-text h3 {
  font-size: 38px;
  font-weight: 700;
  color: var(--green-bright);
  margin-bottom: 18px;
}

.service-text p {
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.65;
}

.service-text p strong {
  color: var(--green-mid);
  font-weight: 700;
}

.service-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.service-btn--primary {
  background: var(--green-bright);
  color: #1a1a18;
  border: 1px solid var(--green-bright);
}

.service-btn--primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.service-btn--ghost {
  background: transparent;
  color: var(--green-bright);
  border: 1px solid rgba(176,253,48,0.40);
}

.service-btn--ghost:hover {
  background: rgba(176,253,48,0.10);
  border-color: var(--green-bright);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 50px 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 14px;
  font-size: 18px;
}
.footer-col ul a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover,
.footer-col ul a:active {
  color: var(--green-bright);
}

.footer-company h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}
.footer-company a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-company a:hover,
.footer-company a:active {
  color: var(--green-bright);
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 17px;
  line-height: 1.6;
}

.footer-contact-label {
  font-weight: 700;
  color: var(--white);
  min-width: 48px;
  padding-top: 1px;
  flex-shrink: 0;
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-address span {
  color: rgba(255, 255, 255, 0.85);
}

.footer-address span:first-child {
  color: var(--white);
  font-weight: 500;
}

.footer-newsletter h4 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
}
.newsletter-form input {
  flex: 1;
  background: var(--white);
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  color: #999;
  border-radius: 5px 0 0 5px;
  outline: none;
}
.newsletter-form button {
  background: var(--green-dark);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--green-mid);
}
.newsletter-form button:active {
  background: var(--green-bright);
  color: #000;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

 

/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav-links a {
    font-size: 18px;
  }
  .nav-links li + li::before {
    margin: 0 20px;
  }
  .about {
    padding: 80px 40px 60px;
  }
  .services {
    padding: 60px 40px 80px;
  }
  footer {
    padding: 50px 40px 40px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    height: 70px;
  }

  .nav-logo img {
    height: 54px;
  }

  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    height: 100svh;
    min-height: 480px;
  }

  .hero-text {
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    white-space: normal;
  }

  .hero-text h1 {
    font-size: clamp(32px, 8vw, 52px);
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-top: 14px;
  }

  .hero-content-bg {
    top: 50%;
    transform: translateY(-50%);
    height: 190px;
    left: 0;
    right: 0;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 60px 20px 40px;
    gap: 28px;
  }

  .about-text h2 {
    font-size: 32px;
  }
  .about-text p {
    font-size: 17px;
  }

  .about-img-wrap img {
    height: 240px;
  }
  
  .about-img-wrap::after {
    display: none;
  }

  .portfolio-btn {
    font-size: 18px;
    padding: 12px 24px;
  }

  .services {
    padding: 40px 20px 60px;
  }
  
  .services-title {
    font-size: 30px;
    margin-bottom: 32px;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }

  .service-block.reverse {
    direction: ltr;
  }

  .service-img-wrap {
    height: 220px;
  }
  .service-img-wrap::after {
    display: none;
  }

  .service-text h3 {
    font-size: 26px;
  }
  .service-text p {
    font-size: 16px;
  }

  .service-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  footer {
    padding: 40px 20px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col h4,
  .footer-company h4 {
    font-size: 18px;
  }

  .footer-col ul li {
    font-size: 16px;
  }
  .footer-company p {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .mobile-menu ul a {
    font-size: 22px;
  }
}

/* ── LOADING SCREEN ──────────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #272727;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(176, 253, 48, 0.2);
  border-top-color: #b0fd30;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--green-bright);
  color: #000;
  transform: translateY(-3px);
}
