

/* ====== GENERAL ====== */
:root {
  --primary-bg: #0a0f1e;
  --secondary-bg: #10182f;
  --accent: #ff0000;
  --text-light: #eaeaea;
  --text-muted: #a0a0a0;
  --card-bg: #000000;
  --border-color: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: black;
  color: var(--text-light);
  overflow: hidden;
}

/* ====== SIDEBAR ====== */
.sidebar {
  width: 260px;
  height: 100vh;
  background: black; /* FIXED */
  position: fixed;
  top: 0;
  left: 0;
  transition: width 0.35s ease-in-out;
  box-shadow: 0 0 20px rgb(255, 255, 255);
  z-index: 1000;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Collapsed sidebar */
.sidebar.collapsed {
  width: 95px;
}

/* ====== BRAND CONTAINER ====== */
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 1rem;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  font-weight: 1000;
  position: relative;
  overflow: visible;

  color: rgb(245, 4, 4);
  border-bottom: 1px solid var(--border-color);
  border: 2px solid #b30000;

  box-shadow:
    0 0 10px rgb(255, 30, 0),
    0 0 20px rgb(255, 0, 0),
    0 0 30px rgb(255, 0, 0);
}

/* ====== BRAND LEFT (ICON + TEXT) ====== */
.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease-in-out;
}

/* Hide text when collapsed */
.sidebar.collapsed .brand-left span {
  opacity: 0;
  pointer-events: none;
}

/* ====== SCAN TEXT EFFECT ====== */
.scan-text {
  display: inline-flex;
  gap: 0.12em;
  letter-spacing: 2px;
}

/* Each letter */
.scan-text span {
  position: relative;
  font-size: 1.0rem;
  color: rgb(252, 2, 2);
  z-index: 1;
}

/* Moving red light */
.scan-text span::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 4px;
  background: conic-gradient(
    transparent 0deg,
    #fc0000 70deg,
    transparent 140deg
  );
  filter: blur(2px);
  animation: flickerRed 1.1s linear infinite;
  z-index: 0;
}

@keyframes flickerRed {
  0%, 19%, 21%, 50%, 55%, 100% { opacity: 1; }
  20%, 22%, 54% { opacity: 0.3; }
}


/* ====== COLLAPSE BUTTON ====== */
.collapse-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: white;
  border: 1px solid white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 10;
}

.collapse-btn span {
  width: 22px;
  height: 2px;
  background: #db0404;
  border-radius: 2px;
  transition: all 0.35s ease;
}

.collapse-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgb(246, 248, 248);
}

/* Morph animation */
.sidebar.collapsed .collapse-btn span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.sidebar.collapsed .collapse-btn span:nth-child(2) {
  opacity: 0;
}

.sidebar.collapsed .collapse-btn span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}


/* Menu */
.menu {
  list-style: none;
  padding: 1rem 0;
}

.menu li {
  margin-bottom: 0.5rem;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: var(--text-light);
  border-left: 4px solid transparent;
  transition: 0.3s;
  white-space: nowrap;
  overflow: hidden;
}

/* Menu hover */
.menu a:hover,
.menu a.active {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  color: var(--accent);
}

/* Collapsed menu: only icons */
.sidebar.collapsed .menu a {
  justify-content: center;
}

.sidebar.collapsed .menu a span {
  display: none;
}

/* ====== MAIN CONTENT ====== */
#main-content {
  margin-left: 260px;        /* default */
  transition: margin-left 0.35s ease-in-out;
}

#main-content.expanded {
  margin-left: 70px;         /* adjust when sidebar collapsed */
}

/* Brand text */
.brand-text {
  transition: opacity 0.3s;
}

.sidebar.collapsed .brand-text {
  opacity: 0;          /* hide brand text when collapsed */
}


.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  padding: 1rem;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

.brand-icon {
  font-size: 2rem;
  color: var(--accent);
  animation: pulse 2s infinite;
  -webkit-text-stroke: 2px #ff0000; /* border width and color */
  -webkit-text-fill-color: black;    /* inner color */
}

