/* === GLOBAL === */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #140c28;
  color: #E5E7EB;
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}

/* === CANVAS BACKGROUND === */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* === SECTION BASE === */
.content-section {
  position: relative;
  z-index: 1;
  padding: 8rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === PARALLAX / ANIMATION === */
.parallax-content { opacity: 0; }
.parallax-content.in-view { opacity: 1; }
.animate-item {
  opacity: 0;
  transform: scale(0.7) translateY(150px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, opacity;
}
.in-view .animate-item {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.glass-card {
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-image: linear-gradient(90deg, hsla(0, 0%, 100%, 0.2), hsla(0, 0%, 100%, 0.05));
  border-radius: 1.5rem;
  transition: box-shadow 0.4s ease;
}

.glass-card:hover {
  box-shadow: 0 0 20px rgba(255, 0, 204, 0.3), 0 0 40px rgba(241, 86, 80, 0.25);
}

.glass-card::before,
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.glass-card::before {
  border: 1px solid hsl(0, 0%, 100%);
  mask-image: linear-gradient(135deg, hsl(0, 0%, 100%), hsla(0, 0%, 100%, 0) 50%);
  opacity: 0.5;
}

.glass-card::after {
  border: 1px solid hsl(223, 90%, 50%);
  mask-image: linear-gradient(135deg, hsla(0, 0%, 100%, 0) 50%, hsl(0, 0%, 100%));
  opacity: 0.5;
}

.glass-card:hover::before,
.glass-card:hover::after {
  opacity: 1;
}

/* === HEADER === */
header#main-header {
  background: rgba(17, 0, 56, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.5s ease;
}
header#main-header nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

/*
================================================================
  Auto-Hiding Header Styles
================================================================
*/

/* This makes the header slide smoothly instead of just appearing/disappearing. */
#main-header {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* This class will be added by JavaScript to hide the header by sliding it up. */
#main-header.header-hidden {
  transform: translateY(-100%);
}

/* This is the invisible area at the top of the screen that will trigger the header to show on hover. */
#header-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px; /* How sensitive the hover area is */
  z-index: 100; /* Ensures it's on top of other content */
}

/* === TEXT EFFECTS === */
.animated-gradient-text {
  background: linear-gradient(90deg, #ed187b, #f15650, #ed187b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-slide 10s linear infinite;
}
@keyframes gradient-slide {
  to { background-position: 200% center; }
}
@keyframes logo-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}
.hero-logo {
  animation: logo-float 5s ease-in-out infinite;
  position: relative;
}

/* === BUTTONS === */
.glass-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease-in-out;
  color: white;
  font-weight: 500;
}
.glass-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.glass-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* === SERVICE CARD === */
.service-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-8px); }
.service-card .glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #ed187b, #f15650, #ed187b);
  animation: gradient-slide 4s linear infinite;
  background-size: 300% 300%;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.service-card:hover .glass-panel::before {
  opacity: 0.7;
}
.service-card .hover-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover .hover-text {
  opacity: 1;
}
#services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  height: 100%;
}
.glass-card {
  min-height: 240px; /* or any fixed value */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* === Base Styling for ALL Modals === */
.modal-base {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  background-color: rgba(14, 11, 31, 0.8); /* Added a fallback background */
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-base.visible {
  opacity: 1;
  visibility: visible;
}

/* Fallback styling for OTHER modals (e.g., Service, Contact) */
.modal-content-base {
  background: rgba(255, 255, 255, 0.06);
  padding: 2rem;
  border-radius: 8px;
}


/*
================================================================
  Two-Column Work Modal Styles
================================================================
*/

/* This rule fixes the vertical centering issue for the work modal */
#work-modal-container {
  margin: auto;
}

/* Handles the entrance animation for the modal container */
#work-modal.visible #work-modal-container {
  transform: scale(1);
  opacity: 1;
}

/* Custom scrollbar for the two columns */
#modal-content-column::-webkit-scrollbar,
#modal-info-sidebar::-webkit-scrollbar {
  width: 8px;
}
#modal-content-column::-webkit-scrollbar-track,
#modal-info-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#modal-content-column::-webkit-scrollbar-thumb,
#modal-info-sidebar::-webkit-scrollbar-thumb {
  background-color: #4b5563; /* gray-600 */
  border-radius: 20px;
}

