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

:root {
  --orange: #F37628;
  --red: #EC1C24;
  --blue: #262261;
  --white: #fff;
  --off-white: #FCFCFE;
  --warm-grey: #F7F7FA;
  --border: rgba(38,34,97,.10);
  --text: #191932;
  --muted: #5F627D;
  --light-muted: #8C8FB0;
  --sage-pale: #FFF3EB;
  --services-bg: linear-gradient(135deg,rgba(243,118,40,.05),rgba(236,28,36,.03));
  --testi-bg: #FFF8F4;
  --contact-bg: linear-gradient(135deg,#F8FAFF 0%,#FFF5F0 100%);
}

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--off-white); color: var(--text); }

/* ── PROGRESS BAR ── */
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg,#262261,#ec1c24,#f37628); width: 0%; z-index: 200; transition: width .1s linear; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 6%; height: 68px; background: rgba(252,252,254,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { font-size: 18px; font-weight: 700; color: var(--blue); text-decoration: none; letter-spacing: -.01em; }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s; position: relative; padding-bottom: 3px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg,#ec1c24,#f37628); border-radius: 2px; transition: width .25s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { width: 100%; }
.btn-nav { background: linear-gradient(135deg,#262261,#ec1c24,#f37628); color: var(--white); border: none; border-radius: 100px; padding: 10px 24px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: 'Outfit',sans-serif; transition: opacity .2s, transform .15s; }
.btn-nav:hover { opacity: .88; transform: translateY(-1px); }

/* ── HERO ── */
#hero { background: linear-gradient(180deg,#FFF9F5 0%,#FFF3EE 55%,#F8F8FF 100%); padding: 70px 6% 60px; min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 20%,rgba(243,118,40,.10) 0%,transparent 50%),radial-gradient(circle at 10% 80%,rgba(236,28,36,.07) 0%,transparent 40%); pointer-events: none; }
.hero-dots { position: absolute; bottom: 40px; left: 6%; width: 120px; height: 90px; background-image: radial-gradient(circle,#FF9B63 1.5px,transparent 1.5px); background-size: 14px 14px; opacity: .4; }
.hero-content { position: relative; z-index: 1; }
.availability-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 6px 16px 6px 10px; font-size: 12.5px; font-weight: 600; color: var(--red); margin-bottom: 28px; box-shadow: 0 2px 8px rgba(236,28,36,.1); animation: badgePulse 3s ease-in-out infinite; }
@keyframes badgePulse { 0%,100%{box-shadow:0 2px 8px rgba(236,28,36,.1);} 50%{box-shadow:0 4px 16px rgba(236,28,36,.2);} }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,.2); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 0 3px rgba(76,175,80,.2);} 50%{box-shadow:0 0 0 6px rgba(76,175,80,.08);} }
.hero-greeting { font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.hero-headline { font-size: 52px; font-weight: 700; line-height: 1.13; margin-bottom: 22px; background: linear-gradient(90deg,#262261,#ec1c24,#f37628); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-headline em { font-style: italic; }
.hero-sub { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 460px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 14px; align-items: center; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg,#262261,#ec1c24,#f37628); color: var(--white); padding: 14px 32px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s, transform .2s, box-shadow .2s; }
.btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(236,28,36,.3); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 14px; font-weight: 600; text-decoration: none; transition: gap .2s; }
.btn-ghost:hover { gap: 14px; }

/* Hero Stats - animated counters */
.hero-stats { display: flex; gap: 0; margin-top: 52px; border-top: 1px solid var(--border); padding-top: 32px; }
.stat-item { flex: 1; padding-right: 32px; }
.stat-item + .stat-item { padding-left: 32px; padding-right: 32px; border-left: 1px solid var(--border); }
.stat-num { font-size: 38px; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-num span { color: var(--orange); }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* Hero visual */
.hero-visual { position: relative; z-index: 1; }
.hero-img-wrap { position: relative; }
.hero-img-bg { width: 100%; height: 520px; background: linear-gradient(135deg,#262261 0%,#ec1c24 60%,#f37628 100%); border-radius: 220px 220px 160px 160px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.hero-img-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; }
.hero-placeholder-fig { width: 85%; height: 90%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.5); }
.hero-placeholder-fig svg { width: 80px; height: 80px; }
.hero-placeholder-fig span { font-size: 12px; margin-top: 10px; }

/* Floating cards with bob animation */
.hero-card-float { position: absolute; bottom: 30px; left: -28px; background: var(--white); border-radius: 12px; padding: 14px 18px; box-shadow: 0 8px 32px rgba(38,34,97,.15); display: flex; align-items: center; gap: 12px; min-width: 180px; animation: bobFloat 4s ease-in-out infinite; }
.hero-card-float2 { position: absolute; top: 30px; right: -22px; background: linear-gradient(135deg,#262261,#ec1c24); border-radius: 12px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(38,34,97,.25); min-width: 140px; animation: bobFloat 4s ease-in-out infinite .8s; }
@keyframes bobFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.float-icon { width: 40px; height: 40px; background: var(--sage-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.float-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.float-value { font-size: 14px; font-weight: 700; color: var(--blue); }
.float2-label { font-size: 10.5px; color: rgba(255,255,255,.6); font-weight: 500; margin-bottom: 2px; }
.float2-value { font-size: 22px; font-weight: 800; color: var(--white); }
.float2-sub { font-size: 11px; color: #FF9B63; font-weight: 500; }

/* ── TECH STACK AUTO CRAWL ── */
#stack { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 6%; display: flex; align-items: center; gap: 20px; }
.stack-label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--light-muted); flex-shrink: 0; min-width: 80px; }
.stack-slider-wrap { display: flex; align-items: center; gap: 8px; flex: 1; overflow: hidden; }
.stack-pills-viewport { overflow: hidden; flex: 1; }
.stack-pills { display: flex; gap: 10px; width: max-content; animation: stackScroll 30s linear infinite; }
.stack-pills:hover { animation-play-state: paused; }
@keyframes stackScroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }
.stack-pill { display: flex; align-items: center; gap: 7px; background: var(--warm-grey); border-radius: 100px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); white-space: nowrap; cursor: default; transition: border-color .2s, color .2s, background .2s; }
.stack-pill:hover { border-color: var(--orange); color: var(--red); background: var(--sage-pale); }
.stack-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ── SECTION COMMONS ── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 700; line-height: 1.2; color: var(--blue); margin-bottom: 16px; background: linear-gradient(90deg,#262261,#ec1c24,#f37628); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub { font-size: 15.5px; color: var(--muted); line-height: 1.7; }

/* ── FADE UP ANIMATION ──
   Placed before the card rules below on purpose: .fade-up.visible and
   .card:hover have equal CSS specificity, and the one later in the file
   wins ties. Keeping this block first ensures the hover pop always wins. */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── CARD HOVER: dim sibling cards while one is hovered ── */
.services-grid:hover .svc-card:not(:hover),
.inner-services-grid:hover .svc-card:not(:hover),
.projects-grid:hover .proj-card:not(:hover),
.testi-grid:hover .testi-card:not(:hover),
.inner-testi-grid:hover .testi-card:not(:hover),
.blog-grid:hover .blog-card:not(:hover),
.inner-blog-grid:hover .blog-card:not(:hover) {
  opacity: .6;
  filter: saturate(.7);
}

/* ── SERVICES ── */
#services { background: var(--services-bg); padding: 88px 6%; }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.svc-card { background-color: var(--white); border-radius: 16px; padding: 32px 26px; border: 1.5px solid var(--border); transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, opacity .3s ease, filter .3s ease, border-color .25s ease; position: relative; overflow: hidden; cursor: pointer; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(38,34,97,.12); border-color: transparent; background-image: linear-gradient(var(--white),var(--white)), linear-gradient(120deg,#262261,#ec1c24,#f37628); background-origin: border-box; background-clip: padding-box, border-box; }
.svc-card:active { transform: scale(.97); }
.svc-icon { width: 48px; height: 48px; background: var(--sage-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--red); margin-bottom: 20px; transition: transform .2s; }
.svc-card:hover .svc-icon { transform: scale(1.1) rotate(-4deg); }
.svc-icon svg { width: 22px; height: 22px; }
.svc-name { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.svc-desc { font-size: 13.5px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.services-view-more-wrap { text-align: center; margin-top: 36px; }

/* ── ABOUT ── */
#about { background: #fff; padding: 96px 6%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-frame { width: 100%; aspect-ratio: 1 / 1; background: var(--sage-pale); border-radius: 20px 20px 80px 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #FF9B63; position: relative; }
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }
.about-img-frame svg { width: 80px; height: 80px; opacity: .4; }
.about-tag { position: absolute; bottom: -16px; right: 24px; background: linear-gradient(135deg,#262261,#ec1c24); color: var(--white); border-radius: 12px; padding: 16px 22px; box-shadow: 0 8px 24px rgba(38,34,97,.25); }
.about-tag-num { font-size: 30px; font-weight: 700; color: #FF9B63; }
.about-tag-label { font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 2px; }
.about-right h2 { font-size: 34px; font-weight: 700; line-height: 1.25; color: var(--blue); margin-bottom: 20px; }
.about-right p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 20px; }

/* Skill Tabs */
.skills-tabs { margin-top: 32px; }
.tab-btns { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: transparent; color: var(--muted); font-family: 'Outfit',sans-serif; transition: all .2s; }
.tab-btn.active, .tab-btn:hover { background: var(--sage-pale); border-color: var(--orange); color: var(--red); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skill-row { display: flex; flex-direction: column; gap: 5px; }
.skill-name { font-size: 12.5px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; }
.skill-bar-wrap { height: 5px; background: var(--border); border-radius: 10px; overflow: hidden; }
.skill-bar { height: 100%; background: linear-gradient(90deg,#262261,#ec1c24,#f37628); border-radius: 10px; width: 0%; transition: width 1.2s cubic-bezier(.22,1,.36,1); }
.skill-bar.animated { /* width set by JS */ }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--red); color: var(--red); padding: 12px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s; margin-top: 28px; }
.btn-outline:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }

/* ── EXPERIENCE ── */
#experience { background: var(--services-bg); padding: 88px 6%; scroll-margin-top: 68px; }
.exp-outer { position: relative; min-height: 200px; }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.exp-card { background-color: #fff; border: 1.5px solid rgba(38,34,97,.08); border-radius: 16px; padding: 28px; transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, border-color .25s ease; cursor: pointer; position: relative; overflow: hidden; }
.exp-card::after { content: 'Click to expand'; position: absolute; bottom: 14px; right: 16px; font-size: 10.5px; font-weight: 700; color: var(--orange); opacity: 0; transition: opacity .2s; letter-spacing: .05em; text-transform: uppercase; }
.exp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(38,34,97,.1); border-color: transparent; background-image: linear-gradient(#fff,#fff), linear-gradient(120deg,#262261,#ec1c24,#f37628); background-origin: border-box; background-clip: padding-box, border-box; }
.exp-card:hover::after { opacity: 1; }
.exp-card:active { transform: scale(.98); }
.exp-period { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); background: var(--sage-pale); border-radius: 100px; padding: 4px 12px; margin-bottom: 14px; }
.exp-role { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.exp-company { font-size: 13px; color: rgba(38,34,97,.68); margin-bottom: 14px; }
.exp-desc { font-size: 13.5px; line-height: 1.75; color: rgba(38,34,97,.68); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exp-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.exp-arrow { background: var(--white); border: 1.5px solid var(--border); border-radius: 50%; width: 44px; height: 44px; font-size: 24px; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.exp-arrow:hover:not(:disabled) { background: var(--blue); color: var(--white); border-color: var(--blue); transform: scale(1.1); }
.exp-arrow:disabled { opacity: .35; cursor: not-allowed; }

/* ── PROJECTS ── */
#projects { background: #fff; padding: 88px 6%; }
.proj-filter { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: transparent; color: var(--muted); font-family: 'Outfit',sans-serif; transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.proj-card { border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; background-color: var(--white); transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, opacity .3s ease, filter .3s ease, border-color .25s ease; cursor: pointer; position: relative; }
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(38,34,97,.12); border-color: transparent; background-image: linear-gradient(var(--white),var(--white)), linear-gradient(120deg,#262261,#ec1c24,#f37628); background-origin: border-box; background-clip: padding-box, border-box; }
.proj-card:active { transform: scale(.98); }
.proj-thumb { height: 180px; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; transition: transform .4s ease; }
.proj-card:hover .proj-thumb img { transform: scale(1.05); }
.proj-thumb-bg { position: absolute; inset: 0; background: linear-gradient(135deg,#FFF3EB 0%,#F7F2EC 55%,#EEF2E9 100%); transition: transform .4s ease; }
.proj-card:hover .proj-thumb-bg { transform: scale(1.05); }
.proj-thumb-icon { position: relative; z-index: 1; }
.proj-thumb-icon svg { width: 44px; height: 44px; stroke: var(--orange); }
.proj-body { padding: 22px 22px 26px; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.proj-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); background: var(--sage-pale); border-radius: 100px; padding: 3px 10px; }
.proj-title { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.proj-desc { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-link { font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.proj-link:hover { gap: 10px; }
.proj-view-more-wrap { text-align: center; margin-top: 36px; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--testi-bg); padding: 88px 6%; }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testi-card { background-color: var(--white); border-radius: 16px; padding: 32px 28px; border: 1.5px solid var(--border); transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, opacity .3s ease, filter .3s ease, border-color .25s ease; cursor: pointer; position: relative; overflow: hidden; }
.testi-card::before { content: '"'; position: absolute; top: -10px; right: 20px; font-size: 120px; color: var(--sage-pale); font-family: Georgia,serif; line-height: 1; pointer-events: none; transition: color .2s; }
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(38,34,97,.1); border-color: transparent; background-image: linear-gradient(var(--white),var(--white)), linear-gradient(120deg,#262261,#ec1c24,#f37628); background-origin: border-box; background-clip: padding-box, border-box; }
.testi-card:hover::before { color: #FFE8D6; }
.testi-card:active { transform: scale(.98); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 18px; position: relative; z-index: 1; }
.testi-stars span { color: var(--orange); font-size: 15px; }
.testi-stars .star-empty { color: #ddd; }
.testi-text { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; font-style: italic; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; position: relative; z-index: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#262261,#ec1c24,#f37628); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--white); flex-shrink: 0; }
.testi-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--blue); }
.testi-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.testi-more-wrap { text-align: center; margin-top: 36px; }
.btn-view-more { background: transparent; border: 1.5px solid var(--border); border-radius: 100px; padding: 10px 28px; font-size: 14px; font-weight: 600; color: var(--blue); cursor: pointer; font-family: 'Outfit',sans-serif; transition: all .2s; }
.btn-view-more:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.testi-extra-grid { margin-top: 24px; }

/* ── BLOG ── */
#blog { background: var(--white); padding: 88px 6%; border-top: 1px solid var(--border); }
.blog-carousel-wrap { overflow: hidden; position: relative; margin-bottom: 8px; }
.blog-carousel-wrap::before, .blog-carousel-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.blog-carousel-wrap::before { left: 0; background: linear-gradient(90deg,var(--white),transparent); }
.blog-carousel-wrap::after { right: 0; background: linear-gradient(270deg,var(--white),transparent); }
.blog-grid { display: flex; gap: 22px; width: max-content; animation: blogScroll 36s linear infinite; }
.blog-grid:hover { animation-play-state: paused; }
@keyframes blogScroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }
.blog-card { border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; background-color: var(--off-white); transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, opacity .3s ease, filter .3s ease, border-color .25s ease; cursor: pointer; width: 340px; flex-shrink: 0; position: relative; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(38,34,97,.1); border-color: transparent; background-image: linear-gradient(var(--off-white),var(--off-white)), linear-gradient(120deg,#262261,#ec1c24,#f37628); background-origin: border-box; background-clip: padding-box, border-box; }
.blog-card:active { transform: scale(.98); }
.blog-thumb { height: 150px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(135deg,#FFF3EB 0%,#F7F2EC 55%,#EEF2E9 100%); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; transition: transform .4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-thumb-1, .blog-thumb-2, .blog-thumb-3 { background: linear-gradient(135deg,#FFF3EB 0%,#F7F2EC 55%,#EEF2E9 100%); }
.blog-thumb svg { color: var(--orange); width: 40px; height: 40px; position: relative; z-index: 1; opacity: .8; }
.blog-body { padding: 20px 20px 24px; }
.blog-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.blog-title { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 8px; line-height: 1.4; }
.blog-excerpt { font-size: 13px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.blog-date { font-size: 11.5px; color: var(--light-muted); }
.blog-view-more-wrap { text-align: center; margin-top: 36px; }

/* ── CONTACT ── */
#contact { background: var(--contact-bg); padding: 88px 6%; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.c-item { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; transition: transform .2s; }
.c-item:hover { transform: translateX(4px); }
.c-icon-box { width: 44px; height: 44px; background: rgba(38,34,97,.06); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; transition: background .2s, transform .2s; }
.c-item:hover .c-icon-box { background: var(--sage-pale); transform: scale(1.1); }
.c-icon-box svg { width: 18px; height: 18px; }
.c-icon-wa { background: rgba(37,211,102,.12) !important; color: #25D366 !important; }
.c-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(38,34,97,.55); margin-bottom: 2px; }
.c-value { font-size: 14.5px; font-weight: 600; color: var(--blue); }
.c-value a { color: var(--blue); text-decoration: none; transition: color .2s; }
.c-value a:hover { color: var(--red); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--white); border: 1.5px solid rgba(38,34,97,.10); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--blue); font-family: 'Outfit',sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8b8da8; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,118,40,.12); }
.contact-form textarea { height: 130px; resize: none; }
.btn-gold { background: linear-gradient(135deg,#262261,#ec1c24,#f37628); color: var(--white); border: none; border-radius: 100px; padding: 14px 36px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Outfit',sans-serif; transition: opacity .2s, transform .2s, box-shadow .2s; align-self: flex-start; }
.btn-gold:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(236,28,36,.3); }
#formMsg { font-size: 14px; font-weight: 600; border-radius: 8px; transition: all .3s; }
#formMsg.success { background: #e8f5e9; color: #2e7d32; padding: 12px 16px; }
#formMsg.error { background: #fdecea; color: #c62828; padding: 12px 16px; }

/* ── FOOTER ── */
footer { background: var(--blue); padding: 36px 6%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-size: 17px; font-weight: 700; color: var(--white); text-decoration: none; }
.footer-logo span { color: #FF9B63; }
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #FF9B63; }
footer span { font-size: 12.5px; color: rgba(255,255,255,.35); }

/* ── VIEW MORE BUTTON ── */
.btn-view-more-main { background: transparent; border: 1.5px solid var(--blue); border-radius: 100px; padding: 13px 32px; font-size: 14px; font-weight: 700; color: var(--blue); cursor: pointer; font-family: 'Outfit',sans-serif; transition: all .25s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-view-more-main:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(38,34,97,.2); }

/* ── PAGE TRANSITION ── */
.page-transition { position: fixed; inset: 0; background: linear-gradient(135deg,#262261,#ec1c24,#f37628); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.page-transition.active { opacity: 1; pointer-events: all; }
.page-transition-spinner { width: 44px; height: 44px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg);} }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(25,25,50,.65); backdrop-filter: blur(6px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .28s ease; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-box { background: #fff; border-radius: 20px; max-width: 580px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 40px; position: relative; transform: translateY(24px) scale(.96); transition: transform .28s cubic-bezier(.22,1,.36,1); box-shadow: 0 32px 80px rgba(38,34,97,.28); }
.modal-overlay.show .modal-box { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--warm-grey); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; transition: background .2s, color .2s, transform .2s; }
.modal-close:hover { background: var(--sage-pale); color: var(--red); transform: rotate(90deg); }
.modal-icon-lg { width: 64px; height: 64px; background: var(--sage-pale); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--red); margin-bottom: 20px; }
.modal-icon-lg svg { width: 30px; height: 30px; }
.modal-img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 20px; }
.modal-img-placeholder { width: 100%; height: 180px; border-radius: 14px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.modal-title { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 14px; line-height: 1.3; }
.modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.modal-desc { font-size: 15px; line-height: 1.85; color: var(--muted); }
.modal-meta { display: flex; gap: 20px; margin: 16px 0; flex-wrap: wrap; }
.modal-meta-item strong { color: var(--blue); display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.modal-meta-item span { font-size: 14px; color: var(--muted); font-weight: 500; }
.modal-cta { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,#262261,#ec1c24,#f37628); color: #fff; padding: 12px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; margin-top: 24px; transition: opacity .2s, transform .2s; }
.modal-cta:hover { opacity: .88; transform: translateY(-2px); }
.modal-stars { font-size: 20px; margin-bottom: 16px; letter-spacing: 2px; }
.modal-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── INNER PAGES ── */
.inner-page { padding: 60px 6% 88px; min-height: 80vh; }
.inner-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.inner-blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 36px; transition: gap .2s; }
.back-link:hover { gap: 12px; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ── RESPONSIVE ── */
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-dots { display: none; }
  .hero-visual { width: min(100%, 340px); margin: 16px auto 0; padding-bottom: 24px; }
  .hero-img-bg { height: auto; aspect-ratio: 4 / 5; border-radius: 170px 170px 32px 32px; }
  .hero-card-float  { left: 8px; bottom: -8px; min-width: 0; padding: 10px 14px; gap: 10px; }
  .hero-card-float2 { right: -6px; top: -6px; min-width: 0; padding: 10px 14px; }
  .float-icon { width: 34px; height: 34px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  #about { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { max-width: 420px; width: 100%; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .inner-services-grid, .inner-blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 20px 6% 24px;
    box-shadow: 0 12px 24px rgba(38,34,97,.12); gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hero-headline { font-size: 38px; }
  #hero { padding: 48px 6%; gap: 40px; }
  #services, #experience, #projects, #testimonials, #blog, #contact, #about { padding: 56px 6%; }
  .section-header { margin-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid, .testi-grid, .inner-services-grid, .inner-blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  #stack { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal-box { padding: 24px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 30px; }
  .section-title { font-size: 26px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-item, .stat-item + .stat-item { padding: 0; border: none; }
  .tab-panel.active { grid-template-columns: 1fr; }
}

/* ── BLOG PAGE CARD FIXES ── */
.inner-blog-grid .blog-card { width: auto; flex-shrink: unset; }
.inner-blog-grid .blog-thumb { height: 180px; }
.inner-blog-grid .blog-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }

/* Blog skeleton same as service/project — warm light orange */
.blog-thumb-skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,#FFF3EB 0%,#F7F2EC 55%,#EEF2E9 100%);
  display: flex; align-items: center; justify-content: center;
}
.blog-thumb-skeleton svg { width: 44px; height: 44px; stroke: var(--orange); opacity: .8; }

/* Service card description - clamp on card, full in modal */
.svc-desc {
  font-size: 13.5px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Testimonials page grid */
.inner-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media(max-width:1024px){ .inner-testi-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:768px){ .inner-testi-grid { grid-template-columns:1fr; } }
.hero-stats { flex-direction: row; gap: 0; margin-top: 36px; }
.stat-item { padding: 0 8px !important; }
.stat-item + .stat-item { border-left: 1px solid var(--border) !important; }
.stat-num { font-size: 28px; }
.stat-label { font-size: 11.5px; }