/* ================= FONTS ================= */
@font-face {
    font-family: 'Infinite Justice Straight';
    src: url('/InfinitS.ttf') format("truetype"); 
    font-display: block;
}

@font-face {
    font-family: Montserrat Regular;
    src: url(/Montserrat-Regular.ttf) format("truetype"); 
    font-display: block;
}

@font-face {
    font-family: Montserrat Bold;
    src: url(/Montserrat-Bold.ttf) format("truetype"); 
    font-display: block;
}

/* ================= GLOBAL & THEME ================= */
:root {
  --bg-deep: #0f172a;        /* Midnight Slate */
  --bg-contrast: #1e293b;    /* Slightly lighter for sections */
  --primary: #3b82f6;        /* Electric Blue */
  --accent: #22d3ee;         /* Cyan Accent */
  --success: #10b981;        /* Emerald Green for Checkmarks */
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --white: white;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* This stops the horizontal shift */
  position: relative;
  /* Extra safety for iOS browsers */
  margin: 0;
  padding: 0;
	
	scroll-behavior: smooth;
}

section[id] { scroll-margin-top: 50px; /* Match your header height */ }


body {
  font-family: 'Montserrat Regular';
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* DYNAMIC FONT: Scales from 1.05rem (mobile) to 1.25rem (large screens) */
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
	
	opacity: 0;
  transition: opacity 0.5s ease;
}

p {
  font-family: 'Montserrat Regular', sans-serif;
	text-align: justify;
  font-weight: 400; /* 400 is the standard 'Regular' weight */
  line-height: 1.7; /* Slightly increased for better readability */
  color: var(--text-dim); /* Keeps the text elegant and easy on the eyes */
}

/* Refined Trust Card Styles */
.trust-card p {
  font-family: 'Montserrat Regular', sans-serif;
  font-weight: 400;
  /* Responsive font size from previous steps */
  font-size: clamp(0.95rem, 1vw, 1.1rem); 
  margin-top: 1rem;
}

.trust-card h3 {
  font-family: 'Montserrat Bold', sans-serif;
  font-weight: 700; /* Keeps headings bold to contrast the Regular paragraphs */
  margin-bottom: 0.5rem;
  color: var(--text-main);
}


.container { max-width: 1240px; margin: 0 auto; padding: 0 5%; }

/* ================= LANGUAGE BUTTON ================= */

/* Styling the FR button specifically */
.nav-links a.lang-switch {
  margin-left: 2rem; /* Separation from other links */
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--primary); /* Use your electric blue */
  border-radius: 6px;
  font-size: 0.9rem; /* Slightly smaller for a "utility" feel */
  color: var(--primary);
  background: rgba(59, 130, 246, 0.05); /* Very subtle blue tint */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state for the button */
.nav-links a.lang-switch:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* Mobile adjustments (inside your max-width: 620px query) */
@media (max-width: 620px) {
  .nav-links a.lang-switch {
    margin-left: 0;
    margin-top: 2rem; /* Puts it at the bottom of the mobile stack */
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    width: auto;
  }
}


/* ================= WHO WE ARE IMAGE SLIDE ================= */

.carousel-3d-container {
  width: 100%;
  height: 600px; /* Adjust height based on your layout needs */
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
  border-radius: 24px;
  /* Remove padding to let images hit the edges */
  padding: 0; 
}

.carousel-3d-scene {
  width: 100%;
  height: 100%;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-3d-track.continuous-rotation {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  /* CONTINUOUS MOVEMENT: Linear timing, no stops */
  animation: rotateCarousel 20s linear infinite;
}

/* Pause on hover so users can inspect a specific image */
.carousel-3d-track.continuous-rotation:hover {
  animation-play-state: running;
}

.carousel-3d-cell {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  
  --angle: calc(var(--cell-index) * 72deg);
  /* INCREASE RADIUS: Pushes images further out to fill the screen */
  transform: rotateY(var(--angle)) translateZ(500px); 
}

.carousel-3d-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This forces images to fill the box without borders */
  transition: filter 0.5s ease;
  /* Optional: slightly darken images that aren't in front */
  filter: brightness(0.6);
}

/* Subtle effect: brighten the image when it faces the front */
@keyframes rotateCarousel {
  from { transform: translateZ(-500px) rotateY(0deg); }
  to { transform: translateZ(-500px) rotateY(-360deg); }
}

/* The "Vignette" Overlay: Softens the edges where images rotate out of view */
.carousel-3d-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 40%, var(--bg-deep) 110%);
  z-index: 10;
}

