:root{
  --bg:#0a0e14;
  --bg-alt:#111821;
  --card:#161e29;
  --card-hover:#1c2633;
  --text:#e6edf3;
  --text-muted:#94a3b8;
  --muted:#64748b;
  --accent:#3b82f6;
  --accent-glow:rgba(59,130,246,0.15);
  --accent2:#10b981;
  --border:#1e293b;
  --border-light:#334155;
  --shadow:0 4px 20px rgba(0,0,0,0.4);
  --shadow-hover:0 8px 30px rgba(0,0,0,0.5);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background:linear-gradient(135deg, var(--bg) 0%, #0f141c 100%);
  color:var(--text);
  line-height:1.6;
  min-height:100vh;
}

/* Navigation */
nav{
  position:fixed;top:0;left:0;right:0;
  display:flex;justify-content:space-between;align-items:center;
  padding:1rem 5%;
  background:rgba(10,14,20,0.9);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  z-index:100;
}
nav .logo{
  font-weight:800;color:var(--accent);
  font-size:1.2rem;
  letter-spacing:-0.5px;
}
nav ul{display:flex;gap:2.5rem;list-style:none;}
nav a{
  color:var(--text-muted);
  text-decoration:none;
  font-size:0.9rem;
  font-weight:500;
  transition:all .25s ease;
  position:relative;
}
nav a:hover{color:var(--accent);}
nav a::after{
  content:'';
  position:absolute;bottom:-4px;left:0;
  width:0;height:2px;
  background:var(--accent);
  transition:width .25s ease;
}
nav a:hover::after{width:100%;}

section{padding:6rem 5% 4rem;max-width:1200px;margin:0 auto;}

/* Hero Section */
.hero{
  min-height:90vh;
  display:flex;flex-direction:column;justify-content:center;
  text-align:left;
  position:relative;
}
.hero::before{
  content:'';
  position:absolute;top:20%;right:10%;
  width:300px;height:300px;
  background:radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter:blur(60px);
  z-index:-1;
}
.hero p.kicker{
  color:var(--accent2);
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:0.8rem;
  margin-bottom:1rem;
}
.hero h1{
  font-size:3.5rem;
  margin-bottom:1.5rem;
  line-height:1.1;
  letter-spacing:-1px;
}
.hero h1 span{
  background:linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero p.desc{
  color:var(--text-muted);
  max-width:600px;
  font-size:1.15rem;
  margin-bottom:2.5rem;
  line-height:1.8;
}
.btn-group{display:flex;gap:1rem;flex-wrap:wrap;}
.btn{
  padding:0.85rem 2rem;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  transition:all .3s ease;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
}
.btn.primary{
  background:linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color:#fff;
  border:none;
  box-shadow:0 4px 15px rgba(59,130,246,0.3);
}
.btn.primary:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(59,130,246,0.4);
}
.btn.secondary{
  color:var(--text);
  border:1px solid var(--border-light);
  background:transparent;
}
.btn.secondary:hover{
  border-color:var(--accent);
  color:var(--accent);
  background:rgba(59,130,246,0.05);
}

/* Section Titles */
h2.section-title{
  font-size:2.5rem;
  margin-bottom:0.5rem;
  letter-spacing:-0.5px;
}
p.section-sub{
  color:var(--text-muted);
  font-size:1.1rem;
  margin-bottom:3rem;
}

/* About Section */
.about-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:3rem;
  align-items:start;
}
.about-grid p{
  color:var(--text-muted);
  margin-bottom:1.2rem;
  font-size:1.05rem;
  line-height:1.8;
}
.info-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.8rem;
  box-shadow:var(--shadow);
}
.info-card .row{
  display:flex;
  justify-content:space-between;
  padding:0.8rem 0;
  border-bottom:1px solid var(--border);
  font-size:0.95rem;
}
.info-card .row:last-child{border-bottom:none;}
.info-card .row span:first-child{color:var(--muted);}
.info-card .row span:last-child{
  color:var(--text);
  font-weight:500;
}

