/* ========== 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);
}

/* underline animation */
.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);
}

/* ========== ABOUT SECTION ========== */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 600px;
}

/* Text side */
.text-box {
  flex: 1;
  padding: 60px 50px;
}

/* Animate text content on load (same feel as index hero) */
.text-box h2,
.text-box h3,
.text-box p,
.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 p:nth-of-type(2){ animation-delay: .30s; }
.text-box h3:nth-of-type(1){ animation-delay: .38s; }
.text-box p:nth-of-type(3){ animation-delay: .46s; }
.text-box h3:nth-of-type(2){ animation-delay: .54s; }
.text-box p:nth-of-type(4){ animation-delay: .62s; }
.text-box .cta-btn{ animation-delay: .72s; }

.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;
}

/* ========== IMAGE SIDE (MATCH INDEX DEPTH + REVEAL) ========== */
.image-box {
  flex: 1;
  background-color: var(--teal);
  position: relative;
  margin-left: -30px;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-overlay {
  flex: 1;
  background-color: var(--orange);
  position: relative;
  margin-left: -30px;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  height: 100%;
}

.image-overlay img {
  width: 100%;
  max-height: 800px;
  height: 100%;
  object-fit: cover;
  display: block;
  margin-left: 10px;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);

  /* Image reveal animation */
  opacity: 0;
  transform: scale(1.02);
  animation: imgIn 1s var(--ease) forwards;
  animation-delay: .25s;
}

/* subtle overlay for depth */
.image-box::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,0.18), rgba(0,0,0,0));
  pointer-events:none;
}

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

.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);
}

/* ========== 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); }
}

@keyframes imgIn{
  to{ opacity: 1; transform: scale(1); }
}

/* ========== 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 {
    flex-direction: column;
  }

  .image-box,
  .image-overlay,
  .image-overlay img {
    clip-path: none;
    margin-left: 0;
    height: auto;
    max-height: none;
  }

  .image-overlay img{
    margin-left: 0;
  }

  .text-box {
    padding: 30px 20px;
  }

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

  .text-box h3{
    font-size: 20px;
  }

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

  footer {
    font-size: 12px;
    padding: 10px;
  }
}

/* ✅ DESKTOP ONLY: hide image */
@media (min-width: 1024px){
  .image-box{
    display: none;
  }
}