@media (max-width: 620px) {
  .carousel-3d-container {
    height: 450px;
  }
  .carousel-3d-cell {
    transform: rotateY(var(--angle)) translateZ(300px);
  }
  @keyframes rotateCarousel {
    from { transform: translateZ(-300px) rotateY(0deg); }
    to { transform: translateZ(-300px) rotateY(-360deg); }
  }
}

/* ================= IMAGE FADE EFFECT ================= */

.image-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
  border-radius: 24px; /* Matches your card style */
  overflow: hidden;    /* Keeps the shadow contained */
}

/* This creates an overlay that "eats" the edges of the image */
.image-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 1st value: 0 offset
     2nd value: 0 offset
     3rd value: 100px blur (how soft the fade is)
     4th value: 40px spread (how far it "eats" into the image)
  */
  box-shadow: inset 0 0 100px 10px var(--bg-deep);
  pointer-events: none; /* Allows clicks to pass through to the image */
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  /* Optional: slightly desaturate to blend better with the slate theme */
  filter: brightness(0.9) contrast(1.1);
}

/* ================= HEADER ================= */
/* ================= HEADER & NAV ================= */
.header {
  position: fixed;
  top: 0; 
  width: 100%; 
  z-index: 1000;
  padding: clamp(0.2rem, 2vh, 0.5rem) 0;
  background: rgba(30, 41, 59, 0.7); /* Lighter slate than the page */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-flex { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.logo { 
  font-family: 'Infinite Justice Straight', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem); 
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo span { 
  color: var(--primary); 
  font-family: 'Montserrat', sans-serif;
}

/* Base Link Styling - Keeps them as they were */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none; /* Removes blue/underlines */
  margin-left: clamp(1.5rem, 3vw, 3rem); 
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { 
  color: var(--primary); 
  text-decoration: none;
}

/* ================= MOBILE MENU TOGGLE (Three Lines) ================= */
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  margin: 4px 0;
  transition: var(--transition);
}

/* ================= RESPONSIVE LOGIC (620px) ================= */
@media (max-width: 620px) {
  .menu-toggle {
    display: flex; /* Shows the three lines */
  }

  .nav-links {
    /* Critical: This hides the desktop horizontal menu */
    position: fixed;
    top: -110%; 
    max-width: 100vw; /* Ensure it never exceeds screen width */
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--bg-deep);
    
    /* Layout for the opened menu */
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    
    /* Optional: Ensure it doesn't show at all until the 'active' class is added */
    visibility: hidden; 
    opacity: 0;
  }

  /* When the 'active' class is added via JavaScript */
  .nav-links.active {
    top: 0;
    visibility: visible;
    opacity: 1;
  }

  .nav-links a {
    margin: 1.5rem 0;
    margin-left: 0;   /* Removes the desktop spacing */
    font-size: 2rem;
    color: var(--text-main);
    text-decoration: none;
  }
	
  /* Hamburger to 'X' animation */
/* These rules only trigger when the 'is-active' class is present */

.menu-toggle.is-active .bar:nth-child(2) { 
  opacity: 0; 
}

.menu-toggle.is-active .bar:nth-child(1) { 
  transform: translateY(11px) rotate(45deg); 
}

.menu-toggle.is-active .bar:nth-child(3) { 
  transform: translateY(-11px) rotate(-45deg); 
}
}

@media (max-width: 620px) {
  
  .grid-3-desktop { grid-template-columns: 1fr; }
}

/* ================= LOGO ROLLING BANNER (FIXED) ================= */
.logo-slider {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin-top: 4rem;
	margin-bottom: 4rem;
  /* This ensures the slider doesn't impact the width of the text above it */
	
	/* New: Edge fade effect added here */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

@media (max-width: 620px) {
  .logo-slider { 
	  margin-top: 0.75rem; 
	  margin-bottom: 0.5rem; 
	  /* Slightly tighter fade for mobile screens */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  
	}
  
}

.logo-track {
  display: flex;
  /* We use a very large width but since the parent has overflow:hidden, 
     it won't break the mobile screen */
  width: max-content; 
  animation: scroll 15s linear infinite;
}

.logo-track img {
  width: clamp(160px, 20vw, 220px); 
  height: 100px; 
  object-fit: contain;
  margin: 0 40px;
	padding: 10px 0;
  
  /* SOLUTION 1: The "Glow" Effect */
  /* This adds a subtle white halo around the logo so dark edges are visible */
  filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.4)) brightness(1.5);
  
  /* OR SOLUTION 2: The "Brighten" Effect */
  /* This forces dark colors to become lighter/greyish */
  /* filter: contrast(0.5) brightness(2); */

  opacity: 1;
  transition: var(--transition);
}