/* Main Content Stack (Left Column) */
.project-content-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Reduced from 2rem for tighter spacing */
}
.project-content-stack img,
.project-content-stack .video-container {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Info Sidebar (Right Column) */
.project-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Reduced gap slightly */
  position: sticky;
  top: 0; /* Makes the sidebar stick to the top of its container */
  padding: 1rem 0; /* Adds some breathing room at top and bottom */
}
.project-info-stack .project-title {
  font-size: 2rem; /* text-3xl */
  font-weight: 900;
  line-height: 1.2;
  color: white;
}
.project-info-stack .meta-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.project-info-stack .meta-item:last-child {
  border-bottom: none; /* Removes border from the last item */
}
.project-info-stack .meta-item h4 {
  font-weight: bold;
  font-size: 0.875rem; /* text-sm */
  color: #9ca3af; /* gray-400 */
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* This is the container for the rich text from Quill */
.project-info-stack .prose {
  color: #d1d5db; /* gray-300 */
  line-height: 1.6;
  font-size: 0.95rem;
}
.project-info-stack .prose h1,
.project-info-stack .prose h2,
.project-info-stack .prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 700;
    color: white;
}
.project-info-stack .prose a {
    color: #f472b6; /* pink-400 */
    text-decoration: underline;
}
.project-info-stack .prose blockquote {
    border-left: 3px solid #f472b6; /* pink-400 */
    padding-left: 1rem;
    font-style: italic;
    color: #9ca3af; /* gray-400 */
}

/* Updated rule for locally hosted tool icons */
.project-info-stack .meta-item .tool-tag img {
  width: 1rem;  /* 16px */
  height: 1rem; /* 16px */
  margin-right: 0.5rem; /* A bit more space */
}

/* --- Like Button Styles --- */
.like-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.like-button:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.like-button svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: all 0.2s ease;
}
/* Style for when the button has been liked */
.like-button.liked {
  background-color: #ed187b;
  border-color: #ed187b;
  cursor: default;
}
.like-button.liked svg {
  fill: white;
  transform: scale(1.1);
}

/* --- Comment Section Styles --- */
.comments-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#comment-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 1rem; /* Space for scrollbar */
}
.comment {
  margin-bottom: 1.5rem;
}
.comment-author {
  font-weight: bold;
  color: white;
}
.comment-date {
  font-size: 0.75rem;
  color: #9ca3af; /* gray-400 */
  margin-left: 0.5rem;
}
.comment-text {
  color: #d1d5db; /* gray-300 */
  margin-top: 0.25rem;
}

/* Comment Form Styles */
#comment-form { margin-top: 2rem; }
#comment-form input, #comment-form textarea {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: white;
  margin-bottom: 1rem;
}
#comment-form button {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: #ed187b;
  color: white;
  font-weight: bold;
}

/* --- Social Share Button Styles --- */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* 12px */
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.share-btn:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.2);
}
.share-btn svg {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  fill: white;
}

/* --- Accordion for Project Info on Mobile --- */

/* By default on desktop, the toggle button is hidden */
.info-toggle-btn {
  display: none;
}

/* STYLES FOR MOBILE AND TABLET (768px and below) */
@media (max-width: 768px) {
  /* Show the toggle button on mobile */
  .info-toggle-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    cursor: pointer;
  }
  .info-toggle-btn svg {
    transition: transform 0.3s ease;
  }
  .info-toggle-btn.active svg {
    transform: rotate(180deg);
  }

  /* Hide the content by default on mobile */
  #info-content-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease, padding 0.5s ease;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* This class is toggled by JS to show the content */
  #info-content-wrapper.info-visible {
    max-height: 3000px; /* A large value to allow content to expand */
    opacity: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
/* === ABOUT TEXT === */
#about-text {
  transition: transform 0.2s ease;
  will-change: transform;
  margin-bottom: 4rem; /* Add space below the About text */
}

/* === HAMBURGER MENU === */
#menu-btn { z-index: 51; }
.hamburger-line {
  transition: transform 0.3s ease-out, opacity 0.2s ease-out;
}
#menu-btn.open .line-1 {
  transform: translateY(8px) rotate(45deg);
}
#menu-btn.open .line-2 {
  opacity: 0;
}
#menu-btn.open .line-3 {
  transform: translateY(-8px) rotate(-45deg);
}
#mobile-menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
#mobile-menu.open .nav-link {
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu .nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* === BLOB BACKGROUND === */
@keyframes blob-move {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.3) translate(30px, -30px); }
  100% { transform: scale(1) translate(0, 0); }
}
.blob {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.6;
  z-index: -1;
  animation: blob-move 25s infinite alternate;
}
.blob-1 {
  background: rgba(255, 255, 255, 0.1);
  left: -50px;
  bottom: -50px;
  animation-delay: -12s;
}
.blob-2 {
  background: rgba(255, 255, 255, 0.08);
  right: -50px;
  top: -50px;
}

