* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Georgia", serif;
}

body {
  background: #050014;
  min-height: 100vh;
  overflow-x: hidden;
}

.slide {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 230px 100px 80px 160px;
  background:
    radial-gradient(circle at right, rgba(0,120,255,0.15), transparent 60%),
    radial-gradient(circle at left, rgba(0,180,255,0.15), transparent 55%),
    linear-gradient(135deg, #050014, #0b0024, #001233, #050014);
  background-size: 200% 200%;
  animation: bgPulse 15s ease-in-out infinite;
  transition: padding-left 0.4s ease;
}

.slide::after,
#login-overlay::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -50%;
  width: 200%;
  height: 60vh;
  background:
    linear-gradient(transparent 0%, rgba(11, 176, 255, 0.4) 2%, transparent 3%),
    linear-gradient(90deg, transparent 0%, rgba(255, 106, 162, 0.4) 2%, transparent 3%);
  background-size: 80px 80px;
  transform: perspective(600px) rotateX(75deg);
  transform-origin: bottom center;
  animation: gridMove 3s linear infinite;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 5%, transparent 70%);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 5%, transparent 70%);
}

@keyframes bgPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 80px; }
}

/* Decorative Waves */
.wave {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: floatWave 10s infinite ease-in-out alternate;
}

@keyframes floatWave {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(30px, -30px) scale(1.05) rotate(5deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.wave.left {
  background: #0bb0ff;
  left: -200px;
  top: 150px;
}

.wave.right {
  background: #004cff;
  right: -200px;
  top: -150px;
}

/* Text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: rgba(11, 176, 255, 0.1);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 30px;
  color: #e0f2ff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(11, 176, 255, 0.3), inset 0 0 20px rgba(11, 176, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: floatBadge 4s ease-in-out infinite, slideInLeft 1s ease-out backwards;
  margin-bottom: 30px;
  z-index: 10;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(11, 176, 255, 0.8);
}
.hero-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-25deg);
  animation: badgeShine 3s infinite;
}
.hero-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(90deg, #0bb0ff, #ff6aa2, #0bb0ff);
  background-size: 200% auto;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  animation: shineBorder 3s linear infinite;
}
@keyframes shineBorder {
  100% { background-position: 200% center; }
}
@keyframes floatBadge {
  0%, 100% { transform: perspective(1000px) translateY(0) translateZ(20px); box-shadow: 0 10px 30px rgba(11, 176, 255, 0.3); }
  50% { transform: perspective(1000px) translateY(-10px) translateZ(40px); box-shadow: 0 20px 40px rgba(255, 106, 162, 0.5); }
}
@keyframes badgeShine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.title {
  color: #ff6aa2;
  font-size: 56px;
  line-height: 1.3;
  margin-bottom: 10px;
  animation: slideInLeft 1s ease-out backwards;
}

.subtitle {
  color: #ff8bb8;
  font-size: 28px;
  margin-bottom: 40px;
  animation: slideInLeft 1s ease-out 0.2s backwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: perspective(1000px) translateX(-40px) rotateY(-10deg); }
  to { opacity: 1; transform: perspective(1000px) translateX(0) rotateY(0deg); }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin-top: 20px;
}

.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 0 10px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease-out, background 0.3s ease, box-shadow 0.3s ease;
  transform: perspective(1000px) translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 6s infinite;
}
.card:hover {
  transform: perspective(1000px) translateY(-5px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4), inset 0 0 15px rgba(255, 255, 255, 0.1);
  border-color: rgba(11, 176, 255, 0.4);
}
.card-icon {
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(11, 176, 255, 0.15), rgba(255, 106, 162, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 2px 5px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.card:hover .card-icon {
  transform: translate(calc(var(--tx, 0px) * -0.6), calc(var(--ty, 0px) * -0.6)) scale(1.15) rotate(5deg);
  box-shadow: calc(var(--tx, 0px) * 0.6) calc(var(--ty, 0px) * 0.6) 20px rgba(11, 176, 255, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}
.card h3 { 
  color: #0bb0ff; margin-bottom: 10px; font-size: 26px; 
  transition: transform 0.2s ease-out, text-shadow 0.2s ease-out;
}
.card:hover h3 {
  transform: translate(calc(var(--tx, 0px) * -0.4), calc(var(--ty, 0px) * -0.4));
  text-shadow: calc(var(--tx, 0px) * 0.4) calc(var(--ty, 0px) * 0.4) 10px rgba(11, 176, 255, 0.5);
}
.card p { color: #ccc; font-size: 18px; line-height: 1.6; transition: transform 0.2s ease-out; }
.card:hover p { transform: translate(calc(var(--tx, 0px) * -0.2), calc(var(--ty, 0px) * -0.2)); }
.card-link {
  color: #0bb0ff;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s;
}
.card-link:hover {
  text-decoration: underline;
  color: #ff8bb8;
}

.more-info {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  color: #aeb6ff;
  font-size: 16px;
}
.card:hover .more-info {
  max-height: 200px;
  opacity: 1;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Logo */
.logo {
  position: fixed;
  left: 80px;
  top: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 25px;
  transition: transform 0.15s ease-out, opacity 0.3s ease, left 0.3s ease;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}

.logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
  border: none;
  filter: drop-shadow(0 0 25px rgba(0,120,255,0.6));
  transition: all 0.3s ease;
  transform: translateZ(40px) scale(1.05);
}

.logo-text {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(0,120,255,0.5);
  transition: all 0.3s ease;
  transform: translateZ(60px);
}

.logo:hover .logo-text {
  animation: glassPulseText 2s infinite ease-in-out;
}

@keyframes glassPulseText {
  0% {
    text-shadow: 0 0 15px rgba(0, 120, 255, 0.5);
    transform: translateZ(60px) scale(1);
  }
  50% {
    text-shadow: 0 0 35px rgba(0, 180, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.8);
    transform: translateZ(60px) scale(1.05);
    color: #e0f2ff;
  }
  100% {
    text-shadow: 0 0 15px rgba(0, 120, 255, 0.5);
    transform: translateZ(60px) scale(1);
  }
}

.logo.scrolled {
  opacity: 0;
  transform: perspective(1000px) translateY(-100%) rotateX(0deg) rotateY(0deg);
  pointer-events: none;
}

/* Login Overlay Styles */
#login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #050014, #09002b, #001833, #050014);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Particles */
#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: floatUp linear infinite;
  translate: calc(var(--mouse-x, 0px) * var(--factor, 0)) calc(var(--mouse-y, 0px) * var(--factor, 0));
  transition: translate 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: translate;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: perspective(1000px) translateY(40px) translateZ(-50px) rotateX(-15deg); }
  100% { opacity: 1; transform: perspective(1000px) translateY(0) translateZ(0) rotateX(0deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.login-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 40px 50px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 5s infinite;
}
@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}
.login-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.login-box h2 { color: #fff; margin-bottom: 20px; font-weight: 300; letter-spacing: 1px; }
.login-box input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: all 0.3s ease;
}
.login-box input:focus {
  outline: none;
  border-color: #0bb0ff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(11, 176, 255, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}
.login-box button {
  background: linear-gradient(90deg, #004cff, #0bb0ff);
  color: #fff;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 76, 255, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.4);
}
.login-box button:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 76, 255, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.5);
}
.login-box button:active { transform: translateY(0); }

