/*
Theme Name: Niloo Custom Theme
Theme URI: https://schwarzcreations.com
Author: Schwarz Creations
Author URI: https://schwarzcreations.com
Description: Premium interactive WebGL landing page theme for Niloo Services.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: niloo
*/

:root {
  --gold: #fcba02;
  --gold-deep: #e0a400;
  --ink: #14161a;
  --paper: #ffffff; /* Make white to prevent grey background overscroll colors */
  --display: 'Outfit', sans-serif;
  --body: 'Inter', sans-serif;
}

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

html:not(.lenis) {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Custom Cursor styling (Desktop Only) */
@media (min-width: 1025px) {
  html.custom-cursor-active,
  html.custom-cursor-active * {
    cursor: none !important;
  }
}

.custom-cursor {
  width: 6px;
  height: 6px;
  background-color: var(--ink);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
 z-index: 10000001; 
  will-change: transform;
}

.custom-cursor-follower {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 22, 26, 0.35);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000000;
  will-change: transform, width, height, border-color, background-color;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              background-color 0.3s ease;
}

.custom-cursor.c-hover {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
}

.custom-cursor-follower.c-hover {
  width: 52px;
  height: 52px;
  border-color: var(--gold);
  background-color: rgba(252, 186, 2, 0.05);
}

@media (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
  }
}

/* Page Noise Grain Overlay */
.noise-overlay {
  position: fixed;
  top: -10rem;
  left: -10rem;
  width: calc(100% + 20rem);
  height: calc(100% + 20rem);
  z-index: 99999;
  pointer-events: none;
  background-repeat: repeat;
  opacity: 0.035;
  animation: noiseAnimation 1s steps(4) infinite;
  will-change: transform;
}

@keyframes noiseAnimation {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-1rem, -2rem); }
  20% { transform: translate(-3rem, 1rem); }
  30% { transform: translate(1rem, -1rem); }
  40% { transform: translate(-2rem, 3rem); }
  50% { transform: translate(-1rem, 1rem); }
  60% { transform: translate(3rem, -1rem); }
  70% { transform: translate(2rem, 1rem); }
  80% { transform: translate(-1rem, -2rem); }
  90% { transform: translate(1rem, 2rem); }
  100% { transform: translate(0, 0); }
}

/* Layout Wrapper */
.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 24px;
  }
}
/* Replaced filter: blur with native gradients only to prevent iOS WebGL crashes */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
}
/* Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(20, 22, 26, 0.45);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Ambient Studio Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  opacity: 0.45;
}

.center-glow {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(252, 186, 2, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.top-glow {
  width: 700px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #f2f1ec;
}

#threeCanvasContainer {
  pointer-events: none;
}



.hero-scene {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.car-box {
  width: 40%;
  height: auto;
  position: absolute;
  top: 50%;
  will-change: transform, filter;
  z-index: 2;
  transform-origin: 50% 80%;
  pointer-events: none;
}

.car-left-box {
  right: 46%; /* Moved closer to the center logo */
  transform: translate3d(-100vw, -50%, 0);
  animation: carLeftEntry 3.2s linear forwards;
}

.car-right-box {
  left: 53.5%; /* Moved closer to the center logo */
  transform: translate3d(100vw, -50%, 0);
  animation: carRightEntry 3.2s linear forwards;
}

.car-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Cinematic Car Entry Keyframes with Suspension Damped Settling */
@keyframes carLeftEntry {
  0% {
    transform: translate3d(-100vw, -50%, 0) rotate(0deg);
    filter: blur(12px) brightness(1.15);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); /* Decelerate smoothly */
  }
  65% {
    /* Comes to a complete stop horizontally, front suspension fully compressed */
    transform: translate3d(0, -50%, 0) rotate(1.2deg);
    filter: blur(0px) brightness(1);
    animation-timing-function: cubic-bezier(0.36, 0, 0.66, 1); /* Rebound snap */
  }
  78% {
    /* Rebound - nose swings up, passes normal level */
    transform: translate3d(0, -50%, 0) rotate(-0.5deg);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); /* Secondary dip */
  }
  88% {
    /* Second minor rock forward */
    transform: translate3d(0, -50%, 0) rotate(0.2deg);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); /* Final settle */
  }
  95% {
    /* Third tiny settle */
    transform: translate3d(0, -50%, 0) rotate(-0.08deg);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }
  100% {
    transform: translate3d(0, -50%, 0) rotate(0deg);
    filter: blur(0px) brightness(1);
  }
}

