/* Base Styles */
body {
    position:relative;
    text-align: center;
    font-family: "Poppins", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}
#header {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 30px 0;
}
#logoutBtn {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  position: relative;
  top: 90px;
  left: 170px;
  z-index: 1000;

  overflow: hidden;
  transition: 0.4s;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ONLY inside logout button */
#logoutBtn .sign {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
}

#logoutBtn .sign svg {
  width: 17px;
}

#logoutBtn .sign svg path {
  fill: white;
}

#logoutBtn .logout-text {
  position: absolute;
  right: 0;
  width: 0%;
  opacity: 0;

  color: white;
  font-size: 1rem;
  font-weight: 600;

  white-space: nowrap;
  transition: 0.4s;
}

/* hover state */
#logoutBtn:hover {
  width: 150px;
  border-radius: 20px;
  background: rgba(255, 5, 5, 0.65);

}

#logoutBtn:hover .sign {
  width: 30%;
  padding-left: 12px;
}

#logoutBtn:hover .logout-text {
  width: 70%;
  opacity: 1;
  padding-right: 10px;
}

/* click effect */
#logoutBtn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
#userBox {
  position: fixed;
  top: 15px;             /* Kept your updated top value */
  left: 50%;             /* 1. Move the left edge to the exact center of the screen */
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 1000;
  
  /* 2. Combine the horizontal centering shift (-50%) with your scale adjustments */
  transform: translateX(-50%) scale(0.8); 
}

#username{

  color:white;

  font-size:0.95rem;
  font-weight:600;

  max-width:180px;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#userAvatar{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  background:rgba(255,255,255,0.1);
  border:2px solid rgba(255,255,255,0.25);
}
#userBox.guest-mode #userAvatar{
  border:none;
  border-radius:0;
  background:transparent;
  object-fit:contain;
  transform:scale(1.5);
}
/* Desktop: move it into container visually */
@media (min-width: 769px) {
    #arrow{
        display: none;
    }
    .intro-text #header {
        display: none; /* hide mobile version */
    }


}
h1, h4 { text-transform: uppercase; letter-spacing: 2px; font-weight: bold; }
.intro-text { padding: 40px 20px; }

/* Laptop: Normal Grid Layout */

#header {
    font-size: 32px;
    color: #ffffff;
    font-weight: bold;
    margin: 20px 0;
    text-transform: uppercase;
}

.project-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.project, .project1 {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    height: 220px;
    width: 340px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
    overflow: hidden;
}

.project:hover, .project1:hover { 
    transform: translateY(-5px); 
    background: rgba(255, 255, 255, 0.4);
}

.project img, .project1 img { max-width: 90%; max-height: 80%; border-radius: 10px; }

/* SVG and specific image scaling */
#livit svg { transform: scale(2.5); }
#titan img { transform: scale(1.4); }
#excel img { transform: scale(1.4); }
#calculator img { transform: scale(1.2); }

#uchiha{
    position: absolute;
    bottom: -40px;
    left: 20px;

    transform: scale(0.5);
    opacity: 0.02;

    transition: all 0.4s ease;
    cursor: pointer;
}

#uchiha:hover{
    opacity: 0.7;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.15))
            drop-shadow(0 0 20px rgba(255,255,255,0.08));
}
/* Footer */
footer {

    width: 960px;
    margin: 50px auto;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

footer:hover {
    background: rgba(40, 40, 40, 0.8);
    color: #4caf50;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

footer p { margin: 0; font-size: 18px; font-weight: 600; }

#logo-footer {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 1s ease;
}

footer:hover #logo-footer {
    transform: scale(1.2) rotate(360deg);
}
/* --- LAPTOP STYLES (Keep existing) --- */

/* Hide the tiny images on laptop so it doesn't mess up your current look */
.mini-preview {
    display: none;
}

/* Hide mobile reel on desktop */
#mobile-projects-reel {
    display: none !important;
}

/* ... keep all your existing Laptop .project and #container styles here ... */
#user-panel {
  position: fixed;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
width:250px;
height: 150px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 10px;

  z-index: 1000;
}

#qoute-container {
  width: 50%;
  margin: 0 auto;
  text-align: left;

  font-size: 18px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  color: #fff;
}

#qoute { 
  font-family: "Eagle Lake", sans-serif; 
  font-optical-sizing: auto; 
  width: 100%; 
  color: #ffffff; 
  font-size: 32px; 
  text-align: center; 
  padding-left: 0px;  
}

#login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  margin-bottom: 10px;
}

#loginBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 18px;
  background: white;
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

#loginBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

#loginBtn img {
  width: 22px;
  height: 22px;
}

    #qoute-container {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .guest-message {
      margin-top: 30px;
      font-size: 1.1rem;
      color: #ccc;
      font-weight: 600;
    }