/* Footer */
.footer {
  margin-top: 60px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links {
  margin-bottom: 15px;
}
.social-links a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}
.social-links a:hover {
  color: #0bb0ff;
}

/* Sidebar Menu */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 60px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: width 0.4s ease;
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 120px;
}
.sidebar:hover {
  width: 250px;
  background: rgba(5, 0, 20, 0.95);
}
.sidebar a {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  color: #aeb6ff;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.sidebar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
}
.sidebar a:hover::before {
  animation: shine 2s infinite;
}
.sidebar a:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: #fff;
  border-left: 3px solid #0bb0ff;
  padding-left: 25px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.05), 0 5px 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
#btn-logout:hover {
  background: linear-gradient(135deg, rgba(255, 106, 162, 0.15) 0%, rgba(255, 106, 162, 0.02) 100%);
  color: #ff8bb8;
  border-left-color: #ff6aa2;
  box-shadow: inset 0 1px 0 rgba(255, 106, 162, 0.3), inset 0 -1px 0 rgba(255, 106, 162, 0.1), inset 0 0 15px rgba(255, 106, 162, 0.1), 0 5px 15px rgba(0,0,0,0.3);
}
.sidebar .icon {
  font-size: 20px;
  min-width: 24px;
  margin-right: 20px;
  text-align: center;
}
.sidebar .text {
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.sidebar:hover .text {
  opacity: 1;
  transition-delay: 0.1s;
}

/* Adjust content and logo when sidebar is open */
.sidebar:hover + .slide {
  padding-left: 350px;
}

.sidebar:hover + .slide .logo {
  left: 270px;
}

/* Profile Section (Top Right) */
.profile-section {
  position: fixed;
  top: 15px;
  right: 15px;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.profile-section::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.profile-section:hover::before {
  animation: shine 2s infinite;
}

.profile-section:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.profile-pic, .profile-data {
  position: relative;
  z-index: 1;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(11, 176, 255, 0.6);
  border-color: #0bb0ff;
}

.profile-data {
  text-align: center;
}

.profile-name { color: #fff; font-weight: bold; font-size: 18px; }
.profile-status { color: #aeb6ff; font-size: 14px; }

/* Home Featured Presentations */
.home-featured {
  position: fixed;
  top: 230px;
  right: 15px;
  width: 180px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.animate-entrance .home-featured {
  animation: fadeInLogo 1s ease-out 0.6s backwards;
}
.home-featured h4 {
  color: #aeb6ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.home-featured .featured-item {
  font-size: 12px;
  padding: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Profile Page Popup */
#profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 0, 20, 0.85);
  z-index: 9998; /* Below login, above main content */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.profile-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: calc(var(--tx, 0px) * -2) calc(var(--ty, 0px) * -2) 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.profile-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 5s infinite;
}

.profile-box h2 {
  color: #fff;
  margin-bottom: 25px;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 1px;
  transition: transform 0.15s ease-out;
  transform: translateZ(30px);
}

.profile-pic-popup {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease-out;
  transform: translateZ(40px);
}

.profile-details {
  text-align: left;
  margin-bottom: 30px;
  color: #ccc;
  font-size: 18px;
  line-height: 1.8;
  transition: transform 0.15s ease-out;
  transform: translateZ(20px);
}

.profile-details p {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.profile-details p:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-details strong {
  color: #0bb0ff;
  min-width: 150px;
  display: inline-block;
}

.toggle-visibility-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #aeb6ff;
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  margin-left: 10px;
  vertical-align: middle;
}

.toggle-visibility-btn:hover {
  background: rgba(11, 176, 255, 0.2);
  border-color: #0bb0ff;
  color: #fff;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.featured-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #e0f2ff;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 0 5px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.featured-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.15), transparent 40%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}
.featured-item:hover::after {
  opacity: 1;
}
.featured-item:hover {
  background: linear-gradient(135deg, rgba(11, 176, 255, 0.2) 0%, rgba(11, 176, 255, 0.05) 100%);
  border-color: rgba(11, 176, 255, 0.5);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

/* Presentation Overlay */
#presentation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 0, 20, 0.85);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}
.presentation-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  padding: 50px;
  border-radius: 25px;
  width: 90%;
  max-width: 800px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: calc(var(--tx, 0px) * -2) calc(var(--ty, 0px) * -2) 30px rgba(0,0,0,0.6), inset 0 0 30px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.presentation-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 5s infinite;
}
.presentation-box h2 {
  color: #fff;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transform: translateZ(40px);
  transition: transform 0.15s ease-out;
}
.presentation-box #presentation-search {
  display: block;
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0,0,0,0.2);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  transform: translateZ(30px);
}
.presentation-box #presentation-search:focus {
  outline: none;
  border-color: #0bb0ff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(11, 176, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateZ(35px) scale(1.02);
}
.pres-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 30px;
  padding: 10px;
  transform: translateZ(20px);
  transition: transform 0.15s ease-out;
}
.pres-list::-webkit-scrollbar {
  width: 8px;
}
.pres-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.pres-list::-webkit-scrollbar-thumb {
  background: rgba(11, 176, 255, 0.5);
  border-radius: 10px;
}
.pres-list::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 176, 255, 0.8);
}

