/* ----------------- BASE ----------------- */
body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #000;
  color: #eee;
  line-height: 1.6;
}

/* ----------------- HEADER ----------------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  padding: 1rem 0;
  z-index: 100;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #b784b3;
  font-size: 1.6rem;
  margin: 0;
}

nav a {
  color: #eee;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #b784b3;
}

/* ----------------- HERO ----------------- */
.hero {
  position: relative;
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1570819178582-2f98bde9897f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
  z-index: 2;
}

.hero-text {
  flex: 1 1 60%;
  color: #fff;
}

.hero-image {
  flex: 1 1 35%;
  text-align: right;
  margin-left: 30px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content h2 {
  font-size: 3rem;
  white-space: nowrap;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

/* Responsive HERO */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-image {
    margin-left: 0;
    margin-top: 1rem;
    flex: none;
    width: 80%;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }
}

/* ----------------- BUTTON ----------------- */
.btn {
  background: #b784b3;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #a06ca0;
}

/* ----------------- SECTIONS ----------------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.section h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #b784b3;
}

/* ----------------- SERVICES ----------------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  flex: 1 1 250px;
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* ----------------- PORTFOLIO ----------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: #1a1a1a;
  height: 200px;
  border-radius: 10px;
}

/* ----------------- FOOTER ----------------- */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0,0,0,0.7);
  color: #aaa;
  font-size: 0.9rem;
}

/* ----------------- LIBRARY ----------------- */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.library-item {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.library-item:hover {
  transform: translateY(-5px);
}

.library-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.library-item h4 {
  color: #b784b3;
  margin-bottom: 0.5rem;
}

.library-item p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ----------------- CART ----------------- */
#cart {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1a1a1a;
  color: white;
  padding: 10px;
  border-radius: 8px;
  z-index: 100;
}

#cart h4 {
  text-align: center;
}

#cart ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cart-info {
  white-space: nowrap;
}

.cart-buttons {
  display: flex;
  gap: 6px;
}

.cart-btn {
  background: none;
  border: none;
  color: #b784b3;
  font-size: 1.2em;
  cursor: pointer;
  padding: 0;
}

.cart-btn:focus {
  outline: none;
}

.hidden {
  display: none;
}

/* ----------------- NAV RESPONSIVE ----------------- */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #eee;
  cursor: pointer;
}

#nav-links {
  display: flex;
}

@media (max-width: 768px) {
  #nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
  }

  #nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  nav a {
    margin: 1rem 0;
  }
}

/* ----------------- SCROLLBAR ----------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
  background-color: #b784b3;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a06d9e;
}
