* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.menu {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.menu a {
  color: var(--muted);
  transition: 0.2s;
}

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

.hero {
  padding: 5rem 0 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  background: rgba(56, 189, 248, 0.08);
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #082f49;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.08);
}

.hero-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-bottom: 0.5rem;
}

.hero-card-text {
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-card li {
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
}

section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-text {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 700px;
}

.about-box,
.contact-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.skill {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(30, 41, 59, 0.8);
  font-size: 0.95rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
}

.project-content {
  padding: 1.2rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
}

.project-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.project-links {
  display: flex;
  gap: 1rem;
  font-weight: bold;
}

.project-links a {
  color: var(--primary);
}

.project-links a:hover {
  text-decoration: underline;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.hidden {
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-content,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  section {
    padding: 3rem 0;
  }
}
