* {
  margin: 0; /* Remove default spacing around elements */
  padding: 0; /* Remove default inner spacing */
  box-sizing: border-box; /* Include padding/border in element width */
}

/* BODY STYLING - Sets defaults for the entire page */
body {
  background: rgb(0, 0, 0)
    url("https://res.cloudinary.com/dlyycwdgp/image/upload/v1745770052/cherryblossom_caaafl.jpg")
    no-repeat center fixed;
  background-size: cover;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  color: rgb(247, 237, 247);
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

html {
  overflow-x: hidden; /* Prevent horizontal scrolling at root level */
}

/* ==========================
   DRAWER SYSTEM STYLES
   ========================== */

/* Drawer Root Container */
.drawer {
  position: relative;
  display: flex;
  min-height: 100vh;
}

/* Hidden Checkbox Toggle */
.drawer-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Drawer Content - Main page content */
.drawer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

/* Drawer Side - Sidebar wrapper */
.drawer-side {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

/* Enable pointer events when drawer is open */
.drawer-toggle:checked ~ .drawer-side {
  pointer-events: auto;
}

/* Drawer Overlay - Dark overlay when drawer is open */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  cursor: pointer;
  z-index: 1000;
}

/* When checkbox is checked - show drawer */
.drawer-toggle:checked ~ .drawer-side {
  transform: translateX(0);
}

.drawer-toggle:checked ~ .drawer-side .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

/* Pulse animation for overlay to indicate it's clickable */
@media (max-width: 768px) {
  .drawer-toggle:checked ~ .drawer-side .drawer-overlay {
    animation: overlayPulse 2s ease-in-out 0.5s 2;
  }
}

@keyframes overlayPulse {
  0%,
  100% {
    background-color: rgba(0, 0, 0, 0.85);
  }
  50% {
    background-color: rgba(0, 0, 0, 0.75);
  }
}

/* ==========================
   NAVIGATION & HEADER
   ========================== */

/* HERO SECTION - The big title at the top */
.hero {
  background: rgba(138, 20, 105, 0.695);
  color: white;
  text-align: center;
  padding: 2rem;
  font-size: 2.5rem;
  font-weight: bold;
  border-bottom: double rgb(248, 246, 246);
}

/* NAVIGATION BAR - Enhanced for devlogs navigation */
.navbar {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(20, 10, 30, 0.9) 100%
  );
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 3px solid rgba(243, 104, 243, 0.5);
  box-shadow: 0 4px 20px rgba(243, 104, 243, 0.3);
}

/* Hamburger Menu Button */
.drawer-button {
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  border-radius: 4px;
  border: 2px solid rgb(243, 104, 243);
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.drawer-button:hover {
  background-color: rgba(243, 104, 243, 0.3);
  box-shadow: 0 2px 12px rgba(243, 104, 243, 0.5);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  stroke: rgb(243, 104, 243);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 3px rgba(243, 104, 243, 0.8));
}

/* SESSION DROPDOWN - Compact selectors for projects and sessions */
.project-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-selector label {
  color: rgb(138, 20, 105);
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(138, 20, 105, 0.5);
}

.project-dropdown {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.4) 0%,
    rgba(102, 126, 234, 0.3) 100%
  );
  color: white;
  border: 2px solid rgba(138, 20, 105, 0.6);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  max-width: 300px;
}

.project-dropdown:hover {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.6) 0%,
    rgba(102, 126, 234, 0.5) 100%
  );
  border-color: rgb(138, 20, 105);
  box-shadow: 0 4px 12px rgba(138, 20, 105, 0.4);
  transform: translateY(-1px);
}

.project-dropdown:focus {
  border-color: rgb(138, 20, 105);
  box-shadow:
    0 0 0 3px rgba(138, 20, 105, 0.2),
    0 4px 16px rgba(138, 20, 105, 0.5);
}

.project-dropdown option {
  background: rgb(20, 10, 30);
  color: white;
  padding: 0.5rem;
}

/* SESSION DROPDOWN - Compact selector for sessions */
.session-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.session-selector label {
  color: rgb(243, 104, 243);
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(243, 104, 243, 0.5);
}

.session-dropdown {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.4) 0%,
    rgba(102, 126, 234, 0.3) 100%
  );
  color: white;
  border: 2px solid rgba(243, 104, 243, 0.5);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  max-width: 500px;
}

.session-dropdown:hover {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.6) 0%,
    rgba(102, 126, 234, 0.5) 100%
  );
  border-color: rgb(243, 104, 243);
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.4);
  transform: translateY(-1px);
}

.session-dropdown:focus {
  border-color: rgb(243, 104, 243);
  box-shadow:
    0 0 0 3px rgba(243, 104, 243, 0.2),
    0 4px 16px rgba(243, 104, 243, 0.5);
}

.session-dropdown option {
  background: rgb(20, 10, 30);
  color: white;
  padding: 0.5rem;
}

/* RESUME TABS - For about.html section filtering */
#resume-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
}

.session-tab {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.6) 0%,
    rgba(102, 126, 234, 0.4) 100%
  );
  color: white;
  border: 2px solid rgba(243, 104, 243, 0.7);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.session-tab:hover {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.6) 0%,
    rgba(102, 126, 234, 0.5) 100%
  );
  border-color: rgb(243, 104, 243);
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.4);
  transform: translateY(-1px);
}

.session-tab.active {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.8) 0%,
    rgba(102, 126, 234, 0.7) 100%
  );
  border-color: rgb(243, 104, 243);
  box-shadow: 0 0 15px rgba(243, 104, 243, 0.6);
}

.session-tab i {
  margin-right: 0.3rem;
}

/* PDF DOWNLOAD BUTTON */
.pdf-download-btn {
  background: linear-gradient(
    135deg,
    rgba(243, 104, 243, 0.8) 0%,
    rgba(138, 20, 105, 0.8) 100%
  );
  color: white;
  border: 2px solid rgb(243, 104, 243);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(243, 104, 243, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.pdf-download-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(243, 104, 243, 1) 0%,
    rgba(138, 20, 105, 1) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 104, 243, 0.6);
}

.pdf-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(243, 104, 243, 0.4);
}

.pdf-download-btn i {
  font-size: 1.1rem;
}

/* NAVIGATION LIST - Remove default list styling */
.navbar ul {
  list-style: none; /* Remove bullet points */
  display: flex; /* Use flexbox for horizontal layout */
  gap: 2rem; /* Space between navigation items */
  flex: 1;
  justify-content: center;
}

