:root {
  --bg:#0f1220;
  --card:#161a2f;
  --muted:#9aa3b2;
  --text:#eef2ff;
  --accent:#7c3aed;
  --accent-2:#22d3ee;
  --max:1100px;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,.20), transparent 60%),
              radial-gradient(1000px 400px at -10% 10%, rgba(34,211,238,.18), transparent 60%),
              var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-radius: 12px; }

.container {
  max-width: var(--max);
  margin: auto;
  padding: 0 20px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px) saturate(180%);
  background: rgba(15,18,32,0.7);
  border-bottom: 1px solid #ffffff0d;
  z-index: 50;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: larger;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 10px;
}

nav a:hover {
  background: rgba(124,58,237,.12);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #081022;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* HERO */
.hero-section {
  padding: 90px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: center;
}

.hero-section h1 {
  font-size: clamp(32px, 6vw, 54px);
  margin: 0 0 14px;
}

.hero-section p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--muted);
}

.tag {
  padding: 8px 12px;
  background: rgba(124,58,237,.14);
  color: #d7c6ff;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

.hero-image-box {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg,rgba(124,58,237,.35),rgba(34,211,238,.35));
  padding: 8px;
}

.hero-image-box img {
  border-radius: 18px;
  height: 250px;
  width: 1000px;
}

/* SECTIONS */
section {
  padding: 70px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(22px, 4vw, 32px);
  margin: 0;
}

.text-muted {
  color: var(--muted);
}

/* ABOUT */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* EDUCATION & SKILLS */
.three-column {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #232740;
  overflow: hidden;
  margin-bottom: 14px;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.img-box {
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0e1a;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* CONTACT */
.contact-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}

form {
  display: grid;
  gap: 12px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  background: #0b0f22;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: var(--text);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* FOOTER */
footer {
  padding: 36px 0;
  text-align: center;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .three-column {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  nav ul { display: none; }
  .projects-grid,
  .three-column {
    grid-template-columns: 1fr;
  }
}