/* Projects Section */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
  gap:2rem;
}
.project-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:2rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  transition:all .35s ease;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.project-card::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  background:linear-gradient(90deg, var(--accent) 0%, #60a5fa 100%);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .35s ease;
}
.project-card:hover{
  transform:translateY(-8px);
  border-color:var(--border-light);
  background:var(--card-hover);
  box-shadow:var(--shadow-hover);
}
.project-card:hover::before{transform:scaleX(1);}

.project-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
}
.project-header h3{
  font-size:1.25rem;
  font-weight:700;
  color:var(--text);
  line-height:1.3;
}

.status-badge{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  padding:0.35rem 0.75rem;
  border-radius:20px;
  font-size:0.75rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.5px;
  flex-shrink:0;
}
.status-badge.completed{
  background:rgba(16,185,129,0.1);
  color:var(--accent2);
  border:1px solid rgba(16,185,129,0.2);
}
.status-badge.in-progress{
  background:rgba(245,158,11,0.1);
  color:#f59e0b;
  border:1px solid rgba(245,158,11,0.2);
}
.status-icon{
  width:8px;height:8px;
  border-radius:50%;
  background:currentColor;
}
.status-badge.in-progress .status-icon{
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{opacity:1;}
  50%{opacity:0.5;}
}

.project-card p.description{
  color:var(--text-muted);
  font-size:0.95rem;
  line-height:1.7;
  flex-grow:1;
}

.tech-list{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-top:0.5rem;
}
.tech-item{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  background:var(--bg-alt);
  color:var(--text-muted);
  font-size:0.8rem;
  padding:0.4rem 0.8rem;
  border-radius:8px;
  border:1px solid var(--border);
  transition:all .2s ease;
}
.tech-item:hover{
  border-color:var(--accent);
  color:var(--accent);
  background:rgba(59,130,246,0.05);
}
.tech-icon{
  width:14px;height:14px;
  opacity:0.7;
}

.project-card a{
  color:var(--accent);
  text-decoration:none;
  font-size:0.9rem;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  margin-top:0.5rem;
  transition:gap .2s ease;
}
.project-card a:hover{
  gap:0.8rem;
  text-decoration:underline;
}

/* Skills Section */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:2rem;
}
.skill-block{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.8rem;
  transition:all .3s ease;
  box-shadow:var(--shadow);
}
.skill-block:hover{
  transform:translateY(-4px);
  border-color:var(--border-light);
  box-shadow:var(--shadow-hover);
}
.skill-block h4{
  color:var(--accent2);
  margin-bottom:1rem;
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:700;
}
.skill-block ul{list-style:none;}
.skill-block li{
  color:var(--text-muted);
  font-size:0.95rem;
  padding:0.5rem 0;
  display:flex;
  align-items:center;
  gap:0.6rem;
}
.skill-block li::before{
  content:'▹';
  color:var(--accent);
  font-size:1rem;
}

/* Contact Section */
#contact .btn-group{
  justify-content:center;
}

/* Footer */
footer{
  text-align:center;
  padding:4rem 5%;
  color:var(--muted);
  border-top:1px solid var(--border);
  font-size:0.9rem;
  background:var(--bg-alt);
}
footer p{margin-bottom:0.5rem;}
.footer-note{font-size:0.85rem;opacity:0.7;}
footer a{color:var(--accent);text-decoration:none;}

/* Responsive */
@media (max-width:768px){
  nav ul{display:none;}
  .hero h1{font-size:2.5rem;}
  .about-grid{grid-template-columns:1fr;}
  .projects-grid{grid-template-columns:1fr;}
  .skills-grid{grid-template-columns:1fr;}
  section{padding:4rem 5% 3rem;}
}

/* Additional Styles for Hero Image */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.hero-content {
  max-width: 650px;
}

.hero-image {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: #111827;
  box-shadow:
    0 0 0 8px rgba(59, 130, 246, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero .btn-group {
    justify-content: center;
  }

  .hero-image {
    width: min(280px, 80vw);
    order: -1;
  }
}