/* styles.css for Khadmu Design and Builders */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');
:root {
  --primary: #1a1a2e;
  --accent: #f72585;
  --accent2: #7209b7;
  --bg: #0a0a23;
  --white: #fff;
  --glass: rgba(255,255,255,0.12);
  --shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
  --radius: 22px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  --gallery-bg: rgba(255,255,255,0.08);
  --neon: 0 0 12px #f72585, 0 0 24px #7209b7;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
  background: #fafdff;
  color: #1a2a33;
  overflow-x: hidden;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
html {
  scroll-behavior: smooth;
}
#bg-canvas {
  position: fixed;
  z-index: 0;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
}
.site-header {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(255,255,255,0.97);
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.08);
  backdrop-filter: blur(16px);
}
.logo {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #2e3a59;
  text-shadow: none;
  font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}
.main-nav ul li a {
  text-decoration: none;
  color: #23243a;
  font-weight: 600;
  font-size: 1.13rem;
  padding: 0.5rem 1.2rem;
  border-radius: 1.2rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.04em;
}
.main-nav ul li a:hover, .main-nav ul li a.active {
  background: #eab543;
  color: #fff;
  box-shadow: 0 0 16px #eab543;
}
.hero {
  position: relative;
  width: 100vw;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 2rem;
}
#hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.7) blur(1px);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(255,255,255,0.92);
  border-radius: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.08);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  color: #23243a;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  letter-spacing: 2.5px;
  color: #0e8a7d;
  text-shadow: none;
  font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
}
.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.2rem;
  color: #23243a;
  opacity: 0.92;
}
.btn {
  display: inline-block;
  padding: 0.9rem 2.3rem;
  border-radius: 1.2rem;
  background: linear-gradient(90deg, #1ec28b 0%, #2176ae 100%);
  color: #fff;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px #1ec28b;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-size: 1.13rem;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #2176ae 0%, #1ec28b 100%);
  color: #fff;
  box-shadow: 0 0 16px #2176ae;
}
.btn-gold {
  background: linear-gradient(90deg, #eab543 0%, #ffd700 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 16px #eab54388;
  border: none;
}
.btn-gold:hover {
  background: linear-gradient(90deg, #ffd700 0%, #eab543 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 32px #ffd70088;
  transform: translateY(-2px) scale(1.04);
}
.section {
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
  background: rgba(255,255,255,0.92);
  border-radius: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.08);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.section.visible {
  opacity: 1;
  transform: none;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}
.section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #0e8a7d;
  text-shadow: none;
  font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
}
.section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #43e97b;
  margin-bottom: 1.2rem;
}
.services-list {
  padding-left: 1.2rem;
}
.services-list li {
  margin-bottom: 0.9rem;
  font-size: 1.13rem;
  color: #23243a;
  text-shadow: 0 1px 8px #eab543;
}
.gallery-infinite {
  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  position: relative;
  margin: 2rem 0;
  height: auto;
  min-height: 200px;
  scrollbar-color: #1ec28b #e0f7fa;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.gallery-infinite::-webkit-scrollbar {
  height: 14px;
  background: #e0f7fa;
  border-radius: 8px;
  display: block;
}
.gallery-infinite::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #1ec28b 0%, #2176ae 100%);
  border-radius: 8px;
  min-width: 40px;
}
.gallery-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 2rem;
}
.gallery-track img {
  height: 180px;
  width: 320px;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: 0 0 8px #2176ae;
  border: 2.5px solid #2176ae33;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-track img:hover {
  transform: scale(1.09) rotate(-1deg);
  box-shadow: 0 0 32px #eab543, 0 0 16px #43e97b;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.contact-form input, .contact-form textarea {
  padding: 1rem 1.2rem;
  border-radius: 1.2rem;
  border: 1.5px solid #1ec28b;
  font-size: 1.05rem;
  font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
  resize: none;
  background: #fff;
  color: #1a2a33;
  box-shadow: 0 0 4px #2176ae33;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border: 1.5px solid #2176ae;
  box-shadow: 0 0 8px #2176ae;
}
.contact-form button {
  align-self: flex-start;
}
.contact-details {
  font-size: 1.05rem;
  color: #1a2a33;
  text-shadow: 0 1px 8px #eab543;
}
.site-footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #888;
  font-size: 1.05rem;
  background: none;
  text-shadow: none;
  border-radius: 2rem 2rem 0 0;
  margin-top: 2rem;
}
/* Responsive mobile menu with hamburger toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2176ae;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0.5rem;
}
@media (max-width: 900px) {
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 0.5rem;
    border-radius: 0 0 1.2rem 1.2rem;
    position: relative;
    width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.7rem;
    width: 100vw;
    min-width: 0;
    margin-top: 0.7rem;
    background: rgba(255,255,255,0.97);
    position: static;
    box-shadow: none;
    border-radius: 0 0 1.2rem 1.2rem;
    display: flex !important;
    z-index: 100;
    padding: 0;
  }
  .main-nav ul li {
    width: 100%;
  }
  .main-nav ul li a {
    width: 100%;
    display: block;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    border-radius: 0.8rem;
    text-align: left;
  }
  .logo {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    width: 100vw;
    text-align: left;
    padding-left: 0.5rem;
  }
}
@media (max-width: 600px) {
  html, body {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 1rem;
    touch-action: manipulation;
  }
  body {
    padding: 0;
    margin: 0;
  }
  .main-nav {
    padding: 0.5rem 0.2rem;
    width: 100vw;
    min-width: 0;
  }
  .logo {
    font-size: 1.1rem;
    padding-left: 0.2rem;
  }
  .hero {
    height: 44vh;
    min-height: 220px;
    width: 100vw;
    margin-bottom: 1rem;
  }
  #hero-video {
    width: 100vw;
    height: 100%;
    min-height: 220px;
  }
  .hero-content {
    padding: 0.7rem 0.2rem;
    font-size: 1rem;
    width: 98vw;
    min-width: 0;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .section {
    max-width: 100vw;
    width: 100vw;
    min-width: 0;
    margin: 0 0 1.2rem 0;
    padding: 1.2rem 0.3rem 1.2rem 0.3rem;
    border-radius: 1.2rem;
  }
  .gallery-infinite {
    height: 120px;
    min-width: 0;
    width: 100vw;
    margin: 1rem 0;
  }
  .gallery-track {
    gap: 0.7rem;
  }
  .gallery-track img {
    height: 100px;
    width: 180px;
    min-width: 120px;
    border-radius: 0.7rem;
  }
  .site-footer {
    padding: 1rem 0 0.5rem 0;
    font-size: 0.95rem;
    border-radius: 1.2rem 1.2rem 0 0;
    margin-top: 1rem;
  }
  .btn-gold {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    width: 90vw;
    max-width: 340px;
    text-align: center;
  }
}
/* Prevent zoom on mobile for better UX */
@media (max-width: 900px) {
  html {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior-x: none;
  }
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }
}
.center-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.2rem 0 0.5rem 0;
  width: 100%;
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.center-btn-row.fadeinup {
  opacity: 1;
  transform: none;
}
.btn-download, .btn-viewmore {
  font-size: 1.13rem;
  font-weight: 800;
  padding: 1.1rem 2.7rem;
  border-radius: 1.2rem;
  background: linear-gradient(90deg, #2176ae 0%, #1ec28b 100%);
  color: #fff;
  box-shadow: 0 0 16px #2176ae44;
  letter-spacing: 0.04em;
  margin: 0 0.5rem;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-download:hover, .btn-viewmore:hover {
  background: linear-gradient(90deg, #1ec28b 0%, #2176ae 100%);
  color: #fff;
  box-shadow: 0 0 32px #1ec28b88;
  transform: translateY(-2px) scale(1.04);
}
.right-btn-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 2.2rem 0 1.2rem 0;
  width: 100%;
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 600px) {
  .right-btn-row {
    margin: 1.2rem 0 0.7rem 0;
    width: 100vw;
    justify-content: flex-end;
    padding-right: 1.2rem;
  }
}
