:root {
  --bg: #0f1221;
  --card: #11131d;
  --muted: #9aa0b4;
  --accent: #7c9cff;
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 14px;
  --container: 1100px;
  --transition: 300ms;
  font-family: Inter, system-ui, Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #08090f);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Layout container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px;
}

/* Header */
.site-header {
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.02), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--accent);
  text-decoration: none
}

/* Header navigation links */
.nav a {
  display: inline-block;
  padding: 12px 20px;
  /* same as contact button */
  border-radius: 10px;
  text-decoration: none;
  margin-left: 16px;
  /* equal spacing */
  color: #071026;
  font-weight: 500;
  background: var(--accent);
  transition: all 0.3s ease;
  text-align: center;
}

.nav a:hover {
  background: linear-gradient(90deg, #5ec5ff, var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.nav .cta {
  font-weight: 600;
}

.nav .active {
  color: #fff;
  background: rgba(124, 156, 255, 0.3);
}

/* Responsive nav toggle (small screens) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px
}

@media (max-width:800px) {
  .nav a:not(.cta) {
    display: none
  }

  .nav-toggle {
    display: inline-block
  }

  .nav.open a {
    display: block;
    padding: 12px 0;
    margin-left: 0
  }
}

/* Hero */
.hero {
  padding: 56px 0
}

.hero-inner {
  display: flex;
  gap: 40px;
  align-items: center
}

.hero-text {
  flex: 1
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 12px
}

.lead {
  color: var(--muted);
  margin-bottom: 18px
}

.accent {
  color: var(--accent)
}

.hero-image img {
  width: 300px;
  /* increased from 220px */
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

@media (max-width:900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center
  }

  .hero-image img {
    width: 220px;
  }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  transition: transform var(--transition), box-shadow var(--transition)
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6)
}

.card h3 {
  margin: 10px 0 6px
}

.card p {
  color: var(--muted);
  font-size: 14px
}

/* All project links like contact button */
.card .link {
  display: inline-block;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  background: var(--accent);
  color: #071026;
  transition: all 0.3s ease;
}

.card .link:hover {
  background: linear-gradient(90deg, #5ec5ff, var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Simple footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px 0;
  margin-top: 40px
}

.site-footer p {
  margin: 0;
  color: var(--muted)
}

.site-footer .social a {
  margin-left: 14px;
  color: var(--muted);
  text-decoration: none
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.about-avatar {
  width: 350px;
  max-width: 100%;
  border-radius: 12px;
  justify-self: end;
}

@media (max-width:800px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar {
    margin: 0 auto;
    width: 250px;
  }
}

/* Skills bars */
.skill-list {
  display: grid;
  gap: 14px;
  margin-top: 18px
}

.bar {
  background: var(--glass);
  border-radius: 999px;
  height: 12px;
  overflow: hidden
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #5ec5ff);
  transition: width 800ms ease
}

/* Projects grid */
.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.project-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition)
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover
}

.project-card:hover {
  transform: translateY(-8px)
}

.project-body {
  padding: 12px
}

/* Contact form */
.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted)
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
  color: #fff;
}

/* All buttons consistent (like contact button) */
.btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #071026;
  border: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #5ec5ff, var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn.ghost {
  background: transparent;
  border: 2px solid rgba(124, 156, 255, 0.5);
  color: var(--accent);
}

.btn.ghost:hover {
  background: var(--accent);
  color: #071026;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn.small {
  padding: 12px 20px;
  font-size: 16px;
}

/* Utility */
.section-title {
  margin: 8px 0 12px
}

.lead-small {
  color: var(--muted)
}

/* small screens padding tweak */
@media (max-width:600px) {
  .container {
    padding: 18px
  }
}

.detail-box {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .4s ease;
  margin-top: 10px;
  background: var(--glass);
  padding: 0 10px;
  border-radius: 8px;
}

.detail-box.show {
  max-height: 300px;
  opacity: 1;
  padding: 10px;
}