:root{
  --bg: #0d1b2a;
  --bg-elev: #13253f;
  --card: #101f36;
  --text: #e6eef7;
  --muted: #9fb3c8;
  --accent: #00b4d8;   
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(0,180,216,.08), transparent 60%), var(--bg);
  color: var(--text);
  overflow-x: hidden; 
}


.navbar{
  position: sticky; top: 0; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(5,10,20,.9), rgba(5,10,20,.6));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav__brand{ font-weight:700; letter-spacing:.3px; color:var(--text); }
.nav__links{ display:flex; gap:20px; list-style:none; margin:0; padding:0; }
.nav__links a{
  color: var(--text); text-decoration:none; font-weight:600; opacity:.9;
}
.nav__links a:hover{ color: var(--accent); }
.nav__btn{
  padding:8px 12px; border-radius:10px;
  background: rgba(0,180,216,.12);
  color: var(--accent);
  border: 1px solid rgba(0,180,216,.35);
}


.hero{
  text-align:center; padding: 80px 22px 60px;
}
.hero h1{ font-size: clamp(32px, 6vw, 56px); margin:0 0 8px; }
.hero__sub{ color: var(--muted); max-width:780px; margin: 0 auto; }
.accent{ color: var(--accent); }
.hero__actions{ margin-top:26px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  border-radius:12px; padding:10px 16px; font-weight:700; letter-spacing:.2px;
  border:1px solid transparent; text-decoration:none; cursor:pointer;
}
.btn--accent{
  color:#071420; background: var(--accent);
  box-shadow: 0 10px 30px rgba(0,180,216,.25);
}
.btn--accent:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.btn--ghost{
  color: var(--text); background: transparent; border-color: rgba(255,255,255,.18);
}
.btn--ghost:hover{ border-color: rgba(255,255,255,.35); }


.section{ padding: 60px 22px; }
.section__title{
  text-align:center; font-size: clamp(26px, 4.5vw, 40px);
  margin: 0 0 24px; background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip:text; color: transparent;
}


.about__grid{
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card__header{
  display:flex; align-items:center; gap:10px; color: var(--text);
  font-weight:700; margin-bottom:12px; opacity:.95;
}


.about__map{ grid-column: span 6; min-height: 280px; }
.map{ width:100%; height:220px; border-radius: 10px; overflow:hidden; }


.about__photo{ grid-column: span 6; display:flex; flex-direction:column; }
.photo__wrap{
  display:grid; place-items:center;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:10px; padding:12px; height: 280px; overflow:hidden;
}
.photo__wrap img{ width:100%; height:100%; object-fit:cover; border-radius:8px; }


.about__hobbies{ grid-column: span 6; }
.list{ margin:0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 8px 0; }


.about__skills{ grid-column: span 6; overflow:hidden; }
.skills__viewport{
  position:relative; overflow:hidden; border-radius:10px; height: 86px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
}
.skills__row{
  position:absolute; top:0; left:0; height:100%;
  display:flex; align-items:center; gap:18px; padding: 0 12px;
  animation: marquee 28s linear infinite;
}
.skills__row--clone{ /* filled in with JS */ }
.skill{ flex:0 0 auto; display:grid; place-items:center; width:70px; height:70px; }
.skill img{ width:60px; height:60px; opacity:.92; filter: drop-shadow(0 2px 6px rgba(0,180,216,.25)); }

@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}


.projects__grid{
  max-width: 1200px; margin: 0 auto;
  display:grid; gap:18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.project{
  background: var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px; padding:14px; text-decoration:none; color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project:hover{
  transform: translateY(-4px);
  border-color: rgba(0,180,216,.45);
  box-shadow: 0 12px 34px rgba(0,180,216,.18);
}
.project img{ width:100%; height:180px; object-fit:cover; border-radius:10px; margin-bottom:10px; }
.project h3{ color: var(--text); margin:6px 0; }
.project p{ color: var(--muted); margin:0; }
.project:visited h3, .project:visited, .project:link { color: var(--text); }


.contact{
  max-width: 1200px; margin: 0 auto;
  display:grid; gap:22px; grid-template-columns: repeat(12, 1fr);
}
.contact__left {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: flex-start; 
}
.contact__form{ grid-column: span 7; display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.contact__tagline{ color: var(--muted); max-width: 520px; }
.contact__form label{ display:flex; flex-direction:column; gap:6px; font-weight:600; }
.contact__form input, .contact__form textarea{
  background: var(--bg-elev); color: var(--text); border:1px solid rgba(255,255,255,.08);
  border-radius:10px; padding:10px 12px; outline:none;
}
.contact__form input:focus, .contact__form textarea:focus{ border-color: rgba(0,180,216,.55); }
.contact__form .full{ grid-column: 1 / -1; }
.contact__form .btn{ grid-column: span 1; }


.footer{
  margin-top: 60px; padding: 26px 22px;
  background: linear-gradient(180deg, rgba(4,8,16,.7), rgba(4,8,16,.95));
  border-top:1px solid rgba(255,255,255,.06);
}
.footer__top{
  max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:20px;
}
.footer__left h3{ margin:0 0 6px; }
.footer__left a{ color: var(--text); text-decoration:none; }
.footer__right a{ color: var(--muted); text-decoration:none; margin-left:16px; }
.footer__right a:hover{ color: var(--accent); }
.footer hr{ margin: 16px 0; border:0; border-top:1px solid rgba(255,255,255,.08); }
.footer__bottom{
  max-width:1200px; margin:0 auto; display:flex; gap:14px;
}
.social{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px; color: var(--text);
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
}
.social:hover{ color: var(--accent); border-color: rgba(0,180,216,.45); }


@media (max-width: 980px){
  .about__map, .about__photo, .about__hobbies, .about__skills{ grid-column: span 12; }
  .contact__left{ grid-column: span 12; }
  .contact__form{ grid-column: span 12; }
}

@media (max-width: 768px) {
  .navbar { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 28px; }
  .projects__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
}

.footer__copyright {
  text-align: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
