:root {
  --color-bg: #fbf9f7;
  --color-surface: #ffffff;
  --color-primary: #0f6e6b;
  --color-primary-dark: #0a4f4d;
 
  /* --color-accent: #d99a6c; */
  --color-accent: #801c44;
  --color-text: #1f2a2a;
  --color-text-soft: #5a6666;
  --color-border: #e7e2dc;
  --radius: 16px;
  --shadow-sm: 0 4px 16px rgba(15, 40, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 40, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 40, 40, 0.14);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary-dark); line-height: 1.2; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.eyebrow.center { display: block; text-align: center; }
h2.center { text-align: center; max-width: 640px; margin: 0 auto 48px; font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 48px; height: 48px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header */
header#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251, 249, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
header#header.scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo { display: flex;
  align-items: center;
  gap: 10px; 
  font-family: var(--font-heading); font-size: 2.3rem; font-weight: 700; color: var(--color-primary-dark); 
 }

/* .logo span { color: var(--color-accent); } */
/* .logo {
  display: flex;
  align-items: center;
  gap: 12px;
} */

.logo-mark {
  width: auto;
  height: 52px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
  object-fit: contain;
  background:transparent;           /* navbar color */
  mix-blend-mode: normal;
}

.logo-text { color: var(--color-primary-dark); }

.logo-text span { color: var(--color-accent); }

.logo-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-tagline {
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7b79;
  padding-left: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

/* @media (max-width: 1100px) {
  .logo-tagline { display: none; }   /* keeps the nav from getting crowded 
} */
@media (max-width: 768px) {
  .logo { font-size: 1.5rem; gap: 8px; }
  /* .logo-mark { width: 44px; height: 44px; } */
  .logo-mark { height: 44px; }
  .logo-tagline { font-size: 0.55rem; letter-spacing: 0.08em; }
}
#nav ul { display: flex; gap: 32px; }
#nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--color-text);
  position: relative; padding: 6px 0;
}
#nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--color-primary); transition: width .25s ease;
}
#nav a:hover::after, #nav a.active::after { width: 100%; }
#nav a.active { color: var(--color-primary-dark); }

#hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
#hamburger span { width: 24px; height: 2px; background: var(--color-primary-dark); transition: transform .3s ease, opacity .3s ease; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* padding-top: 90px; */
  padding-top: calc(var(--header-h) + 24px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 15%, rgba(15,110,107,0.10), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(217,154,108,0.14), transparent 45%),
    var(--color-bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-sub { color: var(--color-text-soft); font-size: 1.05rem; max-width: 520px; margin: 18px 0 28px; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.highlight { color: var(--color-primary); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary-dark); }
.hero-stats span { font-size: 0.82rem; color: var(--color-text-soft); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.hero-card {
  width: 320px; height: 400px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-photo {
  width: 100%; height: 100%; object-fit: cover;
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 20px 4px rgba(255,255,255,0.5);
  animation: scan 3s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 92%; } }
.floating { animation: floaty 4.5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.badge-chip {
  position: absolute;
  background: var(--color-surface);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  color: var(--color-primary-dark);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: 6%; left: -6%; animation-delay: .2s; }
.chip-2 { bottom: 20%; right: -10%; animation-delay: .8s; }
.chip-3 { bottom: -4%; left: 12%; animation-delay: 1.4s; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--color-primary); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--color-primary); border-radius: 2px; animation: scrollcue 1.6s ease infinite; }
@keyframes scrollcue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

/* About */
.about { padding: 110px 0; background: var(--color-surface); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 4/5; border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.exp-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--color-primary); color: #fff;
  padding: 18px 22px; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
}
.exp-badge strong { font-family: var(--font-heading); font-size: 1.8rem; }
.exp-badge span { font-size: 0.75rem; line-height: 1.3; }
.about-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.about-content p { color: var(--color-text-soft); margin-bottom: 20px; }
.about-list li { display: flex; gap: 10px; margin-bottom: 12px; font-weight: 500; }
.tick { color: var(--color-primary); font-weight: 700; }
.about-cta { margin-top: 28px; }

