/* ═══════════════════════════════════════════════════════════
   CHAIN REACTION CONSULTING
   Indian Edition — Black & White · Rangoli-Inspired Design
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&family=Rajdhani:wght@300;400;500;600;700&family=Jost:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --ink:   #0C0C0C;
  --white: #FAFAF7;
  --off:   #F3F0EA;
  --rule:  rgba(12,12,12,.1);
  --dim:   rgba(12,12,12,.45);
  --faint: rgba(12,12,12,.05);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --ui:    'Rajdhani', sans-serif;
  --body:  'Jost', sans-serif;
  --snap:  cubic-bezier(.16,1,.3,1);
  --ease:  cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-weight: 300; color: var(--ink); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── PRELOADER ─────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; background: var(--white); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity .8s var(--ease), visibility .8s;
}
#preloader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-svg { width: 76px; height: 76px; }
.pl-c1 { stroke-dasharray: 276.5; stroke-dashoffset: 276.5; animation: dS 1.1s var(--snap) .2s forwards; }
.pl-c2 { stroke-dasharray: 207.3; stroke-dashoffset: 207.3; animation: dS  .95s var(--snap) .4s forwards; }
.pl-c3 { stroke-dasharray: 125.7; stroke-dashoffset: 125.7; animation: dS  .8s var(--snap) .58s forwards; }
.pl-dm { stroke-dasharray: 68;    stroke-dashoffset: 68;    animation: dS  .6s var(--snap) .76s forwards; }
.pl-dot { opacity: 0; animation: oIn .4s ease .94s forwards; }
@keyframes dS  { to { stroke-dashoffset: 0; } }
@keyframes oIn { to { opacity: 1; } }
.pl-txt { font-family: var(--ui); font-size: .56rem; letter-spacing: .65em; text-transform: uppercase; color: var(--dim); animation: oIn 1s ease .4s both; }

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 44px;
  background: rgba(250,250,247,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), border-color .4s;
}
#navbar.scrolled { padding: 13px 44px; border-bottom-color: var(--rule); }

.nav-logo { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1; }
.nav-logo small { display: block; font-family: var(--ui); font-weight: 400; font-size: .5rem; letter-spacing: .38em; text-transform: uppercase; color: var(--dim); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-family: var(--ui); font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); position: relative; padding-bottom: 3px; transition: color .3s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--ink); transition: width .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-apply { font-family: var(--ui); font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; background: var(--ink); color: var(--white); padding: 9px 22px; transition: background .25s; }
.nav-apply:hover { background: rgba(12,12,12,.78); }

.nav-tog { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-tog span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-tog.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-tog.open span:nth-child(2) { opacity: 0; }
.nav-tog.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mob-nav { position: fixed; inset: 0; background: var(--white); z-index: 790; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
#mob-nav.open { opacity: 1; visibility: visible; }
#mob-nav a { font-family: var(--serif); font-size: 2.4rem; font-weight: 300; color: var(--ink); transition: font-style .25s, opacity .25s; }
#mob-nav a:hover { font-style: italic; opacity: .5; }

/* ── PAGE HERO (inner pages) ───────────────────────────────── */
/* Indian arch / jali pattern in background */
.page-hero {
  background: var(--white); padding: 108px 44px 52px;
  border-bottom: 1px solid var(--rule); position: relative; overflow: hidden;
}
/* Indian jaali-inspired repeating dot grid */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(12,12,12,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Decorative arch bottom-right */
.page-hero::after {
  content: '';
  position: absolute; right: 60px; bottom: -60px;
  width: 240px; height: 240px;
  border: 1px solid rgba(12,12,12,.07); border-radius: 50%;
  pointer-events: none;
}
.ph-inner { position: relative; z-index: 1; max-width: 820px; }
.ph-eye { font-family: var(--ui); font-size: .58rem; letter-spacing: .5em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ph-eye::before { content: ''; width: 28px; height: 1px; background: var(--dim); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(44px, 7vw, 100px); font-weight: 300; color: var(--ink); line-height: .92; letter-spacing: -.025em; }
.page-hero h1 em { font-style: italic; color: var(--dim); }

/* ── LAYOUT HELPERS ────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 44px; }
@media(max-width:1100px){ .wrap { padding: 0 32px; } }
@media(max-width:768px)  { .wrap { padding: 0 20px; } }

.eyebrow { font-family: var(--ui); font-size: .58rem; letter-spacing: .46em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--dim); }
.ey-i { color: rgba(250,250,247,.35); }
.ey-i::before { background: rgba(250,250,247,.25); }

.sec-title { font-family: var(--serif); font-size: clamp(30px, 4.5vw, 64px); font-weight: 300; line-height: .95; letter-spacing: -.022em; color: var(--ink); }
.sec-title em { font-style: italic; color: var(--dim); }
.st-inv { color: var(--white); }
.st-inv em { color: rgba(250,250,247,.45); }

/* Indian-inspired thin divider with lotus diamond */
.lotus-div { display: flex; align-items: center; gap: 10px; margin: 28px 0; }
.lotus-div::before, .lotus-div::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.lotus-gem { width: 8px; height: 8px; border: 1px solid rgba(12,12,12,.28); transform: rotate(45deg); flex-shrink: 0; }
.lotus-gem-inv { border-color: rgba(250,250,247,.3); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ui); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; padding: 12px 32px; position: relative; overflow: hidden; transition: color .38s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; transform: translateX(-101%); transition: transform .42s var(--ease); }
.btn:hover::before { transform: translateX(0); }
.btn > span { position: relative; z-index: 1; }
.btn > i { font-style: normal; transition: transform .3s var(--ease); position: relative; z-index: 1; }
.btn:hover > i { transform: translateX(5px); }

.btn-solid  { background: var(--ink); color: var(--white); border: 1.5px solid var(--ink); }
.btn-solid::before { background: rgba(12,12,12,.75); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid rgba(12,12,12,.28); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: var(--white); }
.btn-inv { background: transparent; color: var(--white); border: 1.5px solid rgba(250,250,247,.3); }
.btn-inv::before { background: var(--white); }
.btn-inv:hover { color: var(--ink); }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.rv    { opacity:0; transform:translateY(34px); transition:opacity .9s var(--snap), transform .9s var(--snap); }
.rv-l  { opacity:0; transform:translateX(-34px); transition:opacity .9s var(--snap), transform .9s var(--snap); }
.rv-r  { opacity:0; transform:translateX(34px);  transition:opacity .9s var(--snap), transform .9s var(--snap); }
.rv.on,.rv-l.on,.rv-r.on { opacity:1; transform:none; }
.d1{transition-delay:.1s}.d2{transition-delay:.2s}.d3{transition-delay:.3s}
.d4{transition-delay:.4s}.d5{transition-delay:.5s}.d6{transition-delay:.6s}

/* ── MARQUEE ───────────────────────────────────────────────── */
.mq { overflow:hidden; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); background:var(--white); }
.mq-track { display:flex; animation:mq 32s linear infinite; width:max-content; }
.mq-track:hover { animation-play-state:paused; }
.mq-item { font-family:var(--ui); font-size:.64rem; letter-spacing:.4em; text-transform:uppercase; color:black; padding:12px 36px; white-space:nowrap; border-right:1px solid var(--rule); }
@keyframes mq { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── FOOTER ────────────────────────────────────────────────── */
footer { background: var(--ink); padding: 64px 44px 36px; }
.ft-grid { display:grid; grid-template-columns:1.8fr 1fr 1fr 1.2fr; gap:48px; padding-bottom:44px; border-bottom:1px solid rgba(250,250,247,.08); max-width:1240px; margin:0 auto; }
.ft-brand { font-family:var(--serif); font-size:1.4rem; font-weight:600; color:var(--white); }
.ft-sub { display:block; font-family:var(--ui); font-size:.5rem; letter-spacing:.4em; text-transform:uppercase; color:rgba(250,250,247,.22); margin:5px 0 20px; }
.ft-desc { font-size:.82rem; line-height:1.85; color:rgba(250,250,247,.32); max-width:240px; }
.ft-col h5 { font-family:var(--ui); font-size:.56rem; letter-spacing:.3em; text-transform:uppercase; color:rgba(250,250,247,.2); margin-bottom:18px; }
.ft-col ul { display:flex; flex-direction:column; gap:10px; }
.ft-col a { font-size:.82rem; color:rgba(250,250,247,.38); transition:color .25s, padding-left .25s; }
.ft-col a:hover { color:var(--white); padding-left:6px; }
.ft-bot { display:flex; justify-content:space-between; align-items:center; padding-top:26px; max-width:1240px; margin:0 auto; font-family:var(--ui); font-size:.58rem; letter-spacing:.12em; color:rgba(250,250,247,.16); flex-wrap:wrap; gap:6px; }

/* ── FORMS ─────────────────────────────────────────────────── */
.field { margin-bottom:28px; }
.field label { display:block; font-family:var(--ui); font-size:.56rem; letter-spacing:.28em; text-transform:uppercase; color:var(--dim); margin-bottom:8px; }
.fi-i label { color:rgba(250,250,247,.35); }
.field input, .field select, .field textarea { width:100%; background:transparent; border:none; border-bottom:1px solid var(--rule); padding:9px 0; font-family:var(--body); font-size:.9rem; color:var(--ink); transition:border-color .3s; appearance:none; }
.fi-i input, .fi-i select, .fi-i textarea { border-bottom-color:rgba(250,250,247,.15); color:var(--white); }
.field input:focus,.field select:focus,.field textarea:focus { border-bottom-color:var(--ink); }
.fi-i input:focus,.fi-i select:focus,.fi-i textarea:focus { border-bottom-color:var(--white); }
.field input::placeholder,.field textarea::placeholder { color:rgba(12,12,12,.2); font-style:italic; }
.fi-i input::placeholder,.fi-i textarea::placeholder { color:rgba(250,250,247,.15); }
.field textarea { resize:none; min-height:88px; }
.field select option { background:var(--ink); color:var(--white); }
.fbar { display:block; height:1.5px; width:0; background:var(--ink); transition:width .4s var(--ease); }
.fi-i .fbar { background:var(--white); }
.field input:focus ~ .fbar, .field textarea:focus ~ .fbar { width:100%; }

/* ── SKILLS BAR ────────────────────────────────────────────── */
.skill { margin-bottom:22px; }
.skill-head { display:flex; justify-content:space-between; font-family:var(--ui); font-size:.64rem; letter-spacing:.18em; text-transform:uppercase; color:var(--dim); margin-bottom:8px; }
.skill-track { height:2px; background:var(--rule); position:relative; }
.skill-fill { height:2px; background:var(--ink); width:0; transition:width 1.4s var(--snap); }

/* ── CLIENTS STRIP ─────────────────────────────────────────── */
.clients-sec { background:var(--white); padding:52px 44px; border-top:1px solid var(--rule); }
.clients-label { font-family:var(--ui); font-size:.56rem; letter-spacing:.4em; text-transform:uppercase; color:var(--dim); text-align:center; margin-bottom:32px; }
.clients-logos { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:36px 52px; }
.clients-logos span { font-family:var(--ui); font-size:.72rem; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:rgba(12,12,12,.25); transition:color .3s; cursor:default; }
.clients-logos span:hover { color:var(--ink); }

/* ── RESPONSIVE NAVBAR ─────────────────────────────────────── */
@media(max-width:900px){
  #navbar,#navbar.scrolled { padding:16px 20px; }
  .nav-links,.nav-apply { display:none; }
  .nav-tog { display:flex; }
  footer { padding:48px 20px 28px; }
  .ft-grid { grid-template-columns:1fr; gap:32px; }
  .ft-bot { flex-direction:column; align-items:flex-start; }
  .page-hero { padding:96px 20px 44px; }
  .clients-sec { padding:40px 20px; }
}
@keyframes spin { to { transform: rotate(360deg); } }