@keyframes carRightEntry {
  0% {
    transform: translate3d(100vw, -50%, 0) rotate(0deg);
    filter: blur(12px) brightness(1.15);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); /* Decelerate smoothly */
  }
  65% {
    /* Comes to a complete stop horizontally, front suspension fully compressed */
    transform: translate3d(0, -50%, 0) rotate(-1.2deg);
    filter: blur(0px) brightness(1);
    animation-timing-function: cubic-bezier(0.36, 0, 0.66, 1); /* Rebound snap */
  }
  78% {
    /* Rebound - nose swings up, passes normal level */
    transform: translate3d(0, -50%, 0) rotate(0.5deg);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); /* Secondary dip */
  }
  88% {
    /* Second minor rock forward */
    transform: translate3d(0, -50%, 0) rotate(-0.2deg);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); /* Final settle */
  }
  95% {
    /* Third tiny settle */
    transform: translate3d(0, -50%, 0) rotate(0.08deg);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }
  100% {
    transform: translate3d(0, -50%, 0) rotate(0deg);
    filter: blur(0px) brightness(1);
  }
}

/* Center Logo Container */
.brand-logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: revealLogo 1.8s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.logo-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(252, 186, 2, 0.25) 0%, transparent 75%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(15px);
}

.logo-img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.logo-text {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  color: #14161a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 14px;
}

@keyframes revealLogo {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    filter: drop-shadow(0 0 0 rgba(252, 186, 2, 0));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 35px rgba(252, 186, 2, 0.35));
  }
}