/* Technology */
.technology { padding: 110px 0; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tech-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tech-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.tech-photo { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.tech-photo img { width: 100%; height: 100%; object-fit: cover; }
.tech-card h3 { margin: 20px 28px 12px; font-size: 1.2rem; }
.tech-card p { color: var(--color-text-soft); font-size: 0.92rem; padding: 0 28px 32px; }

/* Services */
.services { padding: 110px 0; background: var(--color-surface); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
  background: var(--color-bg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-media {
  height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: #fff; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.grad-1 { background: linear-gradient(135deg, #0f6e6b, #17a39e); }
.grad-2 { background: linear-gradient(135deg, #d99a6c, #e8b98d); }
.grad-3 { background: linear-gradient(135deg, #0a4f4d, #14807b); }
.grad-4 { background: linear-gradient(135deg, #b97b4c, #d99a6c); }
.service-body { padding: 26px 28px 30px; }
.service-body h3 { margin-bottom: 10px; font-size: 1.25rem; }
.service-body > p { color: var(--color-text-soft); margin-bottom: 16px; font-size: 0.94rem; }
.service-body ul li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 0.9rem; color: var(--color-text); }
.service-body ul li::before { content: '•'; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }

/* Process / Results */
.results { padding: 110px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 64px; }
.process-step {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 30px 24px; position: relative;
}
.step-num { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-accent); font-weight: 700; }
.process-step h3 { margin: 14px 0 10px; font-size: 1.1rem; }
.process-step p { color: var(--color-text-soft); font-size: 0.88rem; }

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--color-primary); color: #fff;
  border-radius: var(--radius); padding: 40px 30px; text-align: center;
}
.stats-strip strong { display: block; font-family: var(--font-heading); font-size: 2rem; }
.stats-strip span { font-size: 0.82rem; opacity: 0.85; }

/* Gallery */
.gallery { padding: 110px 0; background: var(--color-bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery-compare { display: grid; grid-template-columns: 1fr 1fr; }
.gallery-media {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  color: rgba(255,255,255,0.9);
}
.gallery-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.gallery-media.after { filter: saturate(1.1); }
.media-tag {
  position: relative; z-index: 1; margin-bottom: 12px;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
  padding: 5px 14px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.gallery-caption { padding: 20px 22px 24px; }
.gallery-caption h3 { font-size: 1.05rem; margin-bottom: 4px; }
.gallery-caption p { color: var(--color-text-soft); font-size: 0.86rem; }
.gallery-note { text-align: center; color: var(--color-text-soft); font-size: 0.82rem; margin-top: 32px; }
.gallery-note code { background: var(--color-border); padding: 2px 6px; border-radius: 4px; }

/* Testimonials */
.testimonials { padding: 110px 0; background: var(--color-surface); }
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 30px 26px;
}
.testimonial-card p { font-style: italic; color: var(--color-text); margin-bottom: 22px; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author small { color: var(--color-text-soft); font-size: 0.78rem; }

/* Contact */
.contact { padding: 110px 0; }
.contact-grid { align-items: start; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.contact-info > p { color: var(--color-text-soft); margin-bottom: 30px; }
.contact-details div { margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.contact-details strong { font-size: 0.92rem; }
.contact-details span { color: var(--color-text-soft); font-size: 0.9rem; }

/* .contact-form-wrap {} */
.contact-form-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.contact-form {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.92rem; background: var(--color-bg);
  transition: border-color .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-primary);
}
.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--color-primary); min-height: 1.2em; }

/* Footer */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.85); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer .logo { color: #fff; }
.footer .logo span { color: var(--color-accent); }
.footer-grid p { margin-top: 14px; font-size: 0.88rem; opacity: 0.75; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer ul li a:hover { color: var(--color-accent); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
  transition: background .2s ease;
}
.social-links a:hover { background: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 0; text-align: center; font-size: 0.82rem; opacity: 0.7;
}

/* Back to top */
#backToTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

.nav-cta-mobile { display: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 40px; min-height: 340px; }
  .tech-grid, .services-grid, .process-grid, .stats-strip, .testimonial-track, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
 
}

@media (max-width: 720px) {
  #nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--color-surface);
    box-shadow: var(--shadow-md); padding: 24px; transform: translateY(-130%); opacity: 0;
    transition: transform .3s ease, opacity .3s ease; }
  #nav.open { transform: translateY(0); opacity: 1; }
  #nav ul { flex-direction: column; gap: 18px; }
  #hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-cta-mobile {
    display: block;
    margin-top: 12px;
    list-style: none;
  }
  .nav-cta-mobile .btn { width: 100%; text-align: center; }
  .tech-grid, .services-grid, .process-grid, .stats-strip, .testimonial-track, .footer-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-compare { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .logo-mark { width: 44px; height: 44px; }
  .nav-wrap { padding-top: 8px; padding-bottom: 8px; }
  :root { --header-h: 72px; }
}
