:root {
  --bg: #060b14;
  --bg-soft: #0b1220;
  --card: #0f1929;
  --card-2: #121f33;
  --text: #f8fafc;
  --muted: #aab6c7;
  --line: rgba(255, 255, 255, 0.09);
  --cyan: #2dd4bf;
  --blue: #38bdf8;
  --green: #a3e635;
  --accent-dark: #061019;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  --radius: 26px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

.site-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.09;
  pointer-events: none;
  z-index: -1;
}
.glow-one { background: var(--cyan); top: 4%; left: -180px; }
.glow-two { background: var(--blue); right: -180px; top: 48%; }

.container { width: min(92%, var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.03)); border-block: 1px solid var(--line); }
.section-tag { color: var(--green); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; margin-bottom: 12px; }
.section-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.12; max-width: 850px; }
.section-subtitle { color: var(--muted); max-width: 480px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 46px; }
.gradient-text { background: linear-gradient(120deg, var(--green), var(--cyan), var(--blue)); background-clip: text; -webkit-background-clip: text; color: transparent; }

.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(6, 11, 20, .82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-container { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: .04em; }
.logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .94rem; font-weight: 600; transition: .25s ease; }
.nav-links a:hover { color: var(--text); }
.menu-toggle { display: none; border: 0; color: var(--text); background: transparent; font-size: 1.7rem; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 999px; font-weight: 800; transition: .25s ease; border: 1px solid transparent; }
.btn:hover { transform: translateY(-3px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; background: var(--text); color: var(--accent-dark); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--cyan)); color: var(--accent-dark); box-shadow: 0 12px 35px rgba(45, 212, 191, .18); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.025); }

.hero-section { min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 95px 0 85px; }
.hero-content { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
.hero-text h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.045em; max-width: 900px; }
.hero-lead { margin-top: 24px; color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.hero-lead strong { color: var(--text); }
.hero-actions, .social-links { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions { margin-top: 30px; }
.social-links { margin-top: 22px; }
.social-links a { color: var(--muted); font-size: .92rem; border-bottom: 1px solid transparent; transition: .2s; }
.social-links a:hover { color: var(--green); border-color: var(--green); }
.hero-stats { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 720px; }
.hero-stats div { padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); border-radius: 18px; }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { color: var(--text); font-size: 1rem; }
.hero-stats span { color: var(--muted); font-size: .78rem; margin-top: 3px; }

.hero-visual { position: relative; max-width: 470px; justify-self: end; }
.hero-card { position: relative; border: 1px solid var(--line); border-radius: 34px; padding: 18px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.018)); box-shadow: var(--shadow); }
.hero-image-wrap { overflow: hidden; border-radius: 26px; background: var(--card); }
.hero-image { width: 100%; height: 520px; object-fit: cover; }
.status-pill { position: absolute; left: 36px; bottom: 34px; background: rgba(6,11,20,.84); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: .82rem; font-weight: 700; backdrop-filter: blur(12px); display: flex; align-items: center; gap: 8px; }
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.floating-card { position: absolute; background: rgba(15,25,41,.92); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); backdrop-filter: blur(14px); min-width: 200px; }
.floating-card small, .floating-card strong { display: block; }
.floating-card small { color: var(--muted); font-size: .72rem; margin-bottom: 4px; }
.floating-card strong { font-size: .9rem; }
.card-top { top: 42px; left: -85px; }
.card-bottom { right: -60px; bottom: 84px; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-image-wrap { position: relative; border: 1px solid var(--line); border-radius: 30px; padding: 16px; background: rgba(255,255,255,.025); }
.about-image { width: 100%; height: 520px; object-fit: cover; border-radius: 23px; }
.about-badge { position: absolute; right: -25px; bottom: 30px; padding: 18px 24px; border-radius: 18px; background: var(--text); color: var(--accent-dark); box-shadow: var(--shadow); }
.about-badge span, .about-badge strong { display: block; }
.about-badge span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.about-badge strong { font-size: 1.15rem; }
.about-text > p:not(.section-tag) { color: var(--muted); margin-top: 18px; }
.about-highlights { margin-top: 30px; display: grid; gap: 12px; }
.about-highlights div { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 16px; }
.about-highlights span { color: var(--green); font-weight: 800; }
.about-highlights p { color: var(--text); }

.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.project-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s ease, border-color .3s ease; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(45,212,191,.35); }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; }
.project-image { min-height: 300px; background: linear-gradient(135deg, #101c2d, #17263c); overflow: hidden; }
.project-featured .project-image { min-height: 430px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image-placeholder { display: grid; place-items: center; color: #7f8da0; border-bottom: 1px solid var(--line); position: relative; }
.project-image-placeholder::before { content: ""; position: absolute; inset: 22px; border: 1px dashed rgba(255,255,255,.15); border-radius: 18px; }
.project-image-placeholder span { position: relative; z-index: 1; font-size: .86rem; }
.project-content { padding: 28px; }
.project-meta { display: flex; gap: 10px; margin-bottom: 14px; }
.project-meta span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.project-content h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.65rem; margin-bottom: 10px; }
.project-content p { color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.project-tags span { padding: 7px 11px; border-radius: 999px; background: rgba(163,230,53,.07); border: 1px solid rgba(163,230,53,.16); color: #dff9b0; font-size: .78rem; }
.project-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.project-link { font-weight: 800; font-size: .9rem; color: var(--muted); }
.project-link:hover, .primary-link { color: var(--green); }
.project-coming { display: flex; align-items: center; min-height: 300px; background: linear-gradient(135deg, rgba(45,212,191,.09), rgba(56,189,248,.07)); }

.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.skill-card { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.skill-card span { color: var(--green); font-size: .78rem; font-weight: 800; }
.skill-card h3 { margin: 10px 0 8px; font-family: "Space Grotesk", sans-serif; }
.skill-card p { color: var(--muted); font-size: .92rem; }

.contact-section { padding-top: 110px; }
.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; padding: 44px; border-radius: 32px; background: linear-gradient(145deg, var(--card), var(--card-2)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-text > p:not(.section-tag) { color: var(--muted); margin-top: 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.contact-links a { color: var(--green); font-weight: 700; font-size: .9rem; }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border-radius: 15px; border: 1px solid var(--line); padding: 15px 16px; color: var(--text); background: rgba(6,11,20,.72); outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(45,212,191,.55); }
.form-btn { cursor: pointer; border: 0; }

.footer { border-top: 1px solid var(--line); margin-top: 100px; }
.footer-content { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .86rem; }
.back-top { color: var(--blue); font-weight: 800; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .hero-content, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; margin-top: 20px; }
  .project-featured { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-image-wrap { max-width: 620px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; display: none; background: rgba(6,11,20,.98); border-bottom: 1px solid var(--line); }
  .nav.active { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 4%; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-cta { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .hero-stats { grid-template-columns: 1fr; }
  .floating-card { position: static; margin-top: 14px; }
}

@media (max-width: 620px) {
  .section { padding: 82px 0; }
  .hero-section { padding-top: 70px; }
  .hero-text h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-image { height: 400px; }
  .about-image { height: 390px; }
  .about-badge { right: 18px; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; padding: 22px 0; }
}