@media (max-width: 620px) {
  .logo-track img {
    /* On small phones, we reduce the margin so the logos can be larger 
       without creating huge gaps between them */
    margin: 0 20px;
    
  }
}

.logo-track img:hover {
  opacity: 1;
  filter: drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.6)) brightness(1.3);
  transform: scale(1.05);
}

/* Updated Animation Logic for infinite loop */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Shifts exactly half the duplicated track */
}



/* ================= HERO ================= */
.hero {
   /* Changed from height to min-height for content flexibility */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #171e2c 100%);
  max-width: 100vw;
  overflow: hidden;
  padding-bottom: 10vh;
}

@media (min-width: 1281px) {
  .hero {
    padding-top: 180px; /* Slightly smaller offset for mobile headers */
	  
  }
}

@media only screen and (max-width: 1280px) and (min-width: 621px) {
  .hero {
    padding-top: 160px; /* Slightly smaller offset for mobile headers */
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 120px; /* Slightly smaller offset for mobile headers */
  }
}

/* Hide the hard line break on mobile to let text wrap naturally */
@media (min-width: 621px) {
  .hero div br {
    display: none;
  }
}
.hero .container {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* This prevents the container from expanding past the screen width */
  box-sizing: border-box; 
}

.hero-content {
  width: 100%;
  max-width: 100%; /* Force content to respect screen limits */
  margin-bottom: 3rem;
}

.hero h1 {
  /* Scales down more aggressively on small phones (down to 1.8rem) */
  font-size: clamp(1.8rem, 7vw, 4.8rem); 
  font-weight: 800; 
  line-height: 1.2; 
	margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  /* Allows long words to break if absolutely necessary on tiny screens */
  overflow-wrap: break-word; 
}

.hero p {
  display: block;
  width: 100%;
  /* Using 90% and margin auto ensures the text wraps 
     before it hits the edge of the phone screen */
  max-width: 90%; 
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 4vw, 1.15rem);
  line-height: 1.6;
  white-space: normal; /* Force standard text wrapping */
  text-align: center !important;
}



.text-gradient { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.badge {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary);
  border-radius: 50px;
  color: var(--accent);
  font-size: 1rem; /* Larger badge font */
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

@media (max-width: 620px) {
  .badge {
    font-size: 0.85rem; /* Slightly smaller offset for mobile headers */
  }
}

/* ================= GRIDS & SECTIONS ================= */
.section { padding: 70px 0; }
@media (max-width: 620px) {
  .section { padding: 40px 0; }
}

.contrast-bg { background-color: var(--bg-contrast); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.align-center { align-items: center; }
.align-start { align-items: start; }

.section-title {
  font-family: 'Montserrat Bold', sans-serif; /* Standard font for the phrase */
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--text-main);
}

/* Specific style for the brand name within the title */
.brand-font {
  font-family: 'Infinite Justice Straight', sans-serif;
  font-weight: normal;
  letter-spacing: 1px;
  /* Slightly larger than the surrounding text to match the visual weight */
  font-size: 1.1em; 
  color: var(--primary); /* Optional: makes the brand name stand out in blue */
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
}

.text-left { text-align: left; }
.text-dim { color: var(--text-dim); margin-bottom: 1.5rem; font-family: 'Montserrat Regular'; }

/* ================= CARDS ================= */
.trust-card {
  background: var(--bg-deep);
  padding: 2rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.trust-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.trust-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }
.trust-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }

.highlight-box {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  font-weight: 600;
  margin: 2rem 0;
  font-size: 1.2rem; /* Larger highlight text */
}

/* ================= CHECKLIST ================= */
/* ================= CHECKLIST ================= */
/* 1. Ensure the parent grid doesn't try to center anything */
#services .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  /* This aligns the 'Our Services' title and the first 'Checkmark' on the same line */
  align-items: start; 
}



@media (max-width: 620px) {
#services .grid-2 {
  gap: 1rem;

  /* This aligns the 'Our Services' title and the first 'Checkmark' on the same line */
  align-items: start; 
}


}

/* Container Perspective */
.service-checklist {
  perspective: 1200px; /* Gives the 3D depth */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-contrast);
  padding: 0.7rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  opacity: 0; /* Hidden until animated */
  
  /* 3D Settings */
  transform-style: preserve-3d;
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.3s ease, 
              background 0.3s ease;
}