/* 3D Loader for Presentation List */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  grid-column: 1 / -1; /* Spans across all grid columns */
  transform: translateZ(30px);
}
.loader-cube {
  width: 40px;
  height: 40px;
  transform-style: preserve-3d;
  animation: spinCube 2s infinite ease-in-out;
}
.loader-cube div {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(11, 176, 255, 0.2);
  border: 2px solid #0bb0ff;
  box-shadow: inset 0 0 10px rgba(11, 176, 255, 0.5), 0 0 15px rgba(255, 106, 162, 0.4);
}
.loader-cube .front  { transform: translateZ(20px); }
.loader-cube .back   { transform: rotateY(180deg) translateZ(20px); }
.loader-cube .right  { transform: rotateY(90deg) translateZ(20px); }
.loader-cube .left   { transform: rotateY(-90deg) translateZ(20px); }
.loader-cube .top    { transform: rotateX(90deg) translateZ(20px); }
.loader-cube .bottom { transform: rotateX(-90deg) translateZ(20px); }
@keyframes spinCube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.pres-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: #e0f2ff;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2), inset 0 0 10px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}
.pres-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}
.pres-item:hover::before {
  animation: shine 1.5s infinite;
}
.pres-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.15), transparent 40%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}
.pres-item:hover::after {
  opacity: 1;
}
.pres-item:hover {
  background: linear-gradient(135deg, rgba(11, 176, 255, 0.25) 0%, rgba(11, 176, 255, 0.05) 100%);
  border-color: rgba(11, 176, 255, 0.6);
  color: #fff;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4), inset 0 2px 10px rgba(255, 255, 255, 0.4);
}
.star-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s, text-shadow 0.2s;
  padding: 0 5px;
  z-index: 10;
  position: relative;
  outline: none;
}
.star-btn:hover {
  transform: scale(1.3);
  text-shadow: 0 0 10px currentColor;
}
@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.star-pop {
  animation: starPop 0.3s ease;
}
.close-profile-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 30px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 16px;
}
.close-profile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.close-pres-btn {
  background: linear-gradient(135deg, rgba(255, 106, 162, 0.2) 0%, rgba(255, 106, 162, 0.05) 100%);
  border: 1px solid rgba(255, 106, 162, 0.4);
  border-top: 1px solid rgba(255, 106, 162, 0.6);
  border-left: 1px solid rgba(255, 106, 162, 0.6);
  color: #fff;
  padding: 12px 35px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255, 255, 255, 0.2);
  transform: translateZ(30px);
}
.close-pres-btn:hover {
  background: linear-gradient(135deg, rgba(255, 106, 162, 0.4) 0%, rgba(255, 106, 162, 0.1) 100%);
  border-color: #ff8bb8;
  transform: translateZ(35px) translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 106, 162, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* PPT Viewer Overlay */
#ppt-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: none;
}
#ppt-viewer-div {
  width: 100%;
  height: 100%;
}
#close-viewer-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 25px;
  background: linear-gradient(135deg, #ff8bb8, #ff6aa2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 2px 8px rgba(255, 255, 255, 0.6);
  z-index: 10001;
  transition: 0.3s;
}
#close-viewer-btn:hover { 
  background: linear-gradient(135deg, #ff9fc7, #ff8bb8); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 2px 12px rgba(255, 255, 255, 0.8);
}

