/* ============================================================
   NILMUDA — Main Stylesheet
   Brand color: #0AABBA (teal)
   Font: Syne (headings) + DM Sans (body)
   Mobile-first via Bootstrap 5
   ============================================================ */

/* ------- CSS Variables ------- */
:root {
  --brand:       #0AABBA;
  --brand-dark:  #088A97;
  --brand-light: #E8F8FA;
  --text-dark:   #1A1A2E;
  --text-muted:  #6B7280;
  --white:       #FFFFFF;
  --card-radius: 1rem;
  --section-pad: 5rem 0;
  --transition:  all 0.3s ease;
}

/* ------- Base ------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }

/* ------- Utility ------- */
.text-brand      { color: var(--brand); }
.bg-light-teal   { background-color: var(--brand-light); }
.fw-500          { font-weight: 500; }
.fw-600          { font-weight: 600; }
.fw-700          { font-weight: 700; }
.text-white-75   { color: rgba(255,255,255,.75); }
.min-vh-80       { min-height: 80vh; }
.section-pad     { padding: var(--section-pad); }

/* ------- Buttons ------- */
.btn-primary-brand {
  background-color: var(--brand);
  border-color:     var(--brand);
  color:            var(--white);
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary-brand:hover,
.btn-primary-brand:focus {
  background-color: var(--brand-dark);
  border-color:     var(--brand-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(10,171,186,.3);
}

.btn-outline-brand {
  background-color: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background-color: var(--brand);
  color: var(--white);
  transform: translateY(-1px);
}

/* ------- NAVBAR ------- */
.navbar { padding: .9rem 0; }

.brand-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--brand);
  letter-spacing: -.02em;
}

.navbar .nav-link {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-dark);
  padding: .5rem .85rem;
  border-radius: .5rem;
  transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--brand);
  background: var(--brand-light);
}

/* ------- HERO ------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f0fbfc 0%, #e2f7f9 60%, var(--white) 100%);
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-bg-shape {
  position: absolute;
  inset: -30% -10% -10% 50%;
  background: radial-gradient(circle, rgba(10,171,186,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -.03em;
}

.hero-heading .highlight {
  color: var(--brand);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero-sub .highlight {
  color: var(--brand);
}

.hero-logo-wrap {
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.hero-logo-img {
  width: 280px;
  filter: drop-shadow(0 20px 48px rgba(10,171,186,.25));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ------- PARTNERS STRIP ------- */
.partners-strip { background: var(--white); }

.partner-logo-placeholder {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  color: #C4CDD6;
}

/* ------- SECTION TYPOGRAPHY ------- */
.section-eyebrow {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2rem;
  margin-bottom: .75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.section-heading .highlight { color: var(--brand); }

/* ------- SERVICES ------- */
.service-card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10,171,186,.15);
  border-color: rgba(10,171,186,.2);
}

.service-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--brand);
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: var(--brand);
  color: var(--white);
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

/* ------- STATS ------- */
.stats-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  margin-top: .4rem;
  font-weight: 500;
}

/* ------- PHILOSOPHY ------- */
.philosophy-card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: var(--transition);
  border: 1px solid #EEF2F7;
}
.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(10,171,186,.12);
}

.philosophy-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--brand);
}

.philosophy-title {
  font-size: 1rem;
  font-weight: 700;
}

.philosophy-center-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: var(--white);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(10,171,186,.2);
  align-items: center; justify-content: center;
  z-index: 2;
}
.philosophy-center-logo img { width: 100%; }
.philosophy-grid { position: relative; }

/* ------- FEATURED WORK ------- */
.project-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10,171,186,.18);
}

.project-img-placeholder {
  height: 190px;
  background: linear-gradient(135deg, #c8f0f4 0%, #9de6ed 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--brand-dark);
}

.tag-badge {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .05em;
  padding: .3em .7em;
  border-radius: 2rem;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.project-body { display: flex; flex-direction: column; flex: 1; }

/* ------- BLOGS ------- */
.blog-tab { transition: var(--transition); }

.blog-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: var(--transition);
  display: flex; flex-direction: column;
  border: 1px solid #EEF2F7;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(10,171,186,.12);
}

.blog-img-placeholder {
  height: 160px;
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  color: var(--brand);
}

.blog-category-badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25em .75em;
  border-radius: 2rem;
}

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-body { display: flex; flex-direction: column; flex: 1; }

.read-more-link {
  color: var(--brand);
  font-weight: 600;
  transition: var(--transition);
}
.read-more-link:hover { color: var(--brand-dark); }

/* ------- CONTACT ------- */
.contact-section {
  background: linear-gradient(135deg, #0f3460 0%, #0AABBA 100%);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: -50% 60% -50% -20%;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-info-list li {
  display: flex; align-items: flex-start; gap: 1rem;
}
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.15);
}

.contact-form-card .form-control {
  border: 1.5px solid #E5E7EB;
  border-radius: .6rem;
  padding: .75rem 1rem;
  font-size: .95rem;
  transition: var(--transition);
}
.contact-form-card .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10,171,186,.15);
}

/* ------- FOOTER ------- */
.footer-section {
  background: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.footer-brand-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-col-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--brand); }

