/* =========================
   Base Reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* =========================
   Navigation
========================= */
.header {
  position: fixed;
  width: 100%;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a:hover {
  opacity: 0.7;
}

.cta-link {
  color: #00d9ff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* =========================
   Hero Section
========================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  animation: fadeUp 1s ease forwards;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero-subtitle {
  opacity: 0.7;
  max-width: 500px;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.4rem;
  background: #00d9ff;
  color: #000;
  border-radius: 6px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 217, 255, 0.2);
}

/* =========================
   Projects
========================= */
.projects {
  padding: 6rem 0;
}

.projects h2 {
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  padding: 2rem;
  background: #1a1d24;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* =========================
   Footer
========================= */
.footer {
  text-align: center;
  padding: 2rem 0;
  opacity: 0.6;
}

/* =========================
   Animations
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #111318;
    flex-direction: column;
    padding: 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}