/* ===========================
   GLOBAL BODY STYLES
   =========================== */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #f5f5f5;
  background: url('../images/background.png') no-repeat center center fixed;
  background-size: cover;
}

/* ===========================
   OVERLAY
   =========================== */

.overlay {
  background: rgba(0,0,0,0.75);
  min-height: 100vh;
}

/* ===========================
   NAVIGATION
   =========================== */

nav {
  display: flex;
  gap: 1%;
  padding: 1% 5%;
  background: rgba(0,0,0,0.8);
  position: sticky;
  top: 0;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  padding: 0.3vw 0;
  font-size: clamp(14px, 1vw, 18px);
}

/* ===========================
   DROPDOWN MENUS
   =========================== */

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  min-width: 180px;
  box-shadow: 0 0.15vw 0.4vw rgba(0,0,0,0.7);
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 0.6vw 1vw;
  color: #f5f5f5;
}

.dropdown-content a:hover {
  background: #333;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===========================
   SOCIAL ICONS
   =========================== */

.social-icons {
  margin-left: auto;
  display: flex;
  gap: 1vw;
  align-items: center;
}

.social-icons img {
  width: clamp(18px, 1.5vw, 28px);
  height: auto;
  transition: opacity 0.2s;
}

.social-icons img:hover {
  opacity: 0.6;
}

/* ===========================
   TITLE
   =========================== */

.spooky-title {
  font-family: 'Metal Mania', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: #ff4444;
  font-weight: 700;
  -webkit-text-stroke: 1px #000;
  text-shadow: 0 0 4px #ff0000, 0 0 8px #660000;
  margin-top: 3vh;
  padding: 0 3%;
}

/* ===========================
   LOGO
   =========================== */

.logo {
  display: block;
  margin: 1.5vw auto 0 auto;
  width: clamp(70px, 6vw, 120px);
  height: auto;
}

/* ===========================
   WELCOME TEXT
   =========================== */

.welcome-text {
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  text-align: center;
  color: #f5f5f5;
  margin-top: 1.5vw;
  line-height: 1.8;
  text-shadow: 0 0 5px #000;
  max-width: min(90%, 900px);
  padding: 0 3%;
  margin-left: auto;
  margin-right: auto;
}

.welcome-text p {
  margin-bottom: 1.2rem;
}

/* ===========================
   CONTACT FORM
   =========================== */

.contact-container {
  width: min(90%, 700px);
  margin: 2vw auto;
  background: rgba(0,0,0,0.5);
  padding: clamp(15px, 2vw, 30px);
  border-radius: 12px;
  box-shadow: 0 0 10px #000;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}

input,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 0.9rem;
  background: #ff4444;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  cursor: pointer;
  text-shadow: 0 0 5px #000;
}

button:hover {
  background: #cc0000;
}

/* ===========================
   HERO
   =========================== */

.hero {
  width: min(95%, 1200px);
  margin: 0 auto;
  padding: 0 2%;
}

.hero p {
  line-height: 1.8;
  text-align: left;
  margin-bottom: 1rem;
}

/* ===========================
   CASE GRID
   =========================== */

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ===========================
   CASE ITEM
   =========================== */

.case-item {
  text-align: center;
  background: #111319;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.case-item:hover {
  transform: scale(1.03);
}

.case-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.case-item a {
  color: #9f6cff;
  font-size: 1rem;
  text-decoration: none;
}

/* ===========================
   FOLDER ICON
   =========================== */

.folder-icon {
  width: clamp(35px, 3vw, 60px);
  display: block;
  margin: 0 auto 0.8rem;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  text-align: center;
  padding: 1.5rem;
  color: #ccc;
  font-size: 0.75rem;
  margin-top: 2rem;
}

/* ===========================
   MOBILE
   =========================== */

@media (max-width: 768px) {

  body {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-attachment: scroll !important;
  }

  .overlay {
    min-height: 100%;
    padding-bottom: 2rem;
  }

  nav {
    justify-content: center;
    gap: 3vw;
  }

  .social-icons {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 10px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-content {
