:root{
  --bg: #050816;
  --bg-2: #0a1022;
  --card: rgba(16, 22, 42, 0.72);
  --stroke: rgba(255,255,255,0.08);
  --text: #f5f7ff;
  --muted: #9aa4bf;
  --primary: #7c3aed;
  --primary-2: #00e5ff;
  --success: #25D366;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,0.20), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(0,229,255,0.14), transparent 25%),
    linear-gradient(180deg, #040612 0%, #060a18 100%);
  color:var(--text);
  overflow-x:hidden;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(1180px, 92%);
  margin:0 auto;
}

.section{
  padding:110px 0;
}

.bg-blur{
  position:fixed;
  border-radius:50%;
  filter:blur(100px);
  z-index:-1;
  opacity:.45;
}

.blur-1{
  width:260px;
  height:260px;
  background:rgba(124,58,237,.35);
  top:70px;
  left:-60px;
}

.blur-2{
  width:260px;
  height:260px;
  background:rgba(0,229,255,.18);
  top:320px;
  right:-80px;
}

.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  backdrop-filter:blur(16px);
  background:rgba(4,8,18,0.55);
  border-bottom:1px solid rgba(255,255,255,0.05);
}

.nav{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.logo{
  font-size:1.3rem;
  font-weight:800;
  letter-spacing:.5px;
}

.logo span{
  color:var(--primary-2);
}

.nav-links{
  display:flex;
  gap:30px;
}

.nav-links a{
  color:var(--muted);
  font-weight:500;
  transition:.3s;
}

.nav-links a:hover{
  color:var(--text);
}

.nav-cta{
  padding:12px 18px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  background:linear-gradient(135deg, rgba(124,58,237,0.18), rgba(0,229,255,0.08));
  transition:.3s;
}

.nav-cta:hover{
  transform:translateY(-2px);
  border-color:rgba(0,229,255,0.35);
}

.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding-top:110px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  align-items:center;
  gap:60px;
}

.hero-tag{
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
  color:var(--primary-2);
  font-size:.92rem;
  margin-bottom:22px;
}

.hero-text h1{
  font-size:clamp(2.5rem, 6vw, 4.8rem);
  line-height:1.03;
  font-weight:900;
  letter-spacing:-2px;
  max-width:700px;
}

.hero-text h1 span{
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero-description{
  margin-top:22px;
  max-width:620px;
  font-size:1.05rem;
  line-height:1.8;
  color:var(--muted);
}

.hero-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:32px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 24px;
  border-radius:16px;
  font-weight:700;
  transition:.3s;
}

.btn-primary{
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  box-shadow:0 10px 30px rgba(124,58,237,0.35);
}

.btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 35px rgba(124,58,237,0.45);
}

.btn-secondary{
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.03);
  color:var(--text);
}

.btn-secondary:hover{
  transform:translateY(-3px);
  border-color:rgba(0,229,255,0.35);
}

.hero-metrics{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-top:34px;
  max-width:720px;
}

.metric-card{
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:var(--shadow);
}

.metric-card strong{
  display:block;
  font-size:1rem;
  margin-bottom:8px;
}

.metric-card span{
  color:var(--muted);
  font-size:.95rem;
  line-height:1.5;
}

.hero-image{
  display:flex;
  justify-content:center;
}

.photo-frame{
  position:relative;
  width:min(390px, 100%);
  padding:14px;
  border-radius:32px;
  background:linear-gradient(180deg, rgba(124,58,237,.22), rgba(0,229,255,.08));
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 30px 70px rgba(0,0,0,0.38);
}