.brand-text {
  font-weight: bolder;
  font-size: 1.1rem;
  margin-left: 10px;
  -webkit-text-stroke: 2px #ff0000; /* border width and color */
 
}

#collapse-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.3rem;
  cursor: pointer;
}

.menu {
  list-style: none;
  padding: 1rem 0;
}

.menu li {
  margin-bottom: 0.5rem;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: var(--text-light);
  border-left: 4px solid transparent;
  transition: 0.3s;

}

.menu a:hover,
.menu a.active {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  color: var(--accent);
}

/* ====== Dark/Light Theme ====== */
:root {
  --bg-color: #f4f4f4;
  --text-color: #222;
  --card-bg: #fff;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #eee;
  --card-bg: #1f1f1f;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

/* Example usage for sections/cards */
.page-section,
.project-card,
.skill-card,
.contact-info,
header,
.sidebar {
  background-color: var(--card-bg);
  transition: background 0.3s, color 0.3s;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.2s;
}

.theme-toggle:hover {
  transform: rotate(20deg);
}

/* ====== MAIN CONTENT ====== */
#main-content {
  margin-left: 250px;
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  transition: margin-left 0.35s ease-in-out;
}

#main-content.expanded {
  margin-left: 70px;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

/* === Profile & Recent Activities Layout === */
.main-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Profile card stays the same */
.profile-card {
  text-align: center;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Wrapper for rotating border */
.profile-photo-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: auto;
  border-radius: 50%;
  padding: 6px; /* border thickness */
  overflow: hidden;
}

/* Rotating multi-color border */
.profile-photo-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #ff005e,
    #ff7b00,
    #ffee00,
    #00ff88,
    #00c8ff,
    #9a00ff,
    #ff00e0,
    #ff005e
  );
  animation: rotate 3s linear infinite;
  z-index: 1;
}

/* Cover inside area */
.profile-photo-wrapper::after {
  content: "";
  position: absolute;
  inset: 6px; /* must match padding */
  background: var(--card-bg);
  border-radius: 50%;
  z-index: 2;
}

/* Actual image */
.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 3;
}

/* Animation */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.recent-activities {
  background: black;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.notifications-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.notifications-header i {
  font-size: 1.3rem;
  color: var(--accent);
  animation: ring 2s infinite;
}

@keyframes ring {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  50%,100% { transform: rotate(0deg); }
}

.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--text-light);
  transition: transform 0.2s;
}

.notification-card:hover {
  transform: translateY(-3px);
}

.notification-card i {
  font-size: 1.2rem;
}

.notification-card.success i { color: #00b894; }
.notification-card.info i { color: #e31009; }
.notification-card.warning i { color: #fdcb6e; }

.n-body p {
  font-weight: 500;
  margin: 0;
}

.timestamp {
  font-size: 0.8rem;
  color: gray;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);

  overflow-x: hidden;
  overflow-y: hidden;

  font-family: "Poppins", sans-serif;
}


.main-content,
.dashboard,
.page-section {
  width: 100%;
  max-width: 100%;
}

/* ====== DASHBOARD ====== */
.about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;

  border: 1px solid var(--border-color); /* Adds a border around the section */
  border-radius: 10px; /* Rounded corners */
  padding: 1.5rem; /* Space between content and border */
  margin-bottom: 1.5rem; /* Space below the section */
  background: var(--card-bg); /* Optional: match card style */
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.2);
}


.about-text {
  flex: 1 1 60%;
  padding-right: 2rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tools-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.tools-table th,
.tools-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.tools-table th {
  background: var(--accent);
  color: #fff;
}

.tools-table td {
  color: var(--text-light);
}
.profile-card,
.project-card,
.skill-card,
.recent-activities,
form {
  border: 1px solid var(--border-color);
}
.profile-card,
.project-card,
.skill-card,
.recent-activities,
form {
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover,
.project-card:hover,
.skill-card:hover,
.recent-activities:hover,
form:hover {
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.3);
  transform: translateY(-5px);
}
.profile-card img,
.profile-img {
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px var(--accent), 0 0 30px rgba(255, 0, 0, 0.3);
  transition: box-shadow 0.3s;
}

.profile-card img:hover,
.profile-img:hover {
  box-shadow: 0 0 25px var(--accent), 0 0 50px rgba(255, 0, 0, 0.4);
}
.tools-table {
  border: 1px solid var(--border-color);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  padding: 0.5rem;
  border: 3px solid var(--accent);
}

.tools-table th,
.tools-table td {
  border-bottom: 1px solid var(--border-color);
}
.menu a:hover,
.menu a.active {
  box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.4);
}
.visuals {
  text-align: center;
  margin-top: 2rem;
}

