:root {
  --bg: #0f1222;
  --card: #151932;
  --text: #e9ecff;
  --muted: #a6add3;
  --accent: #6c7cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  color: var(--text);
  background: linear-gradient(180deg, #0b0e1a, #0f1222);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(15, 18, 34, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

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

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.btn {
  background: var(--accent);
  color: white !important;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  display: inline-block;
  text-decoration: none;
}

.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin: 0.2rem 0 1rem;
}

.hero p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  background: linear-gradient(90deg, #6c7cff, #88b4ff);
  color: transparent;
  background-clip: text;
}

.services .grid,
.projects .grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--text);
}

.card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0.6rem;
}

.tag {
  font-size: 0.8rem;
  opacity: 0.8;
}

.service-detail .bullets, p {
  padding-left: 1rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 120px 1fr;
  align-items: center;
}

.grid img:hover {
  transform: scale(1.05);
  transition: transform 1s;
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.contact form {
  display: grid;
  gap: 0.7rem;
  max-width: 520px;
}

input,
textarea {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
}

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

input{
  border: none;
}

.socials a {
  color: var(--muted);
  text-decoration: none;
}

.socials a:hover {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 3rem;
  padding: 1rem 0;
  color: var(--muted);
  text-align: center;
}

.btn{
  border: none;
  cursor: pointer;
}

@media (max-width: 700px) {
  nav a:not(.btn) {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .about-grid .avatar {
    margin: 0 auto 1rem auto;
    display: block;
  }

  .about-grid div {
    padding: 0;
  }
}
