/**
 * Awwwards-level polish layer
 */

/* ── Page loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.page-loader__bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #851db0, #a855f7);
  animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 10001;
  background: linear-gradient(90deg, #851db0, #c9a962);
  transition: width 0.08s linear;
}

/* ── Film grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Custom selection ── */
::selection {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
}

/* ── Unified header & navigation ── */
.header-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0.875rem var(--site-gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  min-height: var(--header-height);
  transition: min-height 0.3s ease, padding 0.3s ease;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
  line-height: 0;
}

.header-logo img {
  width: 118px;
  height: auto;
  display: block;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.header-logo:hover img { opacity: 0.88; }

.site-header.is-scrolled .header-inner {
  min-height: 62px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-header.is-scrolled .header-logo img {
  width: 106px;
}

.site-header > .container-fluid.p-0 {
  padding: 0;
  max-width: none;
  display: block;
}

.site-header .header-inner .nav {
  margin-left: auto;
  min-width: 0;
}

.site-header .header-inner .nav ul {
  justify-content: flex-end;
}

@media (min-width: 769px) {
  .menu-icon {
    display: none !important;
  }

  .site-header .header-inner .nav {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
}

/* ── Premium hero ── */
.hero-banner-wrap {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 680px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 12% 18%, rgba(133, 29, 176, 0.28), transparent 58%),
    radial-gradient(ellipse 60% 55% at 88% 72%, rgba(201, 169, 98, 0.14), transparent 52%),
    linear-gradient(165deg, #0c0c12 0%, #0a0a0f 42%, #12101a 100%);
}

.hero-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 78%);
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.55), rgba(168, 85, 247, 0.45), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 36rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.06);
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.65);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(0.875rem, 2vw, 1.25rem);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
  line-height: 1.65;
  max-width: 32ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.hero-cta--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 28px rgba(133, 29, 176, 0.28);
}

.hero-cta--primary:hover,
.hero-cta--primary:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(133, 29, 176, 0.38);
}

.hero-cta--secondary {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-cta--secondary:hover,
.hero-cta--secondary:focus-visible {
  color: #fff;
  border-color: rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.08);
  transform: translateY(-2px);
}

.hero-portrait {
  position: relative;
  margin: 0;
  justify-self: center;
  width: 100%;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 1px;
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.65), rgba(168, 85, 247, 0.35) 45%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 15, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-portrait__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1350 / 457;
  object-fit: contain;
  object-position: center center;
  border-radius: var(--radius-lg);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 80px rgba(133, 29, 176, 0.18);
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition);
}

.hero-section.is-visible .hero-portrait__img {
  transform: scale(1);
}

/* ── Hide SEO sidebar clutter on award layout ── */
@media (min-width: 769px) and (max-width: 1199px) {
  .sidebar.left,
  .sidebar.right {
    display: none !important;
  }

  .content-layout .col-sm-8 {
    width: 100% !important;
    max-width: none;
    margin: 0;
    float: none;
  }
}

@media (min-width: 1200px) {
  .sidebar.left,
  .sidebar.right {
    opacity: 0.85;
  }

  .sidebar img {
    border-radius: var(--radius-lg);
  }
}

/* ── Section eyebrows ── */
.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.recpos .sec-head h2 {
  margin-top: 0;
}

/* ── Premium card hover ── */
.latst-box,
.categ,
.categ2,
.price-block,
.custom-trending-image {
  will-change: transform;
}

/* ── View button arrow (project cards) ── */
.latst-box .view-btn > a::after,
.categ .view-btn > a::after,
.categ2 .view-btn > a::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.3s ease;
}

.latst-box .view-btn > a:hover::after,
.categ .view-btn > a:hover::after,
.categ2 .view-btn > a:hover::after {
  transform: translateX(4px);
}

/* ── View button arrow (global fallback) ── */
.view-btn > a::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.3s ease;
}

.view-btn > a:hover::after {
  transform: translateX(4px);
}

/* ── Footer polish ── */
.ftr-link p {
  line-height: 1.75;
}

.footer-bottom p {
  letter-spacing: 0.02em;
}

/* ── WhatsApp CTA overlay ── */
.whatsapp-banner {
  position: relative;
  padding: 0 0 var(--space-xl);
}

.whatsapp-banner .row {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.whatsapp-banner img {
  margin: 0 !important;
  border-radius: 0 !important;
}

/* ── Gallery valid markup ── */
.custom-trending-galleries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: clamp(0.875rem, 2vw, 1.375rem);
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  align-items: stretch;
}

.custom-trending-galleries > h2,
.custom-trending-galleries > .gallery-grid-title {
  grid-column: 1 / -1;
}

.custom-trending-galleries > li {
  display: flex;
  width: 100%;
  padding: 0;
  min-height: 100%;
}

@media (min-width: 640px) {
  .custom-trending-galleries {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 1024px) {
  .custom-trending-galleries {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.375rem;
  }
}

/* ── Desktop custom cursor hint ── */
@media (hover: hover) and (pointer: fine) {
  .view-btn > a,
  .nav-cta,
  .header-logo,
  .custom-trending-image {
    cursor: pointer;
  }
}

.gallery-grid-title {
  grid-column: 1 / -1;
  list-style: none;
  margin: var(--space-lg) 0 var(--space-xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.gallery-grid-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait__img {
    transform: none !important;
    transition: none !important;
  }

  .header-inner,
  .header-logo img,
  .site-header .header-inner .nav,
  .menu-icon span {
    transition: none !important;
  }

  .latst-box,
  .categ,
  .categ2,
  .custom-trending-image,
  .custom-trending-image img {
    transition: none !important;
    transform: none !important;
  }

  .latst-box:hover,
  .categ:hover,
  .categ2:hover,
  .custom-trending-image:hover {
    transform: none !important;
  }

  .custom-trending-image:hover img {
    transform: none !important;
  }

  .page-loader { transition: none; }
}

@media (min-width: 769px) and (max-width: 991px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-portrait {
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.625rem var(--site-gutter);
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-icon {
    display: flex;
    margin-left: auto;
  }

  .site-header .header-inner .nav {
    display: block;
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 0;
    background: var(--color-surface);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 0 var(--space-sm);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease,
      visibility 0.4s ease,
      padding 0.3s ease,
      margin 0.3s ease,
      border-color 0.3s ease;
  }

  .site-header .header-inner .nav.is-open {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
    padding: var(--space-sm);
    margin-top: 0.625rem;
    border-color: var(--color-border);
  }

  .hero-banner-wrap {
    min-height: auto;
    padding: clamp(2rem, 6vw, 3rem) 0 clamp(3rem, 8vw, 4rem);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 2.75rem);
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    max-width: none;
    order: 1;
  }

  .hero-subtitle {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-cta {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 9.5rem;
    max-width: 100%;
  }

  .hero-portrait {
    order: 2;
    justify-self: center;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }
}
