:root {
  --bg: #0b1220;
  --card: #111827;
  --primary: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(180deg, #020617, #0b1220);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
}

nav {
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2933;
  z-index: 100;
}

nav .nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}

.nav-links a {
  color: var(--text);
  margin-left: 20px;
  font-size: 14px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  transition: 0.3s;
  border-radius: 2px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding: 120px 20px;
  max-width: 1100px;
  margin: auto;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: var(--muted);
  margin: 20px 0 30px;
  font-size: 18px;
}

.hero .buttons a {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 14px;
  margin-right: 12px;
  font-weight: 600;
}

.primary {
  background: var(--primary);
  color: #020617;
}

.secondary {
  border: 1px solid #334155;
  color: var(--text);
}

.profile-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  padding: 4px;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  background: #020617;
  transition: transform 0.3s;
}

section {
  margin-top: 100px;
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.skill {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #1f2937;
  text-align: center;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #1f2937;
  transition: 0.3s;
}

.project:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.contact {
  background: linear-gradient(135deg, #020617, #111827);
  padding: 50px;
  border-radius: 24px;
  text-align: center;
}

footer {
  text-align: center;
  padding: 40px 0;
  color: #64748b;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 20px;
  }

  .hero .profile-img {
    margin: auto;
  }

  .hero h1 {
    font-size: 40px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    z-index: 99;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 15px 0;
    font-size: 24px;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}