/* ================================
   Modern Dark Theme – Portfolio CSS
   (drop-in replacement)
==================================*/

:root {
  --bg: #0e1117;
  --bg-alt: #151a22;
  --surface: rgba(255,255,255,0.04);
  --card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08);
  --text: #dbeafe;
  --muted: #94a3b8;

  --primary: #4f46e5;      /* Indigo 600 */
  --primary-600: #6366f1;  /* Indigo 500 */
  --accent: #10b981;       /* Emerald 500 */

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 4px 16px rgba(0,0,0,0.2);
  --shadow: 0 10px 30px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);

  --blur: 14px;
}


/* Light fallback if someone forces light mode */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: rgba(0,0,0,0.03);
    --card: rgba(0,0,0,0.04);
    --border: rgba(0,0,0,0.08);
    --text: #1e293b;
    --muted: #64748b;
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.05);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  }
}

/* Global reset + base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(124,156,255,0.06), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(16,185,129,0.05), transparent 60%),
    linear-gradient(to bottom, var(--bg), var(--bg-alt));
  min-height: 100vh;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Smooth containers & layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 1.75rem);
  padding-block: clamp(1rem, 2.5vw, 2rem);
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 0.5rem;
}

/* Typography Scale */
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 70ch;
}

/* Gradient-enhanced text (hero titles, section highlights) */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}


/* Links & Focus Styles */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover,
a:focus {
  color: var(--primary-600);
  text-decoration: underline;
  text-decoration-color: var(--primary-600);
  text-underline-offset: 3px;
}

/* Accessibility: keyboard focus outline */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}


/* Nav – Glass Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(14, 17, 23, 0.9), rgba(14, 17, 23, 0.6));
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}

/* Individual nav links */
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  position: relative;
  padding: 6px 8px;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Hover */
.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
  transform: translateY(-1px);
}

/* Active state */
.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Underline hover effect */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
  width: 100%;
}

/* Responsive stack (optional if needed later) */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.95rem;
  }
}

/* Hero / content */
.content {
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.content img {
  width: clamp(140px, 22vw, 200px);
  height: clamp(140px, 22vw, 200px);
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform .3s ease;
}
.content img:hover { transform: scale(1.05); }

.content h1 {
  color: var(--text);
  margin-top: .5rem;
}

.content p {
  max-width: 720px;
  margin-inline: auto;
}

/* Buttons */
.btn,
.content a,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(var(--blur, 10px));
  -webkit-backdrop-filter: blur(var(--blur, 10px));
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.btn:hover,
.content a:hover,
.download-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.25);
  filter: brightness(1.05);
}

.btn:focus-visible,
.content a:focus-visible,
.download-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Primary button variant */
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #e1510f;
  border: none;
}
.btn-primary:hover { filter: brightness(1.05); }

/* Cards */
.card, .bg-gray-800, .mantra-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.card:hover, .bg-gray-800:hover, .mantra-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.22);
}

/* Lists */
.list-disc { padding-left: 1.25rem; }
.list-disc li { margin-bottom: .5rem; color: var(--text); }

/* Grid utilities */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-cols-1 { grid-template-columns: 1fr; }
.md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .md\:grid-cols-2 { grid-template-columns: 1fr; } }



/* Floating mantra */
.floating-mantra {
  position: fixed;
  top: 5rem;
  right: 2rem;
  z-index: 1100;
  animation: floatIn .7s ease-out;
}
.floating-mantra.hide { animation: floatOut .5s ease-in forwards; }

#dailyMantra {
  background-image: url('/static/images/image_sp.png');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #fff;
}

