/* === Fade Transitions === */
body {
  opacity: 1;
  transition: opacity 0.5s ease;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #e0e0e0;
}

body.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

body.fade-out {
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* === Layout Containers === */
.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  box-sizing: border-box;
}

.entrance-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* === Entrance Box === */
.box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #111;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.box::before,
.box::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff0057, #00fff7, #ff0057);
  z-index: -1;
  animation: neonRotate 4s linear infinite;
}

.box::after {
  filter: blur(20px);
}

@keyframes neonRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.box:hover {
  transform: scale(1.05);
}

.title {
  text-align: center;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.content {
  opacity: 1;
  transform: translateY(0);
  transition: 0.5s ease;
  margin-top: 10px;
  color: #fff;
  text-align: center;
}

.btn {
  margin-top: 15px;
  padding: 12px 24px;
  background: #00fff7;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s;
  width: 100%;
}

.btn:hover {
  background: #ff0057;
  color: #fff;
}

/* === Header === */
header {
  text-align: center;
  padding: 40px 0;
}

h1 {
  font-size: 3em;
  color: #00ffe7;
  text-shadow: 0 0 10px #00ffe7;
}

.subtitle {
  font-size: 1.2em;
  color: #ccc;
  margin-bottom: 20px;
}

nav a {
  margin: 0 15px;
  color: #00ffe7;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffffff;
}

/* === Sections === */
section {
  margin: 40px 0;
}

h2 {
  color: #00ffe7;
  text-shadow: 0 0 5px #00ffe7;
  margin-bottom: 20px;
}

/* === Cards === */
.card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px #00ffe7;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.02);
}

.card a {
  color: #00ffe7;
  text-decoration: underline;
}

/* === Skills List === */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: rgba(255, 255, 255, 0.05);
  margin: 5px 0;
  padding: 10px;
  border-radius: 5px;
}

/* === Video Section === */
.video-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px #00ffe7;
  margin-top: 10px;
}

.caption {
  font-size: 0.95em;
  color: #ccc;
  margin-top: 10px;
}

/* === Power BI Embed === */
.bi-wrapper {
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 0 20px #00ffe7;
  border-radius: 10px;
  overflow: hidden;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px #00ffe7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00ffe7;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 255, 247, 0.8);
  color: #111;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* === Lightbox === */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  transition: 0.3s ease-in-out;
  padding: 20px;
  box-sizing: border-box;
}

#lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 25px #00ffe7;
  object-fit: contain;
}

#lightbox #close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

#lightbox #close:hover {
  color: #ff0057;
}

#lightbox.active {
  display: flex;
  opacity: 1;
}

/* === Album Viewer === */
.album-viewer {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px #00ffe7;
}

#album-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  transition: opacity 0.5s ease;
}

.caption {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #ccc;
}

.controls {
  margin-top: 20px;
}

.controls button {
  background: #00fff7;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 10px;
  transition: background 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.controls button:hover {
  background: #ff0057;
  color: #fff;
}

/* === Shutter Effect === */
.shutter-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #000 0%, #111 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* === Scrapbook Grid === */
.scrapbook-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px;
}

.thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffe7;
  transition: transform 0.3s ease;
}

.thumb:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* === Viewer Overlay === */
#viewer {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

#viewer img {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 25px #00ffe7;
}

#viewer-caption {
  margin-top: 10px;
  color: #ccc;
  font-size: 1rem;
  font-family: 'Orbitron', sans-serif;
}

#viewer-close, #viewer-prev, #viewer-next {
  position: absolute;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

#viewer-close { top: 20px; right: 30px; }
#viewer-prev { left: 30px; top: 50%; transform: translateY(-50%); }
#viewer-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* === Responsive Tweaks === */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .box {
    padding: 16px;
    max-width: 90%;
    height: auto !important;
    transform: scale(1.05);
  }

  .content {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .title {
    font-size: 1.2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  .gallery img {
    width: 100%;
    max-width: 300px;
  }

  #viewer img {
    max-width: 95%;
    max-height: 70vh;
  }

  .scrapbook-grid {
    gap: 8px;
  }

  .thumb {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .box {
    animation: expandMobile 0.6s ease forwards;
    height: auto !important;
    transform: scale(1.05);
  }

  .content {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  @keyframes expandMobile {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1.05); opacity: 1; }
  }
}