.footer-contact-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .75rem;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
.footer-contact-list a {
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-contact-list a:hover { color: var(--brand); }
.footer-contact-list i { color: var(--brand); }

.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social-link:hover {
  background: var(--brand);
  color: var(--white);
}

.footer-divider { border-color: rgba(255,255,255,.1); }

.back-to-top-link {
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.back-to-top-link:hover { color: var(--brand); }

.footer-watermark {
  position: absolute;
  bottom: -1.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 8rem);
  color: rgba(255,255,255,.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: .1em;
  user-select: none;
}

/* ------- HERO CAROUSEL ------- */
.hero-carousel-section { position: relative; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Brand-tinted film over image slides */
.hero-slide-bg:not(.hero-slide-default-bg)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 53, 90, 0.52) 0%,
    rgba(10, 171, 186, 0.35) 100%
  );
  z-index: 1;
}

.hero-slide-default-bg {
  background: linear-gradient(135deg, rgba(10, 35, 60, 0.72) 0%, rgba(10, 171, 186, 0.55) 100%);
}

.hero-slide-default-bg::after {
  content: '';
  position: absolute;
  inset: -30% -10% -10% 50%;
  background: radial-gradient(circle, rgba(10,171,186,.18) 0%, transparent 70%);
  pointer-events: none;
}

.carousel-item { min-height: 80vh; position: relative; }

.carousel-caption-custom {
  position: relative;
  z-index: 2;         /* sit above the film overlay */
  padding: 1.5rem 0 3rem;
}

/* White text on all slides */
.carousel-item .hero-heading,
.carousel-item .hero-sub {
  color: var(--white);
}

.carousel-item .hero-heading .highlight {
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 0 24px rgba(10, 171, 186, 0.6);
}

.hero-sub .highlight {
  color: rgba(255, 255, 255, 0.90);
}

/* "Learn More" outline button — white on all slides */
.carousel-item .btn-outline-brand {
  border-color: var(--white);
  color: var(--white);
}
.carousel-item .btn-outline-brand:hover,
.carousel-item .btn-outline-brand:focus {
  background-color: var(--white);
  color: var(--brand);
}

#heroCarousel .carousel-indicators button {
  background-color: var(--brand);
  opacity: .4;
  border-radius: 50%;
  width: 10px; height: 10px;
  border: none;
}
#heroCarousel .carousel-indicators button.active { opacity: 1; }

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  filter: invert(1) brightness(0) saturate(100%) invert(52%) sepia(80%) saturate(400%) hue-rotate(155deg);
}

/* ------- PAGE HERO ------- */
.page-hero-section {
  background: linear-gradient(135deg, #f0fbfc 0%, #e2f7f9 60%, var(--white) 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(10,171,186,.1);
}

.page-hero-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text-dark);
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.back-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand);
  transition: var(--transition);
}
.back-link:hover { color: var(--brand-dark); }

/* ------- CTA STRIP ------- */
.cta-strip-section {
  background: linear-gradient(135deg, #0f3460 0%, var(--brand) 100%);
}

.btn-white-brand {
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 700;
  border: none;
  transition: var(--transition);
}
.btn-white-brand:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

/* ------- PARTNER LOGOS ------- */
.partner-logo-img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .6;
  transition: var(--transition);
}
.partner-logo-img:hover { filter: none; opacity: 1; }

/* ------- IMAGES IN CARDS ------- */
.project-thumbnail,
.blog-thumbnail {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.blog-thumbnail { height: 160px; }

/* ------- SERVICE DETAIL ------- */
.service-icon-wrap-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--brand);
  flex-shrink: 0;
}

.sidebar-cta-card {
  background: var(--brand-light);
  border-radius: var(--card-radius);
  border: 1px solid rgba(10,171,186,.2);
}

/* ------- VALUE CARDS (About page) ------- */
.value-card {
  background: #fff;
  border-radius: var(--card-radius);
  border: 1px solid rgba(10,171,186,.15);
  transition: box-shadow .2s, transform .2s;
}
.value-card:hover {
  box-shadow: 0 8px 28px rgba(10,171,186,.15);
  transform: translateY(-3px);
}
.value-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.benefits-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .75rem;
}
.benefits-list li { font-size: .95rem; }

.prose-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

/* ------- CASE STUDY ------- */
.case-study-block { border-left: 3px solid var(--brand); padding-left: 1.25rem; }

.case-block-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

/* ------- BLOG DETAIL ------- */
.blog-featured-img { max-height: 420px; object-fit: cover; }

.blog-body-content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.blog-engage-bar {
  padding: 1.25rem;
  background: var(--brand-light);
  border-radius: var(--card-radius);
}

.btn-like {
  background: var(--white);
  border: 1.5px solid #E5E7EB;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}
.btn-like:hover, .btn-liked {
  border-color: #e55a5a;
  color: #e55a5a;
  background: #fff5f5;
}

.btn-share-icon {
  width: 38px; height: 38px;
  border: 1.5px solid #E5E7EB;
  background: var(--white);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  padding: 0;
}
.btn-share-icon:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ------- COMMENTS ------- */
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ------- SUBSCRIBE STRIP ------- */
.subscribe-strip {
  background: var(--brand-light);
  border: 1px solid rgba(10,171,186,.2);
}

/* ------- EYEBROW LIGHT (on dark bg) ------- */
.section-eyebrow-light {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2rem;
  margin-bottom: .75rem;
}

.highlight-light { color: rgba(255,255,255,.9); }

/* ------- SCROLL ANIMATION ------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------- RESPONSIVE TWEAKS ------- */
@media (max-width: 575.98px) {
  .hero-section { padding: 3.5rem 0 3rem; }
  .hero-heading { font-size: 1.9rem; }
  .stat-value   { font-size: 2rem; }
}
