@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600&family=Heebo:wght@400;700;900&display=swap');

:root {
  /* Brand Color Palette */
  --bg: #0f1115;
  --bg-gradient: linear-gradient(180deg, #0a0b0e, #14161c);
  --card: rgba(22, 25, 33, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f0f2f5;
  --text-muted: #9ca3af;
  --accent: #ccae52;
  --accent-glow: rgba(204, 174, 82, 0.3);
  --brand-dark: #302e29;
  --line: rgba(255, 255, 255, 0.06);
  --glass: blur(12px);

  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Assistant', sans-serif;

  --radius: 16px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-y: scroll;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-gradient);
  background: radial-gradient(circle at 50% 0%, #1a1d24, #0f1115 80%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease
}

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

/* Layout */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand .name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  background: linear-gradient(45deg, #fff, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand .sub {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-mark {
  display: none;
  /* Replaced by SVG */
}

.logo-svg {
  flex-shrink: 0;
}

/* Section Title with Lines */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.section-title::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.section-title h2 {
  margin: 0;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--text-muted);
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav .pill {
  border: 1px solid var(--line);
  padding: 4px 12px;
  font-size: 0.8rem;
}

.actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn.primary:hover {
  background: #f0c441;
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  overflow: hidden;
  z-index: 1;
  /* Establish stacking context */
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

/* Slide 1: Villa - cover full area, balanced to show sky and pool with zoom */
.hero-slide:nth-child(1) img {
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.12);
}

/* Slide 2: Heavy machines - cover full area, positioned slightly up */
.hero-slide:nth-child(2) img {
  object-fit: cover;
  object-position: 50% 40%;
}

/* Slide 3: Measurements - perfect as-is */
.hero-slide:nth-child(3) img {
  object-position: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 1.05rem;
  color: var(--accent);
  backdrop-filter: blur(4px);
  font-weight: 600;
}

.h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

/* Hero Description Styles */
.hero-description {
  margin-bottom: 50px;
}

.hero-intro {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-services {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.service-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.service-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-divider {
  font-size: 1.5rem;
  color: var(--line);
  opacity: 0.5;
}

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

@media (max-width: 768px) {
  .hero-intro {
    font-size: 1.1rem;
  }

  .service-icon {
    font-size: 2rem;
  }

  .service-label {
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }
}

.section {
  padding: 30px 0 60px 0;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.bg-white {
  background: #f9fafb;
  color: #111;
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white p {
  color: #111;
}

.bg-white .lead {
  color: #4b5563;
}

.bg-dark {
  background: #0f1115;
  color: #fff;
}

/* Partners Grid - exactly 5 columns */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  align-items: start;
  justify-items: center;
  margin-top: 40px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.partner-icon {
  width: 70px;
  height: 70px;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s;
}

.partner-item:hover .partner-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-item span {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 600;
}

.partner-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.partner-item:hover .partner-logo-img {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partner-logo {
  font-weight: 700;
  color: #9ca3af;
  font-size: 1.2rem;
  border: 2px solid #e5e7eb;
  padding: 15px 25px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  transition: all 0.3s;
}

.partner-logo:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Marquee Animation for Partners */

/* Carousel Styles */
.marquee-container {
  overflow: hidden;
  padding: 20px 0;
  margin: 0;
  width: 100%;
  margin-bottom: 10px;
  position: relative;
  min-height: 180px;
}

.marquee-container.reverse {
  transform: scaleX(-1);
}

.marquee-container.reverse .marquee-item {
  transform: scaleX(-1);
}



.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 350px;
  flex-shrink: 0;
  padding: 0 30px;
}

.marquee-item img {
  height: 115px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.marquee-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  margin-top: 8px;
}

/* SVG Icon Utilities */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.icon-lg {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-xl {
  width: 3rem;
  height: 3rem;
}

.icon-accent {
  color: var(--accent);
}

.icon-white {
  color: white;
}

.service-icon .icon {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 2px 8px var(--accent-glow));
}



.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  height: 100%;
}

.tile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
  /* Gold Glow */
}

.icon-box {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}

.icon-box.centered {
  margin-inline: auto;
}

.icon-box svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.tile h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--accent);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gitem {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gitem:hover img {
  transform: scale(1.05);
}

.gcap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s;
}

.gitem:hover .gcap {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lb-inner {
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lb-body img {
  max-height: 70vh;
  object-fit: contain;
  margin: auto;
}

.lb-story {
  margin-top: 16px;
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  white-space: pre-wrap;
  /* Preserve line breaks from txt file */
}

.lb-story:empty {
  display: none
}

.lb-top {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: #fff;
}

.lb-top button {
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: 80px;
  background: #050608;
}

/* Contact Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input,
select.input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.input:focus,
select.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input::placeholder {
  color: #6b7280;
}

textarea.input {
  resize: vertical;
  min-height: 100px;
}

select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 20px;
  padding-left: 40px;
}

@media (max-width: 768px) {
  .h1 {
    font-size: 1.8rem;
  }

  .nav {
    display: none;
  }

  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

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

  .hero-badges {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .actions .btn span {
    display: none;
  }

  /* Projects Grid - 2 columns on tablet, 1 on mobile */
  .gallery,
  #gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Partners Grid - 3 columns on tablet */
  .partners-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
  }

  .partner-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .section-title::before,
  .section-title::after {
    max-width: 60px;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  .gallery,
  #gallery {
    grid-template-columns: 1fr !important;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hero {
    min-height: 50vh !important;
    padding: 30px 0 !important;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    gap: 10px;
  }

  .section-title::before,
  .section-title::after {
    max-width: 30px;
  }
}