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

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #000;
  color: #fff;
  text-align: center;
  line-height: 1.6;
}

/* Images display at natural size by default */
img {
  display: block;
  width: auto;        /* Natural width */
  max-width: none;    /* Allow natural size */
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Header ---------- */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111;
  padding: 1rem;
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.phone {
  font-size: 1.5rem;
  color: #ffeb99;
  margin-top: 0.5rem;
}

/* ---------- Main ---------- */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(20, 20, 20, 0.85);
  border-radius: 10px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Description Box ---------- */
.description-box {
  background: rgba(40, 40, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* CRITICAL FIX: Main photo in description box - natural dimensions */
.description-box img {
  width: auto !important;           /* Force natural width */
  max-width: 100% !important;       /* Prevent overflow */
  height: auto !important;          /* Natural height */
  margin: 1rem auto !important;     /* Center and space */
  display: block !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Fix for index.html warning page image */
.index-warning-image {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 2rem auto !important;
  display: block !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Buttons for index.html */
.buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.buttons img {
  width: 100%;
  max-width: 200px; /* Limit button size */
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.buttons img:hover {
  transform: scale(1.05);
}

/* ---------- Portfolio Grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 1 / 1;
}

.portfolio-item img {
  width: 100% !important;  /* Override global rule for thumbnails */
  height: 100% !important;
  object-fit: cover;
  border-radius: 10px;
}

.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.25);
}

/* ---------- Video Box ---------- */
.video-box {
  background: rgba(40, 40, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.video-box iframe,
.video-box video {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
}

/* Override inline video styles */
.video-container video {
  width: 100%;
  height: auto;
  max-width: 800px;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #888;
  margin-top: 2rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  padding: 2rem;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.lightbox img:hover {
  transform: scale(1.02);
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease, transform 0.3s ease;
  font-weight: bold;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #ffcc00;
  transform: scale(1.15);
}

.lightbox-close {
  top: 20px;
  right: 30px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .phone {
    font-size: 1.2rem;
  }

  main {
    margin: 1rem;
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .buttons img {
    max-width: 150px;
  }

  .description-box img,
  .index-warning-image {
    max-width: 95% !important;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
  }

  .lightbox-close {
    font-size: 2rem;
    top: 10px;
    right: 20px;
  }

  .video-box iframe,
  .video-box video {
    height: 300px;
  }
}