﻿* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #05070a;
  font-family: system-ui, Inter, Arial, sans-serif;
  color: #e9f1ff;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;

  background: radial-gradient(50% 70% at 10% 50%, rgba(120,255,224,0.25), transparent),
              radial-gradient(60% 90% at 90% 40%, rgba(160,210,255,0.35), transparent),
              radial-gradient(40% 60% at 50% 90%, rgba(100,255,240,0.2), transparent),
              linear-gradient(180deg, #04060a, #05070a 60%, #030509);
  background-repeat: no-repeat;
  background-size: cover;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px 60px;
  background: rgba(10, 14, 20, 0.8);
  border-left: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  min-height: 100vh;
}

header {
  padding: 20px 0 30px 0;
}

nav {
  display: flex;
  justify-content: left;
  gap: 40px;
}

nav a {
  color: #b9d8ff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  transition: color 0.2s;
}

nav a:hover {
  color: #ffffff;
}

nav a.active {
  border-bottom: 2px solid #6fe0ff;
  color: white;
}

h1, h2, h3 {
  margin-top: 0;
}

.section {
  margin-bottom: 50px;
}

p {
  color: #cfe6ff;
  line-height: 1.6;
  max-width: 800px;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.about-photo {
  width: 100%;
  height: 260px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  color: #7aa7ff;
}

.skill-list {
  margin-top: 15px;
  color: #d6ecff;
}

.skill-list li {
  margin-bottom: 6px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 20px;
}

.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 15px;
  text-decoration: none;
  color: white;
  transition: transform .15s ease, background .2s;
}

.project-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
}

.project-thumb {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
  object-fit: cover;
}

.project-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.project-desc {
  color: #cfe6ff;
  font-size: .9rem;
  margin-bottom: 8px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(120,255,224,0.15);
  border: 1px solid rgba(120,255,224,0.3);
  color: #bafff3;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: .75rem;
}

.contact-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
}

@media (max-width: 800px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .about-photo {
    height: 200px;
    object-fit: contain;
  }
}
