:root {
  --primary: #007acc;
  --bg-dark: #1e1e1e;
  --glass: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --text-soft: #cccccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--white);
  font-family: 'Roboto Mono', monospace;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

header h1 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 28px;
}

nav a {
  margin: 0 12px;
  color: var(--text-soft);
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: var(--primary);
}

section {
  padding: 100px 40px 60px;
  max-width: 1000px;
  margin: auto;
}

.hero {
  text-align: center;
  margin-top: 80px;
  animation: fadeIn 2s ease-in;
}

.hero h2 {
  font-size: 36px;
  color: var(--primary);
}

.hero p {
  margin-top: 10px;
  font-size: 18px;
  color: var(--text-soft);
}

.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 122, 204, 0.3);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: var(--glass);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 122, 204, 0.2);
}

footer {
  text-align: center;
  padding: 30px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  font-size: 14px;
  color: var(--text-soft);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    padding: 15px;
  }
  nav {
    margin-top: 10px;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
}
