/* ==========================================================================
   Lakshmi Builder's & Planner's — Premium Single-Page Stylesheet
   Theme: Deep slate charcoal · Pure white sections · Industrial gold accent
   Font: Inter (Google Fonts)
   ========================================================================== */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  --color-bg-dark: #1e293b;
  --color-bg-dark-alt: #0f172a;
  --color-white: #ffffff;
  --color-accent: #eab308;
  --color-accent-hover: #ca8a04;
  --color-text: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #cbd5e1;
  --color-border: #e2e8f0;
  --color-border-dark: #334155;

  --font-family: "Inter", system-ui, -apple-system, sans-serif;

  --header-height: 80px;
  --container-max: 1200px;
  --section-padding: clamp(4rem, 8vw, 6rem);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #20bd5a;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

address {
  font-style: normal;
}

ul {
  list-style: none;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-padding);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* ---------- Section Headers ---------- */
.section__header {
  margin-bottom: 3rem;
}

.section__header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-bg-dark);
  letter-spacing: -0.02em;
}

.section--dark .section__title {
  color: var(--color-white);
}

.section__desc {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section--dark .section__desc {
  color: var(--color-text-light);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg-dark-alt);
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(234, 179, 8, 0.45);
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-border-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Branding (logo + text, left) */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity var(--transition);
}

.nav__brand:hover {
  opacity: 0.92;
}

.nav__brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.15), 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  gap: 0.1rem;
}

.nav__brand-line {
  display: block;
  font-family: var(--font-family);
  letter-spacing: 0.02em;
}

.nav__brand-line--primary {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

.nav__brand-line--secondary {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Nav links (right) */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-color: var(--color-bg-dark);
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(30, 41, 59, 0.75) 100%),
    url("logo.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(234, 179, 8, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: 4rem;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-light);
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ==========================================================================
   STATS BANNER
   ========================================================================== */
.stats {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.stats__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-block: 2.5rem;
}

.stats__item {
  text-align: center;
  flex: 1 1 180px;
  max-width: 280px;
}

.stats__number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-bg-dark);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stats__number::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.stats__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats__divider {
  width: 1px;
  height: 48px;
  background-color: var(--color-border);
  flex-shrink: 0;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.75;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SERVICES SECTION (3-column grid)
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  opacity: 0.85;
  line-height: 1.65;
}

/* ==========================================================================
   PROJECTS GALLERY (CSS Grid — 23 cards)
   ========================================================================== */
.projects {
  background-color: var(--color-white);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
}

/* Project card with zoom + overlay on hover */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark gradient overlay — visible on hover */
.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.4) 45%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  transform: translateY(12px);
  transition: transform var(--transition);
}

.project-card__meta {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-top: 0.35rem;
  font-weight: 500;
  transform: translateY(12px);
  transition: transform var(--transition);
}

/* Hover: zoom image + reveal overlay text */
.project-card:hover .project-card__img {
  transform: scale(1.1);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card:hover .project-card__title,
.project-card:hover .project-card__meta {
  transform: translateY(0);
}

/* Uniform grid — all 23 portfolio cards share equal sizing */

/* ==========================================================================
   CONTACT FOOTER
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 3rem;
}

.contact__intro {
  margin-top: 1rem;
  margin-bottom: 2rem;
  color: var(--color-text-light);
  opacity: 0.9;
  line-height: 1.7;
}

.contact__details li {
  margin-bottom: 1.25rem;
}

.contact__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.contact__details a,
.contact__details address,
.contact__details span {
  font-size: 1rem;
  color: var(--color-white);
}

.contact__details a:hover {
  color: var(--color-accent);
}

/* Contact form */
.contact__form {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-white);
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--color-text-muted);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

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

/* Copyright bar */
.footer__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-border-dark);
  text-align: center;
}

.footer__bar p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__instagram {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer__instagram:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   RESPONSIVE — Tablet
   ========================================================================== */
@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .nav__toggle {
    display: flex;
  }

  /* Slide-down mobile menu */
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border-dark);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border-dark);
  }

  .nav__link::after {
    display: none;
  }

  .nav__brand {
    gap: 0.6rem;
  }

  .nav__brand-logo {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }

  .nav__brand-line--primary {
    font-size: 0.85rem;
  }

  .nav__brand-line--secondary {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .stats__divider {
    display: none;
  }

  .stats__inner {
    gap: 1.5rem;
    padding-block: 2rem;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .contact__form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding-block: 2.5rem;
  }

  .btn {
    width: 100%;
  }
}

/* ==========================================================================
   PROJECT LIGHTBOX
   ========================================================================== */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#lightbox.lightbox--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#lightbox .lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.35s ease;
}

#lightbox.lightbox--active .lightbox-img {
  transform: scale(1);
}

#lightbox .close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-white);
  cursor: pointer;
  user-select: none;
  z-index: 1201;
  transition: color var(--transition), transform var(--transition);
}

#lightbox .close-btn:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  #lightbox {
    padding: 1rem;
  }

  #lightbox .lightbox-img {
    max-width: 96vw;
    max-height: 82vh;
  }

  #lightbox .close-btn {
    top: 0.75rem;
    right: 1rem;
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   FLOATING SOCIAL STACK (Instagram + WhatsApp)
   ========================================================================== */
.floating-insta {
  position: fixed;
  bottom: 90px;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(188, 24, 136, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.floating-insta:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(188, 24, 136, 0.55);
}

.floating-insta__icon {
  width: 26px;
  height: 26px;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  background-color: var(--color-whatsapp-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float__icon {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .floating-insta {
    bottom: 90px;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .floating-insta__icon {
    width: 24px;
    height: 24px;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float__icon {
    width: 26px;
    height: 26px;
  }
}