.visuals img {
  max-width: 50%;   /* prevents overflow */
  height: auto;      /* keeps image ratio */
  border-radius: 10px;
  margin: 8px 0;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2); /* optional glow */
}
.visuals img[alt="GitHub Activity"] {
  max-width: 50%;     /* or a fixed width, e.g. 800px */
}

/* ====== HIGHLIGHTS ====== */
.section-title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.highlight-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
}

.highlight-table th,
.highlight-table td {
  padding: 0.9rem 1rem;
  text-align: left;
}

.highlight-table thead {
  background: rgba(248, 56, 56, 0);
}

.highlight-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f83838;
}

.highlight-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.highlight-table tbody tr:hover {
  background: rgba(56, 191, 248, 0);
}

.highlight-table td:first-child {
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
}



/* ====== PROJECTS SECTION ====== */
.projects-section {
  padding: 60px 20px;
  color: #eaeaea;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 600;
}

/* ====== GRID: TWO PER COLUMN (VERTICAL PAIRS) ====== */
.projects-grid-vertical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 30px;
}

/* Project Card */
.project-card {
  background: #000000;
  border: 1px solid #eff0f1;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

/* Image wrapper */
.image-wrapper {
  width: 100%;
  height: 200px;
  overflow: Active;
  border-radius: 15px 15px 0 0;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.15);
}

.project-card h3 {
  margin: 15px 10px 5px;
  color: #f8f8f8;
}


.project-card p {
  margin: 0 10px 10px;
  color: #c9c9c9;
  font-size: 0.95rem;
}

/* GitHub Button */
.github-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #cc4343;
  color: #f5f1f1;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  box-shadow: 0 0 12px #ff0000;
}

.github-btn i {
  margin-right: 5px;
}

.github-btn:hover {
  background: #df5353;
  color: #000;
  box-shadow: 0 0 12px #ff0000;
}

.project-points {
  margin: 10px 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

.project-points li {
  margin-bottom: 6px;
}
.project-tags {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 0;
margin: 10px 0;
}


.project-tags li {
background: rgba(255, 0, 0, 0.1);
color: #ff0000;
padding: 4px 10px;
border-radius: 12px;
font-size: 0.75rem;
}


.project-actions {
margin-top: 10px;
}
/* ===== FULLSCREEN IMAGE MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

.modal .close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  cursor: pointer;
  color: white;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .projects-grid-vertical {
    grid-template-columns: 1fr;
  }
}
.slideshow-card .image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
}


.slideshow-card .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.slideshow-card .slide.active {
  opacity: 1;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 8px 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.slide-btn.prev {
  left: 10px;
}

.slide-btn.next {
  right: 10px;
}

.slide-btn:hover {
  background: rgba(0,0,0,0.7);
}


/* ===================== TIMELINE SECTION ===================== */

#events {
  padding: 40px;
}

.timeline {
  position: relative;
  margin: 20px auto;
  padding-left: 40px;
  border-left: 2px solid rgba(255, 0, 0, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-icon {
  position: absolute;
  left: -30px;
  top: 0;
  background: #d40000;
  color: #000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 12px #ff0000;
  font-size: 12px;
}

.timeline-content {
  background: #141d33;
  padding: 18px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.08);
}

.timeline-content h3 {
  margin: 0;
  font-size: 20px;
  color: #ff0000;
}

.timeline-date {
  display: block;
  margin: 5px 0 10px;
  font-size: 14px;
  color: #a0a0a0;
}

.timeline-content p {
  margin: 0;
  color: #eaeaea;
  font-size: 15px;
}

/* Glow on Hover */
.timeline-content:hover {
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
  transform: scale(1.02);
  transition: 0.2s ease;
}
/* ===================== TIMELINE STYLES ===================== */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 3px solid var(--accent);
}