/* NAVIGATION LINKS - Style the clickable links */
.navbar a {
  color: white; /* White text */
  text-decoration: none; /* Remove underline */
  padding: 0.5rem 1rem; /* Add space around text */
  border-radius: 4px; /* Rounded corners */
  transition: all 0.3s; /* Smooth color change on hover */
  font-weight: bold;
}

/* HOVER EFFECT - What happens when you hover over navigation */
.navbar a:hover {
  background-color: rgba(243, 104, 243, 0.2);
  color: rgb(243, 104, 243);
}

/* ==========================
   MAIN CONTENT LAYOUT
   ========================== */

/* MAIN CONTAINER - Holds main content */
.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Page Title */
.page-title {
  color: rgb(255, 255, 255);
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: thick double rgba(248, 246, 246, 0.688);
  text-align: center;
}

/* MAIN CONTENT AREA - Main column for content */
.main-content {
  background-color: rgba(0, 0, 0, 0.822);
  padding: 2rem;
  border-radius: 10px;
  border: thick double rgba(248, 246, 246, 0.688);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.397);
}

/* MAIN TITLE - The h2 in main content */
.main-content h2 {
  color: rgb(243, 104, 243);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 2px solid rgb(243, 104, 243);
  padding-bottom: 0.5rem;
}

/* Main content text styling for readability */
.main-content p {
  color: rgb(240, 240, 240);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.main-content h3 {
  color: rgb(255, 255, 255);
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
}

.main-content h3 strong {
  color: rgb(255, 255, 255);
}

.main-content ul,
.main-content ol {
  color: rgb(240, 240, 240);
  margin-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.main-content li {
  color: rgb(240, 240, 240);
  margin-bottom: 0.5rem;
}

.main-content strong {
  color: rgb(243, 104, 243);
  font-weight: 600;
}

.main-content hr {
  border: none;
  border-top: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
}

.main-content section {
  margin-bottom: 2rem;
}

.main-content section h2,
.main-content section h3 {
  color: rgb(243, 104, 243);
}

.main-content a {
  color: rgb(150, 200, 255);
  text-decoration: none;
}

.main-content a:hover {
  color: rgb(243, 104, 243);
}

.main-content i.bi {
  color: rgb(243, 104, 243);
}

/* DEV LOG ARTICLE ENTRIES */
#dev-logs article {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-left: 4px solid rgb(243, 104, 243);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#dev-logs article h3 {
  color: rgb(243, 104, 243);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: bold;
}

#dev-logs article small {
  color: rgb(180, 180, 180);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1rem;
}

#dev-logs article p {
  color: rgb(230, 230, 230);
  margin-bottom: 0.75rem;
  line-height: 1.8;
  font-size: 1.1em;
}

#dev-logs article p:last-child {
  margin-bottom: 0;
}

/* Clear floats after article content */
#dev-logs article::after {
  content: "";
  display: table;
  clear: both;
}

/* TEXT FORMATTING WITHIN DEV LOGS */
#dev-logs article strong,
#dev-logs article b {
  color: rgb(243, 104, 243);
  font-weight: 600;
}

#dev-logs article em,
#dev-logs article i {
  font-style: italic;
  color: rgb(200, 150, 200);
}

#dev-logs article code {
  background-color: rgba(138, 20, 105, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  color: rgb(255, 180, 255);
  border: 1px solid rgba(243, 104, 243, 0.3);
}

#dev-logs article ul,
#dev-logs article ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: rgb(230, 230, 230);
}

#dev-logs article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#dev-logs article blockquote {
  border-left: 3px solid rgb(243, 104, 243);
  padding-left: 1rem;
  margin: 1rem 0;
  color: rgb(230, 230, 230);
  font-style: italic;
  background-color: rgba(138, 20, 105, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

#dev-logs article hr {
  border: none;
  border-top: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
}

/* Article Images */
.article-image {
  margin: 1.5rem 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
}

/* Image Alignment Classes */
#dev-logs article img.img-full {
  max-width: 100%;
  width: 100%;
  max-height: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
  display: block;
}

#dev-logs article img.img-center {
  max-width: 80%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem auto;
  display: block;
}

#dev-logs article img.img-float-left {
  max-width: 45%;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 0.5rem 1.5rem 1rem 0;
  float: left;
}

#dev-logs article img.img-float-right {
  max-width: 45%;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 0.5rem 0 1rem 1.5rem;
  float: right;
}

#dev-logs article img {
  max-width: 100%;
  max-height: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
  display: block;
}

/* Paragraphs with inline images */
#dev-logs article p img.img-float-left,
#dev-logs article p img.img-float-right {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  max-height: 300px;
}

#dev-logs article p:has(img.img-float-left),
#dev-logs article p:has(img.img-float-right) {
  overflow: auto; /* Clearfix for floating images within paragraphs */
  min-height: 150px; /* Ensure paragraph has enough height for image */
}

.article-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgb(180, 180, 180);
  font-style: italic;
}

/* Content Card Styles */
#dev-logs article .content-card {
  margin: 1.5rem 0;
  overflow: auto;
}

#dev-logs article .content-card .card-section-title {
  color: rgba(243, 104, 243, 0.9);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(243, 104, 243, 0.4);
}

#dev-logs article .content-card .card-text {
  color: rgb(200, 200, 200);
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: justify;
}

#dev-logs article .content-card img.img-card-left {
  max-width: 45%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 0.5rem 1.5rem 1rem 0;
  float: left;
}

#dev-logs article .content-card img.img-card-right {
  max-width: 45%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 0.5rem 0 1rem 1.5rem;
  float: right;
}

#dev-logs article .content-card img.img-card-center {
  max-width: 80%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem auto;
  display: block;
}

#dev-logs article .content-card img.img-card-full {
  max-width: 100%;
  width: 100%;
  max-height: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
  display: block;
}

/* ==========================
   SIDEBAR STYLES
   ========================== */

/* SIDEBAR - Left drawer sidebar */
.sidebar {
  background: rgba(138, 20, 105, 0.9);
  padding: 2rem;
  width: 300px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 1002;
  border-right: thick double rgba(248, 246, 246, 0.688);
  pointer-events: auto;
}

/* Close hint for mobile users */
.sidebar::before {
  content: "Tap outside to close";
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: rgb(243, 104, 243);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  border: 2px solid rgb(243, 104, 243);
  opacity: 0;
  animation: fadeInHint 0.5s ease 0.8s forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes fadeInHint {
  to {
    opacity: 1;
  }
}

/* Hide hint on desktop */
@media (min-width: 769px) {
  .sidebar::before {
    display: none;
  }
}

/* PROFILE IMAGE - The profile picture */
.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem auto;
  border: 3px solid rgba(248, 246, 246, 0.688);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* SIDEBAR HEADINGS - h2 elements in the sidebar */
.sidebar h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
}