/* Mantra box detail */
.mantra-box {
  color: #fff;
  max-width: 320px;
  text-align: left;
}
.mantra-box .sloka { font-size: 1.1rem; font-weight: 700; color: #ffe38d; margin-bottom: .4rem; }
.mantra-box .meaning { font-size: .96rem; opacity: .95; font-style: italic; }
.mantra-box .reflection { font-size: .93rem; margin-top: .6rem; color: #b8ffee; font-weight: 600; }

/* Presentation gate */
.presentation-wrapper {
  display: grid; place-items: center;
  min-height: 92vh;
  background:
    radial-gradient(1200px 700px at 80% -20%, rgba(124,156,255,0.15), transparent 60%),
    radial-gradient(1000px 800px at -10% 120%, rgba(34,234,214,0.10), transparent 65%),
    linear-gradient(180deg, #0d141d, #0a1118);
}
.presentation-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  width: min(420px, 92vw);
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeIn .6s ease;
}
.presentation-box h2 { color: var(--text); margin-bottom: 1rem; }
.presentation-box input[type="password"] {
  width: 100%; padding: 12px; margin: .75rem 0 1rem;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.presentation-box input:focus { border-color: var(--primary); }
.presentation-box button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #0b0f14; font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.presentation-box button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.error-msg { margin-top: .75rem; color: #ff5c8a; font-weight: 700; font-size: .92rem; }

/* Split section with image */
.flex-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: center;
}
@media (max-width: 960px) {
  .flex-container { grid-template-columns: 1fr; }
}

.text-column { }
.image-column { text-align: center; }
.image-column img {
  max-width: 100%; height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Floating CV badge */
.floating-cv-badge {
  position: fixed;
  bottom: 22px; left: 22px;
  z-index: 1200;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(124,156,255,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-cv-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(124,156,255,0.55);
}
.floating-cv-badge a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none;
}
.floating-cv-badge span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}

/* Utility: badges, muted text, subtle separators */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .6rem; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .85rem; font-weight: 700; color: var(--text);
}
.hr {
  height: 1px; background: var(--border);
  margin: 1.2rem 0;
  border-radius: 1px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-20px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Scrollbar (WebKit) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-track { background: transparent; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .content { padding-top: clamp(2rem, 6vw, 3rem); }
}

/* Force navbar readable on light backgrounds */
.navbar {
  background: rgba(11, 15, 20, 0.9); /* darker overlay */
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.nav-links a {
  color: var(--text); /* high contrast */
}

.nav-links a:hover {
  color: var(--primary);
}

.navbar {
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 20, 0.95) 0%,
    rgba(11, 15, 20, 0.6) 60%,
    transparent 100%
  );
  backdrop-filter: blur(var(--blur));
}


/* Navbar text styling */
nav a {
  color: #da1818; /* Bright white for contrast */
  font-weight: 600;
  padding: 12px 18px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

/* Hover effect */
nav a:hover {
  color: #ffcc66; /* Warm highlight color */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

/* Navbar background */
nav {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(20, 30, 50, 0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}





/* Mantra section: right on desktop, centered on mobile */
.mantra-section{ padding: 16px 0 24px; }
.mantra-row{ display:flex; justify-content:flex-end; }
@media (max-width: 900px){ .mantra-row{ justify-content:center; } }

/* Spiritual glass card */
.mantra-card{
  position: relative;
  max-width: 540px;
  padding: 18px 20px;
  border-radius: 16px;
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(124,156,255,0.12), transparent 60%),
    radial-gradient(360px 280px at 0% 100%, rgba(34,234,214,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.gold-text {
  background: linear-gradient(90deg, #0062ff, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}



.site-footer {
  background: #111; /* dark footer */
  color: #cccccc;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  flex: 0 0 auto; /* Fixed size for button */
}

.footer-center {
  flex: 1;
  text-align: center;
  font-size: 14px;
}

.footer-center a {
  color: #66aaff;
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline;
}

.cv-download-btn {
  display: inline-block;
  padding: 5px 5px;
  background: linear-gradient(135deg, #2c2fe1, #736c60);
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.4);
  transition: all 0.2s ease;
}

.cv-download-btn:hover {
  background: linear-gradient(135deg, #ffcc66, #ffad33);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255, 153, 0, 0.55);
}

/* === FINAL LAYOUT FIX — paste at END of CSS === */

/* Let the document flow; footer sits after content */
html, body { height: 100%; min-height: 100%; }
body { display: flex; flex-direction: column; }

/* Your main content grows to fill the page */
main.content { flex: 1 0 auto; }

/* Footer MUST NOT be fixed */
.site-footer, footer {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
}

/* Remove padding used for previous fixed footer approach */
body { padding-bottom: 0 !important; }

/* Kill accidental clipping/height locks */
.hero, .hero-plate, .mantra-section, .section, .container, .content {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

/* Long lines should wrap instead of disappearing */
h1, h2, h3, p { overflow-wrap: anywhere; word-break: break-word; }
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(11, 15, 20, 0.95), rgba(11, 15, 20, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 0.95rem;
  z-index: 999;
}

/* Footer inner container */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
}

/* Download button aligned left */
.footer-left {
  display: flex;
  justify-content: flex-start;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  background: linear-gradient(90deg, #3b3b61, #49418c);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
  transition: all 0.3s ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.4);
}

/* Center copyright text */
.footer-center {
  justify-self: center;
  font-weight: 500;
}

.footer-center a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline;
}

/* Empty right column to balance layout */
.footer-right {
  visibility: hidden;
}
/* Job-search polish */
.skip-link { position:absolute; left:-999px; top:.5rem; z-index:2000; padding:.75rem 1rem; background:var(--accent); color:#06130f; border-radius:999px; font-weight:800; }
.skip-link:focus { left:.75rem; }
.section-heading { text-align:center; margin-bottom:clamp(1.5rem,4vw,3rem); }
.section-heading p { margin-inline:auto; }
.eyebrow { color:var(--accent); font-size:.88rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.4rem; }
.contact-card { max-width:860px; margin-inline:auto; }
.contact-actions { display:flex; flex-wrap:wrap; gap:.8rem; justify-content:center; }
.error-page { min-height:55vh; display:grid; place-items:center; }
@media (max-width:1024px){ .project-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:700px){ .project-grid{grid-template-columns:1fr;} .nav-links{flex-wrap:wrap; justify-content:center; padding:.6rem;} }


/* ============================================================
   Projects
   ============================================================ */

.projects {
  padding-bottom: 5rem;
}

.project-list.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.project-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-meta {
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-item h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.3;
}

.project-item > p {
  margin: 0 0 1rem;
  line-height: 1.65;
  opacity: 0.9;
}

.project-item ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.6;
}

.project-item li {
  margin-bottom: 0.45rem;
}

.project-item li:last-child {
  margin-bottom: 0;
}

.project-thumbnail {
  width: 100%;
  height: 190px;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.tech-tags .tag {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-item > a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 700;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.project-links a {
  font-weight: 700;
}

@media (max-width: 800px) {
  .project-list.project-grid {
    grid-template-columns: 1fr;
  }

  .project-item {
    padding: 1.5rem;
  }
}

@media (max-width: 500px) {
  .project-item {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .project-thumbnail {
    height: 160px;
  }

  .project-item h3 {
    font-size: 1.2rem;
  }

  .project-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* =========================================
   HERO
========================================= */

.content:has(.hero) {
  padding-block: 0;
}

.content:has(.hero) + footer {
  display: none;
}

.hero {
  min-height: calc(100svh - 55px);
  display: flex;
  align-items: center;
  padding: 24px 0 30px;
}

.hero-plate {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 42px 52px;
  background:
    radial-gradient(
      circle at 85% 35%,
      rgba(96, 165, 250, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 85%,
      rgba(45, 212, 191, 0.10),
      transparent 28%
    ),
    #f8fafc;

  border: 1px solid rgba(15, 23, 42, 0.08);
}


/* =========================================
   GRID
========================================= */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 42px;
}


/* =========================================
   CONTENT
========================================= */

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  margin-bottom: 12px;

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;

  color: #2563eb;
}

.hero-title {
  margin: 0;

  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;

  color: #0f172a;
  font-weight: 850;
}

.hero-tagline {
  margin: 18px 0 16px;

  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -0.045em;

  color: #0f172a;
  font-weight: 800;
}

.hero-tagline span {
  color: #2563eb;
}

.hero-description {
  max-width: 700px;

  margin: 0;

  font-size: 1rem;
  line-height: 1.55;

  color: #475569;
}


/* =========================================
   PHILOSOPHY
========================================= */

.hero-philosophy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;

  margin-top: 18px;
  padding-left: 16px;

  border-left: 3px solid #2563eb;

  font-size: 0.95rem;
  line-height: 1.7;

  color: #64748b;
}

.philosophy-label {
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.04em;
}


/* =========================================
   SKILLS
========================================= */

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 20px;
}

.hero-skills span {
  display: inline-flex;
  align-items: center;

  padding: 7px 13px;

  border-radius: 999px;

  background: #e2e8f0;
  border: 1px solid #cbd5e1;

  color: #334155;

  font-size: 0.78rem;
  font-weight: 650;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.hero-skills span:hover {
  transform: translateY(-2px);

  background: #dbeafe;
  border-color: #93c5fd;

  color: #1e40af;
}


/* =========================================
   BUTTONS
========================================= */

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 24px;
}

.hero-ctas .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 48px;
  padding: 0 20px;

  border-radius: 12px;

  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.hero-ctas .btn:hover {
  transform: translateY(-2px);
}

.hero-ctas .primary {
  background: #0f172a;
  color: white;

  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.hero-ctas .primary:hover {
  background: #1e293b;
}

.hero-ctas .outline {
  background: transparent;

  color: #0f172a;

  border: 1px solid #cbd5e1;
}

.hero-ctas .outline:hover {
  background: white;
  border-color: #94a3b8;
}

.text-btn {
  color: #2563eb !important;
  padding-left: 8px !important;
}


/* =========================================
   AVATAR
========================================= */

.hero-visual {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.avatar-container {
  position: relative;

  width: min(360px, 100%);
  aspect-ratio: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  position: relative;
  z-index: 3;

  width: 76%;
  height: 76%;

  object-fit: cover;

  border-radius: 50%;

  border: 7px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.20);
}

.avatar-ring {
  position: absolute;
  z-index: 2;

  width: 88%;
  height: 88%;

  border-radius: 50%;

  border: 1px solid rgba(37, 99, 235, 0.25);
}

.avatar-glow {
  position: absolute;

  width: 75%;
  height: 75%;

  border-radius: 50%;

  background: rgba(96, 165, 250, 0.28);

  filter: blur(55px);
}


/* =========================================
   AVAILABILITY
========================================= */

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 20px;

  padding: 9px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);

  color: #64748b;

  font-size: 0.78rem;
  font-weight: 650;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

  .hero {
    padding: 45px 0 60px;
  }

  .hero-plate {
    padding: 45px 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.7rem);
  }

  .hero-tagline {
    font-size: clamp(1.4rem, 5.8vw, 2.1rem);
  }

  .hero-visual {
    order: -1;
  }

  .avatar-container {
    width: 250px;
  }
}


@media (max-width: 600px) {

  .hero-plate {
    padding: 35px 22px;
    border-radius: 20px;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-philosophy {
    font-size: 0.88rem;
  }

  .hero-ctas {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

}

/* =========================================
   SLIM HERO BUTTONS
   Paste at the very END of your stylesheet.
   You can delete the old "BUTTONS" block in the HERO section.
========================================= */

.hero-ctas {
  gap: 8px;
  margin-top: 20px;
}

.hero-ctas .btn {
  min-height: 0;
  height: 36px;
  padding: 0 14px;
  gap: 6px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-ctas .btn:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

.hero-ctas .primary {
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #fff;
}

.hero-ctas .primary:hover {
  background: #1e293b;
}

.hero-ctas .outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.hero-ctas .outline:hover {
  background: #fff;
  border-color: #94a3b8;
}

/* "Get in touch" is a plain text link, not a pill */
.hero-ctas .text-btn {
  background: transparent;
  border-color: transparent;
  color: #2563eb !important;
  padding: 0 6px !important;
}

.hero-ctas .text-btn:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep the three buttons in one row on phones */
@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: row;
    align-items: center;
  }
}


/* =========================================
   STOP GLOBAL BUTTON STYLE LEAKING INTO TEXT LINKS
   Your rule ".btn, .content a, .download-button" turns every link
   inside .content into a big button (e.g. "Live demo", GitHub, LinkedIn).
========================================= */

.hero a:not(.btn) {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-weight: 600;
}

.hero a:not(.btn):hover {
  background: none;
  box-shadow: none;
  transform: none;
  filter: none;
  text-decoration: underline;
}

/* Optional: .content centers text; keep the hero copy left-aligned */
.hero-content,
.hero-content p {
  text-align: left;
  margin-inline: 0;
}


/* --- Hero: proof list --- */
.hero-proof {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.hero-proof li {
  padding-left: 0.9rem;
  border-left: 2px solid currentColor;
  opacity: 0.9;
}

/* --- Hero: links --- */
.hero-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.hero-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Hero: current work --- */
.hero-current {
  margin-top: 1.5rem;
}

.hero-current .current-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-current .current-body {
  display: block;
  opacity: 0.9;
}

/* --- Hero: grouped skills --- */
.hero-skills {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.skill-group {
  display: grid;
  gap: 0.4rem;
}

.skill-group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags span {
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.85;
}

