
:root {
  --bg: #08090d;
  --bg2: #0e1118;
  --card: rgba(255,255,255,.045);
  --card-hover: rgba(255,255,255,.075);
  --text: #f1f3f7;
  --muted: #9aa3b2;
  --accent: #6ea8ff;
  --accent2: #9b7bff;
  --green: #6ee7a0;
  --border: rgba(255,255,255,.09);
  --max: 1120px;
}
* { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 80% 5%, rgba(110,168,255,.13), transparent 28rem),
    radial-gradient(circle at 10% 40%, rgba(155,123,255,.08), transparent 25rem),
    var(--bg);
  line-height:1.65;
}
a { color:inherit; text-decoration:none; }
.container { width:min(calc(100% - 40px), var(--max)); margin:auto; }
nav {
  position:fixed; z-index:50; top:0; width:100%;
  background:rgba(8,9,13,.76); backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
}
.nav-inner { height:68px; display:flex; align-items:center; justify-content:space-between; }
.logo { font-weight:850; letter-spacing:-.04em; }
.logo span { color:var(--accent); }
.nav-links { display:flex; gap:28px; list-style:none; color:var(--muted); font-size:.9rem; }
.nav-links a:hover { color:var(--text); }
.hero { min-height:88vh; display:flex; align-items:center; padding:130px 0 90px; }
.eyebrow {
  display:flex; align-items:center; gap:9px; color:var(--accent);
  font-size:.82rem; font-weight:750; letter-spacing:.1em; text-transform:uppercase;
  margin-bottom:22px;
}
.dot { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 14px rgba(110,231,160,.8); }
h1 { font-size:clamp(3.5rem,8vw,7.5rem); line-height:.92; letter-spacing:-.075em; max-width:900px; }
.gradient { background:linear-gradient(110deg,#fff,#8fb9ff 45%,#a68aff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p { max-width:680px; color:var(--muted); font-size:1.1rem; line-height:1.8; margin:30px 0; }
.buttons { display:flex; flex-wrap:wrap; gap:12px; }
.button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border:1px solid var(--border); border-radius:10px;
  font-weight:700; font-size:.9rem; transition:.2s ease;
}
.button:hover { transform:translateY(-2px); background:var(--card-hover); border-color:rgba(255,255,255,.2); }
.button.primary { background:var(--text); color:var(--bg); border-color:var(--text); }
section { padding:100px 0; }
.section-number { color:var(--accent); font-family:monospace; font-size:.8rem; margin-bottom:10px; }
h2 { font-size:clamp(2.1rem,5vw,3.5rem); line-height:1; letter-spacing:-.055em; }
.section-head { margin-bottom:45px; }
.section-head p { color:var(--muted); max-width:650px; margin-top:14px; }
.about-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:60px; }
.about-text { color:#c3c9d4; font-size:1.05rem; line-height:1.9; }
.about-text p+p { margin-top:18px; }
.facts { display:grid; gap:12px; }
.fact,.skill-card,.edu-card,.project,.detail-card {
  background:var(--card); border:1px solid var(--border); border-radius:16px;
}
.fact { padding:20px; }
.fact-label { color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; }
.fact-value { font-weight:750; margin-top:3px; }
.projects { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.project {
  min-height:330px; padding:28px; display:flex; flex-direction:column; justify-content:space-between;
  transition:.25s ease;
}
.project:hover { transform:translateY(-5px); border-color:rgba(110,168,255,.35); background:var(--card-hover); }
.project-top { display:flex; justify-content:space-between; gap:20px; margin-bottom:35px; }
.project-icon {
  width:46px; height:46px; display:grid; place-items:center; border-radius:12px;
  background:rgba(110,168,255,.1); color:var(--accent); font-family:monospace;
}
.project h3 { font-size:1.45rem; letter-spacing:-.03em; margin-bottom:10px; }
.project p { color:var(--muted); }
.tags { display:flex; flex-wrap:wrap; gap:7px; }
.tag { padding:5px 9px; border-radius:7px; background:rgba(255,255,255,.055); color:#b9c3d4; font: .76rem monospace; }
.timeline { border-left:1px solid var(--border); margin-left:8px; }
.timeline-item { position:relative; padding:0 0 50px 38px; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item:before {
  content:""; position:absolute; left:-5px; top:7px; width:9px; height:9px;
  border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px var(--bg);
}
.date { color:var(--accent); font: .8rem monospace; }
.timeline h3 { font-size:1.3rem; margin-top:5px; }
.company { color:var(--muted); margin-bottom:12px; }
.timeline ul { color:#b8c0cd; padding-left:18px; max-width:800px; }
.skills { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.skill-card,.edu-card { padding:25px; }
.skill-card h3 { margin-bottom:13px; }
.education { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.edu-card p { color:var(--muted); }
.edu-date { color:var(--accent); font: .78rem monospace; margin-top:15px; }
.contact { text-align:center; padding-bottom:80px; }
.contact h2 { max-width:700px; margin:0 auto 18px; }
.contact p { color:var(--muted); max-width:560px; margin:0 auto 28px; }
.contact-links { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; }
footer { border-top:1px solid var(--border); padding:25px 0; color:var(--muted); font-size:.78rem; }
.footer-inner { display:flex; justify-content:space-between; gap:20px; }

/* Project detail pages */
.project-hero { padding:150px 0 70px; }
.back { color:var(--muted); font-size:.88rem; display:inline-block; margin-bottom:35px; }
.back:hover { color:var(--text); }
.project-title { font-size:clamp(3rem,7vw,6.5rem); max-width:950px; }
.project-subtitle { color:var(--muted); max-width:720px; font-size:1.12rem; margin:25px 0; }
.project-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:50px; }
.image-placeholder {
  min-height:420px; border:1px dashed rgba(255,255,255,.22); border-radius:20px;
  background:
    linear-gradient(135deg,rgba(110,168,255,.06),rgba(155,123,255,.035)),
    repeating-linear-gradient(45deg,transparent 0 12px,rgba(255,255,255,.018) 12px 13px);
  display:flex; align-items:center; justify-content:center; text-align:center;
  color:#778195; padding:30px; margin:25px 0 75px;
}
.image-placeholder strong { display:block; color:#aab3c2; margin-bottom:6px; }
.detail-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:28px; }
.detail-card { padding:30px; }
.detail-card h2 { font-size:1.8rem; margin-bottom:15px; }
.detail-card p,.detail-card li { color:#bac2cf; }
.detail-card p+p { margin-top:14px; }
.detail-card ul { padding-left:20px; }
.detail-card li+li { margin-top:7px; }
.full { grid-column:1 / -1; }
.next-project {
  margin-top:70px; padding-top:35px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; gap:20px;
}
.next-project span { color:var(--muted); font-size:.8rem; }
.next-project a { font-size:1.15rem; font-weight:750; }
@media(max-width:800px) {
  .nav-links { display:none; }
  .about-grid,.projects,.skills,.education,.detail-grid { grid-template-columns:1fr; }
  .hero { min-height:auto; padding-top:145px; }
  .full { grid-column:auto; }
}
@media(max-width:500px) {
  .container { width:calc(100% - 28px); }
  .button { width:100%; }
  .footer-inner,.next-project { flex-direction:column; }
  .image-placeholder { min-height:280px; }
}

.inline-link { color:var(--text); border-bottom:1px solid rgba(110,168,255,.45); }
.inline-link:hover { color:var(--accent); border-color:var(--accent); }