/* SIDEBAR PARAGRAPHS - Text in the sidebar */
.sidebar p {
  color: rgb(247, 237, 247);
  line-height: 1.5;
}

/* SIDEBAR NAVIGATION - Styled navigation links */
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.sidebar-nav li {
  margin: 0.5rem 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-nav a i {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */

/* RESPONSIVE DESIGN - Make it work on smaller screens */
/* @media is a "media query" - it applies styles only when conditions are met */
@media (max-width: 1000px) {
  body {
    background-size: cover;
    background-attachment: scroll;
  }

  .container {
    margin: 1rem;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* When screen is 768px or smaller (tablets/phones) */

  body {
    background-size: cover;
    background-attachment: scroll;
  }

  /* Make hamburger menu more visible on mobile */
  .drawer-button {
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.85);
    border: 3px solid rgb(243, 104, 243);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
  }

  .hamburger-icon {
    width: 28px;
    height: 28px;
    stroke-width: 3;
  }

  .hero {
    font-size: 1.8rem; /* Smaller text on small screens */
    padding: 1rem; /* Less padding */
    background: rgba(138, 20, 105, 0.9); /* More opaque on mobile */
  }

  .navbar ul {
    gap: 1rem; /* Less space between items */
  }

  .navbar {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.9); /* More opaque on mobile */
    flex-wrap: wrap;
  }

  /* Resume tabs responsive */
  #resume-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .session-tab {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }

  /* PDF button responsive */
  .pdf-download-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .pdf-download-btn span {
    display: none; /* Hide text on smaller screens, show icon only */
  }

  .project-selector {
    width: 100%;
  }

  .session-selector {
    width: 100%;
  }

  .project-dropdown {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .session-dropdown {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .container {
    margin: 1rem;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.92); /* More opaque on mobile */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  }

  .page-title {
    font-size: 1.8rem;
    background: rgba(138, 20, 105, 0.9);
    padding: 0.75rem;
    border-radius: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  /* Sidebar takes full width on mobile */
  .drawer-side {
    width: 85%;
    max-width: 320px;
  }

  /* Stronger overlay on mobile */
  .drawer-overlay {
    background-color: rgba(0, 0, 0, 0.85);
  }

  .sidebar {
    width: 100%;
  }

  #dev-logs article {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.92); /* More opaque on mobile */
  }

  /* Make all images full-width on mobile (no floating) */
  #dev-logs article img.img-float-left,
  #dev-logs article img.img-float-right,
  #dev-logs article .content-card img.img-card-left,
  #dev-logs article .content-card img.img-card-right {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
    display: block;
  }

  #dev-logs article img.img-center {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .drawer-side {
    width: 90%;
    max-width: 100%;
  }

  /* Even stronger overlay on small phones */
  .drawer-overlay {
    background-color: rgba(0, 0, 0, 0.9);
  }

  /* Extra visible hamburger on small phones */
  .drawer-button {
    padding: 0.85rem;
    background-color: rgba(0, 0, 0, 0.95);
    border: 3px solid rgb(243, 104, 243);
  }

  .hamburger-icon {
    width: 32px;
    height: 32px;
    stroke-width: 3.5;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .hero {
    font-size: 1.5rem;
    background: rgba(138, 20, 105, 0.95);
  }

  .navbar {
    background-color: rgba(0, 0, 0, 0.95);
  }

  /* Resume tabs - smaller on small phones */
  .session-tab {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }

  /* PDF button - smaller on small phones */
  .pdf-download-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .main-content {
    background-color: rgba(0, 0, 0, 0.95);
  }

  .project-selector {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .project-dropdown {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .session-selector {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .session-dropdown {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .navbar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-selector {
    width: 100%;
    justify-content: flex-start;
  }

  .session-selector {
    width: 100%;
    justify-content: flex-start;
  }

  #dev-logs article {
    background-color: rgba(
      0,
      0,
      0,
      0.95
    ); /* Even more opaque on small phones */
  }

  #dev-logs article p {
    font-size: 1em;
  }
}

/* ==========================
   LEGACY COMPATIBILITY STYLES
   ========================== */

/* Legacy: Company Slogan Color */
#comSlo {
  color: rgb(243, 104, 243);
}

/* Legacy: Main Content Box */
.logTex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(247, 237, 247);
  border: thick double rgba(248, 246, 246, 0.688);
  background-color: rgba(0, 0, 0, 0.822);
  font-family: "Courier New", Courier, monospace;
  padding: 20px;
  margin: 20px auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.397);
}

.logTex h1 {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  color: rgb(255, 255, 255);
}

.logTex h2 {
  color: rgb(243, 104, 243);
  font-size: 1.8em;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.logTex h3 {
  color: white;
  font-size: 1.4em;
  margin-top: 1rem;
}

.logTex p {
  font-size: 1.6em;
  line-height: 1.8;
  text-align: center;
  color: rgb(230, 230, 230);
  margin-bottom: 15px;
}

.logTex ul {
  text-align: left;
  color: rgb(230, 230, 230);
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.logTex a {
  text-decoration: none;
}

/* Legacy: Hero Banner */
#hero_banner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: rgba(138, 20, 105, 0.695);
  border: double black;
  padding: 20px;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.hero-content > div {
  flex: 1;
  text-align: center;
}

#hero_banner img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

#hero_banner h1 {
  font-size: 2.5em;
  margin: 10px 0;
  color: white;
}

#hero_banner p {
  font-size: 1.2em;
  color: white;
  margin: 0;
}

/* Legacy: Navigation Bar */
.navigation_bar {
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  margin-bottom: 20px;
}

.navigation_bar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.navigation_bar li {
  display: inline;
}