.timeline-item {
  opacity: 0;
  transform: translateX(-50px);
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-icon {
  position: absolute;
  left: -1.25rem;
  top: 0;
  background: var(--accent);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.timeline-content {
  padding-left: 2.5rem;
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-content p {
  margin: 0.25rem 0 0;
  line-height: 1.5;
  color: var(--text-light);
}


/* ====== CERTIFICATES ====== */

.certificates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* always 2 columns */
  gap: 30px;
  justify-items: center;
  margin-top: 20px;
}

.certificate-card {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.certificate-card img {
  width: 350px;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
  transition: all 0.4s ease;
}

.certificate-card:hover img {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
}

.cert-name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000;
}

.cert-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #ff0000;
  color: #000;
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: 0.3s;
}

.cert-btn:hover {
  background: #ffffff;
}


/* Fade-in animation */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px);}
  100% { opacity: 1; transform: translateY(0);}
}

@media (max-width: 600px) {
  .certificates-grid {
    grid-template-columns: 1fr; /* stack vertically on mobile */
  }
}


/* ====== SKILLS ====== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-card {
  background: var(--card-bg);
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.skill-card i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

.skills-table th,
.skills-table td {
  border: 1px solid #000000;
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
}

.skills-table th {
  background-color: #2b2b2b;
  color: #fff;
  font-weight: 600;
}

.skills-table tbody tr:nth-child(even) {
  background-color: #000000;
}

.skill-icon {
  margin-right: 8px;
  color: #ff0000;
}

.skill-level {
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.skill-level.advanced {
  background-color: #28a745; /* Green */
}

.skill-level.intermediate {
  background-color: #ffc107; /* Amber */
}

.skill-level.beginner {
  background-color: #dc3545; /* Red */
}

/* ================= DOWNLOADS SECTION ================= */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.download-card {
  background: var(--card-bg,black);
  border-radius: 12px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 0 20px red;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px red;
}

.download-icon {
  font-size: 2.8rem;
  color: red;
  margin-bottom: 0.8rem;
}

.download-card h3 {
  margin: 0.5rem 0;
}

.download-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.2rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, red, white);
  color: black;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, red, white);
}

/* ====== CONTACT ====== */
.contact-section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: #aaa;
  margin-bottom: 2.5rem;
}

/* Contact Cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: #111;
  border-radius: 14px;
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;

  text-decoration: none;
  color: #fff;

  cursor: pointer;
  min-height: 90px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.contact-card i {
  font-size: 1.8rem;
  color: #eb5151;
}

.contact-card:focus-visible {
  outline: 2px solid #f74f4f;
  outline-offset: 4px;
}
.contact-card {
  touch-action: manipulation;
}
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(247, 79, 79, 0.25);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: #fff;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #d81f1f;
}

.contact-form button {
  background: linear-gradient(135deg, #ff0606, #ff0707);
  border: none;
  padding: 0.9rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 79, 79, 0.35);
}


/* ====== UTILS ====== */
.hidden {
  display: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* ====== SCROLL ====== */
#main-content::-webkit-scrollbar {
  width: 8px;
}

#main-content::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 8px;
}
.hidden {
  display: none;
}

/* ================= CYBER BACKGROUND (HARD ISOLATED) ================= */

#cyber-bg {
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  z-index: -1;              /* 🔥 push behind everything */
  pointer-events: none;

  overflow: hidden;
  isolation: isolate;       /* 🔥 stronger than contain */
}

/* Floating symbols */
.cyber-symbol {
  position: absolute;
  left: 0;
  white-space: nowrap;

  color: rgba(255, 0, 0, 0.18);
  font-family: "Courier New", monospace;
  font-size: 14px;
  opacity: 0.08;
  filter: blur(0.5px);

  animation: floatUp linear infinite;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);

  user-select: none;
  will-change: transform;
}

/* Animation */
@keyframes floatUp {
  from {
    transform: translateY(120vh);
  }
  to {
    transform: translateY(-140vh);
  }
}

