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

:root{
  --teal: #176d80;
  --orange: #f7931e;
  --text: #0e2f36;
  --muted: #9D9E91;
  --ease: cubic-bezier(.2,.8,.2,1);
}

html, body{
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Rotis sans serif', sans-serif;
  background-color: #fff;
  color: var(--text);
  line-height: 1.4;
  scroll-behavior: smooth;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* ========== HEADER (MATCH INDEX) ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}

header.is-scrolled{
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.96);
}

.header-left img {
  height: 120px;
  padding: 10px 20px;
  display: block;
}

.burger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--teal);
  user-select: none;
}

/* Nav */
.nav-menu {
  background-color: var(--orange);
  padding: 55px 100px;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0% 100%);
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-menu a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.4px;
  position: relative;
  transition: transform .25s var(--ease), color .25s var(--ease);
}

.nav-menu a::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: -10px;
  width: 70%;
  height: 3px;
  border-radius: 3px;
  background: var(--teal);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .28s var(--ease);
}

.nav-menu a:hover{
  transform: translateY(-1px);
  color: #0c4251;
}

.nav-menu a:hover::after,
.nav-menu a.active::after{
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active{
  color: var(--muted);
}

/* ========== SERVICES PAGE LAYOUT ========== */
.about-section.services-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 40px 0px;
  max-width: 1300px;
  margin: 0 auto;
}

/* TEXT SIDE */
.text-box {
  flex: 0 0 48%;
  padding: 0;
}

/* Text reveal animations (same feel as index hero) */
.text-box h2,
.text-box h3,
.text-box p,
.text-box ul,
.text-box .cta-btn{
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .9s var(--ease) forwards;
}

.text-box h2{ animation-delay: .10s; }
.text-box p:nth-of-type(1){ animation-delay: .20s; }
.text-box h3{ animation-delay: .28s; }
.text-box .checklist{ animation-delay: .34s; }
.text-box .sub-list{ animation-delay: .40s; }
.text-box .cta-btn{ animation-delay: .55s; }

.text-box h2 {
  font-size: 35px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 10px;
}

.text-box h3 {
  font-size: 25px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 10px;
}

.text-box p {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* LINES */
.orange-line {
  width: 40px;
  height: 3px;
  background-color: var(--orange);
  border: none;
  margin-bottom: 20px;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: .14s;
}

.green-line {
  width: 20px;
  height: 3px;
  background-color: var(--teal);
  border: none;
  margin-bottom: 20px;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: .30s;
}

/* ========== CTA BUTTON (MATCH INDEX) ========== */
.cta-btn {
  background-color: var(--orange);
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 10px;
  box-shadow: 0 6px 0 #b46810, 0 12px 26px rgba(0,0,0,0.14);
  transition: transform .25s var(--ease), filter .25s var(--ease), box-shadow .25s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 6px 0 #b46810, 0 16px 32px rgba(0,0,0,0.18);
}

.cta-btn:active{
  transform: translateY(0px);
}

/* ========== CHECKLIST ========== */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--teal);
  font-size: 1rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

/* SUB-LIST UNDER CHECKLIST */
.sub-list {
  margin: 0 0 18px 1.5rem;
  padding-left: 1rem;
}

.sub-list li {
  margin-bottom: 0.5rem;
  color: #222;
  font-weight: normal;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========== RIGHT PANEL (Some of our work) ========== */
.work-panel {
  flex: 0 0 52%;
  position: sticky;
  top: 120px;
  align-self: flex-start;

  background: #fff;
  border-radius: 16px;
  padding: 32px 26px 36px;
  min-height: 640px;

  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);

  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: .20s;
}

.work-panel h3 {
  font-size: 35px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 10px;
}

/* ========== SERVICES CAROUSEL ========== */
.services-carousel {
  position: relative;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

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

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Carousel Arrows === */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background-color: var(--orange);
  color: var(--teal);

  font-size: 22px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 5;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-btn:hover {
  background-color: #ecb575;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(90deg, #0c4251, #a5e2ef, #0c4251);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
}

footer a{
  color: white;
  text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp{
  to{ opacity: 1; transform: translateY(0); }
}

/* ========== MOBILE RESPONSIVENESS ========== */
/* Mobile */
@media screen and (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
  }

  .header-left img {
    height: 95px;
    padding: 8px 10px;
  }

  .burger {
    display: block;
    position: absolute;
    top: 22px;
    right: 16px;
  }

  .nav-menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
    clip-path: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.12);
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a::after{
    bottom: -8px;
    width: 40%;
  }

  .about-section.services-layout {
    flex-direction: column;
    padding: 30px 20px;
  }

  .work-panel {
    position: relative;
    top: auto;
    width: 100%;
    min-height: auto;
  }

  .carousel-track {
    height: 360px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .text-box h2 {
    font-size: 26px;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  footer {
    font-size: 0.8rem;
    padding: 10px;
  }
}