.navigation_bar a {
  text-decoration: none;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navigation_bar a:hover {
  color: #f0a500;
}

/* Legacy: Buttons */
.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: white;
  background-color: rgba(138, 20, 105, 0.7);
  border: 3px solid rgb(243, 104, 243);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.button:hover {
  background-color: rgba(243, 104, 243, 0.3);
  color: white;
  border-color: rgb(255, 180, 255);
}

.home-button {
  background-color: #9c20778c;
  color: white;
  border: 2px solid rgb(255, 255, 255);
  padding-left: 5px;
  padding-right: 5px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.home-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Legacy: Footer Styles */
footer.app-footer {
  background-color: #1a1a1ad7;
  color: #ffffff;
  padding: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 100%;
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

.footer-center {
  text-align: center;
}

.footer-icons a {
  margin: 0 5px;
  color: #ffffff;
  text-decoration: none;
}

.footer-icons a:hover {
  color: #f0f0f0;
}

.footer-right {
  text-align: right;
}

/* Legacy: Utility Classes */
.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

img.responsive {
  max-width: 100%;
  height: auto;
}

.mainContent {
  display: flex;
  flex-direction: row;
  background-color: rgba(188, 90, 212, 0.695);
  margin: 5% auto;
  border: 5cap inset rgb(49, 8, 57);
  color: rgb(80, 221, 10);
}

#trippy {
  background-color: rgba(193, 128, 203, 0.351);
  display: flex;
  justify-content: space-around;
}

img.lazyload {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazyload[src] {
  opacity: 1;
}

/* Legacy: Mobile Overrides */
@media (max-width: 700px) {
  .logTex {
    flex-direction: column;
    font-size: smaller;
    padding: 5px;
    margin: 20px;
  }

  .responsive,
  #hero_banner img {
    display: none;
  }

  #hero_banner {
    flex-direction: column;
    height: auto;
  }

  .navigation_bar {
    flex-direction: column;
    font-size: medium;
  }

  #trippy img {
    width: 100%;
    height: auto;
  }

  #hero_banner > div {
    margin-bottom: 20px;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
    margin-top: 10px;
  }
}

/* ==========================
   APP PREVIEW MODAL STYLES
   ========================== */

.app-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.app-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-modal-content {
  position: relative;
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.95) 0%,
    rgba(102, 126, 234, 0.95) 100%
  );
  border-radius: 12px;
  border: 3px solid rgb(243, 104, 243);
  box-shadow: 0 8px 32px rgba(243, 104, 243, 0.5);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(243, 104, 243, 0.5);
  border-radius: 12px 12px 0 0;
}