/* Lock viewport width */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}



/* ===================== SCANNER & AUTH SECTIONS ONLY ===================== */
#scanner.page-section,
#auth.page-section {
  display: block;
  background-color: #0f111a;
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  max-width: 850px;
  margin: 40px auto;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.87);
}

/* Hidden sections (controlled by JS) */
#scanner.hidden,
#auth.hidden {
  display: none !important;
}

/* ===================== HEADINGS ===================== */
#scanner h2,
#auth h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 8px #f50404;
}


/* ===================== PARAGRAPHS & LISTS ===================== */

#scanner,
#auth {
  font-family: 'Rajdhani', sans-serif;
  background: #fcfcfc;
  padding: 50px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* ===================== TERMINAL STYLE HEADING ===================== */

#scanner h2,
#auth h2 {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

/* Terminal Command Effect */
#scanner h2::before,
#auth h2::before {
  content: "> ";
  color: #ffffff;
  font-weight: 600;
}

/* Animated Underline */
#scanner h2::after,
#auth h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.4s ease;
}

#scanner h2:hover::after,
#auth h2:hover::after {
  width: 100%;
}

/* ===================== PARAGRAPHS ===================== */

#scanner p,
#auth p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.6px;
  margin-bottom: 22px;
  color: #d9d9d9;
}

/* ===================== LISTS ===================== */

#scanner ul,
#auth ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

#scanner li,
#auth li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.6px;
}

/* Minimal arrow bullet */
#scanner li::before,
#auth li::before {
  content: "▸";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #ffffff;
}

/* Strong text emphasis */
#scanner li strong,
#auth li strong {
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===================== Subtle Panel Glow Animation ===================== */

@keyframes pulseGlow {
  0% { box-shadow: 0 0 20px rgba(255,255,255,0.02); }
  50% { box-shadow: 0 0 35px rgba(255,255,255,0.06); }
  100% { box-shadow: 0 0 20px rgba(255,255,255,0.02); }
}

#scanner,
#auth {
  animation: pulseGlow 6s infinite ease-in-out;
}


/* ===================== INPUTS & SELECTS ===================== */
#scanner input[type="url"],
#scanner select,
#auth input[type="email"],
#auth input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0 20px 0;
  border-radius: 6px;
  border: 1px solid #555;
  background-color: #1a1c2b;
  color: #e0e0e0;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
  font-family: 'Orbitron', sans-serif;
}

#scanner input:focus,
#scanner select:focus,
#auth input:focus {
  border: 1px solid #ff0000;
  box-shadow: 0 0 8px #ff0000;
}

/* ===================== CHECKBOXES ===================== */
#scanner label,
#auth label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 15px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
}

#scanner input[type="checkbox"],
#auth input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #ff0000;
}

/* ===================== BUTTONS ===================== */
#scanner button,
#auth button {
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  background-color: #ff0000;
  color: #0f111a;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  font-family: 'Orbitron', sans-serif;
}

#scanner button:disabled,
#auth button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

#scanner button:hover:not(:disabled),
#auth button:hover:not(:disabled) {
  background-color: #cc0000;
  transform: translateY(-2px);
}

/* ===================== CONSENT TEXT ===================== */
#auth .consent-text {
  background-color: #1a1c2b;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

#auth .consent-text ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* ===================== AUTH BUTTONS CONTAINER ===================== */
#auth .auth-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}



/* ===================== SCANNER PROGRESS BAR ===================== */
#scanner .progress-container {
  background-color: #0e0d0d;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 20px;
  height: 22px;
}

#scanner .progress-bar {
  background-color: #00ff99;
  height: 100%;
  width: 0%;
  text-align: center;
  color: #f80505;
  font-weight: bold;
  line-height: 22px;
  transition: width 0.5s ease;
  border-radius: 6px 0 0 6px;
  font-family: 'Orbitron', sans-serif;
}

/* ===================== SCAN RESULTS ===================== */
#scanner #scanResult {
  margin-top: 25px;
  background-color: #1a1c2b;
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.95rem;
}

/* ===================== REPORT BADGES ===================== */
#scanner .risk-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 10px;
  font-family: 'Orbitron', sans-serif;
}

