/* ========================= */
/* GLOBAL */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: #0f0f14;
  color: #f4f4f4;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ========================= */
/* PARTICLES */
/* ========================= */

#particles {
  position: fixed;
  inset: 0;
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: linear-gradient(45deg,#7c9cff,#ff8fd8);
  filter: blur(200px);
  opacity: 0.25;
  top: 20%;
  left: 25%;
  z-index: -3;
}



/* ========================= */
/* CONTAINERS */
/* ========================= */

.container {
  width: 85%;
  max-width: 1100px;
  margin: 5rem auto;
}

.box {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.2s ease;
  margin-bottom: 2rem;
}

.box:hover {
  transform: translateY(-4px);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* ========================= */
/* NAV */
/* ========================= */

.auth-box {
  display:flex;
  align-items:center;
  gap:1rem;
}

.auth-box span {
  font-weight:500;
}

.nav {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 1rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  backdrop-filter: blur(15px);
  background: rgba(15,15,20,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);

  z-index: 1000;
}

.links a {
  position: relative;
  color: #aaa;
  font-weight: 500;
  transition: 0.3s ease;
}

.links a:hover {
  color: white;
}

.links {
  display: flex;
  gap: 2rem;
}

.links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,#7c9cff,#5a6cff);
  border-radius: 10px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
}

/* Mobile */

@media (max-width: 768px) {

  .links {
    display: none;
  }

  .nav {
    padding: 1rem;
  }

}

/* ========================= */
/* HERO */
/* ========================= */

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
}

.hero-sub {
  margin-top: 1rem;
  color: #aaa;
  font-size: 1.2rem;
}

/* ========================= */
/* ADMIN PANEL */
/* ========================= */

.admin-entry {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem;
  background: #1c1c24;
  border-radius: 16px;
  margin-bottom: 1rem;
  transition: 0.2s;
}

.admin-entry:hover {
  background: #22222c;
}

/* ========================= */
/* MESSAGE LAYOUT (Guestbook + Admin) */
/* ========================= */

.message-entry {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem;
  background: #1a1a21;
  border-radius: 18px;
  margin-bottom: 1rem;
  transition: 0.2s;
}

.message-entry:hover {
  background: #202028;
}

.message-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #7c9cff;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.message-author {
  font-weight: bold;
  color: #7c9cff;
}

.message-text {
  color: #ddd;
}

/* ========================= */
/* ADMIN BUTTONS */
/* ========================= */

.admin-buttons {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

.admin-buttons button {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.admin-buttons button:first-child {
  background: #2ecc71; /* Approve */
  color: black;
}

.admin-buttons button:last-child {
  background: #e74c3c; /* Reject */
  color: white;
}

.admin-buttons button:hover {
  opacity: 0.8;
}

/* ========================= */
/* WORK */
/* ========================= */

.work-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.preview {
  width: 180px;
  height: 100px;
  background: #1c1c24;
  border-radius: 16px;
}

/* ========================= */
/* TAGS */
/* ========================= */

.tags {
  display: grid;
  flex-wrap: wrap;
  gap: 1rem;
}

.tags span {
  background: #1c1c24;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

/* ========================= */
/* BUTTONS - MODERN VERSION */
/* ========================= */

button,
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.75rem 1.6rem;

  background: linear-gradient(135deg, #7c9cff, #5a6cff);
  color: white;

  border-radius: 14px;
  border: none;
  cursor: pointer;

  font-weight: 600;
  letter-spacing: 0.3px;

  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(124,156,255,0.3);

  text-decoration: none;
}

/* Hover */

button:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124,156,255,0.5);
  filter: brightness(1.1);
}

/* Click */

button:active,
.btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(124,156,255,0.3);
}

/* Glow animation */

button::after,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

button:hover::after,
.btn:hover::after {
  opacity: 1;
}

.back-btn {
  display:inline-block;
  padding:0.6rem 1rem;
  background:#1c1c24;
  border-radius:10px;
  margin-bottom:1.5rem;
}

/* ========================= */
/* MODAL */
/* ========================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #15151c;
  padding: 2rem;
  border-radius: 20px;
  width: 400px;
}

.close {
  float: right;
  cursor: pointer;
}

.modal-content h2 {
  color: #ff4d4d;
}

.modal-content p {
  margin: 1rem 0;
}

.modal-content button {
  background: #7c9cff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  background: #0f0f14;
  border: 1px solid #333;
  color: white;
  border-radius: 8px;
}

button[type="submit"] {
  background: #7c9cff;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 768px) {

  .hero h1 {
    font-size: 2.5rem;
  }

  .work-item {
    flex-direction: column;
  }

}

/* ========================= */
/* 403 PAGE */
/* ========================= */

.access-denied {
  text-align: center;
}

.glitch {
  font-size: 6rem;
  font-weight: bold;
  position: relative;
  color: #7c9cff;
  animation: glitch 1.5s infinite;
}