/* === ADDRESS + MAP BOX === */
.glowing-box {
  position: relative;
  padding: 3px;
  border-radius: 1.5rem;
  overflow: hidden;
  z-index: 1;
  box-shadow:
    0 2.8px 2.2px rgba(237, 24, 123, 0.03),
    0 6.7px 5.3px rgba(237, 24, 123, 0.04),
    0 12.5px 10px rgba(237, 24, 123, 0.05),
    0 22.3px 17.9px rgba(241, 86, 80, 0.06),
    0 41.8px 33.4px rgba(241, 86, 80, 0.07),
    0 100px 80px rgba(241, 86, 80, 0.1);
}
.glowing-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: -3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #ed187b, #f15650, #ed187b);
  animation: gradient-slide 4s linear infinite;
  background-size: 300% 300%;
  filter: blur(20px);
}
.address-box-wrapper::before {
  background: linear-gradient(135deg, #110038, #080219, #110038);
}
#gmap_canvas,
.address-box {
  border-radius: calc(1.5rem - 3px);
  position: relative;
  z-index: 2;
}
.address-box {
  background-color: rgba(17, 0, 56, 0.7);
  padding: 1.5rem;
}

/* === SCROLL TO TOP === */
#go-top-btn {
  position: fixed;
  bottom: -100px;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ed187b, #f15650);
  box-shadow: 0 4px 15px rgba(237, 24, 123, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: bottom 0.5s ease;
  z-index: 45;
}
#go-top-btn.visible {
  bottom: 2rem;
}

/*
================================================================
  New Player Alert Styles
================================================================
*/

/* This class will be used by JavaScript to hide elements */
.player-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.7) !important;
}

/* Styling for the new alert button */
.player-alert {
  position: fixed;
  left: 0; /* Stick to the left edge */
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: none; /* Remove border on the edge of the screen */
  border-radius: 0 0.5rem 0.5rem 0; /* Round only the right corners */
  padding: 1rem 0.5rem; /* Adjust padding for vertical layout */
  display: flex;
  flex-direction: column; /* This makes the content stack vertically */
  align-items: center; /* Center items horizontally */
  gap: 0.5rem; /* This is now the vertical gap */
  font-size: 0.75rem; /* Slightly smaller font for a compact look */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-alert:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(237, 24, 123, 0.3);
  /* Optional: make it peek out a bit on hover */
  padding-right: 0.75rem;
}

/* On mobile, use the same stable bottom positioning */
@media (max-width: 768px) {
  .player-alert {
    top: auto;
    bottom: 7.5rem;
    transform: translateY(0);
  }
}

/* === FLOATING AUDIO PLAYER === */

.player-toggle {
  position: fixed;
  left: 2rem; /* Added more space from the edge */
  top: 50%;   /* Use 50% for perfect vertical centering */
  transform: translateY(-50%); /* Adjust for the element's height */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ed187b, #f15650);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(237, 24, 123, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
}

.player-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(241, 86, 80, 0.6);
}

.player-toggle svg#toggleIcon {
  width: 26px;
  height: 26px;
  fill: white;
  z-index: 1003;
  position: relative;
}

/* Glowing & animated pause/play icon */
#toggleIcon.playing path {
  stroke: #fff;
  stroke-width: 2;
  animation: glowPulse 1.8s infinite ease-in-out;
  filter: drop-shadow(0 0 6px #ed187b);
}

#toggleIcon.paused path {
  fill: white;
  animation: glowPulse 1.8s infinite ease-in-out;
  filter: drop-shadow(0 0 6px #f15650);
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px #ed187b);
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px #f15650);
  }
}

/* Circle Text Wrapper */
#circleTextWrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#circleTextWrapper svg {
  width: 100%;
  height: 100%;
  animation: rotate 14s linear infinite reverse;
}

#circleTextWrapper text {
  font-size: 20px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  fill: white;
}

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

/* Sliding Glass Player - Default (Hidden) State */
.glass-player-modal {
  position: fixed;
  left: 2rem;   /* Match the button's left position */
  top: 50%;     /* Match the button's top position */
  transform: translateY(-50%) translateX(-120%); /* Start completely off-screen */
  width: 280px;
  height: 52px;
  z-index: 999;
  opacity: 0;   /* Start faded out */
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
}