.photo-frame img{
  width:100%;
  border-radius:24px;
  object-fit:cover;
  background:linear-gradient(180deg, #10192e, #0b1021);
}

.photo-glow{
  position:absolute;
  inset:auto 20px -20px 20px;
  height:70px;
  background:linear-gradient(90deg, rgba(124,58,237,.45), rgba(0,229,255,.28));
  filter:blur(35px);
  z-index:-1;
}

.section-title-wrap{
  max-width:820px;
  margin:0 auto 42px;
  text-align:center;
}

.section-label{
  display:inline-block;
  margin-bottom:14px;
  color:var(--primary-2);
  font-size:.92rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.section-title-wrap h2,
.contact-box h2{
  font-size:clamp(2rem, 4vw, 3.4rem);
  line-height:1.1;
  letter-spacing:-1.5px;
}

.section-title-wrap p,
.contact-box p{
  margin-top:14px;
  color:var(--muted);
  line-height:1.8;
}

.about-box{
  max-width:900px;
  margin:0 auto;
  padding:34px;
  border-radius:28px;
  background:var(--card);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
}

.about-box p{
  color:var(--muted);
  font-size:1.02rem;
  line-height:1.9;
}

.about-box p + p{
  margin-top:18px;
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}

.project-card{
  overflow:hidden;
  border-radius:28px;
  background:var(--card);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
  transition:.35s;
}

.project-card:hover{
  transform:translateY(-10px);
  border-color:rgba(0,229,255,0.20);
}

.project-card.highlight{
  box-shadow:0 20px 50px rgba(124,58,237,0.18);
}

.project-image{
  height:220px;
  overflow:hidden;
}

.project-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.5s;
}

.project-card:hover .project-image img{
  transform:scale(1.06);
}

.project-content{
  padding:24px;
}

.project-badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  color:var(--primary-2);
  font-size:.85rem;
  font-weight:700;
  margin-bottom:16px;
}

.project-badge.featured{
  background:rgba(124,58,237,.15);
  color:#c9a8ff;
}

.project-content h3{
  font-size:1.35rem;
  margin-bottom:12px;
}

.project-content p{
  color:var(--muted);
  line-height:1.75;
  margin-bottom:20px;
}

.project-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:22px;
}

.project-tags span{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.05);
  color:#dce3f8;
  font-size:.86rem;
}

.project-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--primary-2);
  font-weight:700;
}

.contact-box{
  max-width:900px;
  margin:0 auto;
  padding:40px;
  text-align:center;
  border-radius:30px;
  background:
    linear-gradient(180deg, rgba(124,58,237,0.14), rgba(0,229,255,0.05)),
    var(--card);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
}

.contact-box .btn{
  margin-top:24px;
}

.reveal{
  opacity:1;
  transform:translateY(0);
  transition:opacity .8s ease, transform .8s ease;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

.delay-2{
  transition-delay:.15s;
}

.delay-3{
  transition-delay:.3s;
}

@media (max-width: 1024px){
  .hero-grid,
  .projects-grid{
    grid-template-columns:1fr;
  }

  .hero{
    padding-top:130px;
  }

  .hero-image{
    order:-1;
  }

  .photo-frame{
    max-width:320px;
  }
}

@media (max-width: 768px){
  .nav{
    flex-wrap:wrap;
    justify-content:center;
    padding:14px 0;
  }

  .nav-links{
    gap:16px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .hero-metrics{
    grid-template-columns:1fr;
  }

  .section{
    padding:90px 0;
  }

  .about-box,
  .contact-box{
    padding:24px;
  }

  .project-image{
    height:200px;
  }
}

@media (max-width: 540px){
  .hero-text h1{
    letter-spacing:-1px;
  }

  .btn{
    width:100%;
  }
}

.projects-footer{
  margin-top:50px;
  display:flex;
  justify-content:center;
}

.btn-outline{
  padding:14px 28px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.15);
  color:var(--text);
  background:rgba(255,255,255,0.03);
  font-weight:600;
  transition:0.3s;
}

.btn-outline:hover{
  transform:translateY(-3px);
  border-color:var(--primary-2);
  color:var(--primary-2);
  box-shadow:0 0 25px rgba(0,229,255,0.2);
}

.btn-back{
  position:fixed;
  top:20px;
  left:20px;
  padding:12px 18px;
  border-radius:12px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  color:var(--text);
  font-weight:600;
  text-decoration:none;
  backdrop-filter:blur(10px);
  transition:0.3s;
  z-index:999;
}

.btn-back:hover{
  transform:translateY(-3px);
  border-color:var(--primary-2);
  color:var(--primary-2);
  box-shadow:0 0 20px rgba(0,229,255,0.2);
}