/* Design tokens */
:root {
  /* Cool modern palette (teal/indigo + subtle cyan accents) */
  /* Charcoal + Sky Blue + Orange Palette */
  --bg: #0f1114; /* charcoal base */
  --bg-alt: #161a20;
  --surface: #1b2229; /* card base */
  --surface-alt: #222b34; /* alt layering */
  --elev-1: #27333d; /* elevated panel */
  --gradient-accent: linear-gradient(135deg,#36b4ff 0%,#ff8b34 100%);
  --text: #f2f6f9;
  --text-muted: #90a2b0;
  --brand: #36b4ff; /* sky blue */
  --brand-2: #ff8b34; /* orange */
  --accent-ring: #36b4ff;
  --border: #2f3d47;
  --border-alt: #3b4b57;
  --shadow: 0 6px 26px -4px rgba(0,0,0,0.55), 0 2px 4px rgba(0,0,0,0.4);
  --glow: 0 0 0 1px rgba(94,231,223,0.4), 0 0 12px -2px rgba(94,231,223,0.5);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --transition: all .28s cubic-bezier(.4,.8,.2,1);
  --content-max: 1180px;
  --sidebar-width: clamp(250px,27vw,400px);
}



/* Reset & Global Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, #19232b 0%, #0f1114 55%) fixed;
  color: var(--text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 1;
  display: flex;
}

/* Typography */
h1, h2, h3, .section-title, .profile-name {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.6px;
}
h1, .profile-name { font-weight:700; }
h2, .section-title { font-weight:600; }
h3 { font-weight:600; }
.profile-nav a { font-size:.8rem; letter-spacing:.35px; }
.hl-value { font-feature-settings: 'tnum' 1; }

/* Global elements */
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 26px; }

/* Sections */
section { padding: 90px 0 84px; position: relative; }
.section-title { text-align: center; font-size: 2.25rem; margin: 0 0 36px; letter-spacing: -0.02em; }

