body {
  margin: 0;
  font-family: Arial;
  background: black;
  color: white;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 15px;
  left: 25px;
  z-index: 1000;
}

/* LOGO */
.logo {
  width: 90px;
  transition: transform 0.3s ease;
  filter: brightness(1.3) contrast(1.2)
          drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

.logo:hover {
  transform: scale(1.1);
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* VIDEO */
.bg-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.7),
    rgba(0,0,0,1)
  );
}

/* HERO TEXT (HOME ONLY) */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-text h1 {
  font-size: 120px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-shadow: 
    0 0 10px rgba(255,255,255,0.5),
    0 0 20px rgba(255,255,255,0.4),
    0 0 40px rgba(255,255,255,0.3);
}

.hero-text h2 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 500;
  text-shadow: 
    0 0 8px rgba(255,255,255,0.4),
    0 0 16px rgba(255,255,255,0.3);
}

.hero-text p {
  font-size: 22px;
  opacity: 0.7;
}

/* BUTTON */
button {
  margin-top: 25px;
  padding: 14px 35px;
  border: 1px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: white;
  color: black;
  transform: scale(1.05);
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  padding: 40px;
}

.card {
  overflow: hidden;
  border-radius: 15px;
}

.projects img {
  width: 100%;
  border-radius: 15px;
  transition: 0.4s;
}

.projects img:hover {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.1)
          drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

/* ANIMATION */
.animate {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  filter: blur(5px);
  animation: reveal 1s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 60px; }
  .hero-text h2 { font-size: 28px; }
  .hero-text p { font-size: 16px; }
}

/* INFO BUTTON */
.info-btn {
  position: fixed;
  top: 25px;
  right: 40px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 18px;
  border-radius: 20px;
  transition: 0.3s;
  z-index: 1000;
}

.info-btn:hover {
  background: white;
  color: black;
}

/* ============================= */
/* INFO PAGE GLASS BOX */
/* ============================= */

.info-page .info-box {
  position: absolute;
  top: 50%;
  left: 140px;
  transform: translateY(-50%);

  max-width: 500px;
  width: 480px;        /* 🔥 FIX: prevents overlap */
  z-index: 2;          /* 🔥 keeps text above */

  padding: 40px;
  border-radius: 20px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(15px);

  border: 1px solid rgba(255,255,255,0.15);

  box-shadow: 
    0 0 20px rgba(0,0,0,0.5),
    0 0 40px rgba(0,0,0,0.3);
}

/* TEXT */
.info-page .info-box h2 {
  font-size: 32px;
  margin-top: 20px;
}

.info-page .info-box p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
}

/* SKILLS */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.skill-list span {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.skill-list span:hover {
  background: white;
  color: black;
  transform: scale(1.08);
  box-shadow: 
    0 0 10px rgba(255,255,255,0.3),
    0 0 20px rgba(255,255,255,0.2);
}

/* SOCIALS */
.info-page .info-box .socials {
  margin-top: 10px;
}

.info-page .info-box .socials a {
  margin-right: 20px;
  color: white;
  text-decoration: none;
  opacity: 0.8;
}

.info-page .info-box .socials a:hover {
  opacity: 1;
}

/* ============================= */
/* RIGHT SIDE IMAGE */
/* ============================= */

.info-page .profile-image {
  position: absolute;
  top: 50%;
  right: 80px;   /* 🔥 FINAL PERFECT POSITION */
  transform: translateY(-50%);
  z-index: 1;
}

.info-page .profile-image img {
  width: 400px;   /* 🔥 balanced size */
  border-radius: 25px;
  transition: 0.35s ease;
}

.info-page .profile-image img:hover {
  transform: scale(1.06) translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

/* MOBILE */
@media (max-width: 768px) {
  .info-page .profile-image {
    display: none;
  }

  .info-page .info-box {
    left: 20px;
    right: 20px;
  }
}

/* ============================= */
/* FLEX LAYOUT (INFO PAGE FIX) */
/* ============================= */

.info-page .info-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  max-width: 1400px;
}
/* ============================= */
/* WORK PAGE (PINTEREST STYLE) */
/* ============================= */
.hero {
  position: relative;
  min-height: 100vh;   /* ✅ allows growth */
  overflow: visible;   /* ✅ IMPORTANT */
}

.work-content {
  position: relative;
  z-index: 2;
  padding: 120px 60px;
}

.work-content h1 {
  font-size: 60px;
  margin-bottom: 40px;
  text-align: center;

  text-shadow: 
    0 0 10px rgba(255,255,255,0.5),
    0 0 20px rgba(255,255,255,0.3);
}

/* 🔥 PINTEREST GRID */
.work-grid {
  column-count: 3;
  column-gap: 15px;
  padding: 20px;
}

/* EACH ITEM */
.work-item {
  break-inside: avoid;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 15px;
}

/* IMAGE */
.work-item img {
  width: 100%;
  display: block;
  border-radius: 15px;

  transition: transform 0.4s ease, filter 0.4s ease;
}

/* 🔥 SAME OLD EFFECT */
.work-item img:hover {
  transform: scale(1.08);

  filter: brightness(1.1) contrast(1.1)
          drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .work-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .work-grid {
    column-count: 1;
  }
}

/* MAKE LINK LOOK LIKE BUTTON */
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 35px;
  border: 1px solid white;
  background: transparent;
  color: white;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;   /* 🔥 removes underline */

  transition: 0.3s;
}

/* SAME HOVER EFFECT */
.btn:hover {
  background: white;
  color: black;
  transform: scale(1.05);
}
/* ============================= */
/* IMAGE POPUP (LIGHTBOX) */
/* ============================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2000;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* IMAGE */
.lightbox-img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 15px;

  transform: scale(0.75);
  transition: transform 0.4s ease;
}

/* ZOOM ANIMATION */
.lightbox.active .lightbox-img {
  transform: scale(1);
}

/* CLOSE BUTTON */
.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 42px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  transform: scale(1.2);
}
/* ============================= */
/* PAGE TRANSITION */
/* ============================= */

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 3000;

  opacity: 1;
  pointer-events: none;

  transition: opacity 0.3s ease;
}

/* PAGE LOAD (FADE IN) */
body.loaded .page-transition {
  opacity: 0;
}

/* PAGE EXIT (FADE OUT) */
body.fade-out .page-transition {
  opacity: 1;
  pointer-events: all;
}