.app-modal-title {
  color: rgb(243, 104, 243);
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-modal-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.app-modal-btn {
  background: rgba(138, 20, 105, 0.8);
  color: white;
  border: 2px solid rgb(243, 104, 243);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.app-modal-btn:hover {
  background: rgb(243, 104, 243);
  color: black;
  transform: scale(1.05);
}

.app-modal-close {
  background: rgba(220, 53, 69, 0.8);
  padding: 0.5rem 1rem;
}

.app-modal-close:hover {
  background: rgb(220, 53, 69);
  color: white;
}

.app-modal-body {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

.app-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.app-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(243, 104, 243);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.app-loading i {
  font-size: 3rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .app-modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .app-modal-header {
    border-radius: 0;
  }

  .app-modal-title {
    font-size: 1rem;
  }

  .app-modal-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }
}

/* ==========================
   UTILITY CLASSES FOR REUSABILITY
   ========================== */

/* Logo and image effects */
.logo-link {
  display: block;
  cursor: default;
}

.logo-image-hover {
  cursor: pointer;
  transition: opacity 0.2s;
}

.logo-image-hover:hover {
  opacity: 0.8;
}

.centered-image {
  display: block;
  text-align: center;
  margin: 0 auto;
}

/* Error message styling for dynamic content */
.iframe-error-container {
  text-align: center;
  padding: 2rem;
}

.iframe-error-icon {
  font-size: 4rem;
  color: rgb(243, 104, 243);
  margin-bottom: 1rem;
}

.iframe-error-title {
  color: rgb(243, 104, 243);
  margin-bottom: 1rem;
}

.iframe-error-message {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.iframe-error-link {
  display: inline-block;
  background: rgb(243, 104, 243);
  color: black;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s;
  border: 2px solid rgb(243, 104, 243);
}

.iframe-error-link:hover {
  background: white;
  color: rgb(243, 104, 243);
}

.iframe-error-note {
  color: #aaa;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* ==========================
   ADMIN PAGE STYLES
   ========================== */

.admin-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.admin-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  border: 2px solid rgba(243, 104, 243, 0.3);
}

.admin-header {
  text-align: center;
  color: rgb(243, 104, 243);
  margin-bottom: 2rem;
}

.admin-header-no-margin {
  margin: 0;
}

.login-form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  border: 2px solid rgba(243, 104, 243, 0.3);
}

.form-section {
  background: rgba(138, 20, 105, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(243, 104, 243, 0.2);
}

.form-section h3 {
  color: rgb(243, 104, 243);
  margin-bottom: 1rem;
}

.form-label {
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(243, 104, 243, 0.3);
  color: white;
  margin-bottom: 1rem;
}

.form-control:focus,
.form-select:focus {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgb(243, 104, 243);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(243, 104, 243, 0.25);
}

textarea.form-control {
  min-height: 150px;
  font-family: monospace;
}

.btn-admin {
  background-color: rgb(138, 20, 105);
  color: white;
  border: 2px solid rgb(243, 104, 243);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-admin:hover {
  background-color: rgb(243, 104, 243);
  color: white;
}

.btn-secondary {
  background-color: rgba(100, 100, 100, 0.5);
  color: white;
  border: 2px solid rgba(150, 150, 150, 0.5);
}

.btn-secondary:hover {
  background-color: rgba(150, 150, 150, 0.7);
  color: white;
}

.project-list,
.session-list {
  list-style: none;
  padding: 0;
}

.project-item,
.session-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(243, 104, 243, 0.2);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-item:hover,
.session-item:hover {
  background: rgba(243, 104, 243, 0.1);
  border-color: rgb(243, 104, 243);
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgb(40, 167, 69);
  color: rgb(40, 167, 69);
}

.alert-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgb(220, 53, 69);
  color: rgb(220, 53, 69);
}

.hidden {
  display: none;
}

.tab-navigation {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(243, 104, 243, 0.3);
}

.tab-btn {
  background: rgba(138, 20, 105, 0.3);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s;
  font-weight: bold;
}

.tab-btn:hover {
  background: rgba(138, 20, 105, 0.5);
}

.tab-btn.active {
  background: rgba(243, 104, 243, 0.3);
  border-bottom: 3px solid rgb(243, 104, 243);
}

.manage-list {
  list-style: none;
  padding: 0;
}

.manage-project-item {
  background: rgba(138, 20, 105, 0.2);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(243, 104, 243, 0.3);
}

.manage-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(243, 104, 243, 0.2);
}

.manage-project-title {
  color: rgb(243, 104, 243);
  font-size: 1.3rem;
  margin: 0;
}

.manage-session-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(243, 104, 243, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: white;
}

.manage-session-item:hover {
  background: rgba(243, 104, 243, 0.1);
  border-color: rgb(243, 104, 243);
}

.session-info {
  flex: 1;
  width: 100%;
}

.session-title {
  font-weight: bold;
  color: rgb(243, 104, 243);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.session-meta {
  font-size: 0.85rem;
  color: #aaa;
}

.session-meta-small {
  color: #aaa;
  display: block;
  margin-bottom: 0.5rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Desktop: side-by-side layout */
@media (min-width: 768px) {
  .manage-session-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .session-info {
    width: auto;
  }

  .action-buttons {
    width: auto;
    flex-wrap: nowrap;
  }
}

.btn-edit,
.btn-delete,
.btn-view {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: bold;
  transition: all 0.3s;
  white-space: nowrap;
  flex: 1;
  min-width: 80px;
}

/* Desktop: fixed width buttons */
@media (min-width: 768px) {
  .btn-edit,
  .btn-delete,
  .btn-view {
    flex: 0;
    min-width: auto;
  }
}

.btn-edit {
  background: rgba(0, 123, 255, 0.7);
  color: white;
}

.btn-edit:hover {
  background: rgb(0, 123, 255);
}

.btn-view {
  background: rgba(40, 167, 69, 0.7);
  color: white;
}

.btn-view:hover {
  background: rgb(40, 167, 69);
}

.btn-delete {
  background: rgba(220, 53, 69, 0.7);
  color: white;
}

.btn-delete:hover {
  background: rgb(220, 53, 69);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.95) 0%,
    rgba(102, 126, 234, 0.95) 100%
  );
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid rgb(243, 104, 243);
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  color: rgb(243, 104, 243);
  margin-bottom: 1rem;
}

.modal-content p {
  color: white;
  margin-bottom: 1.5rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-cancel {
  background: rgba(100, 100, 100, 0.7);
  color: white;
  padding: 0.5rem 1.5rem;
  border: 2px solid rgba(150, 150, 150, 0.5);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-cancel:hover {
  background: rgba(150, 150, 150, 0.7);
}

.btn-confirm-delete {
  background: rgba(220, 53, 69, 0.8);
  color: white;
  padding: 0.5rem 1.5rem;
  border: 2px solid rgb(220, 53, 69);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-confirm-delete:hover {
  background: rgb(220, 53, 69);
}

.empty-message {
  text-align: center;
  color: #aaa;
  padding: 2rem;
  font-style: italic;
}

.content-card {
  background: rgba(138, 20, 105, 0.15);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 2px solid rgba(243, 104, 243, 0.3);
  position: relative;
}

.content-card h6 {
  color: rgb(243, 104, 243);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(220, 53, 69, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 12px;
  z-index: 10;
}

.remove-btn:hover {
  background: rgb(220, 53, 69);
}

.layout-type-radio {
  margin: 0.5rem 0;
}

.layout-type-radio label {
  margin-right: 1.5rem;
  cursor: pointer;
  color: #f0f0f0;
  font-size: 0.9rem;
}

.layout-type-radio input[type="radio"] {
  margin-right: 0.3rem;
}

.card-content-area {
  margin-top: 0.5rem;
}

.image-position-select {
  margin-top: 0.5rem;
}

/* Formatting Toolbar */
.format-toolbar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(243, 104, 243, 0.3);
  border-radius: 4px 4px 0 0;
  padding: 0.4rem;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.format-btn {
  background: rgba(138, 20, 105, 0.5);
  color: white;
  border: 1px solid rgba(243, 104, 243, 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.format-btn:hover {
  background: rgba(243, 104, 243, 0.6);
  border-color: rgb(243, 104, 243);
}

.format-btn:active {
  transform: scale(0.95);
}

.format-btn i {
  font-size: 0.9rem;
}

.format-separator {
  width: 1px;
  background: rgba(243, 104, 243, 0.3);
  margin: 0 0.25rem;
}

.format-toolbar + textarea.form-control {
  border-radius: 0 0 4px 4px;
  border-top: none;
  margin-top: 0;
}

/* Preview images styling */
#previewContent img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
}

#previewContent img.img-full {
  max-height: 400px;
  width: 100%;
}

#previewContent img.img-center {
  max-height: 350px;
  max-width: 80%;
  display: block;
  margin: 1rem auto;
}

#previewContent img.img-float-left {
  max-height: 250px;
  max-width: 45%;
  float: left;
  margin-right: 1rem;
}

#previewContent img.img-float-right {
  max-height: 250px;
  max-width: 45%;
  float: right;
  margin-left: 1rem;
}

#previewContent p {
  overflow: auto;
  line-height: 1.6;
}

#previewContent p:has(img) {
  min-height: 200px;
}

/* Preview card styles */
#previewContent .content-card {
  margin: 1.5rem 0;
  overflow: auto;
  clear: both;
}

#previewContent .content-card .card-section-title {
  color: rgba(243, 104, 243, 1);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

#previewContent .content-card .card-text {
  line-height: 1.8;
  color: #333;
}

#previewContent .content-card img.img-card-left {
  max-width: 45%;
  max-height: 300px;
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

#previewContent .content-card img.img-card-right {
  max-width: 45%;
  max-height: 300px;
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

#previewContent .content-card img.img-card-center {
  max-width: 80%;
  max-height: 400px;
  display: block;
  margin: 1rem auto;
}

#previewContent .content-card img.img-card-full {
  max-width: 100%;
  width: 100%;
  max-height: 450px;
  display: block;
  margin: 1rem 0;
}

/* Preview text formatting styles */
#previewContent strong {
  font-weight: bold;
  color: rgb(243, 104, 243);
}

#previewContent em {
  font-style: italic;
  color: #ffd700;
}

#previewContent u {
  text-decoration: underline;
}

#previewContent h2,
#previewContent h3,
#previewContent h4 {
  color: rgb(243, 104, 243);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
}

#previewContent h2 {
  font-size: 1.8rem;
}

#previewContent h3 {
  font-size: 1.5rem;
}

#previewContent h4 {
  font-size: 1.2rem;
}

#previewContent ul,
#previewContent ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

#previewContent li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#previewContent code {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  color: #88ff88;
  border: 1px solid rgba(243, 104, 243, 0.3);
}

#previewContent a {
  color: rgb(100, 200, 255);
  text-decoration: underline;
}

#previewContent a:hover {
  color: rgb(150, 220, 255);
}

#backToSite {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.code-details {
  color: #ddd;
}