/* Sliding Glass Player - Active (Visible) State */
.glass-player-modal.active {
  opacity: 1; /* Fade it in */
  pointer-events: auto;
  /* Slide it out to be perfectly next to the 60px toggle button with a 1rem gap */
  transform: translateY(-50%) translateX(calc(60px + 1rem));
}

/* Track Info */
.track-info {
  flex: 1;
  overflow: hidden;
}
.track-marquee {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-ticker 12s linear infinite;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}
@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Visualizer – large and centered */
#visualizer {
  position: relative;
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  border-radius: 50%;
  overflow: visible;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 20%, transparent 80%);
  box-shadow:
    0 0 20px rgba(237, 24, 123, 0.4),
    0 0 40px rgba(241, 86, 80, 0.2),
    inset 0 0 20px rgba(237, 24, 123, 0.15);
  animation: pulseGlow 4s infinite ease-in-out;
}
#visualizer canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  display: block;
}
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(237, 24, 123, 0.4),
      0 0 40px rgba(241, 86, 80, 0.2),
      inset 0 0 20px rgba(237, 24, 123, 0.15);
  }
  50% {
    box-shadow:
      0 0 40px rgba(237, 24, 123, 0.6),
      0 0 60px rgba(241, 86, 80, 0.3),
      inset 0 0 25px rgba(237, 24, 123, 0.2);
  }
}

/* Volume Controls */
.volume-container {
  position: relative;
}
.volume-icon {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.volume-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
}
.volume-slider-container {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  padding: 6px;
  border-radius: 0.5rem;
  display: none;
}
.volume-slider-container input[type="range"] {
  width: 100px;
}
.volume-container:hover .volume-slider-container {
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .glass-player-modal {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    top: auto;
    width: auto;
    max-width: 95%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transform: translateY(100%) scaleY(0);
    transform-origin: bottom center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.4s ease;
  }

  .glass-player-modal.active {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .track-info {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .marquee-content {
    font-size: 0.75rem;
  }

  #visualizer {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .volume-container {
    margin-left: 0.5rem;
  }

  .player-toggle {
    /* JavaScript will now handle the positioning */
  }
}
.category-tag {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid #ffffffcc;
  color: white;
  cursor: pointer;
  margin: 0.25rem;
  transition: all 0.3s ease;
  animation: bounceIn 0.6s ease-out both;
}

.category-tag.active {
  background: #ed187b;
  color: white;
  border-color: transparent;
  font-weight: 600;
}

.category-tag i {
  margin-right: 0.5rem;
  color: #ed187b;
  font-size: 1rem;
  vertical-align: middle;
}

/* Flicker Effect on Hover (Continuous) */
.category-tag:hover {
  animation: flicker 1.2s infinite linear;
  color: #ed187b;
  text-shadow: 0 0 5px #ff00c8, 0 0 10px #ed187b, 0 0 20px #ff00c8;
}

/* Stagger effect using nth-child */
.category-tag:nth-child(1) { animation-delay: 0.05s; }
.category-tag:nth-child(2) { animation-delay: 0.1s; }
.category-tag:nth-child(3) { animation-delay: 0.15s; }
.category-tag:nth-child(4) { animation-delay: 0.2s; }
.category-tag:nth-child(5) { animation-delay: 0.25s; }
.category-tag:nth-child(6) { animation-delay: 0.3s; }
.category-tag:nth-child(7) { animation-delay: 0.35s; }

.grid-item-visible {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.work-item {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.work-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.work-item.shuffling {
  animation: shuffleFade 0.4s ease-in-out;
}

#work-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(255, 0, 204, 0.2), 0 0 60px rgba(241, 86, 80, 0.15);
}

#work-modal.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

#work-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  filter: blur(12px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}
#work-modal-body {
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 90%;
  max-width: 1000px;
  color: white;
}

#work-modal-body::-webkit-scrollbar {
  width: 8px;
}
#work-modal-body::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 8px;
}
#work-modal-body::-webkit-scrollbar-track {
  background-color: transparent;
}

@media (max-width: 768px) {
  #zoomImage {
    max-height: 50vh !important;
    object-fit: contain;
  }

  #work-modal-body {
    padding: 1rem;
  }

  .rotate-notice {
    display: block;
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    z-index: 100;
    animation: blink 1.2s infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }
}

button#prevBtn, button#nextBtn {
  font-size: 2rem;
  line-height: 1;
}

