/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ccc;
  letter-spacing: 2px;
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.fade-in:nth-child(3n+2) { transition-delay: 0.1s; }
.gallery-item.fade-in:nth-child(3n+3) { transition-delay: 0.2s; }

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid #333;
  border-radius: 20px;
  color: #999;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  color: #fff;
  border-color: #666;
}

.filter-btn.active {
  color: #fff;
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.gallery-item.hidden {
  display: none;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  padding: 0.5rem;
  transition: opacity 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.7;
}

.lightbox-close {
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* About */
.about-container {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  flex-shrink: 0;
  width: 300px;
}

.about-photo img {
  width: 100%;
  border-radius: 4px;
}

.about-text p {
  margin-bottom: 1rem;
  color: #ccc;
  font-size: 1.05rem;
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #151515;
  border: 1px solid #333;
  border-radius: 4px;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #888;
}

.contact-form button {
  padding: 0.9rem;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #ddd;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #151515;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: #333;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  margin-top: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: #f0f0f0;
  font-size: 0.95rem;
}

.testimonial-role {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid #1a1a1a;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: #888;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #fff;
}

.footer p {
  color: #555;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s;
  }

  .nav-menu.open {
    right: 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    letter-spacing: 3px;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-photo {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Admin Panel ========== */

/* Login */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-box {
  background: #151515;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.admin-login-box h1 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.admin-login-box input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #f0f0f0;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.admin-login-box input:focus {
  outline: none;
  border-color: #888;
}

.admin-login-box button {
  width: 100%;
  padding: 0.8rem;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.admin-login-box button:hover {
  background: #ddd;
}

.admin-error {
  color: #e74c3c;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Admin Nav */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: #111;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
}

.admin-nav-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.admin-nav-links {
  display: flex;
  gap: 0.5rem;
}

.admin-tab {
  padding: 0.5rem 1rem;
  color: #999;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.admin-tab:hover {
  color: #fff;
}

.admin-tab.active {
  color: #fff;
  background: #333;
}

.admin-nav-right {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.admin-btn-secondary {
  padding: 0.4rem 0.8rem;
  color: #aaa;
  background: none;
  border: 1px solid #444;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.admin-btn-secondary:hover {
  color: #fff;
  border-color: #888;
}

/* Admin Content */
.admin-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-content h2 {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

/* Upload */
.admin-upload-area {
  margin-bottom: 1.5rem;
}

.admin-upload-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #222;
  border: 1px dashed #555;
  border-radius: 4px;
  color: #ccc;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}

.admin-upload-btn:hover {
  border-color: #aaa;
  color: #fff;
}

/* Admin Gallery Grid */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-gallery-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  cursor: grab;
  transition: border-color 0.2s, transform 0.2s;
}

.admin-gallery-card:active {
  cursor: grabbing;
}

.admin-gallery-card.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.admin-gallery-card.drag-over {
  border-color: #fff;
}

.admin-gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.admin-gallery-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.admin-alt-input {
  flex: 1;
  padding: 0.3rem 0.5rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  color: #ccc;
  font-size: 0.8rem;
}

.admin-alt-input:focus {
  outline: none;
  border-color: #666;
}

.admin-delete-btn {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  transition: color 0.2s;
}

.admin-delete-btn:hover {
  color: #ff6b6b;
}

/* Admin Form Sections */
.admin-form-section {
  font-size: 1rem;
  font-weight: 500;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #222;
}

.admin-form-section:first-child {
  margin-top: 0;
}

/* Admin Image Upload */
.admin-image-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-preview-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333;
  background: #111;
}

/* Admin Forms */
.admin-form-group {
  margin-bottom: 1.2rem;
}

.admin-form-group label {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.admin-form-group input,
.admin-form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #151515;
  border: 1px solid #333;
  border-radius: 4px;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus {
  outline: none;
  border-color: #888;
}

.admin-actions {
  margin-top: 1.5rem;
}

.admin-btn {
  padding: 0.7rem 1.8rem;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}

.admin-btn:hover {
  background: #ddd;
}

/* Messages */
.admin-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.admin-message.error {
  color: #e74c3c;
}

.admin-message.success {
  color: #2ecc71;
}

/* Toast */
.admin-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #2ecc71;
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 500;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Admin Category Select */
.admin-category-select {
  flex: 1;
  padding: 0.3rem 0.5rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  color: #ccc;
  font-size: 0.8rem;
}

.admin-category-select:focus {
  outline: none;
  border-color: #666;
}

/* Admin Category Management */
.admin-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #222;
  border: 1px solid #444;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  color: #ccc;
  font-size: 0.85rem;
}

.admin-category-tag button {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.admin-category-add {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-category-add input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  background: #151515;
  border: 1px solid #333;
  border-radius: 4px;
  color: #f0f0f0;
  font-size: 0.9rem;
}

.admin-category-add input:focus {
  outline: none;
  border-color: #888;
}

.admin-category-add button {
  padding: 0.5rem 1rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Admin Hero Slideshow Grid */
.admin-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-hero-card {
  position: relative;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

.admin-hero-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.admin-hero-card button {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #e74c3c;
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Admin Testimonial Cards */
.admin-testimonial-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.admin-testimonial-card textarea {
  width: 100%;
  padding: 0.5rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  color: #ccc;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 0.5rem;
}

.admin-testimonial-card textarea:focus {
  outline: none;
  border-color: #666;
}

.admin-testimonial-card input {
  width: calc(50% - 0.5rem);
  padding: 0.4rem 0.6rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  color: #ccc;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.admin-testimonial-card input:focus {
  outline: none;
  border-color: #666;
}

.admin-testimonial-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-testimonial-row .admin-delete-btn {
  margin-left: auto;
}

/* Admin Responsive */
@media (max-width: 768px) {
  .admin-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .admin-nav-right {
    margin-left: 0;
  }

  .admin-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