.code-summary {
  cursor: pointer;
  background: rgba(243, 104, 243, 0.1);
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.code-instructions {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 4px;
  border-left: 3px solid rgb(243, 104, 243);
  margin-bottom: 0.5rem;
}

.code-instructions-title {
  margin-bottom: 0.5rem;
}

.code-instructions-list {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.admin-note {
  color: white;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.btn-preview {
  margin-right: 0.5rem;
}

.preview-content-area {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 4px;
  color: #f0f0f0;
  line-height: 1.6;
}

.code-instructions-content {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Minimal portfolio system */
:root {
  --site-bg: #111318;
  --site-panel: #191c23;
  --site-panel-raised: #20242d;
  --site-text: #f3f4f6;
  --site-muted: #a6abb5;
  --site-line: rgba(255, 255, 255, 0.12);
  --site-accent: #a78bfa;
  --site-accent-strong: #c4b5fd;
  --site-font: "DM Sans", "Segoe UI", sans-serif;
  --site-display: "Manrope", "Segoe UI", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1120px, calc(100% - 48px));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
  border-bottom: 1px solid var(--site-line);
  background: rgba(17, 19, 24, 0.94);
  backdrop-filter: blur(14px);
}

.site-nav a[aria-current="page"] {
  color: var(--site-accent-strong);
}

.site-nav a[aria-current="page"]:not(.nav-contact) {
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.7);
  text-underline-offset: 8px;
}

body.site-page {
  min-height: 100vh;
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: var(--site-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site-page a {
  color: inherit;
}

.site-page a:focus-visible,
.site-page button:focus-visible,
.site-page input:focus-visible,
.site-page select:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 3px;
}

/* Home */
.portfolio-page {
  background:
    radial-gradient(ellipse at 84% 2%, rgba(167, 139, 250, 0.12), transparent 35%),
    var(--site-bg) !important;
}

.portfolio-page .site-header,
.portfolio-main,
.portfolio-page .site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.portfolio-page .site-header {
  margin-inline: auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--site-text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.48);
  border-radius: 10px;
  color: var(--site-accent-strong);
  font-family: var(--site-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.site-nav a,
.text-link {
  color: var(--site-muted);
  text-decoration: none;
  font-size: 0.91rem;
  transition: color 160ms ease;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--site-text);
}

.site-nav .nav-contact {
  padding: 9px 14px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  color: var(--site-text);
}

.site-nav .nav-contact:hover {
  border-color: rgba(167, 139, 250, 0.7);
  color: var(--site-accent-strong);
}

.portfolio-main {
  padding-block: 64px 72px;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
  padding-block: 28px 80px;
}

.hero-copy {
  max-width: 700px;
}

.portfolio-page .eyebrow {
  margin: 0 0 17px;
  color: var(--site-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: #9ac9a8;
}

.portfolio-hero h1 {
  margin: 0 0 22px;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: clamp(2.8rem, 6.2vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.portfolio-hero h1 span {
  color: var(--site-accent);
}

.hero-summary {
  max-width: 58ch;
  margin: 0;
  color: var(--site-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero-summary p {
  margin: 0 0 14px;
}

.hero-summary p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.portfolio-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--site-font);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.portfolio-page .button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--site-accent);
  color: #111318 !important;
}

.button-primary:hover {
  background: var(--site-accent-strong);
}

.button-secondary {
  border-color: var(--site-line) !important;
  background: transparent;
  color: var(--site-text) !important;
}

.button-secondary:hover {
  border-color: rgba(167, 139, 250, 0.72) !important;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: var(--site-muted);
  font-size: 0.82rem;
}

.hero-meta a {
  color: var(--site-muted);
  text-decoration-color: rgba(167, 139, 250, 0.6);
  text-underline-offset: 4px;
}

.hero-meta a:hover {
  color: var(--site-accent-strong);
}

.meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #656b77;
}

.hero-portrait {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.17), rgba(255, 255, 255, 0.02));
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 11px;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.82);
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 4px 2px;
  color: var(--site-muted);
  font-size: 0.75rem;
}

.hero-portrait figcaption span:first-child {
  color: var(--site-text);
  font-weight: 600;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 26px 0;
  border-block: 1px solid var(--site-line);
}

.focus-strip article {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.focus-number {
  color: var(--site-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.focus-strip h2 {
  margin: 0 0 5px;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: 0.98rem;
  font-weight: 600;
}

.focus-strip p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.work-section {
  padding-top: 78px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 25px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2,
.collaboration-panel h2 {
  margin: 0;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--site-line);
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-card {
  min-height: 220px;
  padding: 23px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.48);
  background: rgba(255, 255, 255, 0.045);
}

.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  color: var(--site-accent);
}

.work-card-top i {
  font-size: 1.25rem;
}

.work-type {
  color: var(--site-muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 0 0 9px;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.work-card p {
  max-width: 50ch;
  margin: 0 0 20px;
  color: var(--site-muted);
  font-size: 0.92rem;
}

.card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--site-accent-strong) !important;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  color: white !important;
}

.collaboration-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 82px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-panel);
}

.collaboration-panel h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.collaboration-panel p:not(.eyebrow) {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--site-muted);
  font-size: 0.94rem;
}

.button-light {
  flex: 0 0 auto;
  background: var(--site-text);
  color: #171a20 !important;
}

.button-light:hover {
  background: var(--site-accent-strong);
}

.portfolio-page .site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px 24px;
  padding-block: 25px 32px;
  border-top: 1px solid var(--site-line);
}

.portfolio-page .site-footer p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.footer-links a {
  color: var(--site-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--site-accent-strong);
}

.portfolio-page .site-footer small {
  grid-column: 1 / -1;
  color: #777e8a;
  font-size: 0.75rem;
}

/* Resume and development log */
.site-page:not(.portfolio-page):not(.auth-page) {
  background:
    radial-gradient(ellipse at 85% 0, rgba(167, 139, 250, 0.1), transparent 33%),
    var(--site-bg);
}

.site-page:not(.portfolio-page):not(.auth-page) .drawer-content {
  background: transparent;
}

.site-page:not(.portfolio-page):not(.auth-page) .hero,
.site-page:not(.portfolio-page):not(.auth-page) .drawer-button,
.site-page:not(.portfolio-page):not(.auth-page) .drawer-side {
  display: none;
}

