body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0d0d0d;
  font-family: 'Nosifer', cursive;
  color: white;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar Styling */
.navbar {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #553333;
}

.navbar-brand {
  font-weight: 900;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  background: linear-gradient(90deg, #ff1e56, #ffac41, #e63946, #c1121f);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
  white-space: nowrap;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ff1e56 !important;
  text-shadow: 0 0 15px rgba(255, 30, 86, 0.8);
  transform: scale(1.1);
}

/* Hero Section */
.hero-container {
  position: relative;
  z-index: 2;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 5rem;
}

#projects {
  margin-top: -2rem;
}

h1 {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(90deg, #ff1e56, #ffac41, #e63946, #c1121f);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  margin: 3rem 0 2rem;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

h2-alt {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 900;
  background: linear-gradient(90deg, #ff1e56, #ffac41, #e63946, #c1121f);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  margin: 3rem 0 2rem;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Icon Row */
.icon-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.icon-container a {
  color: #fff;
  font-size: clamp(2rem, 8vw, 3rem);
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
  animation: bounce 2s infinite;
}

.icon-container a:hover {
  transform: scale(1.3);
  color: #ff1e56;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

/* Background Canvas */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero-container,
#projects,
#gallery,
footer {
  position: relative;
  z-index: 2;
}

/* Gallery */
.gallery img {
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 30, 86, 0.7);
}

.responsive-logo {
  display: block;
  margin: 0 auto 1rem;
  height: auto;
}

main {
  flex: 1;
}

footer {
  background: rgba(0,0,0,0.4);
  color: #bbb;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  border-top: 1px solid #553333;
  backdrop-filter: blur(8px);
}

footer a {
  color: #ff1e56;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* --- Mobile Tweaks --- */
@media (max-width: 576px) {
  .hero-container {
    padding-top: 4rem;
    min-height: 45vh;
  }
  .icon-container {
    gap: 1rem;
  }
  .gallery img {
    width: 100%;
    height: auto;
  }
}

/* --- Flame Theme, Player, Controls, Sliders, Scrollbar --- */
.flame-text {
  font-size: 2.4rem;
  background: linear-gradient(90deg, #ff1e56, #ffac41, #e63946, #c1121f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  animation: gradientMove 6s ease infinite;
  text-shadow: 0 0 20px rgba(255,0,0,0.7);
  margin-bottom: 1rem;
}

.player-wrap {
  margin: 0.5rem auto 3rem;
  background: rgba(12,6,6,0.9);
  border: 2px solid rgba(255,0,0,0.25);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(255,0,0,0.6);
  padding: 16px;
  color: #ffac41;
  position: relative;
}

#mediaPlayer {
  height: 360px;
  background: #fff;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.3), 0 0 24px rgba(255,0,0,0.25);
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.control-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,172,65,0.2);
  color: #ffac41;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s;
}

.control-btn:hover { transform: scale(1.08); box-shadow: 0 0 12px rgba(255,30,86,0.6); }
.control-btn[disabled] { opacity: .45; cursor: default; transform: none; }

#seek {
  -webkit-appearance: none;
  background: linear-gradient(90deg, rgba(255,30,86,0.15), rgba(255,172,65,0.07));
  height: 6px;
  border-radius: 6px;
}

#seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #ffac41; box-shadow: 0 0 8px rgba(255,30,86,0.6);
}

.volume-wrap { display:flex; align-items:center; gap:6px; }

#volume { -webkit-appearance:none; height:6px; border-radius:6px; }

#volume::-webkit-slider-thumb { -webkit-appearance:none; width:12px; height:12px; border-radius:50%; background:#ffac41; }

.playlist { margin: 12px 0; text-align: left; overflow:auto; }

.playlist-item {
  padding: 8px 10px; margin:6px 0; background:#0f0b0b; border:1px solid rgba(255,172,65,0.12);
  border-radius:8px; cursor:pointer; color:#ffac41; transition:transform .12s, background .12s;
}

.playlist-item:hover { transform:scale(0.98); background: linear-gradient(90deg, rgba(255,30,86,0.08), rgba(255,172,65,0.03)); }

.playlist-item.active { border-color:#ff1e56; box-shadow:0 0 8px rgba(255,30,86,0.2); background:#181012; color:#fff; }

.album-header {
  padding: 10px;
  margin: 6px 0;
  background: #181012;
  border: 1px solid rgba(255,172,65,0.2);
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #ffac41;
  transition: background 0.2s;
}

.album-header:hover { background: rgba(255,30,86,0.15); }

.album-tracks { margin-left: 16px; }
.hidden { display: none; }

.playlist::-webkit-scrollbar { width: 10px; }
.playlist::-webkit-scrollbar-track { background: #0f0b0b; border-radius: 8px; }
.playlist::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff1e56, #ffac41);
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(255,30,86,0.6);
}
.playlist::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4d6d, #ffbf60);
}
.playlist { scrollbar-width: thin; scrollbar-color: #ffac41 #0f0b0b; }

@media (max-width:700px) {
  #mediaPlayer { height: 200px; }
}

/* Bouncing Icons with Flame Gradient */
.icon-container a {
  display: inline-block;
  animation: bounce 2s infinite;
  transition: transform 0.3s;
  background: linear-gradient(90deg, #ff1e56, #ffac41, #e63946, #c1121f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(255,30,86,0.7);
}

.icon-container a:hover {
  transform: scale(1.3);
  background: linear-gradient(90deg, #990d1f, #b3591f, #8b1a2e, #670f15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255,30,86,0.9);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}


/* Card / thread / topic containers */
.card {
    background: rgba(12,6,6,0.9);
    border: 2px solid rgba(255,0,0,0.25);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(255,0,0,0.6);
    color: #ffac41;
}

/* Card headers */
.card-header {
    background: linear-gradient(90deg, #ff1e56, #ffac41, #e63946, #c1121f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

/* Forum thread/topic links */
a.stretched-link,
.forum-section a {
    color: #ffac41;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.stretched-link:hover,
.forum-section a:hover {
    color: #ff1e56;
    text-shadow: 0 0 12px rgba(255,30,86,0.7);
}

/* Text gradients for headings */
h2, h3, h4, h5, .forum-section h3, .forum-section h4, .forum-section h5 {
    font-weight: 900;
    background: linear-gradient(90deg, #ff1e56, #ffac41, #e63946, #c1121f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
}

/* List groups for subcategories */
.list-group-item {
    background: rgba(20,10,10,0.8);
    color: #ffac41;
    border: 1px solid rgba(255,30,86,0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background: rgba(255,30,86,0.15);
    box-shadow: 0 0 12px rgba(255,30,86,0.5);
}

/* Pagination */
.pagination .page-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(255, 30, 86, 0.4);
}

.pagination .page-link {
    background: linear-gradient(90deg, #ff1e56, #e63946);
    color: #fff;
    border: none;
    padding: 0.5rem 0.9rem;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(90deg, #ffac41, #ff1e56);
    transform: scale(1.05);
    text-shadow: 0 0 12px rgba(255,30,86,0.8);
}

.pagination .active .page-link {
    background: linear-gradient(90deg, #ffac41, #e63946);
    box-shadow: 0 0 12px rgba(255,30,86,0.6);
    color: #fff;
}

/* Forum forms */
.forum-section form input,
.forum-section form textarea,
.forum-section form select {
    background: #0f0b0b;
    border: 1px solid rgba(255, 172, 65, 0.25);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
}

.forum-section form input:focus,
.forum-section form textarea:focus,
.forum-section form select:focus {
    border-color: #ff1e56;
    box-shadow: 0 0 12px rgba(255,30,86,0.6);
    outline: none;
}

.forum-section form button,
.btn {
    border-radius: 8px;
    font-weight: 700;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #ff1e56, #e63946);
}

.btn-success {
    background: linear-gradient(90deg, #4caf50, #2e7d32);
}

.btn-info {
    background: linear-gradient(90deg, #29b6f6, #0288d1);
}

.btn-secondary {
    background: linear-gradient(90deg, #555, #333);
}

.btn:hover {
    transform: scale(1.07);
    box-shadow: 0 0 12px rgba(255,30,86,0.5);
}

/* Comments */
.card .card-body p {
    color: #fff;
}

/* Chat container */
.forum-section {
    background: rgba(15, 10, 10, 0.9);
    border: 2px solid rgba(255,30,86,0.3);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(255,30,86,0.5);
    padding: 20px;
}

/* Chat box scrolling area */
#chat-box {
    background: rgba(20,10,10,0.7);
    border: 1px solid rgba(255,30,86,0.2);
    border-radius: 12px;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

/* Individual messages */
.me-message {
    background: rgba(255,30,86,0.2);
    border-left: 3px solid #ff1e56;
    border-radius: 12px;
    padding: 5px 10px;
    margin-bottom: 6px;
    box-shadow: 0 0 8px rgba(255,30,86,0.4);
}

.other-message {
    background: rgba(255,172,65,0.1);
    border-left: 3px solid #ffac41;
    border-radius: 12px;
    padding: 5px 10px;
    margin-bottom: 6px;
    box-shadow: 0 0 6px rgba(255,172,65,0.3);
}

/* Avatar section */
.post-user img {
    border: 2px solid #ff1e56;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,30,86,0.5);
}

/* Username & badges */
.post-user span {
    color: #ffac41;
    font-weight: 600;
}

.post-user .badge {
    background: linear-gradient(90deg, #ff1e56, #ffac41);
    color: #fff;
    font-size: 0.6rem;
    margin: 0 1px;
}

/* Vertical avatar separator */
.avatar-separator {
    position: absolute;
    left: 50%;
    top: 50px;
    width: 2px;
    height: calc(100% - 50px);
    background: rgba(255,30,86,0.5);
}

/* Message content */
.post-content p {
    margin-bottom: 0.5rem;
    color: #fff;
    word-wrap: break-word;
}

/* Timestamp */
.post-content small {
    color: #ffac41;
}

/* Chat form */
#chat-form {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#chat-form textarea {
    flex: 1 1 auto;
    background: #0f0b0b;
    color: #fff;
    border: 1px solid rgba(255,172,65,0.25);
    border-radius: 8px;
    padding: 8px;
    resize: none;
}

#chat-form textarea:focus {
    outline: none;
    border-color: #ff1e56;
    box-shadow: 0 0 12px rgba(255,30,86,0.5);
}

/* Send button */
#chat-send-btn {
    background: linear-gradient(90deg, #ff1e56, #e63946);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255,30,86,0.6);
}

/* Emoji button */
#emoji-btn {
    background: linear-gradient(90deg, #ffac41, #ff1e56);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

#emoji-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255,30,86,0.5);
}

/* Emoji popup */
#emoji-popup {
    position: absolute;
    background: rgba(12,6,6,0.95);
    border: 1px solid rgba(255,30,86,0.4);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
}

/* Emoji items */
.emoji-item {
    color: #ffac41;
    font-size: 1.2rem;
    padding: 3px;
    transition: all 0.2s ease;
}

.emoji-item:hover {
    color: #ff1e56;
    transform: scale(1.2);
}

/* Tabs inside emoji popup */
.nav-tabs .nav-link {
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
    color: #ffac41;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(90deg, #ff1e56, #e63946);
    color: #fff;
    border-radius: 6px;
}

.nav-tabs .nav-link:hover {
    color: #ff1e56;
}

/* Scrollbar for chat box and emoji popup */
#chat-box::-webkit-scrollbar,
#emoji-popup::-webkit-scrollbar {
    width: 6px;
}

#chat-box::-webkit-scrollbar-thumb,
#emoji-popup::-webkit-scrollbar-thumb {
    background: rgba(255,30,86,0.6);
    border-radius: 3px;
}

#chat-box::-webkit-scrollbar-track,
#emoji-popup::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

/* Container for individual messages */
.d-flex.justify-content-end .card, /* me-message */
.d-flex.justify-content-start .card { /* other-message */
    max-width: 85%; /* widen by default */
}

/* Avatar/username section */
.d-flex .card-body > div.text-center.me-2 {
    width: 120px; /* wider avatar/username column */
    min-width: 120px;
    text-align: center;
}

/* Adjust avatar size slightly if needed */
.d-flex .card-body > div.text-center.me-2 img {
    width: 50px;
    height: 50px;
}

/* Flex for message content */
.d-flex .card-body > div.flex-grow-1 {
	width: 85%;
    flex-grow: 1;
    font-size: 0.85rem;
}

/* Optional: tweak me-message background for distinction */
.d-flex.justify-content-end .card {
    background: linear-gradient(90deg, #ff1e56, #e63946);
    color: #fff;
}

/* Optional: tweak other-message background for clarity */
.d-flex.justify-content-start .card {
    background: #444;
    color: #fff;
}

/* Dark theme modal */
#loginModal .modal-content {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Header */
#loginModal .modal-header {
  border-bottom: 1px solid #333;
}
#loginModal .modal-title {
  color: #ffffff;
}
#loginModal .btn-close {
  filter: invert(1);
}

/* Section headings (Login / Register) */
#loginModal h6 {
  color: #ffffff;
  font-weight: 600;
}

/* Inputs */
#loginModal .form-control {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #ffffff;              /* White text inside inputs */
}
#loginModal .form-control::placeholder {
  color: #b0b0b0;              /* Lighter placeholder for contrast */
}
#loginModal .form-control:focus {
  background-color: #2e2e2e;
  border-color: #0d6efd;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

/* Buttons */
#loginModal .btn-primary {
  background-color: #0d6efd;
  border: none;
}
#loginModal .btn-primary:hover {
  background-color: #0b5ed7;
}

#loginModal .btn-success {
  background-color: #198754;
  border: none;
}
#loginModal .btn-success:hover {
  background-color: #157347;
}

/* Divider */
#loginModal hr {
  border-color: #444;
}

/* Messages */
#loginModal .text-danger {
  color: #ff6b6b !important;
}
#loginModal .text-success {
  color: #4ade80 !important;
}




