/* ==========================================================
   EKKAM DESIGN STUDIO — Main Stylesheet
   Colors: --orange #E8722A | --grey #4A4A4A | --light #F5EFE6
   ========================================================== */

/* ── ROOT & RESET ── */
:root {
  --orange: #E8722A;
  --orange-dark: #c95e1a;
  --grey: #4A4A4A;
  --light: #F5EFE6;
  --cream: #EDE6D8;
  --white: #FFFFFF;
  --dark: #2C2C2C;
  --muted: #7A7A7A;
  --div: #D4C8B8;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; }
img { display: block; max-width: 100%; }

/* ── SHARED UTILITIES ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
}
.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.15;
}
.sec-title span { color: var(--orange); font-style: italic; }
.sec-div { width: 44px; height: 2px; background: var(--orange); margin: 18px 0 24px; }

.btn-brand {
  background: var(--orange);
  color: #fff;
  padding: 13px 32px;
  border-radius: 3px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background .25s, transform .2s, box-shadow .25s;
  display: inline-block;
  cursor: pointer;
}
.btn-brand:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,114,42,.3);
}
.btn-outline {
  border: 1.5px solid var(--grey);
  color: var(--grey);
  padding: 13px 32px;
  border-radius: 3px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all .25s;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* Scroll animations */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s, transform .65s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── NAVBAR ── */
.navbar {
  background: rgba(245,239,230,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--div);
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.08); }
.navbar-brand img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; }
.nav-link {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey) !important;
  font-weight: 500;
  padding: 6px 12px !important;
  transition: color .25s;
}
.nav-link:hover { color: var(--orange) !important; }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 3px;
  padding: 8px 20px !important;
  transition: background .25s;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

/* ── HERO SLIDER ── */
#hero {
  min-height: 100vh;
  background: var(--light);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  display: flex;
  align-items: center;
}
.hero-slide { display: none; width: 100%; animation: fadeSlide .8s ease; }
.hero-slide.active { display: flex; align-items: center; min-height: calc(100vh - 72px); }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero word — typing effect */
.hero-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.15;           /* enough room for descenders */
  margin-bottom: 16px;
  padding-bottom: .1em;        /* prevents "g" / "y" clipping */
  border-right: 3px solid var(--orange);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 1.2s steps(12) forwards;
}
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

.hero-meaning {
  font-size: clamp(1rem, 2.8vw, 2rem);
  font-weight: 300;
  color: var(--grey);
  margin-bottom: 12px;
}
.hero-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-img-wrap {
  position: relative;
  height: 480px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 20px 20px 0 var(--div);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Slider controls */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--div);
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}
.hero-dot.active { background: var(--orange); transform: scale(1.3); }
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  color: var(--grey);
  transition: background .25s;
}
.hero-nav-btn:hover { background: var(--orange); color: #fff; }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* ── ABOUT ── */
#about { background: var(--dark); padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-tagline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-tagline span { color: var(--orange); font-style: italic; }
.about-body {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 20px;
}
.about-values { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.av-item { display: flex; gap: 16px; align-items: flex-start; }
.av-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  opacity: .4;
  line-height: 1;
  min-width: 36px;
}
.av-content h5 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.av-content p { color: rgba(255,255,255,.45); font-size: .83rem; line-height: 1.7; margin: 0; }
.about-visual {
  border-radius: 2px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ── WHY US ── */
#why { background: var(--white); padding: 90px 0; }
.why-card {
  padding: 32px 24px;
  border: 1px solid var(--div);
  border-radius: 2px;
  height: 100%;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .4s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.why-card:hover::after { width: 100%; }
.why-icon { font-size: 1.8rem; margin-bottom: 16px; }
.why-card h5 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.why-card p { font-size: .85rem; color: var(--muted); line-height: 1.75; font-weight: 300; margin: 0; }

/* ── AI / BEFORE-AFTER ── */
#ai-design { background: var(--light); padding: 90px 0; }
.ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 18px;
}
.before-after-wrap {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,.22);
  user-select: none;
  cursor: ew-resize;
}
.ba-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-slider {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 100%;
  background: #fff;
  z-index: 10;
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid #fff;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  pointer-events: none;
}
.ba-label {
  position: absolute;
  top: 20px;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
}
.ba-label.before { left: 20px; background: rgba(0,0,0,.55); color: #fff; }
.ba-label.after  { right: 20px; background: var(--orange); color: #fff; }

.ai-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: 2px;
  border-left: 3px solid transparent;
  transition: border-color .3s, transform .3s;
  height: 100%;
}
.ai-feat:hover { border-left-color: var(--orange); transform: translateX(4px); }
.ai-feat-icon {
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.ai-feat h6 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.ai-feat p  { font-size: .82rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── ONGOING PROJECTS ── */
#ongoing { background: var(--white); padding: 90px 0; }
.proj-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.11); }
.proj-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.proj-status {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--orange);
  color: #fff;
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 600;
}
.proj-body { padding: 22px; }
.proj-body h5 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.proj-type  { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.proj-pct   { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: var(--grey); }
.proj-meta  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.proj-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: .06em;
  border: 1.5px solid var(--orange);
  border-radius: 2px;
  padding: 6px 14px;
  transition: background .25s, color .25s;
}
.proj-video-btn:hover { background: var(--orange); color: #fff; }
.progress { height: 3px; background: var(--div); border-radius: 0; margin-top: 8px; }
.progress-bar { background: var(--orange); }

/* ── COMPLETED PROJECTS ── */
#completed { background: var(--light); padding: 90px 0; }
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.comp-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  height: 260px;
}
.comp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.comp-card:hover img { transform: scale(1.06); }
.comp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,44,44,.88) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity .35s;
}
.comp-card:hover .comp-overlay { opacity: 1; }
.comp-info h5 { font-size: 1.1rem; color: #fff; font-weight: 600; margin-bottom: 2px; }
.comp-info p  { font-size: .75rem; color: rgba(255,255,255,.65); margin: 0; }
.comp-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--orange);
  color: #fff;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img  { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lb-close {
  position: absolute;
  top: 20px; right: 28px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  background: rgba(255,255,255,.1);
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .25s;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: var(--orange); }