.site-page:not(.portfolio-page):not(.auth-page) .hero {
  padding: 22px 24px;
  border: 0;
  border-bottom: 1px solid var(--site-line);
  background: transparent;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-page:not(.portfolio-page):not(.auth-page) .navbar {
  position: relative;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px max(24px, calc((100vw - 1060px) / 2));
  border: 0;
  border-bottom: 1px solid var(--site-line);
  background: rgba(17, 19, 24, 0.94);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.site-page:not(.portfolio-page):not(.auth-page) .drawer-button {
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.site-page:not(.portfolio-page):not(.auth-page) .drawer-button:hover {
  border-color: rgba(167, 139, 250, 0.6);
  background: var(--site-panel);
}

.site-page:not(.portfolio-page):not(.auth-page) .hamburger-icon {
  stroke: var(--site-text);
  filter: none;
}

.site-page:not(.portfolio-page):not(.auth-page) .container {
  width: min(100% - 40px, 980px);
  max-width: 980px;
  margin: 42px auto 64px;
  padding: 0;
}

.site-page:not(.portfolio-page):not(.auth-page) .main-content {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.site-page:not(.portfolio-page):not(.auth-page) .page-title {
  margin-bottom: 25px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--site-line);
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
  text-align: left;
}

.site-page:not(.portfolio-page):not(.auth-page) .main-content h2,
.site-page:not(.portfolio-page):not(.auth-page) .main-content section h2,
.site-page:not(.portfolio-page):not(.auth-page) .main-content section h3 {
  border-color: var(--site-line);
  color: var(--site-accent-strong);
}

.site-page:not(.portfolio-page):not(.auth-page) .main-content p,
.site-page:not(.portfolio-page):not(.auth-page) .main-content li {
  color: #c5c9d1;
  font-size: 1rem;
}

.site-page:not(.portfolio-page):not(.auth-page) .main-content strong {
  color: #e4e9f2;
}

.site-page:not(.portfolio-page):not(.auth-page) .main-content a {
  color: var(--site-accent);
}

.site-page:not(.portfolio-page):not(.auth-page) .main-content i.bi {
  color: var(--site-accent);
}

.site-page:not(.portfolio-page):not(.auth-page) .main-content hr {
  border-top: 1px solid var(--site-line);
}

.site-page:not(.portfolio-page):not(.auth-page) #dev-logs article {
  padding: 22px;
  border: 1px solid var(--site-line);
  border-left: 3px solid var(--site-accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.site-page:not(.portfolio-page):not(.auth-page) #dev-logs article h3,
.site-page:not(.portfolio-page):not(.auth-page) #dev-logs article strong {
  color: var(--site-accent-strong);
}

.site-page:not(.portfolio-page):not(.auth-page) .project-selector label,
.site-page:not(.portfolio-page):not(.auth-page) .session-selector label {
  color: var(--site-muted);
  font-size: 0.82rem;
  text-shadow: none;
}

.site-page:not(.portfolio-page):not(.auth-page) .project-dropdown,
.site-page:not(.portfolio-page):not(.auth-page) .session-dropdown {
  min-width: min(190px, 40vw);
  max-width: 340px;
  padding: 9px 12px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: var(--site-panel);
  box-shadow: none;
  color: var(--site-text);
  font-family: var(--site-font);
  font-size: 0.88rem;
}

.site-page:not(.portfolio-page):not(.auth-page) .session-tab {
  padding: 9px 14px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: var(--site-panel);
  box-shadow: none;
  color: #c5c9d1;
  font-family: var(--site-font);
  font-size: 0.84rem;
}

.site-page:not(.portfolio-page):not(.auth-page) .session-tab:hover {
  transform: none;
  border-color: rgba(167, 139, 250, 0.58);
  background: var(--site-panel-raised);
  box-shadow: none;
}

.site-page:not(.portfolio-page):not(.auth-page) .session-tab.active {
  border-color: #8b72d6;
  background: #40345f;
  box-shadow: none;
  color: #fff;
}

.site-page:not(.portfolio-page):not(.auth-page) .pdf-download-btn {
  padding: 9px 14px;
  border: 1px solid #8b72d6;
  border-radius: 8px;
  background: #51427a;
  box-shadow: none;
  color: #fff;
  font-family: var(--site-font);
  font-size: 0.86rem;
}

.site-page:not(.portfolio-page):not(.auth-page) .pdf-download-btn:hover {
  transform: none;
  border-color: #b09cf0;
  background: #665393;
  box-shadow: none;
}

.site-page:not(.portfolio-page):not(.auth-page) .sidebar {
  border-right: 1px solid var(--site-line);
  background: #171a20;
  color: var(--site-text);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.35);
}

.site-page:not(.portfolio-page):not(.auth-page) .sidebar::before {
  display: none;
}

.site-page:not(.portfolio-page):not(.auth-page) .sidebar h2 {
  color: var(--site-text);
}

.site-page:not(.portfolio-page):not(.auth-page) .sidebar p {
  color: var(--site-muted);
}

.site-page:not(.portfolio-page):not(.auth-page) .sidebar-nav a {
  border-radius: 7px;
  color: #d6d9df;
}

.site-page:not(.portfolio-page):not(.auth-page) .sidebar-nav a:hover {
  background: var(--site-panel-raised);
  color: var(--site-accent-strong);
}

.site-page:not(.portfolio-page):not(.auth-page) footer.app-footer {
  margin-top: 0;
  border-top: 1px solid var(--site-line);
  background: #0d0f13;
}

.site-page:not(.portfolio-page):not(.auth-page) #trippy {
  padding: 30px;
  background: transparent;
}

.site-page:not(.portfolio-page):not(.auth-page) #trippy img {
  max-width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Authentication */
.auth-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 105px 20px 28px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(167, 139, 250, 0.14), transparent 45%),
    var(--site-bg) !important;
}