#fullscreen-viewer-btn {
  position: absolute;
  top: 20px;
  right: 220px;
  padding: 10px 25px;
  background: linear-gradient(135deg, #4dc4ff, #0bb0ff);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 2px 8px rgba(255, 255, 255, 0.6);
  z-index: 10001;
  transition: 0.3s;
}
#fullscreen-viewer-btn:hover { 
  background: linear-gradient(135deg, #6fd2ff, #2bc1ff); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 2px 12px rgba(255, 255, 255, 0.8);
}

#download-pres-btn {
  position: absolute;
  top: 20px;
  right: 360px;
  padding: 10px 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 2px 8px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  transition: 0.3s;
  text-decoration: none;
}
#download-pres-btn:hover { 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 2px 12px rgba(255, 255, 255, 0.5);
}

/* Cursor Particles */
.cursor-particle {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997; /* Below overlays but above main content */
  transform: translate(-50%, -50%);
  animation: cursorFade 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes cursorFade {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(0); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .slide {
    padding: 180px 20px 40px 20px;
  }
  .title {
    font-size: 40px;
  }
  .subtitle {
    font-size: 22px;
  }
  .logo {
    left: 20px;
    transform: translateX(0);
  }
  .logo img {
    width: 70px;
  }
  .logo-text {
    display: none;
  }
  .profile-section {
    right: 5px;
    top: 65px;
    padding: 10px;
  }
  .profile-pic {
    width: 50px;
    height: 50px;
  }
  .home-featured {
    top: 190px;
    right: 5px;
    width: 140px;
  }
  .home-featured h4 {
    font-size: 10px;
  }
  .home-featured .featured-item {
    font-size: 11px;
    padding: 8px;
  }
  .sidebar {
    display: none;
  }
}