/* ==========================================================
   Satish Kumar Rajula — Portfolio
   Dark / crimson card layout
   ========================================================== */
/* Self-hosted fonts (latin subset, from Google Fonts; SIL Open Font License) */
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/rajdhani-500.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/rajdhani-600.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/rajdhani-700.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/rubik-var.woff2") format("woff2"); }

:root {
  --bg: #0a0a0c;
  --card: #141416;
  --card-2: #1a1a1d;
  --card-3: #212125;
  --line: #2a2a2f;
  --accent: #e0003f;          /* fill behind white text: 4.95:1 */
  --accent-text: #ff4d7a;     /* accent as text on dark cards: 5.45:1 */
  --accent-soft: rgba(255, 1, 79, .14);
  --head: #ffffff;
  --text: #a8a8b3;
  --text-2: #d0d0d8;
  --radius: 14px;
  --font-head: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Rubik", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--head); font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Hero band ---------- */
.hero-band {
  position: absolute; inset: 0 0 auto 0; height: 425px; overflow: hidden; z-index: 0;
  background: #120614;
}
.hero-bg { /* moved by JS for the parallax effect */
  position: absolute; inset: 0; z-index: 0; will-change: transform;
  /* photo at 80% width; its left edge fades into a matching blue so there is no seam */
  background:
    linear-gradient(90deg, #0134aa 20%, rgba(1, 52, 170, 0) 30%),
    url("../img/satish-banner.webp") right 36% / 80% auto no-repeat,
    linear-gradient(180deg, #002b90 0%, #0039b8 55%, #00217d 100%);
}
.hero-band::after { /* fade the photo into the page */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,12,0) 55%, rgba(10,10,12,.55) 100%);
}

/* ---------- Layout ---------- */
.page {
  position: relative; z-index: 1;
  max-width: 1500px; margin: 0 auto; padding: 106px 24px 0;
  display: grid; grid-template-columns: 330px minmax(0, 1fr) 160px; gap: 48px; align-items: start;
}

/* ---------- Profile card (left) ---------- */
.profile-card { grid-column: 1; grid-row: 1; }
.main-card { grid-column: 2; grid-row: 1; }
.side-nav { grid-column: 3; grid-row: 1; }
.profile-card {
  position: sticky; top: 30px;
  background: linear-gradient(180deg, #151517 0%, #151517 60%, #3a0a17 100%);
  border: 2px solid #222226; border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.avatar {
  aspect-ratio: 1 / 1.03; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(255,1,79,.6), transparent 55%),
    radial-gradient(circle at 25% 70%, rgba(40,110,255,.45), transparent 55%),
    #1b0509;
  display: grid; place-items: center;
}
.avatar span { font: 700 110px/1 var(--font-head); color: #fff; letter-spacing: -4px; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.profile-card .name { font-family: var(--font-head); font-weight: 700; color: var(--head); line-height: 1.2; font-size: 30px; margin: 30px 0 6px; }
.profile-card .role { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.contact-box { background: #0d0d0f; border-radius: 10px; padding: 16px 12px; margin: 20px 0 22px; font-size: 14px; line-height: 1.9; color: var(--text-2); word-break: break-word; }
.contact-box a { display: inline-block; padding: 6px 0; line-height: 1.3; }
.contact-box a:hover { color: var(--accent-text); }

/* compact name card: tablets and phones only */
.m-id { display: none; }
@media (max-width: 920px) {
  .m-id {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
    margin: -10px 0 34px; padding: 0 0 26px; border-bottom: 1px solid var(--line);
  }
  .m-id img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
  .m-id div { flex: 1 1 180px; min-width: 0; }
  .m-id .btn-sm { margin-left: auto; }
  @media (max-width: 460px) { .m-id .btn-sm { margin-left: 70px; } }
  .m-id .name { font: 700 22px/1.15 var(--font-head); color: #fff; }
  .m-id .role { font-size: 13.5px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
  .btn-sm { padding: 12px 18px; font-size: 14px; flex: none; }
}
.socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #212125; color: #fff; transition: .3s;
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  font: 600 16px/1 var(--font-body); padding: 20px 30px; border-radius: 50px;
  transition: .3s; box-shadow: 0 10px 30px -10px rgba(255,1,79,.6);
}
.btn:hover { background: #c40037; transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Side nav (right) ---------- */
.side-nav {
  position: sticky; top: 30px; margin-top: 214px;
  background: #1c1c1f; border: 2px solid #2a2a2e; border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 8px;
  background: #18181b; color: var(--text-2); font-size: 15px; line-height: 1.2; transition: .3s;
}
.side-nav svg { width: 18px; height: 18px; flex: none; }
.side-nav a:hover { color: #fff; background: #222226; }
.side-nav a.active { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(255,1,79,.8); }

/* ---------- Main card ---------- */
.main-card {
  margin-top: 214px; background: var(--card); border-radius: var(--radius);
  padding: 46px 42px 48px; min-width: 0;
}
.section + .section { margin-top: 64px; }
.sec-title { font-family: var(--font-head); font-weight: 700; color: var(--head); line-height: 1.2; display: flex; align-items: center; gap: 22px; font-size: 30px; margin-bottom: 26px; }
.sec-title::after {
  content: ""; width: 86px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #999 0 5px, #4a4a4f 5px calc(100% - 5px), #999 calc(100% - 5px));
}
.headline { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 22px; }
.lead { font-size: 16px; color: var(--text); max-width: 820px; }
.lead + .lead { margin-top: 12px; }
.sub-title { font-size: 28px; margin: 56px 0 30px; }

/* grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-1 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
/* service cards */
.svc { background: var(--card-2); border-radius: var(--radius); padding: 36px 32px; transition: .35s; }
.svc:hover { transform: translateY(-4px); background: #1e1e22; }
.svc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; color: #fff;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 23px; }
.svc p { font-size: 15.5px; line-height: 2; }

/* stats */
.stat { background: var(--card-2); border-radius: var(--radius); padding: 40px 18px 46px; text-align: center; }
.stat strong { display: block; font: 700 54px/1.1 var(--font-head); color: #fff; margin-bottom: 14px; }
.stat strong em { font-style: normal; color: var(--accent-text); }
.stat span { font-size: 16px; }

/* logo strip / chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 14px; color: var(--text-2); background: var(--card-3);
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 40px; transition: .3s;
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip.solid { background: var(--accent-soft); border-color: rgba(255,1,79,.35); color: #fff; }

.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.client {
  background: var(--card-2); border-radius: 10px; padding: 22px 16px; text-align: center;
  font: 700 19px/1.2 var(--font-head); color: var(--text-2); letter-spacing: .5px; transition: .3s;
}
.client:hover { color: #fff; background: #1f1f23; }

/* award */
.award { display: flex; gap: 18px; align-items: flex-start; background: var(--card-2); border-radius: var(--radius); padding: 26px 28px; border-left: 3px solid var(--accent); }
.award + .award { margin-top: 16px; }
.award h4 { font-size: 20px; margin-bottom: 4px; }

/* resume cards */
.r-card { background: var(--card-2); border-radius: var(--radius); padding: 40px 30px; transition: .35s; }
.r-card:hover { transform: translateY(-4px); }
.r-card h3 { font: 500 16px/1.4 var(--font-body); color: #fff; }
.r-card .org { font-size: 14px; color: var(--accent-text); margin-top: 4px; }
.r-card .date { display: inline-block; font: 600 15px/1 var(--font-body); color: #fff; margin: 14px 0 16px; }
.r-card .meta { font-size: 13px; color: #a3a3ad; margin-top: -8px; margin-bottom: 14px; }
.r-card p, .r-card li { font-size: 14.5px; line-height: 1.95; }
.r-card ul { list-style: none; }
.r-card li { position: relative; padding-left: 18px; }
.r-card li + li { margin-top: 6px; }
.r-card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.r-card.wide { grid-column: 1 / -1; }

details.more summary {
  cursor: pointer; list-style: none; margin-top: 14px; color: var(--accent-text); font-size: 14px; font-weight: 500;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " +"; }
details.more[open] summary::after { content: " −"; }
details.more ul { margin-top: 10px; }

/* skill groups */
.skill-group { background: var(--card-2); border-radius: var(--radius); padding: 30px; }
.skill-group h3 { font: 600 14px/1.3 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.skill-group h3::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }

/* bars (used for depth of experience, not invented percentages) */
.bar { margin-bottom: 22px; }
.bar-top { display: flex; justify-content: space-between; font: 500 13px/1 var(--font-body); letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.bar-track { height: 6px; background: #0e0e10; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

/* work */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button {
  font: 500 14px/1 var(--font-body); color: var(--text-2); background: var(--card-2);
  border: 1px solid var(--line); padding: 12px 20px; border-radius: 40px; cursor: pointer; transition: .3s;
}
.filters button:hover { color: #fff; }
.filters button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.w-card { background: var(--card-2); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: .35s; }
.w-card:hover { transform: translateY(-4px); background: #1e1e22; }
.w-card .tag, .feature .tag { align-self: flex-start; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); padding: 5px 12px; border-radius: 30px; margin-bottom: 16px; }
/* project cards: category sits small at the top right, company name stays under the title */
.w-card .tag { align-self: flex-end; font-size: 11.5px; letter-spacing: .3px; text-transform: none; padding: 3px 10px; margin: -8px -8px 6px 0; }
.w-card h3 { font-size: 22px; margin-bottom: 4px; }
.w-card .client-name { font-size: 13.5px; color: #8a8a94; margin-bottom: 12px; }
.w-card p { font-size: 14.5px; line-height: 1.9; }
.w-card.hide { display: none; }
.projects.collapsed .w-card:nth-child(n+9) { display: none; }
a.w-link { color: inherit; }
a.w-link h3 { transition: color .3s; }
a.w-link:hover h3 { color: var(--accent-text); }

/* homepage: organisation logos + closing call to action */
.logo-strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-strip li { flex: 0 1 calc(25% - 11px); min-width: 120px; background: #fff; border-radius: 10px; height: 76px; display: grid; place-items: center; padding: 14px 18px; }
.logo-strip img { width: auto; height: auto; max-width: 100%; max-height: 44px; object-fit: contain; }
.cta {
  background: linear-gradient(135deg, #3a0a17 0%, #1a1a1d 70%); border: 1px solid rgba(255,1,79,.25);
  border-radius: var(--radius); padding: 44px 40px; text-align: center;
}
.cta h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.cta p { color: var(--text-2); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 640px) {
  .logo-strip { gap: 10px; }
  .logo-strip li { flex-basis: calc(50% - 5px); }
  .logo-strip li { height: 64px; }
  .cta { padding: 32px 20px; }
}
.more-wrap { text-align: center; margin-top: 32px; }
.btn-ghost { background: transparent; border: 1px solid var(--accent); color: #fff; box-shadow: none; padding: 16px 28px; font-size: 15px; }
.btn-ghost:hover { background: var(--accent); }
.feature {
  background: linear-gradient(135deg, #2a0812 0%, #1a1a1d 55%); border: 1px solid rgba(255,1,79,.25);
  border-radius: var(--radius); padding: 36px;
}
.feature h2 { font-size: 26px; margin: 4px 0 10px; }
.feature .chips { margin-top: 18px; }

/* contact */
.c-card { background: var(--card-2); border-radius: var(--radius); padding: 28px; display: flex; gap: 18px; align-items: center; transition: .3s; }
.c-card:hover { background: #1f1f23; }
.c-card small { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #a3a3ad; }
.c-card a, .c-card b { color: #fff; font-weight: 500; font-size: 15.5px; word-break: break-word; }
.c-card a:hover { color: var(--accent-text); }
form.contact { background: var(--card-2); border-radius: var(--radius); padding: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
form.contact input, form.contact textarea {
  width: 100%; background: #0e0e10; border: 1px solid #6a6a72; border-radius: 8px;
  color: #fff; font: 400 15px/1.5 var(--font-body); padding: 14px 16px; transition: border-color .3s;
}
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; text-align: center; padding: 110px 20px 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 30px/1 var(--font-head); color: #fff; margin-bottom: 24px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 700 18px/1 var(--font-head); color: #fff; }
.site-footer p { font-size: 16px; }
.site-footer p a { color: #fff; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 20;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); transition: .3s;
  box-shadow: 0 10px 30px -8px rgba(255,1,79,.7);
}
.to-top.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .page { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
  .side-nav {
    grid-column: 1 / -1; grid-row: 1; position: sticky; top: 12px; z-index: 10;
    margin-top: 0; flex-direction: row; justify-content: center; padding: 8px; gap: 8px;
    backdrop-filter: blur(10px); background: rgba(28,28,31,.88);
  }
  .side-nav a { padding: 10px 18px; flex: 1; max-width: 150px; justify-content: center; }
  .main-card { margin-top: 140px; }
  .profile-card { grid-column: 1; grid-row: 2; top: 100px; margin-top: 20px; }
  .main-card { grid-column: 2; grid-row: 2; }
  html { scroll-padding-top: 96px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .page { grid-template-columns: 1fr; padding-top: 24px; gap: 28px; }
  .profile-card, .main-card { grid-column: 1; grid-row: auto; }
  .profile-card { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
  .main-card { margin-top: 120px; padding: 34px 22px; }
  .hero-bg { background: #120614 url("../img/satish-banner.webp") 78% 25% / cover no-repeat; } /* full-bleed photo on small screens */
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page { padding: 16px 16px 0; }
  .profile-card { padding: 26px 20px; }
  .avatar { width: 180px; margin: 0 auto; }
  .avatar span { font-size: 72px; }
  .grid-2, form.contact { grid-template-columns: 1fr; }
  .grid-4 { gap: 14px; }
  /* phone: icon bar fixed to the bottom of the screen */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 16px; }
  .side-nav {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 30;
    justify-content: space-around; gap: 0; border-radius: 18px 18px 0 0;
    border-width: 1px 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(20,20,23,.94);
  }
  .side-nav a { flex: 0 0 auto; flex-direction: column; gap: 3px; width: 68px; height: 54px; padding: 0; max-width: none; background: transparent; }
  .side-nav a:hover { background: #222226; }
  .side-nav svg { width: 20px; height: 20px; }
  .side-nav .nav-label { font-size: 11.5px; line-height: 1; letter-spacing: .2px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); width: 48px; height: 48px; right: 16px; }
  .main-card { margin-top: 280px; }
  .svc, .r-card, .w-card { padding: 28px 22px; }
  .stat strong { font-size: 40px; }
  .sec-title { font-size: 26px; }
  .sub-title { font-size: 24px; margin-top: 44px; }
  form.contact { padding: 24px 18px; }
}

/* ---------- Accessibility helpers ---------- */
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .side-nav a:focus-visible, .filters button:focus-visible { outline-offset: 4px; }
form.contact input:focus-visible, form.contact textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: #fff; color: #000; font-weight: 600; padding: 12px 20px; border-radius: 8px; }
.skip:focus { top: 16px; }
.form-note { font-size: 14px; color: var(--text); margin-top: -6px; }

/* project card header: client logo left, company tag right */
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.w-head .tag, .w-card .w-head .tag { align-self: center; margin: 0; }
.logo {
  flex: none; width: 44px; height: 44px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; padding: 7px; overflow: hidden;
}
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo.badge { background: #2a2a2f; border: 1px solid #3a3a40; padding: 0; color: #fff; font: 700 15px/1 var(--font-head); letter-spacing: .5px; }