.auth-page .site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.auth-page .auth-container {
  width: min(100%, 430px);
  margin: 0;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-page .auth-header {
  margin-bottom: 24px;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-page .auth-header i {
  color: var(--site-accent);
}

.auth-page .form-label {
  color: #d9dce2 !important;
  font-weight: 600 !important;
}

.auth-page .form-control {
  min-height: 44px;
  border: 1px solid var(--site-line);
  border-radius: 7px;
  background: #12151a;
  color: var(--site-text);
}

.auth-page .form-control:focus {
  border-color: var(--site-accent);
  background: #12151a;
  color: var(--site-text);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}

.auth-page .btn-admin {
  border: 1px solid var(--site-accent);
  border-radius: 7px;
  background: var(--site-accent);
  color: #111318 !important;
}

.auth-page .btn-admin:hover {
  border-color: var(--site-accent-strong);
  background: var(--site-accent-strong);
  color: #111318;
}

.auth-page .auth-toggle p,
.auth-page .auth-note {
  color: var(--site-muted) !important;
}

.auth-page .auth-toggle a {
  color: var(--site-accent-strong);
}

.auth-page .auth-note {
  margin-bottom: 0;
}

/* Admin workspace */
.admin-body {
  background:
    radial-gradient(ellipse at 80% 0, rgba(167, 139, 250, 0.11), transparent 38%),
    var(--site-bg);
  color: var(--site-text);
  font-family: var(--site-font);
}

.admin-body .site-header {
  width: min(1120px, calc(100% - 48px));
}

.admin-body .admin-container,
.admin-body .login-form {
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: var(--site-panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.admin-body .admin-header,
.admin-body .manage-project-title {
  color: var(--site-accent-strong);
  font-family: var(--site-display);
}

.admin-body .form-section,
.admin-body .manage-project-item {
  border: 1px solid var(--site-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-body .form-section h3 {
  color: var(--site-text) !important;
}

.admin-body .form-control,
.admin-body .form-select {
  border-color: var(--site-line);
  border-radius: 7px;
  background-color: #12151a;
}

.admin-body .form-control:focus,
.admin-body .form-select:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}

.admin-body .btn-admin,
.admin-body .tab-btn.active {
  border-color: #8b72d6;
  background: #51427a;
  color: var(--site-text);
}

.admin-body .btn-admin:hover,
.admin-body .tab-btn.active:hover {
  border-color: #b09cf0;
  background: #665393;
  color: #fff;
}

.admin-body .tab-navigation {
  border-color: var(--site-line);
}

.admin-body .tab-btn {
  border: 1px solid transparent;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: var(--site-muted);
}

.admin-body .tab-btn:hover {
  background: var(--site-panel-raised);
  color: var(--site-text);
}

.admin-body .project-item,
.admin-body .session-item,
.admin-body .manage-session-item {
  border-color: var(--site-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 32px, 1120px);
    min-height: 70px;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .portfolio-page .site-header,
  .portfolio-main,
  .portfolio-page .site-footer {
    width: min(100% - 32px, 1120px);
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 5px;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .site-brand {
    font-size: 0.9rem;
  }

  .site-nav .nav-contact {
    padding: 7px 9px;
  }

  .portfolio-main {
    padding-top: 34px;
  }

  .portfolio-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 10px 50px;
  }

  .hero-portrait {
    width: min(100%, 370px);
  }

  .focus-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-section {
    padding-top: 54px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 0;
  }

  .collaboration-panel {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 54px;
  }

  .portfolio-page .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .portfolio-page .site-footer small {
    grid-column: auto;
  }

  .site-page:not(.portfolio-page):not(.auth-page) .navbar {
    padding-inline: 16px;
  }

  .auth-page .site-header {
    padding-block: 10px;
  }

  .admin-body .site-header {
    width: min(100% - 32px, 1120px);
  }

  .site-page:not(.portfolio-page):not(.auth-page) .project-selector,
  .site-page:not(.portfolio-page):not(.auth-page) .session-selector {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .site-page:not(.portfolio-page):not(.auth-page) .project-dropdown,
  .site-page:not(.portfolio-page):not(.auth-page) .session-dropdown {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-page *,
  .site-page *::before,
  .site-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Services */
.services-hero {
  max-width: 760px;
  padding-block: 28px 10px;
}

.services-hero h1 {
  margin: 0 0 22px;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.06;
}

.services-hero h1 span {
  color: var(--site-accent);
}

.services-lede {
  max-width: 60ch;
  margin: 0;
  color: var(--site-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  border-top: 1px solid var(--site-line);
  color: var(--site-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--site-accent);
}

.work-card p.service-proof {
  display: flex;
  gap: 9px;
  margin: auto 0 0;
  padding-top: 14px;
  color: var(--site-accent-strong);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .services-hero {
    padding-top: 10px;
  }
}

/* Scan safety guide */
.safety-page {
  background:
    radial-gradient(ellipse at 14% 4%, rgba(73, 171, 147, 0.12), transparent 34%),
    var(--site-bg) !important;
}

.safety-main {
  max-width: 880px;
}

.safety-hero {
  padding-block: 30px 38px;
}

.safety-eyebrow {
  margin: 0 0 12px;
  color: #83d7bd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.safety-eyebrow i {
  margin-right: 7px;
}

.safety-hero h1 {
  margin: 0 0 18px;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  letter-spacing: -0.065em;
  line-height: 1.05;
}

.safety-hero h1 span {
  color: #83d7bd;
}

.safety-lede {
  max-width: 66ch;
  margin: 0;
  color: var(--site-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

.safety-notice {
  display: flex;
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(131, 215, 189, 0.34);
  border-radius: 14px;
  background: rgba(73, 171, 147, 0.08);
}

.safety-notice-icon,
.safety-card-icon,
.safety-response-icon {
  flex: 0 0 auto;
  color: #83d7bd;
  font-size: 1.45rem;
}

.safety-notice h2,
.safety-section-heading h2,
.safety-response h2 {
  margin: 0 0 8px;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.safety-notice p,
.safety-section-heading > p:last-child {
  max-width: 70ch;
  margin: 0;
  color: var(--site-muted);
}

.safety-section {
  padding-top: 64px;
}

.safety-section-heading {
  margin-bottom: 22px;
}

.safety-section-heading .safety-eyebrow {
  margin-bottom: 8px;
}

.safety-section-heading > p:last-child {
  margin-top: 8px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.safety-card {
  padding: 24px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.safety-card-icon {
  display: inline-block;
  margin-bottom: 15px;
}

.safety-card h3,
.safety-checklist h3 {
  margin: 0 0 6px;
  color: var(--site-text);
  font-family: var(--site-display);
  font-size: 1.08rem;
}

.safety-card p,
.safety-checklist p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.94rem;
}

.safety-checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--site-line);
}

.safety-checklist li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--site-line);
}

.safety-checklist li > span {
  color: #83d7bd;
  font-family: var(--site-display);
  font-weight: 700;
}

.safety-response {
  margin-top: 64px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-panel);
}

.safety-response-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.safety-response-heading .safety-eyebrow {
  margin-bottom: 5px;
}

.safety-response h2 {
  margin-bottom: 0;
}

.safety-response-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--site-muted);
}

.safety-response-list strong {
  color: var(--site-text);
}

.safety-footer-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 30px;
  color: var(--site-muted);
  font-size: 0.9rem;
}

.safety-footer-note i {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #83d7bd;
  font-size: 1.1rem;
}

.safety-footer-note p {
  margin: 0;
}

@media (max-width: 600px) {
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .safety-notice {
    gap: 12px;
  }

  .safety-section {
    padding-top: 48px;
  }

  .safety-response {
    margin-top: 48px;
  }
}