#scanner .risk-high { background-color: #ff3c3c; color: #fff; }
#scanner .risk-medium { background-color: #ffaa00; color: #0f111a; }
#scanner .risk-low { background-color: #00ff99; color: #0f111a; }

/* ===================== DOWNLOAD BUTTON ===================== */
#scanner .download-btn {
  margin-top: 20px;
  background-color: #fd0d0d;
}

#scanner .download-btn:hover {
  background-color: #c20a0a;
}


/* ===================== QUIZ SECTION ===================== */

#quiz {
  background: #0f111a;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.quiz-container {
  max-width: 850px;
  width: 100%;
  background: #141625;
  padding: 50px;
  border-radius: 12px;
  border: 1px solid #1f2233;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  font-family: 'Rajdhani', sans-serif;
  color: #ffffff;
}

/* ===================== HEADER ===================== */

.quiz-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.quiz-header p {
  color: #b8bccf;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ===================== LEVEL SELECT ===================== */

.quiz-level-select h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

.level-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.level-buttons button {
  flex: 1;
  min-width: 150px;
  padding: 12px 18px;
  background: #1f2233;
  border: 1px solid #2a2e45;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.level-buttons button:hover {
  background: #ffffff;
  color: #0f111a;
  transform: translateY(-2px);
}

/* ===================== QUIZ AREA ===================== */

.quiz-progress {
  margin-bottom: 25px;
}

#questionCounter {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #aeb3c9;
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #1f2233;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transition: width 0.4s ease;
}

/* ===================== QUESTION ===================== */

.question-box {
  margin-bottom: 25px;
}

.question-box h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
}

/* ===================== ANSWERS ===================== */

.answers-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.answers-container button {
  padding: 12px 15px;
  background: #1f2233;
  border: 1px solid #2a2e45;
  border-radius: 6px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.answers-container button:hover {
  background: #ffffff;
  color: #0f111a;
}

/* Correct / Incorrect states (JS will toggle these classes) */
.answers-container button.correct {
  background: #00cc88;
  color: #0f111a;
}

.answers-container button.incorrect {
  background: #ff3c3c;
  color: #ffffff;
}

/* ===================== CONTROLS ===================== */

.quiz-controls {
  text-align: right;
}

.quiz-controls button {
  padding: 10px 20px;
  background: #ffffff;
  color: #0f111a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.quiz-controls button:hover {
  background: #e6e6e6;
}

/* ===================== RESULT SECTION ===================== */

.quiz-result {
  margin-top: 40px;
  padding: 30px;
  background: #1a1d2e;
  border-radius: 10px;
  border: 1px solid #2a2e45;
}

.quiz-result h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.quiz-result p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.result-message {
  margin-top: 20px;
  padding: 15px;
  background: #141625;
  border-radius: 6px;
  border: 1px solid #2a2e45;
}

.quiz-result button {
  margin-top: 25px;
  padding: 10px 18px;
  background: #ffffff;
  color: #0f111a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.quiz-result button:hover {
  background: #e6e6e6;
}

/* ===================== HIDDEN CLASS ===================== */

.hidden {
  display: none !important;
}

button.correct {
  background-color: #28a745;
  color: white;
}

button.wrong {
  background-color: #dc3545;
  color: white;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}


/* ===================== Crypto Playground  ===================== */
/* Container */
section#crypto.page-section {
  background-color: #0f111a;
  color: #e6edf3;
  padding: 36px;
  border-radius: 12px;
  max-width: 980px;
  margin: 36px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 18px rgba(255,0,0,0.06);
  font-family: 'Rajdhani', Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Layout */
section#crypto .crypto-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items: start;
}

/* Panels */
section#crypto .panel,
section#crypto .crypto-left,
section#crypto .crypto-right {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.03);
}

/* Headings & small text */
section#crypto h2 { color: #ff4d4d; margin: 0 0 10px 0; font-size: 1.6rem; }
section#crypto .muted { color: #bfc9cc; font-size: 0.95rem; }
section#crypto .small { font-size: 0.88rem; color: #9aa6ab; }

