/* ==========================================================================
   Shabin K. — Portfolio (static HTML + Bootstrap 5 build)
   Design tokens
   ========================================================================== */
:root {
  --color-ink: #1a1a1a;
  --color-dark: #141414;
  --color-dark-2: #0a0a0a;
  --color-red: #d81f26;
  --color-red-dark: #a4151b;
  --color-red-deep: #7a0f16;
  --color-red-mid: #b01722;
  --color-red-tint: #fdeaeb;
  --color-red-accent2: #f06a6f;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f5f5;
  --color-tag-bg: #f5f1f1;
  --color-border: #e8e4e4;
  --color-border-soft: #e2dcdc;
  --color-text-muted: #6b6b6b;
  --color-text-body: #4d4d4d;
  --font-body: "Poppins", Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 22px rgba(20, 20, 20, 0.07);
  --shadow-md: 0 10px 34px rgba(20, 20, 20, 0.13);
  --shadow-lg: 0 16px 44px rgba(20, 20, 20, 0.16);
}

/* ==========================================================================
   Base (Bootstrap reset stays; we override typography/colors on top of it)
   ========================================================================== */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-red); text-decoration: none; transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease; }
a:hover { color: var(--color-red-dark); }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; height: auto; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar { background: var(--color-dark-2); color: #d6d6d6; font-size: 13.5px; padding: 9px 0; }
.topbar a { color: #d6d6d6; }
.topbar__phone { color: #ffffff !important; font-weight: 600; }
@media (max-width: 767px) {
  .topbar { display: none; }
}

/* ==========================================================================
   Navbar (Bootstrap navbar, restyled)
   ========================================================================== */
.site-navbar { background: var(--color-dark) !important; padding: 16px 0; position: sticky; top: 0; z-index: 1030; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 42px; width: auto; }
.brand__name { font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; color: #ffffff; line-height: 1.2; }
.brand__title { font-size: 11.5px; color: #9a9a9a; letter-spacing: .02em; }

.site-navbar .navbar-nav { flex-wrap: wrap; row-gap: 6px; justify-content: flex-end; }
.site-navbar .nav-link { color: #e4e4e4; font-size: 14.5px; font-weight: 500; padding: 10px 14px; white-space: nowrap; }
.site-navbar .nav-link:hover { color: #ffffff; }
.site-navbar .nav-link.active { color: #ffffff; border-bottom: 2px solid var(--color-red); }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-red); color: #ffffff !important; padding: 12px 22px; border-radius: 999px;
  font-weight: 500; white-space: nowrap; box-shadow: 0 6px 18px rgba(216, 31, 38, .28); border: none;
}
.btn-cta:hover { background: var(--color-red-dark); }
.navbar-toggler { border: none; color: #fff; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .fa-bars { color: #fff; font-size: 20px; }

/* Buttons */
.btn-lg-pill { padding: 17px 34px; font-size: 15.5px; border-radius: 999px; box-shadow: 0 10px 28px rgba(216, 31, 38, .34); }
.btn-lg-pill:hover { background: #ffffff; color: var(--color-dark) !important; }
.btn-outline-hero {
  border: 1.5px solid rgba(255,255,255,.55); color: #ffffff !important; padding: 17px 34px; border-radius: 999px;
  font-weight: 400; font-size: 15.5px; background: transparent; display: inline-flex; align-items: center;
}
.btn-outline-hero:hover { background: rgba(255,255,255,.12); }
.btn-dark-solid { display: inline-flex; background: var(--color-dark); color: #fff !important; padding: 14px 26px; border-radius: 9px; font-weight: 700; font-size: 14.5px; }
.btn-dark-solid:hover { background: var(--color-red); }
.btn-white-solid { display: inline-flex; background: #ffffff; color: var(--color-red-dark) !important; padding: 16px 30px; border-radius: 9px; font-weight: 700; font-size: 15.5px; }
.btn-white-solid:hover { background: var(--color-dark); color: #fff !important; }
.btn-outline-white { display: inline-flex; border: 1.5px solid rgba(255,255,255,.55); color: #fff !important; padding: 16px 30px; border-radius: 9px; font-weight: 600; font-size: 15.5px; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.14); }
.link-arrow { font-size: 14.5px; font-weight: 700; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--color-dark);
  background-image:
    linear-gradient(105deg, rgba(20,20,20,.96) 0%, rgba(122,15,22,.88) 52%, rgba(176,23,34,.72) 100%),
    repeating-linear-gradient(135deg, #242424 0 14px, #1a1a1a 14px 28px);
  color: #ffffff; padding: clamp(48px, 8vw, 120px) 0;
}
.badge-pill { border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: 11px 22px; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 62px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; max-width: 20ch; }
.hero p.lede { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: #d8d2d2; max-width: 64ch; }

.page-hero {
  background: var(--color-dark);
  background-image:
    linear-gradient(105deg, rgba(20,20,20,.96) 0%, rgba(122,15,22,.9) 55%, rgba(176,23,34,.78) 100%),
    repeating-linear-gradient(135deg, #242424 0 14px, #1a1a1a 14px 28px);
  color: #ffffff; padding: clamp(40px, 6vw, 84px) 0;
}
.breadcrumb { font-size: 13px; color: #e0c9ca; }
.breadcrumb a { color: #e0c9ca; }
.breadcrumb .current { color: #ffffff; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; }
.page-hero p.lede { font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.7; color: #e3dada; max-width: 62ch; }

/* ==========================================================================
   Feature strip
   ========================================================================== */
.feature-strip { background: var(--color-bg-soft); padding: clamp(28px, 4vw, 44px) 0; }
.feature-card { background: #ffffff; border-radius: var(--radius-md); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm); height: 100%; }
.feature-card:hover { box-shadow: 0 10px 34px rgba(20,20,20,.13); }
.icon-tile { width: 44px; height: 44px; border-radius: 11px; background: var(--color-red-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon-tile i { font-size: 19px; color: var(--color-red); }
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

/* ==========================================================================
   Sections / headings
   ========================================================================== */
.section { padding: clamp(48px, 7vw, 100px) 0; }
.section--soft { background: var(--color-bg-soft); }
.eyebrow { color: var(--color-red); font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(27px, 3.6vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.section-lede { font-size: 16.5px; line-height: 1.7; color: var(--color-text-muted); max-width: 60ch; }

/* About / bio */
.portrait-frame {
  aspect-ratio: 4/5; border-radius: 18px; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, #eee8e8 0 12px, #f7f3f3 12px 24px);
  display: flex; align-items: flex-end; padding: 20px; box-shadow: 0 16px 44px rgba(20,20,20,.1);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px; }
.placeholder-tag { font-size: 12px; font-weight: 600; color: var(--color-text-muted); background: #ffffff; padding: 8px 13px; border-radius: 8px; }
.bio h2 { font-size: clamp(27px, 3.6vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 20px; max-width: 22ch; }
.bio p { font-size: 16.5px; line-height: 1.75; color: var(--color-text-body); margin-bottom: 18px; }
.tag-chip { background: var(--color-tag-bg); border-radius: 8px; padding: 9px 15px; font-size: 13.5px; font-weight: 600; color: #2e2e2e; display: inline-block; }
.tag-chip--ghost { background: #ffffff; border: 1px dashed #d0c8c8; color: var(--color-text-muted); }

/* Stats */
.stats { background: var(--color-dark); color: #ffffff; padding: clamp(40px, 6vw, 72px) 0; }
.stat__num { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; color: var(--color-red-accent2); line-height: 1; }
.stat__num--muted { color: #8d8d8d; }
.stat__label { font-size: 14px; color: #a8a8a8; margin-top: 10px; font-weight: 500; }

/* Services */
.service-card { background: #ffffff; border-radius: var(--radius-lg); padding: clamp(24px, 2.8vw, 34px); box-shadow: var(--shadow-sm); height: 100%; }
.service-card:hover { box-shadow: 0 14px 40px rgba(20,20,20,.14); }
.icon-tile--lg { width: 52px; height: 52px; border-radius: 13px; background: var(--color-red); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-tile--lg i { font-size: 22px; color: #ffffff; }
.service-card h3 { font-size: 19.5px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.015em; }
.service-card p { font-size: 15px; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 18px; }

/* Timeline */
.timeline-item { background: #ffffff; border-radius: var(--radius-md); padding: clamp(20px, 2.4vw, 28px); box-shadow: 0 3px 18px rgba(20,20,20,.06); }
.timeline-item:hover { box-shadow: 0 12px 34px rgba(20,20,20,.13); }
.timeline-item__period { display: inline-flex; background: var(--color-red-tint); color: var(--color-red); font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 7px; }
.timeline-item__role { font-size: clamp(16px, 1.8vw, 20px); font-weight: 700; letter-spacing: -.015em; }
.timeline-item__company { font-size: 14.5px; color: var(--color-text-muted); }
.timeline-item__link { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* Case studies */
.case-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: #ffffff; box-shadow: 0 4px 22px rgba(20,20,20,.08); color: inherit; height: 100%; }
.case-card:hover { box-shadow: var(--shadow-lg); color: inherit; }
.case-card__media { aspect-ratio: 16/10; background-image: repeating-linear-gradient(135deg, #eee8e8 0 12px, #f7f3f3 12px 24px); display: flex; align-items: flex-end; padding: 16px; }
.case-card__body { padding: 22px 24px 26px; }
.case-tag { display: inline-flex; background: var(--color-red-tint); color: var(--color-red); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 6px; margin-bottom: 12px; }
.case-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.015em; }
.case-card p { font-size: 14.5px; line-height: 1.65; color: var(--color-text-muted); }

/* CTA band */
.cta-band { background: var(--color-red); background-image: linear-gradient(100deg, var(--color-red-deep) 0%, var(--color-red-mid) 55%, var(--color-red) 100%); color: #ffffff; padding: clamp(40px, 6vw, 80px) 0; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 500; line-height: 1.22; letter-spacing: -.015em; max-width: 24ch; }
.cta-band p { font-size: 16.5px; line-height: 1.7; color: #f6dcdd; max-width: 56ch; }

/* Advantage */
.advantage-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 30px); height: 100%; }
.advantage-card:hover { border-color: var(--color-red); }
.advantage-card__num { font-size: 13px; font-weight: 800; color: var(--color-red); margin-bottom: 14px; }
.advantage-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.015em; }
.advantage-card p { font-size: 14.5px; line-height: 1.7; color: var(--color-text-muted); }

/* Blog */
.blog-card { display: block; background: #ffffff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; height: 100%; }
.blog-card:hover { box-shadow: 0 14px 40px rgba(20,20,20,.14); color: inherit; }
.blog-card__media { aspect-ratio: 16/9; background-image: repeating-linear-gradient(135deg, #eee8e8 0 12px, #f7f3f3 12px 24px); display: flex; align-items: flex-end; padding: 14px; }
.blog-card__body { padding: 20px 22px 24px; }
.blog-card__meta { font-size: 12px; color: var(--color-text-muted); font-weight: 600; margin-bottom: 10px; }
.blog-card h3 { font-size: 17.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; }
.section-note { font-size: 13px; color: var(--color-text-muted); margin-top: 18px; }

/* Contact */
.contact-row__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--color-red-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row__icon i { font-size: 17px; color: var(--color-red); }
.contact-row__label { font-size: 12px; color: var(--color-text-muted); font-weight: 600; }
.contact-row__value { font-size: 15px; font-weight: 600; }
.contact-form-wrap { background: var(--color-bg-soft); border-radius: 18px; padding: clamp(24px, 3vw, 36px); }
.contact-form label { font-size: 12.5px; font-weight: 700; color: #2e2e2e; margin-bottom: 7px; display: block; }
.contact-form .form-control { border: 1px solid var(--color-border-soft); border-radius: 9px; font-size: 14.5px; padding: 12px 14px; }
.contact-form .form-control:focus { border-color: var(--color-red); box-shadow: none; }
.contact-form button[type="submit"] { width: 100%; background: var(--color-red); color: #ffffff; padding: 15px; border-radius: 9px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 22px rgba(216,31,38,.3); border: none; }
.contact-form button[type="submit"]:hover { background: var(--color-red-dark); }
.form-notice { border-radius: 9px; padding: 14px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.form-notice--success { background: #e7f6ea; color: #1e7a34; }
.form-notice--error { background: #fdeaeb; color: var(--color-red-dark); }

/* Footer */
.site-footer { background: var(--color-dark); color: #a8a8a8; padding: clamp(40px, 6vw, 70px) 0 0; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand__name { color: #ffffff; font-weight: 800; font-size: 16.5px; }
.footer-col p { font-size: 14.5px; line-height: 1.7; max-width: 34ch; }
.social-row a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #ffffff !important; font-size: 15px; }
.social-row a:hover { background: var(--color-red); }
.social-row--light a { background: var(--color-red-tint); color: var(--color-red) !important; }
.social-row--light a:hover { background: var(--color-red); color: #ffffff !important; }
.footer-col__title { color: #ffffff; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.footer-links a { color: #a8a8a8; display: block; margin-bottom: 10px; font-size: 14.5px; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: 13.5px; margin-top: clamp(30px,4vw,48px); }

/* Blog single / entry */
.entry-content { font-size: 16.5px; line-height: 1.8; color: var(--color-text-body); max-width: 860px; margin: 0 auto; }
.entry-content img { border-radius: var(--radius-md); margin: 20px 0; }
.entry-content h2, .entry-content h3 { color: var(--color-ink); margin: 32px 0 14px; }

/* Case study detail page */
.case-meta-bar {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center;
  background: var(--color-bg-soft); border-radius: 14px; padding: 20px 26px; margin-bottom: clamp(32px,4vw,48px);
}
.case-meta-item__label { font-size: 12px; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.case-meta-item__value { font-size: 15px; font-weight: 700; color: var(--color-ink); }
.case-body { max-width: 800px; margin: 0 auto; }
.case-body h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 16px; }
.case-body h2:first-child { margin-top: 0; }
.case-body p { font-size: 16.5px; line-height: 1.8; color: var(--color-text-body); margin-bottom: 16px; }
.case-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.case-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--color-text-body); }
.case-list li i { color: var(--color-red); margin-top: 4px; flex-shrink: 0; }
.case-list--challenges li i { color: #c99a00; }
.case-hero-media { aspect-ratio: 21/9; border-radius: var(--radius-lg); background-image: repeating-linear-gradient(135deg, #eee8e8 0 14px, #f7f3f3 14px 28px); display: flex; align-items: center; justify-content: center; margin-bottom: clamp(32px,4vw,48px); }
.case-hero-media span { font-size: 15px; font-weight: 700; color: var(--color-text-muted); background: #ffffff; padding: 10px 18px; border-radius: 8px; }
.case-nav-links { max-width: 800px; margin: clamp(40px,5vw,56px) auto 0; padding-top: 24px; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Service detail page */
.service-detail-item { display: flex; align-items: flex-start; gap: 16px; height: 100%; }
.service-detail-item__icon { width: 34px; height: 34px; border-radius: 9px; background: var(--color-red-tint); color: var(--color-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.service-detail-item__title { font-size: 16px; font-weight: 700; color: var(--color-ink); margin-bottom: 4px; letter-spacing: -.01em; }
.service-detail-item__desc { font-size: 14.5px; line-height: 1.65; color: var(--color-text-muted); margin: 0; }
.service-cta { border-top: 1px solid var(--color-border); }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 1050;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37, 211, 102, .6); color: #ffffff !important; }
@media (max-width: 480px) {
  .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 16px; right: 16px; }
}