/* === GLOWING BORDER EFFECT FOR WORK CARDS === */
.work-item.glass-glow {
  position: relative;
  border-radius: 3rem;
  overflow: hidden;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  background: rgba(255, 255, 255, 0.04);
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease, border 0.3s ease;
    border-radius: 1.5rem;
  z-index: 1;
}

.work-item.glass-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, #ed187b, #f15650, #ed187b);
  background-size: 300% 300%;
  animation: gradient-slide 6s linear infinite;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 0;
}

.work-item.glass-glow:hover::before {
  opacity: 0.8;
}

.work-item.glass-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(255, 0, 204, 0.3), 0 0 40px rgba(241, 86, 80, 0.25);
}

@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

#zoomImage {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}


/* Flicker Animation */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.4;
  }
  22% {
    opacity: 0.1;
  }
  57% {
    opacity: 0.7;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s forwards;
}

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
/* Add more if you expect more images */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideInUp {
  animation: slideInUp 0.7s ease forwards;
}

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.modal-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.modal-scroll-area::-webkit-scrollbar-thumb {
  background: #ed187b;
  border-radius: 8px;
}

@keyframes shuffleFade {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
  }
  70% {
    transform: scale(0.95) translateY(2px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
@keyframes bounceFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
  }
  70% {
    transform: scale(0.95) translateY(2px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.bounce-animate {
  animation: bounceFadeIn 0.6s ease-out;
}
.thumb {
  opacity: 0.7;
}
.thumb:hover {
  transform: scale(1.1);
  opacity: 1;
}
.main-image:fullscreen {
  object-fit: contain;
  height: 100%;
  width: auto;
  cursor: grab;
}
/* Core Cursor Styles */
/* Glowing Cursor Core */
#cyberpunk-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ff00cc;
  border-radius: 50%;
  background: rgba(255, 0, 204, 0.1);
  box-shadow: 0 0 10px #ff00cc, 0 0 20px #ff00cc;
  transform: translate(-50%, -50%);
  transition: transform 0.5s ease-out, box-shadow 0.2s ease;
}

#trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(1px);
  transition: opacity 0.5s ease;
}

body {
  cursor: none;
}

#cyberpunk-cursor .cursor-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #ff00cc;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
}


/* Glowing Trail Behind Cursor */
#cyberpunk-trail {
  position: fixed;
  width: 30px;
  height: 30px;
  background: rgba(255, 0, 204, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  box-shadow: 0 0 20px #ff00cc66, 0 0 60px #ff00cc44;
  animation: trailPulse 2s ease-in-out infinite alternate;
  transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Flicker Animation */
@keyframes flicker {
  0%, 18%, 22%, 25%, 55%, 60%, 100% { opacity: 1; }
  20%, 24%, 59% { opacity: 0.4; }
}

/* Glitchy Shake */
@keyframes glitchShift {
  0% { transform: translate(-50%, -50%) translate(0, 0); }
  10% { transform: translate(-50%, -50%) translate(1px, -1px); }
  20% { transform: translate(-50%, -50%) translate(-1px, 2px); }
  30% { transform: translate(-50%, -50%) translate(1px, 1px); }
  40% { transform: translate(-50%, -50%) translate(-2px, -1px); }
  50%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
}

/* Trail Breathing */
@keyframes trailPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.6; }
}

@keyframes rippleEffect {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.cursor-ring.animate {
  animation: rippleEffect 0.5s ease-out forwards;
}
#magnifier {
  position: absolute;
  pointer-events: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #00ffff;
  box-shadow: 0 0 20px #ff00cc;
  overflow: hidden;
  transform: scale(0);
  transition: transform 0.2s ease;
  z-index: 9999;
}

#magnifier::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: inherit;
  transform: scale(1.2);
  transform-origin: center;
  filter: contrast(120%) saturate(120%);
}
/* Enhanced glow on hover targets */
#cyberpunk-cursor.hover-glow {
  box-shadow:
    0 0 12px #ff00cc,
    0 0 25px #ff00cc,
    0 0 50px #ff00cc,
    0 0 70px #ff00cc;
  transform: translate(-50%, -50%) scale(1.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: none) and (pointer: coarse) {
  #cyberpunk-cursor,
  #cyberpunk-trail {
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
  }
}
@media (max-width: 480px) {
  .content-section {
    padding: 5rem 1rem 7rem;
    min-height: auto;
  }

  #about-text {
    font-size: 0.95rem;
    margin-bottom: 3rem;
    line-height: 1.6;
  }

  h1, h2, h3 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .glass-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }

  .service-card {
    min-height: 200px;
  }

  #services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}