/* Inputs, textarea, select */
section#crypto input[type="text"],
section#crypto input[type="url"],
section#crypto textarea,
section#crypto select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: #0b0b0d;
  color: #e6edf3;
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow .15s, border-color .15s;
  font-family: 'Courier New', monospace;
}
section#crypto textarea { min-height: 84px; resize: vertical; }

/* Focus */
section#crypto input:focus,
section#crypto textarea:focus,
section#crypto select:focus {
  border-color: #ff4d4d;
  box-shadow: 0 0 8px rgba(255,77,77,0.12);
}

/* Buttons */
section#crypto button {
  background: #ff4d4d;
  color: #0f1116;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, opacity .12s;
}
section#crypto button.secondary {
  background: #15161a;
  color: #cfd8dc;
  border: 1px solid rgba(255,255,255,0.03);
}
section#crypto button:disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.7;
}
section#crypto .row { display:flex; gap:10px; flex-wrap:wrap; }

/* Output blocks */
section#crypto .output {
  background: #0b0b0d;
  color: #dfe7ea;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  font-family: monospace;
  font-size: 0.92rem;
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
}

/* Badges and status */
section#crypto .badge,
#cpKeyStatus {
  display:inline-block;
  padding:6px 8px;
  border-radius:8px;
  background: rgba(255,77,77,0.08);
  color: #ff4d4d;
  font-weight:700;
}

/* Section titles */
section#crypto .section-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }

/* Responsive */
@media (max-width: 980px) {
  section#crypto .crypto-grid { grid-template-columns: 1fr; }
  section#crypto .crypto-right { order: 2; }
}

/* Small utilities */
section#crypto .muted-list { color:#bfc9cc; margin:8px 0 0 18px; }
section#crypto hr { border: none; border-top: 1px solid rgba(255,255,255,0.03); margin:12px 0; }

/* Ensure hidden class still works */
section#crypto.hidden { display: none !important; }

/* Accessibility: focus outline for keyboard users */
section#crypto button:focus,
section#crypto input:focus,
section#crypto textarea:focus,
section#crypto select:focus {
  outline: 3px solid rgba(0,217,132,0.12);
  outline-offset: 2px;
}

/* ===================== TLS Validation Styles  ===================== */
section#tls.page-section {
  background: #0f111a;
  color: #e6edf3;
  padding: 28px;
  border-radius: 10px;
  max-width: 980px;
  margin: 28px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

section#tls .tls-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

section#tls input[type="url"],
section#tls select,
section#tls textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: #0b0b0d;
  color: #e6edf3;
  font-size: 0.95rem;
}

section#tls .checkbox-label { display:flex; gap:8px; align-items:center; margin-top:8px; color:#bfc9cc; }
section#tls .row { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
section#tls button { background:#ff4d4d; color:#fff; border:none; padding:10px 12px; border-radius:8px; cursor:pointer; font-weight:700; }
section#tls button.secondary { background:#15161a; color:#cfd8dc; border:1px solid rgba(255,255,255,0.03); }
section#tls .output { min-height:120px; background:#0b0b0d; padding:10px; border-radius:8px; border:1px solid rgba(255,255,255,0.03); font-family:monospace; color:#dfe7ea; white-space:pre-wrap; }
section#tls .badge { display:inline-block; padding:6px 8px; border-radius:8px; background: rgba(255,77,77,0.08); color:#ff4d4d; font-weight:700; }

section#tls .tls-right .output { max-height:220px; overflow:auto; }

@media (max-width:980px) {
  section#tls .tls-grid { grid-template-columns: 1fr; }
}


/* ===================== Input Field Analysis Styles  ===================== */
section#input-analysis.page-section {
  background: #0f111a;
  color: #e6edf3;
  padding: 28px;
  border-radius: 10px;
  max-width: 980px;
  margin: 28px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

section#input-analysis .ifa-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

section#input-analysis input[type="url"],
section#input-analysis input[type="text"],
section#input-analysis textarea,
section#input-analysis select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: #0b0b0d;
  color: #e6edf3;
  font-size: 0.95rem;
}