@keyframes glitch {

  0% {
    text-shadow:
    2px 2px #ff4d4d,
    -2px -2px #00ffff;
  }

  50% {
    text-shadow:
    -2px 2px #ff4d4d,
    2px -2px #00ffff;
  }

  100% {
    text-shadow:
    2px -2px #ff4d4d,
    -2px 2px #00ffff;
  }
}

/* ========================= */
/* GLOBAL LINK RESET */
/* ========================= */

a {
  text-decoration: none;
  color: inherit;
}

/* Remove underline on hover too */
a:hover {
  text-decoration: none;
}

/* ========================= */
/* BUTTON CENTER */
/* ========================= */

.button-center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ========================= */
/* TOAST NOTIFICATIONS */
/* ========================= */

.toast {
  position: fixed;
  bottom: 40px;
  right: 40px;

  background: #1c1c24;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);

  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;

  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* FORM FOOTER */
/* ========================= */

.form-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Character Counter */

#charCounter {
  font-size: 0.9rem;
  color: #aaa;
}

/* Progress Bar */

.progress-container {
  width: 100%;
  height: 6px;
  background: #1c1c24;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg,#7c9cff,#5a6cff);
  transition: width 0.2s ease;
}

/* ========================= */
/* BUTTON SPINNER */
/* ========================= */

.spinner {
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================= */
/* BUTTON SUCCESS STATE */
/* ========================= */

button.btn-success {
  background: linear-gradient(135deg,#2ecc71,#27ae60);
  box-shadow: 0 0 25px rgba(46,204,113,0.6);
  transform: scale(1.05);
}

/* Smooth transition */

button {
  transition: all 0.3s ease;
}

/* ========================= */
/* CONFETTI */
/* ========================= */
.confetti {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
}

/* ========================= */
/* ULTRA CURSOR SYSTEM */
/* ========================= */

html, body {
  cursor: none !important;
}

/* Core */
.cursor-core {
  position: fixed;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

/* Ring */
.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid #7c9cff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.2s ease;
}

/* Hover State */
.cursor-hover .cursor-ring {
  transform: translate(-50%, -50%) scale(1.8);
  opacity: 0.4;
}

/* Click Pulse */
.cursor-click .cursor-ring {
  transform: translate(-50%, -50%) scale(0.5);
}

/* ========================= */
/* FIXED RGB TRAIL */
/* ========================= */

.cursor-trail {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  opacity: 1;
  background: hsl(var(--trail-hue), 100%, 60%);
  filter: blur(2px);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}


/* ============ */
/*   About Me   */
/* ============ */
.about-container{
  display:flex;
  gap:2rem;
  flex-wrap:wrap;
}

.about-left{
  flex:1;
  min-width:260px;
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.about-right{
  flex:2;
  min-width:320px;
  display:flex;
  flex-direction:column;
  gap:1rem;
}

/* Collapsables */

details{
  background:rgba(255,255,255,0.04);
  border-radius:14px;
  padding:0.6rem 1rem;
}

summary{
  cursor:pointer;
  font-weight:600;
  color:#7c9cff;
  font-size:0.95rem;
}

details[open] summary{
  margin-bottom:0.5rem;
}

details div{
  font-size:0.9rem;
  line-height:1.5;
}

/* Pride Flags */
.pride-flags{
  display:flex;
  gap:0.5rem;
  margin-top:0.5rem;
  flex-wrap:wrap;
}

.pride-flags img{
  height:22px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,0.1);
}

/* Portrait */

.portrait{
  width:220px;
  border-radius:18px;
  border:2px solid #7c9cff;
}

/* Text block */

.section-text{
  background:rgba(255,255,255,0.03);
  padding:1rem;
  border-radius:14px;
  line-height:1.6;
}

/* Likes / Dislikes */

.likes-box summary{
  color:#7cffb2;
}

.dislikes-box summary{
  color:#ff6b6b;
}

.about-banners{
  border-top:1px solid rgba(255,255,255,0.08);
  padding-top:1rem;
  margin-top:1rem;
  display:flex;
  gap:0.6rem;
  flex-wrap:wrap;
}

.about-banners img{
  height:48px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.1);
}

@media(max-width:900px){
  .about-container{
    flex-direction:column;
  }
}

/* ========================= */
/* ABOUT TABLE STYLE */
/* ========================= */

.about-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.about-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s ease;
}

.about-table tr:last-child {
  border-bottom: none;
}

.about-table tr:hover {
  background: rgba(124,156,255,0.06);
}

.about-table td {
  padding: 0.5rem 0;
  vertical-align: top;
}

.about-table .label {
  width: 35%;
  color: #7c9cff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Slight retro alignment feel */
.about-table td:last-child {
  color: #ddd;
}

/* Pride flags inline fix */

.about-table .pride-flags {
  margin-top: 0;
}

/* ========================= */
/* SPLIT LIST (Likes/Dislikes) */
/* ========================= */

.split-list {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  row-gap: 0.2rem;
}

.split-list li {
  position: relative;
  padding-left: 1rem;
  color: #ddd;
  transition: 0.4s ease;
}

.split-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #7c9cff;
}

.split-list li:hover {
  color: #fff;
  transform: translateX(4px);
}