/* Triggered by JavaScript */
.service-checklist.is-visible .check-item {
  animation: slideIn3D 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0; /* Ensures they start hidden */
}

/* 2. The Delays (Increasing Specificity) */
.service-checklist.is-visible .check-item:nth-child(1) { animation-delay: 0.1s; }
.service-checklist.is-visible .check-item:nth-child(2) { animation-delay: 0.3s; }
.service-checklist.is-visible .check-item:nth-child(3) { animation-delay: 0.5s; }
.service-checklist.is-visible .check-item:nth-child(4) { animation-delay: 0.7s; }
.service-checklist.is-visible .check-item:nth-child(5) { animation-delay: 0.9s; }
.service-checklist.is-visible .check-item:nth-child(6) { animation-delay: 1.1s; }
.service-checklist.is-visible .check-item:nth-child(7) { animation-delay: 1.3s; }

@keyframes slideIn3D {
  0% {
    opacity: 0;
    transform: rotateY(-45deg) rotateX(10deg) translateX(100px) translateZ(-200px);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) rotateX(0deg) translateX(0) translateZ(0);
  }
}

/* Hover Interaction */
.check-item:hover {
  transform: rotateY(0deg) rotateX(0deg) translateZ(30px) scale(1.02);
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.check-icon {
  width: 22px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.check-item:hover .check-icon {
  transform: scale(1.2) rotate(-5deg);
}


/* Mobile: Flatten the 3D effect slightly for better readability */
@media (max-width: 620px) {
  .check-item {
    transform: rotateY(-5deg) rotateX(2deg);
  }
  
  #services, #testimonials, .hero {
  overflow: hidden;
  width: 100%;
}

.service-checklist {
  /* Prevent the 3D perspective from creating scrollable space */
  max-width: 100%; 
  overflow: hidden;
  padding: 20px 0; /* Give the 3D items room to "float" without hitting the clip */
}
}




/* ================= GALLERY ================= */
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.grid-3-desktop { grid-template-columns: repeat(3, 1fr); }

.image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border);
}
.image-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s transform; }
.image-card span {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
  font-weight: 600;
  font-size: 1.05rem; /* Larger gallery label */
}
.image-card:hover img { transform: scale(1.1); }
.large-card { height: 400px; }

/* ================= TESTIMONIALS ================= */



/*-----------------------------------------------------------*/
.testimonial-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1200px; /* Increased for better depth */
}

.testimonial-slider {
  position: relative;
  height: 400px; 
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Base state for all cards */
.testimonial-card {
  position: absolute;
  width: 90%;
  max-width: 550px;
  
  /* Glassmorphism Effect */
  background: rgba(15, 23, 42, 0.8); /* Deep Midnight Blue/Slate */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  padding: 3.5rem 2.5rem;
  border-radius: 32px; /* Smooth, modern rounded corners */
  border: 1px solid rgba(59, 130, 246, 0.2); /* Subtle Electric Blue border */
  text-align: center;
  
  /* Depth and Shadow */
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateZ(-400px);
}

/* Enhanced Active State */
.testimonial-card.active {
  opacity: 1;
  transform: translateZ(0) translateX(0);
  border-color: var(--primary);
  box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.3), 
              0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* Quote Icon Decoration */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 30px;
  font-size: 8rem;
  font-family: 'serif';
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
}

/* Typography Polish */
.testimonial-card p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

/* --- PREV (Left) --- */
.testimonial-card.prev {
  opacity: 0.4;
  transform: translateX(-55%) translateZ(-200px) rotateY(20deg);
  z-index: 5;
}

/* --- NEXT (Right) --- */
.testimonial-card.next {
  opacity: 0.4;
  transform: translateX(55%) translateZ(-200px) rotateY(-20deg);
  z-index: 5;
}

/* --- HANDLING ALL OTHER CARDS --- */
/* This prevents them from stacking in the center while invisible */
.testimonial-card:not(.active):not(.prev):not(.next) {
  transform: translateZ(-500px);
  opacity: 0;
}


.stars { color: gold; margin: 1rem 0; font-size: 1.5rem; }
.client { font-weight: 800; color: var(--primary); font-size: 1.2rem; }