section#input-analysis .checkbox-label { display:flex; gap:8px; align-items:center; margin-top:8px; color:#bfc9cc; }
section#input-analysis .row { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
section#input-analysis button { background:#ff4d4d; color:#fff; border:none; padding:10px 12px; border-radius:8px; cursor:pointer; font-weight:700; }
section#input-analysis button.secondary { background:#15161a; color:#cfd8dc; border:1px solid rgba(255,255,255,0.03); }
section#input-analysis .output { min-height:120px; background:#0b0b0d; padding:10px; border-radius:8px; border:1px solid rgba(255,255,255,0.03); font-family:monospace; color:#dfe7ea; white-space:pre-wrap; }
section#input-analysis .badge { display:inline-block; padding:6px 8px; border-radius:8px; background: rgba(255,77,77,0.08); color:#ff4d4d; font-weight:700; }

@media (max-width:980px) {
  section#input-analysis .ifa-grid { grid-template-columns: 1fr; }
}


/* ===================== LIBRARY STYLES  ===================== */
section#library.page-section {
  background: #0f111a;
  color: #e6edf3;
  padding: 24px;
  border-radius: 10px;
  max-width: 1100px;
  margin: 28px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.library-inner { display:flex; flex-direction:column; gap:12px; }
.library-header h2 { margin:0 0 6px 0; }
.library-controls { display:flex; gap:10px; align-items:center; margin-top:6px; }
.library-controls input[type="search"], .library-controls select {
  padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.04); background:#0b0b0d; color:#e6edf3;
}

.lib-list { display:flex; flex-direction:column; gap:10px; margin-top:12px; }

/* Resource card */
.lib-card {
  display:flex; gap:12px; align-items:flex-start; padding:12px; border-radius:10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
}
.lib-card .meta { flex:1; }
.lib-card h3 { margin:0 0 6px 0; font-size:1rem; }
.lib-card p { margin:0; color:#bfc9cc; font-size:0.95rem; }
.lib-card .tags { margin-top:8px; color:#cfd8dc; font-size:0.85rem; }
.lib-card .actions { display:flex; gap:8px; align-items:center; }

/* Buttons */
.btn { background:#ff4d4d; color:#fff; border:none; padding:8px 10px; border-radius:8px; cursor:pointer; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:8px; }
.btn.secondary { background:#15161a; color:#cfd8dc; border:1px solid rgba(255,255,255,0.03); }
.btn-icon { background:transparent; border:none; color:#cfd8dc; font-size:1.05rem; cursor:pointer; }

/* Viewer modal */
.lib-viewer { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:1200; }
.lib-viewer.hidden { display:none; }
.lib-viewer__backdrop { position:absolute; inset:0; background:rgba(2,6,23,0.7); backdrop-filter: blur(4px); }
.lib-viewer__panel { position:relative; width:min(1100px, 96%); max-height:86vh; background:#0b0b0d; border-radius:10px; overflow:hidden; z-index:2; box-shadow:0 20px 60px rgba(0,0,0,0.7); display:flex; flex-direction:column; }
.lib-viewer__header { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,0.03); }
.lib-viewer__body { flex:1; min-height:320px; }
.lib-viewer__body iframe { width:100%; height:100%; border:0; background:#fff; }
.lib-viewer__actions { display:flex; gap:8px; padding:10px 14px; border-top:1px solid rgba(255,255,255,0.03); justify-content:flex-end; }

/* Responsive */
@media (max-width:900px) {
  .lib-card { flex-direction:column; }
  .library-controls { flex-direction:column; align-items:stretch; }
}


.disclaimer-banner {
  background: #111;
  border: 1px solid #ff6b6b;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  color: #f5f5f5;
  font-size: 0.95rem;
}

.disclaimer-banner h3 {
  color: #ff6b6b;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.disclaimer-banner strong {
  color: #00d084;
}

#siteFooter {
  position: relative;       /* needed for pseudo-element if used */
  height: 60px;             /* adjust as needed */
  background: #111;         /* dark background for contrast */
  color: #fff;
  text-align: center;
  line-height: 60px;
  box-shadow: 0 -5px 20px rgba(255, 0, 0, 0.6); /* red glow upward */
}