/* ── SERVICES ── */
#services { background: var(--white); padding: 90px 0; }
.svc-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 2px;
  background: var(--light);
  border-left: 3px solid transparent;
  transition: border-color .3s, transform .3s;
  height: 100%;
}
.svc-item:hover { border-left-color: var(--orange); transform: translateX(5px); }
.svc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--div);
  line-height: 1;
  min-width: 36px;
}
.svc-content h5 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.svc-content p  { font-size: .83rem; color: var(--muted); line-height: 1.75; margin: 0; font-weight: 300; }

/* ── PROCESS ── */
#process { background: var(--grey); padding: 90px 0; }
.step-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--orange);
  transition: background .3s, color .3s;
}
.process-step:hover .step-circle { background: var(--orange); color: #fff; }
.process-step h5 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.process-step p  { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.7; margin: 0; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--white); padding: 90px 0; }
.testi-card {
  padding: 32px;
  background: var(--light);
  border-radius: 2px;
  height: 100%;
  border-bottom: 3px solid transparent;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.testi-card:hover {
  border-bottom-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.07);
}
.testi-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 20px;
}
.client-av {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
}
.stars { color: var(--orange); font-size: .75rem; margin-bottom: 12px; }

/* ── CONTACT ── */
#contact { background: var(--light); padding: 90px 0; }
.form-wrap {
  background: var(--white);
  border-radius: 2px;
  padding: 44px;
  box-shadow: 0 4px 36px rgba(0,0,0,.06);
}
.form-label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 6px;
}
.form-control, .form-select {
  border: 1px solid var(--div);
  border-radius: 2px;
  padding: 11px 14px;
  font-size: .88rem;
  background: var(--light);
  color: var(--dark);
}
.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,114,42,.12);
  background: var(--white);
  outline: none;
}
.ci-icon {
  width: 42px; height: 42px;
  border-radius: 2px;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ci-val   { font-size: .9rem; color: var(--dark); font-weight: 500; margin-top: 2px; }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,.55); padding: 60px 0 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.footer-brand-text .studio-f {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  display: block;
  margin-top: -4px;
}
.foot-h {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  margin-bottom: 18px;
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 9px; }
footer ul li a { color: rgba(255,255,255,.4); font-size: .83rem; text-decoration: none; transition: color .25s; }
footer ul li a:hover { color: var(--orange); }
.soc-link {
  width: 34px; height: 34px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: all .25s;
}
.soc-link:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.foot-div { border-color: rgba(255,255,255,.08); margin: 36px 0 18px; }

/* ── WHATSAPP STICKY ── */
.wa-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  animation: waPulse 2.5s infinite;
}
.wa-btn:hover { color: #fff; transform: scale(1.1); animation: none; }
.wa-tip {
  position: absolute;
  right: 66px; top: 50%;
  transform: translateY(-50%);
  background: #25D366;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.wa-btn:hover .wa-tip { opacity: 1; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ==========================================================
   RESPONSIVE — Mobile-first fixes
   ========================================================== */

/* Large tablets and below */
@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; }
  .form-wrap  { padding: 28px 20px; }
  .hero-img-wrap { height: 360px; }
}

/* Tablets */
@media (max-width: 767px) {
  section { padding: 64px 0; }
  .before-after-wrap { height: 300px; }
  .comp-grid { grid-template-columns: 1fr 1fr; }
  .hero-img-wrap { height: 260px; margin-top: 24px; box-shadow: 8px 8px 0 var(--div); }
  .hero-nav-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* Mobile */
@media (max-width: 576px) {
  /* Hero word — prevent descender clipping on small screens */
  .hero-word {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
    line-height: 1.2;
    padding-bottom: .15em;
    border-right: none;
    white-space: normal;
    overflow: visible;
    animation: none;   /* disable typing on mobile — avoids width glitch */
    width: auto !important;
  }
  .hero-meaning { font-size: 1rem; }
  .hero-desc    { font-size: .85rem; }
  .hero-slide.active {
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .hero-img-wrap { height: 220px; margin-top: 20px; box-shadow: none; }
  .hero-dots     { bottom: 12px; }
  .hero-nav-btn  { display: none; } /* too small — swipe via dots */

  .comp-grid { grid-template-columns: 1fr; }
  .before-after-wrap { height: 240px; }
  .ba-handle { width: 40px; height: 40px; }

  .form-wrap { padding: 20px 14px; }
  .wa-btn    { bottom: 16px; right: 16px; width: 48px; height: 48px; }
}
