@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap");

:root {
  --bg-dark: #0a0b1e;
  --bg-card: #161a30;
  --primary: #00dbde; /* Cyan */
  --secondary: #fc00ff; /* Neon Pink */
  --text: #ffffff;
  --text-gray: #aab2cd;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  list-style: none;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
}

/* --- Navbar (Mobile Optimized) --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(10, 11, 30, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--text-gray);
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.btn {
  padding: 10px 25px;
  border-radius: 50px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn:hover {
  box-shadow: 0 0 15px var(--primary);
  transform: scale(1.05);
}

/* Hamburger Menu (Visible only on Mobile) */
.menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

/* --- Layouts --- */
.container {
  padding: 60px 5%;
}
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}
.section-title span {
  color: var(--secondary);
}

/* Smart Grid (Responsive without Media Queries) */
.grid {
  display: grid;
  /* This magic line makes it responsive automatically */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* --- NFT Card (Glassmorphism) --- */
.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 15px;
  border: 1px solid var(--border);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.card-img {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  object-fit: cover;
}

.card-info {
  padding: 15px 5px 0;
}
.card-title {
  font-size: 18px;
  margin-bottom: 5px;
}
.card-author {
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.price-label {
  font-size: 12px;
  color: var(--text-gray);
  display: block;
}
.price-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(118, 75, 162, 0.2),
    transparent 50%
  );
  padding: 0 20px;
}
.hero h1 {
  font-size: 60px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero p {
  color: var(--text-gray);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
}

/* --- Details Page --- */
.details-container {
  display: flex;
  gap: 50px;
  align-items: center;
}
.details-img {
  width: 50%;
  border-radius: 20px;
}
.details-info {
  width: 50%;
}

/* --- Wallet Page --- */
.wallet-box {
  max-width: 400px;
  margin: 50px auto;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border);
}

/* --- MOBILE RESPONSIVENESS (The Magic) --- */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 70%;
    height: 100vh;
    background: rgba(22, 26, 48, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  } /* Slide In */

  .hero h1 {
    font-size: 40px;
  }
  .hero p {
    font-size: 16px;
  }

  .details-container {
    flex-direction: column;
  }
  .details-img {
    width: 100%;
  }
  .details-info {
    width: 100%;
  }
}
