/* --- CORE VARIABLES --- */
:root {
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-secondary: #6f6f6f;
  --accent-green: #485c11;
  --accent-light: #dfecc6;
  --border-radius: 30px;
  --font-serif: "Crimson Text", serif;
  --font-sans: "DM Sans", sans-serif;
  --font-mono: "Roboto Mono", monospace;
}

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.4;
  overflow-x: hidden;
}
.footer-logo {
  width: 40px; /* Adjust size as needed */
  height: auto;
  margin-bottom: 10px;
}
footer {
  padding: 50px 0;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column; /* Stack logo, name, and copyright */
  align-items: center;
  gap: 15px; /* Space between elements */
  margin-top: 50px;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--border-radius);
}

/* --- TYPOGRAPHY UTILITIES --- */
.serif-xl {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.serif-lg {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -1px;
}

.text-body {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

/* --- HEADER (Floating Pill Style) --- */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 15px 30px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: max-content;
  border: 1px solid #eee;
}

.nav-link {
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent-green);
}

/* --- BUTTONS --- */
.btn-pill {
  background-color: var(--text-main);
  color: white;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.2s,
    background-color 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  /* MOBILE SIZE (The fix you asked for) */
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-pill.light {
  background-color: var(--accent-light);
  color: black;
}

.btn-pill:hover {
  transform: translateY(-2px);
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-visual {
  margin-top: 60px;
  width: 100%;
  height: 500px;
  background-color: #f0f0f0;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::after {
  content: "TheKamui.com";
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #ccc;
}


.carousel-container {
  /* 1. This acts as the anchor point for the absolute images */
  position: relative;

  /* 2. Keeps the carousel underneath the text if they overlap */
  z-index: 1;

  width: 100%;
  height: 60vh;
  min-height: 400px;
  margin-top: 40px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}

.c-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;

  /* 3. Force CSS to override the HTML width="2816" attribute */
  width: 70% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: var(--border-radius);

  /* CLS FIX ANIMATION */
  transition:
    transform 0.8s ease-in-out,
    opacity 0.8s ease-in-out,
    filter 0.8s ease-in-out;
  opacity: 0;
  z-index: 0;

  /* CENTER THE SLIDE */
  left: 50%;
  transform: translateX(-50%) scale(0.5);
}

/* ACTIVE STATE */
.c-slide.active {
  opacity: 1;
  z-index: 10;
  transform: translateX(-50%) scale(1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  filter: blur(0);
}

/* PREV STATE */
.c-slide.prev {
  opacity: 0.6;
  z-index: 5;
  transform: translateX(-170%) scale(0.85);
  filter: blur(4px) grayscale(30%);
}

/* NEXT STATE */
.c-slide.next {
  opacity: 0.6;
  z-index: 5;
  transform: translateX(70%) scale(0.85);
  filter: blur(4px) grayscale(30%);
}

/* MOBILE ADJUSTMENT */
@media (max-width: 768px) {
  .carousel-container {
    height: 40vh;
  }
  .c-slide {
    width: 85% !important;
  }
  .c-slide.prev {
    transform: translateX(-160%) scale(0.85);
  }
  .c-slide.next {
    transform: translateX(60%) scale(0.85);
  }
}

/* --- TRUSTED BY --- */
.trusted-by {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}
.logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.6;
  font-weight: bold;
  font-size: 1.2rem;
  color: #999;
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.service-card {
  background: #fafafa;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  transition: 0.3s;
}

.service-card:hover {
  background: #f0f0f0;
}

.icon-box {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- NUMBERED LIST --- */
.steps-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 40px;
}

.step-number {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}

.big-number {
  font-size: 4rem;
  color: #e0e0e0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
}

/* --- COMPARISON TABLE --- */
.comparison-wrapper {
  background-color: #fafafa;
  border-radius: var(--border-radius);
  padding: 80px 40px;
  margin-top: 50px;
}

.comparison-header {
  text-align: center;
  margin-bottom: 60px;
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.comp-col {
  background: white;
  padding: 30px;
  border-radius: 20px;
}

.comp-col.highlight {
  border: 2px solid var(--accent-green);
  position: relative;
}

.comp-col.highlight::before {
  content: "Recommended";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
}

.comp-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-sans);
}

.comp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check {
  color: var(--accent-green);
  font-weight: bold;
}
.cross {
  color: #ccc;
}

/* --- CONTACT FORM PAGE STYLES --- */
.contact-section {
  padding-top: 150px;
  display: flex;
  justify-content: center;
}

.contact-card {
  background: #fafafa;
  padding: 60px;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* New Helper for Side-by-Side inputs */
.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1; /* Makes items take equal width */
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-green);
}

select.form-control {
  appearance: none;
  background-image: url("../dropDownIcon.svg");
  background-repeat: no-repeat;
  background-position: right 20px top 50%;
  background-size: 10px auto;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
/* --- TESTIMONIAL SLIDESHOW --- */
.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  /* Grid trick to stack items on top of each other without absolute positioning issues */
  display: grid;
  grid-template-areas: "stack";
  min-height: 250px; /* Minimum height to prevent jumping */
}

.testimonial-slide {
  grid-area: stack; /* Puts all slides in the same space */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none; /* Prevents selecting hidden text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1;
}
/* --- FOOTER --- */
footer {
  padding: 50px 0;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .steps-section,
  .comparison-table {
    grid-template-columns: 1fr;
  }
  header {
    width: 90%;
    justify-content: space-between;
    padding: 10px 20px;
  }
  .nav-link {
    display: none;
  }
  .serif-xl {
    font-size: 3rem;
  }
  .contact-card {
    padding: 30px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  } /* Stack inputs on mobile */
}
