/* ========== CLEAN DARK PORTFOLIO CSS ========== */

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #100f0f; color: #f5f5f5; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 300; }

/* Outer panel */
.page-wrapper { max-width: 1400px; margin: 32px auto; background: #050505; border: 1px solid #272727; border-radius: 18px; padding: 40px; overflow: hidden; }

/* Navbar */
.navbar { height: 80px; display: flex; align-items: center; border-bottom: 1px solid #111; }
.nav-container { width: 100%; max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo-text { color: #f5f5f5; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; font-size: 1.05rem; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a { color: #8a8a8a; text-decoration: none; transition: color 0.22s ease; font-weight: 500; }
.nav-links a:hover { color: #ffffff; }
.nav-links a.active { color: #3dd6a0; }
.nav-burger { display: none; background: transparent; color: #f5f5f5; border: none; font-size: 1.2rem; }

/* Hero */
.hero { padding: 64px 0 96px 0; position: relative; overflow: visible; --hero-translate: 0px; }
.hero-content { max-width: 700px; text-align: left; position: relative; z-index: 3; }

/* Decorative parallax background (replaces video for performance) */
.hero::before {
  /* simplified decorative background for performance: remove expensive blur/filter */
  content: "";
  position: absolute;
  inset: -8% -4% -8% -4%;
  z-index: 0;
  /* smaller, cheaper gradients */
  background: radial-gradient(700px 240px at 15% 20%, rgba(61,214,160,0.05), transparent 12%), radial-gradient(600px 200px at 85% 70%, rgba(61,155,214,0.035), transparent 10%), linear-gradient(180deg, rgba(255,255,255,0.008), rgba(0,0,0,0.14));
  /* use GPU-friendly transform (translate3d) */
  transform: translate3d(0, var(--hero-translate), 0);
  will-change: transform, opacity;
  border-radius: 16px;
  pointer-events: none;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.06), rgba(5,5,5,0.36)); z-index:1; border-radius: 16px; pointer-events: none; }

/* Respect reduced motion and mobile bandwidth */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { display: none; }
}
@media (max-width: 680px) {
  .hero-bg { display: none; }
}
.status-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(61,214,160,0.18); background: rgba(61,214,160,0.04); color: #3dd6a0; font-weight: 600; font-size: 0.85rem; margin-bottom: 28px; }
.status-dot { width: 8px; height: 8px; background: #3dd6a0; border-radius: 50%; box-shadow: 0 0 8px rgba(61,214,160,0.08); }
.hero-title { font-family: 'Montserrat', system-ui, sans-serif; line-height: 0.9; margin: 0 0 18px 0; }
.hero-title .name-line { display: block; font-size: clamp(72px, 8vw, 120px); color: #ffffff; font-weight: 600; }
.hero-title .title-line { display: block; font-size: clamp(40px, 5vw, 64px); color: #8a8a8a; font-weight: 400; margin-top: 6px; }
.hero-intro { color: #8a8a8a; font-size: 1.05rem; line-height: 1.8; margin-bottom: 22px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 12px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.22s ease; }
.btn.outline { border: 1px solid rgba(255,255,255,0.06); color: #f5f5f5; background: transparent; }
.btn.outline:hover { transform: translateY(-3px); border-color: rgba(61,214,160,0.28); color: #ffffff; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid #0f0f0f; }
.section-label { color: #5f5f5f; letter-spacing: 0.14em; font-weight: 600; font-size: 0.85rem; display: inline-block; margin-bottom: 18px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.project-card { background: #0a0a0a; border: 1px solid #151515; padding: 20px; border-radius: 10px; transition: transform 260ms cubic-bezier(.2,.9,.3,1), box-shadow 260ms ease, border-color 260ms ease; }
.project-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(61,214,160,0.06); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.project-visual { height: 160px; border-radius: 8px; margin-bottom: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.02); overflow: hidden; transition: height 320ms cubic-bezier(.2,.9,.3,1); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; border-radius: 8px; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* Use a background image for radar visual to avoid inline-image rendering quirks in Chrome */
.project-visual.radar { background-image: url('IMG_5328_FIXED.jpeg'); background-size: cover; background-position: center 25%; background-repeat: no-repeat; }

/* individual card focal adjustments */
.project-visual.bot2025 img { object-position: center 50%; transform: scale(1); transform-origin: center center; }
.project-visual.bot2026 img { object-position: 40% 60%; transform: scale(1); transform-origin: center center; }

/* Expanded card styles */
.project-card.expanded { transform: none; box-shadow: 0 30px 80px rgba(0,0,0,0.6); z-index: 60; }
.project-card.expanded .project-visual { height: 240px; }
.project-card .project-details { max-height: 0; overflow: hidden; transition: max-height 360ms ease, padding 260ms ease, opacity 260ms ease; opacity: 0; padding-top: 0; }
.project-card.expanded .project-details { max-height: 600px; padding-top: 14px; opacity: 1; }

/* Make sure the shown details content looks good */
.project-details h4 { margin: 8px 0 6px 0; }
.project-details p { color: #bdbdbd; line-height: 1.6; margin-bottom: 8px; }
.project-card h3 { margin: 0 0 6px 0; font-size: 1.05rem; color: #f5f5f5; }
.project-card .muted { color: #8a8a8a; margin-bottom: 12px; }
.tags { display:flex; gap:8px; flex-wrap:wrap; }
.tags span { font-size: 0.75rem; padding:6px 8px; border-radius:999px; border:1px solid rgba(255,255,255,0.04); color:#bbb; background:#0c0c0c; }

/* Skills */
.skills-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.skill-pill { padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,0.04); background:#0c0c0c; color:#bbb; font-weight:600; }

/* Contact */
.contact-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:18px; }
.contact-card { background:#0a0a0a; border:1px solid #151515; padding:18px; border-radius:8px; }
.contact-label { color:#5f5f5f; font-size:0.85rem; margin-bottom:8px; }
.contact-value a { color:#3dd6a0; text-decoration:none; font-weight:600; }

/* Footer */
.footer { display:flex; justify-content:space-between; padding:28px 0 0 0; color:#5f5f5f; font-size:0.85rem; border-top:1px solid #0f0f0f; margin-top:24px; }

/* Responsive */
@media (max-width: 992px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px) {
  .nav-links { display:none; position:absolute; top:80px; right:40px; background:#050505; padding:16px; border:1px solid #111; border-radius:8px; }
  .nav-links.open { display:flex; flex-direction:column; gap:12px; }
  .nav-burger { display:inline-block; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .hero-title .name-line { font-size: clamp(40px, 12vw, 72px); }
  .hero-title .title-line { font-size: clamp(22px, 6vw, 32px); }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; text-align:center; }
}


/* ========== SCROLL REVEAL (PERFORMANCE-FRIENDLY) ========== */
.reveal { opacity: 0; transform: translateY(14px) scale(.997); transition: opacity 380ms cubic-bezier(.2,.9,.3,1), transform 380ms cubic-bezier(.2,.9,.3,1); will-change: opacity, transform; }
.reveal.show { opacity: 1; transform: translateY(0) scale(1); }

/* stagger helper: when a container gets .show, reveal children with delays */
.stagger > * { opacity: 0; transform: translateY(14px); }
.stagger.show > * { opacity: 1; transform: translateY(0); transition: opacity 520ms ease, transform 520ms ease; }

/* status badge subtle pulse */
.status-badge { position: relative; }
.status-badge .status-dot { transition: box-shadow 420ms ease; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(61,214,160,0.12); } 70% { box-shadow: 0 0 0 8px rgba(61,214,160,0); } 100% { box-shadow: 0 0 0 0 rgba(61,214,160,0); } }
.status-badge .status-dot { animation: pulse-dot 2.8s infinite ease-in-out; }

/* Section header wipe (clip-path) */
.section-label { position: relative; overflow: visible; }
.section-label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 42px; width: 100%; background: linear-gradient(90deg, rgba(61,214,160,0.06), rgba(61,214,160,0.02)); transform-origin: left; clip-path: inset(0 100% 0 0); transition: clip-path 520ms cubic-bezier(.2,.9,.3,1); z-index:-1; }
.section-label.show::before { clip-path: inset(0 0 0 0); }

/* Project visual subtle parallax on scroll using transform set by JS */
.project-visual { will-change: transform; }

/* small utility */
.muted { color: #8a8a8a; }

/* end of file cleanly */