/* Two-column Layout */
.profile-pane { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-width); padding: 40px 34px 44px; display: flex; flex-direction: column; gap: 22px; background: linear-gradient(160deg, var(--surface) 0%, var(--surface-alt) 70%); border-right: 1px solid var(--border); box-shadow: inset -1px 0 0 var(--border-alt), var(--shadow); overflow: hidden; -webkit-user-select:none; user-select:none; }
.profile-inner { display: flex; flex-direction: column; gap: 20px; }
.brand-initial { width: 56px; height: 56px; border-radius: 16px; background: var(--gradient-accent); display: grid; place-items: center; font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; color: #0f172a; box-shadow: var(--glow); }
.profile-name { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; text-align:center; }
.tagline { margin: 0; color: var(--text-muted); font-size: .92rem; font-weight: 500; }
.profile-highlights { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 10px; }
.profile-highlights div { background: var(--elev-1); border: 1px solid var(--border); padding: 10px 12px 8px; border-radius: 14px; font-size: .65rem; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; display: flex; flex-direction: column; gap: 4px; position: relative; }
.profile-highlights div:before { content:''; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(120deg,rgba(94,231,223,0.12),rgba(83,112,246,0.12)); opacity:0; transition:var(--transition); }
.profile-highlights div:hover:before { opacity:1; }
.hl-label { color: var(--text-muted); }
.hl-value { font-size: .8rem; color: var(--brand); font-weight: 600; }
.profile-nav { margin-top: 4px; }
.profile-nav ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.profile-nav a { display:block; padding:10px 14px; border-radius:12px; font-weight:500; color: var(--text-muted); text-decoration:none; font-size:.85rem; position:relative; transition:var(--transition); }
.profile-nav a:hover, .profile-nav a.active { background: var(--elev-1); color: var(--brand); box-shadow:0 0 0 1px var(--border); }
.profile-actions { display:flex; gap:10px; flex-wrap:wrap; }
.btn.small { padding:10px 16px; font-size:.75rem; }
.profile-social { display:flex; gap:14px; font-size:1.2rem; }
.profile-social a { color: var(--text-muted); transition:var(--transition); }
.profile-social a:hover { color: var(--brand); transform:translateY(-2px); }
.content-pane { margin-left: var(--sidebar-width); flex:1; min-height:100vh; }

/* Profile Photo (Perfect Circle) */
.profile-photo-wrapper { width: 220px; height: 220px; border-radius: 50%; position: relative; overflow: hidden; box-shadow: 0 0 0 2px rgba(54,180,255,0.28), 0 0 0 6px rgba(255,139,52,0.10), 0 10px 28px -8px rgba(0,0,0,0.65); background: radial-gradient(circle at 35% 35%, rgba(54,180,255,0.18), rgba(255,139,52,0.10)); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.profile-photo-wrapper:before { content:""; position:absolute; inset:0; border:3px solid rgba(83,112,246,0.22); border-radius:50%; mix-blend-mode:overlay; pointer-events:none; }
.profile-photo { width:100%; height:100%; object-fit: cover; object-position: 50% 20%; filter: saturate(1.0) contrast(1.02); transition: var(--transition); transform: none; }
.profile-photo:hover { transform: none; }

@media (max-width: 900px) {
  .profile-photo-wrapper { width: 180px; height: 180px; }
}

@media (max-width: 900px) {
  body { flex-direction: column; }
  .profile-pane { position: relative; width: 100%; height: auto; flex: none; border-right: none; border-bottom: 1px solid var(--border); flex-direction: column; padding: 30px 22px 34px; }
  .content-pane { margin-left: 0; }
  section { padding: 70px 0 64px; }
  .section-title { font-size: 1.9rem; }
}

/* Short viewport adjustments */
@media (max-height: 760px) and (min-width: 901px) {
  .profile-pane { padding: 26px 26px 30px; gap: 16px; }
  .profile-photo-wrapper { width: 170px; height: 170px; }
  .profile-name { font-size: 1.6rem; }
  /* removed typed-container */
  .profile-highlights div { padding: 8px 10px 6px; }
  .profile-nav a { padding: 8px 12px; font-size: .78rem; }
  .profile-social { font-size: 1rem; gap: 12px; }
}

@media (max-height: 690px) and (min-width: 901px) {
  .profile-pane { padding: 20px 22px 24px; gap: 14px; }
  .profile-photo-wrapper { width: 150px; height: 150px; }
  .profile-name { font-size: 1.45rem; }
  .profile-nav a { padding: 7px 10px; font-size: .75rem; }
  .profile-highlights div { padding: 6px 8px 5px; }
}

@media (max-height: 640px) and (min-width: 901px) {
  /* removed scroll enabling to keep sidebar static */
  .profile-inner { gap: 14px; }
  .profile-photo-wrapper { width: 140px; height: 140px; }
  .profile-name { font-size: 1.35rem; }
  .profile-nav a { padding: 6px 9px; }
  .profile-social { font-size: .95rem; }
}

/* Floating resume button (duplicate access) */
.resume-fab { position: fixed; right: 24px; top: 24px; z-index: 1300; background: var(--gradient-accent); color:#0f172a; border:none; padding: 10px 18px; border-radius: 14px; font-weight:600; font-size:.7rem; letter-spacing:.5px; cursor:pointer; box-shadow: var(--shadow); display:inline-flex; align-items:center; gap:6px; }
.resume-fab:hover { filter: brightness(1.05); transform: translateY(-2px); }
.resume-fab:focus { outline:2px solid var(--brand); outline-offset:3px; }

/* Static title (replaces typed effect) */
.static-title { font-size: 1rem; font-weight:600; background: var(--gradient-accent); -webkit-background-clip:text; background-clip:text; color:transparent; letter-spacing:.5px; margin-top:-4px; text-align:center; display:block; }
.passion-line { font-size:.7rem; letter-spacing:.6px; font-weight:700; text-transform:uppercase; color:var(--brand); background:linear-gradient(145deg,rgba(54,180,255,0.18),rgba(255,139,52,0.18)); border:1px solid var(--border-alt); padding:10px 14px 9px; border-radius:14px; line-height:1.45; box-shadow:inset 0 0 0 1px rgba(54,180,255,0.25),0 0 0 1px rgba(255,139,52,0.14); display:block; text-align:center; }
/* Buttons */
.hero-btns { margin-top: 26px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; font-weight: 600; letter-spacing: .01em; box-shadow: var(--shadow); transition: var(--transition); margin: 0 6px; border: 1px solid var(--border); }
.btn.primary { background: var(--gradient-accent); color: #0f172a; border: none; position:relative; }
.btn.primary:after { content:''; position:absolute; inset:0; border-radius:inherit; box-shadow:0 0 0 1px rgba(255,255,255,0.15) inset,0 4px 18px -4px rgba(83,112,246,0.6); opacity:0; transition:var(--transition); }
.btn.primary:hover:after { opacity:1; }
.btn.secondary { background: var(--elev-1); color: var(--text); border:1px solid var(--border-alt); }
.btn:hover { transform: translateY(-2px); }

/* Cards / sections */
.skill-category, .exp-item, .project-card { background: var(--elev-1); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); position:relative; overflow:hidden; }
.skill-category:before, .exp-item:before, .project-card:before { content:""; position:absolute; inset:0; background:linear-gradient(140deg,rgba(94,231,223,0.08),rgba(83,112,246,0.08)); opacity:0; transition:var(--transition); pointer-events:none; }
.skill-category:hover:before, .exp-item:hover:before, .project-card:hover:before { opacity:1; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.skill-category { padding: 22px; text-align: left; }
.skill-icon { font-size: 1.6rem; color: var(--brand); margin-bottom: 10px; }
.skill-category h3 { margin: 4px 0 10px; }
.skill-category ul { padding-left: 18px; color: var(--text-muted); }

/* Collapsible Skills */
.skills-collapsible { max-width: 880px; margin: 0 auto; }
.core-stack { background: var(--elev-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 26px 20px; box-shadow: var(--shadow); }
.core-stack h3 { margin: 0 0 10px; font-size: 1.15rem; letter-spacing: .01em; }
.core-line { margin: 0; font-weight: 500; line-height: 1.55; }
.extended-skills { margin-top: 12px; background: var(--elev-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 18px; box-shadow: var(--shadow); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tags span { background: color-mix(in oklab, var(--brand) 12%, transparent); color: var(--brand); padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .02em; border: 1px solid color-mix(in oklab, var(--brand) 25%, var(--border)); }
/* hidden state removed (always visible) */

/* Experience */
.experience-timeline { position: relative; }
.exp-item { padding: 16px 18px 14px; margin-bottom: 14px; }
.exp-item:hover { transform: translateY(-2px); }
.company { color: var(--text-muted); }
.period { color: var(--text-muted); font-size: .95rem; }
/* Compact experience list */
.exp-item ul.achievements { margin: 10px 0 4px; padding-left: 18px; }
.exp-item ul.achievements li { margin-bottom: 4px; line-height: 1.45; font-size: .83rem; }
.exp-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.exp-item .company { font-size: .75rem; letter-spacing:.5px; text-transform: uppercase; font-weight:600; }
.exp-item .period { font-size: .7rem; letter-spacing:.5px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.project-card { overflow: hidden; }
.project-content { padding: 22px; }
.tech-stack { margin: 10px 0; }
.tech-stack span { display: inline-block; padding: 6px 10px; background: rgba(94,231,223,0.12); border: 1px solid rgba(94,231,223,0.3); color: var(--brand); border-radius: 999px; margin: 2px; font-size: .8rem; letter-spacing:.3px; }

/* Certifications */
.certifications-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px 20px; text-align: center; transition: all 0.3s ease; }
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.cert-icon { font-size: 2.5rem; color: var(--brand); margin-bottom: 14px; }
.cert-card h3 { font-size: 1.05rem; margin: 8px 0; font-weight: 600; color: var(--text); }
.cert-issuer { font-size: 0.85rem; color: var(--text-muted); margin: 0; font-weight: 500; }

/* Contact */
/* (Removed legacy .contact-item styles in favor of compact layout) */

/* (Removed legacy compact contact styles) */

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--text-muted); }
/* Floating Back To Top */
.back-to-top { position: fixed; bottom: 40px; left: 24px; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-alt); color: var(--brand); font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .45s ease, transform .45s ease, background .3s; }
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--gradient-accent); color:#0f172a; }
.back-to-top:focus { outline:2px solid var(--accent-ring); outline-offset:2px; }

/* Mobile */
/* (Removed mobile nav styles - vertical sidebar handles) */

/* Skip link */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; background: var(--brand); color: #fff; padding: 8px 10px; border-radius: 8px; z-index: 2000; }

/* (Removed legacy style variants) */

/* Footer extras */
footer .to-top { color: var(--brand); text-decoration: none; font-weight:600; }
footer .to-top:hover { text-decoration: underline; }

/* About section typography refinement */
.about .about-content p { font-family: 'Source Serif 4', serif; font-size: 1.02rem; line-height: 1.72; font-weight: 400; letter-spacing: .15px; color: var(--text); margin-bottom: 1.15rem; }
.about .about-content h3 { font-family: 'Sora', sans-serif; font-size: 0.95rem; letter-spacing: .6px; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.about .about-content p strong { font-weight:600; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about .education-condensed p { font-size: .95rem; font-family: 'Plus Jakarta Sans', sans-serif; }