/* Responsive adjustments for Hero */
@media (max-width: 1024px) {
  .hero-scene {
    height: 380px;
  }
  .car-left-box {
    right: 48%;
  }
  .car-right-box {
    left: 51.5%;
  }
  .car-img {
    max-width: 360px;
  }
  .logo-img {
    max-height: 60px;
  }
  .logo-text {
    font-size: 20px;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .hero-scene {
    height: 300px;
  }
  .car-left-box {
    right: 54%;
  }
  .car-right-box {
    left: 54%;
  }
  .car-img {
    max-width: 240px;
  }
  .logo-img {
    max-height: 48px;
  }
  .logo-text {
    font-size: 16px;
    margin-top: 8px;
  }
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeInIndicator 1s ease forwards 3.6s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.scroll-text {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(20, 22, 26, 0.45);
  transition: color 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
  color: var(--ink);
}

.scroll-line-container {
  width: 1.5px;
  height: 44px;
  background: rgba(20, 22, 26, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 99px;
}

.scroll-dot {
  width: 1.5px;
  height: 10px;
  background: var(--gold);
  position: absolute;
  top: 0;
  left: 0;
  animation: scrollDotProgress 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  border-radius: 99px;
}

@keyframes scrollDotProgress {
  0% { transform: translateY(-100%); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}

@keyframes fadeInIndicator {
  to { opacity: 1; }
}

/* SERVICES SECTION */
.services-section {
  padding: 160px 0;
  background: #ffffff;
  position: relative;
  z-index: 4; /* Higher than intro section (3) */
}

@media (min-width: 1101px) {
  .services-section {
    box-shadow: 0 -30px 60px rgba(20, 22, 26, 0.08); /* Overlay shadow on desktop */
  }
}

.services-header {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  will-change: transform;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start; /* Allows cards to expand individually */
  margin-bottom: 30px;
  will-change: transform;
  perspective: 1200px; /* Enable 3D perspective for child card reveals */
}

/* Service Card Glassmorphism */
.service-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 22, 26, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s ease, 
              border-color 0.4s ease, 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              margin-bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 0; /* Crop image edge-to-edge at top */
  overflow: visible; /* CRITICAL: allows mockup to slide out below card border */
  position: relative;
  will-change: transform, box-shadow;
}

/* Interactive Cursor Glow Layer */
.card-glow-highlight {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(252, 186, 2, 0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 24px;
}

.service-card:hover .card-glow-highlight {
  opacity: 1;
}

.service-card:hover,
.service-card.hover-active {
  transform: translateY(-12px);
  background: #ffffff;
  border-color: rgba(252, 186, 2, 0.35);
  box-shadow: 0 30px 60px rgba(20, 22, 26, 0.08), 
              0 0 45px rgba(252, 186, 2, 0.02);
}

/* Image wrapper styling (Full Ratio) */
.card-image-wrapper {
  width: 100%;
  aspect-ratio: 1362 / 1478; /* Displays full image aspect ratio */
  overflow: hidden;
  position: relative;
  background: #f7f7f5;
  border-bottom: 1px solid rgba(20, 22, 26, 0.05);
  border-top-left-radius: 24px; /* match card corner radius */
  border-top-right-radius: 24px; /* match card corner radius */
}

.card-mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .card-mockup-image {
  transform: scale(1.03); /* subtle image zoom on hover */
}

/* Body content inside the card (initially visible) */
.card-body {
  padding: 24px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  background: transparent;
  width: 100%;
}

.card-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card-desc-short {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(20, 22, 26, 0.5);
  font-weight: 400;
  margin-top: -6px; /* bring slightly closer to title */
}

/* Slide-out description drawer under the card bottom boundary */
.card-hover-desc {
  position: absolute;
  top: 100%;
  left: 30px;
  right: 30px;
  background: transparent;
  border: none;
  padding: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(20, 22, 26, 0.65);
  box-shadow: none;
  z-index: 15; /* Render above sibling cards and sections */
  text-align: center;
  
  /* Initial hidden state */
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}

.service-card:hover .card-hover-desc,
.service-card.hover-active .card-hover-desc {
  opacity: 1;
  transform: translateY(8px); /* Slides down outside the box! */
  box-shadow: none;
}

/* Feature Detail Sub-elements Styling */
.desc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
  text-align: left;
}

.desc-columns ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.desc-columns li {
  font-size: 15.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(20, 22, 26, 0.7);
  line-height: 1.5;
}

.desc-columns li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex: none;
}

.sub-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.sub-group {
  flex: 1 1 240px;
  border: 1px solid rgba(20, 22, 26, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sub-group h4 {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.35;
}

.sub-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sub-grid li {
  font-size: 14px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: rgba(20, 22, 26, 0.7);
  line-height: 1.45;
}

.sub-grid li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex: none;
}

.desc-summary {
  font-size: 18.5px;
  line-height: 1.75;
  color: rgba(20, 22, 26, 0.8);
  font-weight: 400;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
}

/* Card details hint (Mobile discoverability) */
.card-details-hint {
  display: none;
}

/* Shared Description Area (Desktop Only) */
.services-desc-container {
  display: none;
}

@media (min-width: 1101px) {
  .card-hover-desc {
    display: none !important;
  }
  
  .services-desc-container {
    display: block;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 0;
    height: 0; /* Dynamically updated via JS */
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
  }
  
  .shared-desc-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .shared-desc-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 1100px) {
  .services-section {
    padding: 80px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 20px;
    align-items: stretch;
  }
  
  .card-details-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    opacity: 0.55;
    margin-top: 4px;
    margin-bottom: -4px;
    transition: opacity 0.25s ease, color 0.25s ease;
    align-self: flex-start;
  }
  
  .card-details-hint .hint-text::before {
    content: 'Tap for details';
  }
  
  .service-card.hover-active .card-details-hint .hint-text::before {
    content: 'Tap to collapse';
  }
  
  .card-details-hint svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .service-card.hover-active .card-details-hint svg {
    transform: rotate(135deg); /* plus to close x */
    color: var(--gold-deep);
  }
  
  .service-card:hover .card-details-hint {
    opacity: 0.85;
  }
  
  .service-card {
    padding: 0;
    margin-bottom: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .card-hover-desc {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    padding: 0 30px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    text-align: left;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease,
                padding 0.6s ease;
  }
  
  .service-card.hover-active .card-hover-desc {
    opacity: 1;
    max-height: 2500px; /* high limit to fit Taxi Companies */
    padding: 10px 30px 30px;
  }
  
  .sub-groups {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .sub-group {
    padding: 18px 16px;
  }
  
  .desc-columns {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .desc-summary {
    font-size: 15.5px;
    text-align: left;
  }
}

/* CONTACT SECTION */
.contact-section {
  padding: 120px 0;
  background: #ffffff;
  position: relative;
  z-index: 4;
  box-shadow: 0 -30px 60px rgba(20, 22, 26, 0.02);
}

.contact-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  will-change: transform;
}

.contact-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 22, 26, 0.06);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 30px 70px rgba(20, 22, 26, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center; /* Center-align header & form elements */
}

.contact-card h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.contact-desc {
  color: rgba(20, 22, 26, 0.6);
  font-size: 15.5px;
  margin-bottom: 36px;
  line-height: 1.5;
}

/* Contact Form 7 & standard forms alignment */
.contact-form,
.contact-card .wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-card {
    padding: 32px 24px;
  }
}

/* Style all input fields and textareas inside contact-card (including Contact Form 7) */
.contact-form input,
.contact-form textarea,
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card input[type="tel"],
.contact-card textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  padding: 15px 18px;
  border: 1px solid rgba(20, 22, 26, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  transition: all 0.25s ease;
  outline: none;
  text-align: left; /* Ensure typed text remains left-aligned */
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: rgba(20, 22, 26, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-card input:focus,
.contact-card textarea:focus {
  border-color: rgba(20, 22, 26, 0.35);
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(20, 22, 26, 0.03);
}

.contact-form textarea,
.contact-card textarea {
  resize: vertical;
  min-height: 110px;
}

/* Style all submit buttons inside contact-card (including Contact Form 7) */
.btn-submit,
.contact-card input[type="submit"],
.contact-card button[type="submit"] {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  background: #333333;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
  margin: 10px auto 0;
  box-sizing: border-box;
}

.btn-submit:hover,
.contact-card input[type="submit"]:hover,
.contact-card button[type="submit"]:hover {
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 22, 26, 0.12);
  transform: translateY(-1.5px);
}

.btn-submit:active,
.contact-card input[type="submit"]:active,
.contact-card button[type="submit"]:active {
  transform: translateY(0);
}

/* Fix Contact Form 7 wrapper spacing */
.contact-card .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.contact-card .wpcf7 p {
  margin-bottom: 0;
}


/* FOOTER SECTION */
.footer {
  padding: 60px 0 40px;
  background: #ffffff; /* Seamlessly matches the white services section background */
  position: relative;
  z-index: 3;
}

.footer-divider {
  height: 1px;
  background: rgba(20, 22, 26, 0.08);
  width: 100%;
  margin-bottom: 30px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(20, 22, 26, 0.45);
  font-size: 12px;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: rgba(20, 22, 26, 0.45);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

  }
}

/* Card header icon styling */
.card-header-icon {
  display: flex;
  margin-bottom: 24px;
}

.ic-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 22, 26, 0.03);
  border: 1px solid rgba(20, 22, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.service-card:hover .ic-wrapper {
  transform: scale(1.05);
  background: rgba(252, 186, 2, 0.08);
  border-color: rgba(252, 186, 2, 0.3);
}

/* Card Action Layout */
.card-action {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  gap: 12px;
}

.card-action.flex-row {
  display: flex;
  flex-direction: row;
}

.btn-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  z-index: 2;
}

.web-app-btn {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.web-app-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.store-btn {
  background: rgba(20, 22, 26, 0.03);
  color: var(--ink);
  border: 1px solid rgba(20, 22, 26, 0.08);
  flex: 1;
  justify-content: center;
}

.store-btn:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .card-action.flex-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── INTRO SECTION STYLES ────────────────────────────────────────── */
.intro-section {
  position: relative;
  background: #f2f1ec; /* Match hero background color */
  z-index: 3;
  overflow: visible; /* allows sticky reveal and overlapping */
}

.sticky-intro-container {
  width: 100%;
  background: #f2f1ec; /* Match hero background color */
}

@media (min-width: 1101px) {
  .intro-section {
    height: 130vh; /* Scroll height for parallax */
  }
  
  .sticky-intro-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f2f1ec; /* Match hero background color */
  }
}

@media (max-width: 1100px) {
  .intro-section {
    padding: 80px 0;
  }
}

.intro-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.intro-heading {
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 32px;
  text-align: center;
  
  /* Entrance animation styles */
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-paragraph {
  max-width: 750px;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(20, 22, 26, 0.65);
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
  
  /* Entrance animation styles */
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-paragraph:last-child {
  margin-bottom: 0;
}

/* Staggered transition delays for text reveal */
.intro-section.reveal-active .intro-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.intro-section.reveal-active .intro-paragraph:nth-of-type(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.intro-section.reveal-active .intro-paragraph:nth-of-type(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

@media (max-width: 768px) {
  .intro-section {
    padding: 100px 0;
  }
}

/* ── STAGGERED SPRING SLIDE-UP ANIMATIONS ───────────────────────── */
.service-card {
  opacity: 0;
  transform: translateY(160px) scale(0.94) rotateX(10deg);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-section.reveal-active .service-card {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

.services-section.reveal-active .service-card:nth-child(1) {
  transition-delay: 0s;
}

.services-section.reveal-active .service-card:nth-child(2) {
  transition-delay: 0.15s;
}

.services-section.reveal-active .service-card:nth-child(3) {
  transition-delay: 0.3s;
}

.services-section.reveal-active .service-card.reveal-done {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}

/* NAVBAR & MENU STYLING */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 22, 26, 0.05);
  z-index: 100;
  display: flex;
  align-items: center;
}
.nav-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-menu a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: rgba(20, 22, 26, 0.6);
  transition: all 0.25s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--ink);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all 0.25s ease;
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* Language Switcher Styling */
.trp-switcher-wrap {
  display: flex;
  align-items: center;
}
.lang-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: rgba(20, 22, 26, 0.4);
  text-decoration: none;
  transition: color 0.25s ease;
  margin-left: 8px;
}
.lang-link.active {
  color: var(--ink);
}
.lang-link:hover {
  color: var(--gold-deep);
}
.lang-link + .lang-link::before {
  content: '|';
  margin-right: 8px;
  color: rgba(20, 22, 26, 0.2);
}
.mobile-actions {
  display: none;
  align-items: center;
  gap: 16px;
}
@media (max-width: 768px) {
  .mobile-actions {
    display: flex;
  }
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  box-shadow: -10px 0 40px rgba(20, 22, 26, 0.05);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.mobile-drawer.open {
  right: 0;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.drawer-links a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  color: rgba(20, 22, 26, 0.6);
  transition: all 0.25s ease;
}
.drawer-links a:hover,
.drawer-links a.active {
  color: var(--ink);
}

/* LEGAL PAGES CONTENT LAYOUT */
.legal-container {
  max-width: 800px;
  margin: 140px auto 100px;
  padding: 0 24px;
}
.legal-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.legal-meta {
  font-size: 14px;
  color: rgba(20, 22, 26, 0.4);
  margin-bottom: 48px;
  font-weight: 500;
}
.legal-content {
  line-height: 1.7;
  font-size: 16px;
  color: rgba(20, 22, 26, 0.85);
}
.legal-content h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.legal-content p {
  margin-bottom: 20px;
}
.legal-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
  list-style-type: disc;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content li::marker {
  color: var(--gold-deep);
}

/* FOOTER MENU FIX */
.footer-links ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* HOMEPAGE HEADER OVERRIDES */
body.home .navbar {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.home .nav-logo {
  display: none !important;
}
body.home .nav-menu > *:not(.trp-switcher-wrap) {
  display: none !important;
}
body.home .nav-menu {
  margin-left: auto !important;
}
body.home .mobile-actions > *:not(.mobile-switcher) {
  display: none !important;
}
body.home .mobile-actions {
  margin-left: auto !important;
}

/* RESPONSIVE FOOTER ON MOBILE */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column-reverse !important;
    gap: 20px !important;
    text-align: center !important;
  }
  .footer-links ul {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
  }
}

/* REMOVE MENU BULLET POINTS */
.nav-menu li,
.drawer-links li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* CONTACT FORM 7 GRID PARAGRAPH FIXES */
.form-row br {
  display: none !important;
}
.form-row p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin: 0;
}
@media (max-width: 580px) {
  .form-row p {
    grid-template-columns: 1fr;
  }
}

/* 404 ERROR PAGE STYLING */
.error-container {
  max-width: 600px;
  margin: 180px auto 120px;
  padding: 0 24px;
  text-align: center;
}
.error-code {
  font-family: var(--display);
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-title {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.error-message {
  font-size: 16px;
  color: rgba(20, 22, 26, 0.6);
  line-height: 1.6;
  margin-bottom: 40px;
}
.btn-back-home {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 36px;
  background: #333333;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-back-home:hover {
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 22, 26, 0.12);
  transform: translateY(-1.5px);
}



/* Premium GDPR Cookie Banner styling */
#niloo-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: rgba(20, 22, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  z-index: 999999;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  box-sizing: border-box;
}

#niloo-cookie-banner.cookie-banner-hidden {
  transform: translateY(150%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-icon {
  font-size: 22px;
}

.cookie-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.cookie-text {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.cookie-btn {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600; 
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  box-sizing: border-box;
}

.cookie-accept {
  background: #fcba02;
  color: #14161a;
}

.cookie-accept:hover {
  background: #e0a400;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 15px rgba(252, 186, 2, 0.25);
}

.cookie-decline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-decline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 580px) {
  #niloo-cookie-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    padding: 20px;
    border-radius: 16px;
  }
}