.slider-nav {
  display: flex;
  justify-content: center; /* Horizontally centers the buttons */
  align-items: center;     /* Vertically aligns them to each other */
  gap: 3rem;               /* Creates a nice space between the buttons */
  margin-top: 1rem;        /* Pushes them down away from the cards */
  position: relative;      /* Ensures they stay in the document flow */
  z-index: 20;             /* Keeps them above any overlapping card shadows */
  width: 100%;             /* Ensures the container spans the full width to allow centering */
}

.nav-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary);
  backdrop-filter: blur(4px);
  width: 55px;
  height: 55px;
  border-radius: 16px; /* Squircle shape instead of perfect circle */
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

@media (max-width: 620px) {
  .testimonial-card.prev { transform: translateX(-25%) translateZ(-250px) rotateY(10deg); }
  .testimonial-card.next { transform: translateX(25%) translateZ(-250px) rotateY(-10deg); }
  .testimonial-card {padding: 2rem 2rem;}
  .testimonial-card p {font-size: 1.05rem;}
  .testimonial-slider {margin-bottom: 1rem; height: 330px;}
  .slider-nav {margin-top: 2rem;}
}


/* ================= CONTACT ================= */
.contact-grid { 
  display: grid; 
  /* Use auto instead of 1fr to let the content dictate the width */
  grid-template-columns: repeat(3, 1fr); 
  justify-content: center; /* Keeps the cards centered in the section */
  gap: 2rem; 
}

.contact-card {
  background: var(--bg-contrast);
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);

}
.contact-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.contact-card i { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.contact-card a { color: var(--text-main); text-decoration: none; font-weight: 800; font-size: 1.2rem; 
  /* THE FIX: Prevents text from breaking into two lines */
  white-space: nowrap; 
  display: inline-block; }

/* ================= UTILS ================= */
.btn { padding: 1.2rem 2.5rem; border-radius: 8px; font-weight: 700; text-decoration: none; display: inline-block; transition: var(--transition); font-size: 1.3rem; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }
.responsive-img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.reveal {
  opacity: 0;
  /* Remove translateY for layout stability */
  transition: opacity 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
}

.footer { padding: 1rem 0; text-align: center; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-dim); }

.footer .container {
  display: flex;
  justify-content: center; /* centers content horizontally */
  align-items: center;    /* centers vertically if needed */
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; justify-items: center; }
  .grid-3-desktop { grid-template-columns: 1fr 1fr; }
  
  .contact-card {
    width: 100%;
    max-width: 400px; /* Prevents cards from becoming giant on mobile */
  }
}



/* ================= CONTACT FORM ================= */
.contact-form-container {
  
  margin: 4rem auto 0;
  background: var(--bg-deep);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  justify-content: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  /* Use your Montserrat Bold font */
  font-family: 'Montserrat Bold', sans-serif;
  font-size: 1.2rem; /* Slightly smaller for a cleaner look */
  color: var(--white);
  margin-bottom: 0.6rem;
  
  letter-spacing: 1px; /* Matching your badge letter spacing */
}

.form-group input, 
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  color: var(--text-main);
  /* Use your Montserrat Regular font */
  font-family: 'Montserrat Regular', sans-serif;
  /* Matches your global body font size logic */
  font-size: 1.2rem;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.full-width {
  grid-column: span 2;
}

.char-count {
  font-family: 'Montserrat Regular', sans-serif;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
  border: none;
  /* Use your Montserrat Bold font for the button */
  font-family: 'Montserrat Bold', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Animation for the form disappearing */
.fade-out-form {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

/* Animation for the success message appearing */
#form-status {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#form-status.visible {
  opacity: 1;
  transform: translateY(0);
  display: block !important;
}

@media (max-width: 900px) {
  .contact-form-container {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .full-width {
    grid-column: span 1;
  }

  .form-group label {
  margin-bottom: 0.6rem;
  
}
}
  
/* Mobile Responsiveness */
@media (max-width: 620px) {
  .contact-form-container {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .full-width {
    grid-column: span 1;
  }

  .form-group label {
  /* Use your Montserrat Bold font */

  font-size: 1rem; /* Slightly smaller for a cleaner look */

  margin-bottom: 0.6rem;
  
}
  
  .form-group input, 
.form-group textarea {
  font-size: 1rem;
}

.submit-btn {
  font-size: 1rem;
 
}

}


/* Highlights invalid fields only after the user interacts or submits */
.contact-form input:invalid:not(:placeholder-shown) {
  border-color: #ff4d4d;
  background: rgba(255, 77, 77, 0.05);
}

/* Optional: Smooth transition for the error box */
#form-error {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


