/* ===============================
   BASE STYLES
================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #f8f8f8;
  overflow-x: hidden;
  padding-top: 80px; /* navbar fix */
}

/* ===============================
   NAVBAR
================================*/
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.brand h1 {
  font-size: 1.3rem;
  color: gold;
}

.brand p {
  font-size: 0.8rem;
  color: #ccc;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: #f8f8f8;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: gold;
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  color: gold;
  cursor: pointer;
}

/* ===============================
   HERO
================================*/
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.thread-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 215, 0, 0.05) 0,
    rgba(255, 215, 0, 0.05) 2px,
    transparent 2px,
    transparent 8px
  );
  animation: waveMove 10s linear infinite;
}

@keyframes waveMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 5;
  animation: fadeIn 2s ease forwards;
}

.hero-logo {
  width: 120px;
  margin-bottom: 20px;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px gold); }
  to { filter: drop-shadow(0 0 20px gold); }
}

.hero-title {
  font-size: 2.5rem;
  color: gold;
  animation: fadeInUp 2s ease forwards;
}

.hero-sub {
  font-size: 1.1rem;
  color: #ccc;
  margin: 15px 0;
}

/* BUTTONS */
.hero-buttons {
  margin-top: 25px;
}

.btn, .btn-outline {
  display: inline-block;
  margin: 5px 10px;
  padding: 12px 25px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn {
  background: gold;
  color: black;
}

.btn:hover {
  background: #f4d03f;
  transform: scale(1.05);
  box-shadow: 0 0 20px gold;
}

.btn-outline {
  border: 2px solid gold;
  color: gold;
}

.btn-outline:hover {
  background: gold;
  color: black;
  box-shadow: 0 0 15px gold;
}

/* ===============================
   PANELS
================================*/
.panel {
  padding: 100px 20px;
  text-align: center;
  background: #111;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.panel h2 {
  font-size: 2rem;
  color: gold;
  margin-bottom: 20px;
}

.panel p {
  max-width: 700px;
  margin: 0 auto;
  color: #ccc;
  line-height: 1.6;
}

/* SERVICES */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 15px;
  padding: 25px;
  width: 280px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

/* ===============================
   GALLERY
================================*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* ===============================
   CONTACT
================================*/
.contact a {
  color: gold;
  text-decoration: none;
}

.socials a {
  margin: 0 10px;
  color: #fff;
}

/* ===============================
   FOOTER
================================*/
.footer {
  text-align: center;
  padding: 40px 10px;
  background: #000;
}

.footer-logo {
  width: 70px;
  margin-bottom: 10px;
}

/* ===============================
   ANIMATIONS
================================*/
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===============================
   RESPONSIVE
================================*/
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .gallery-item img {
    height: 220px;
  }
}

/* ===============================
   SPARKLE EFFECT
================================*/
.sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}
