@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Prevent white flash on dark mode page load */
html.dark-mode {
    background: #010101;
}

/* Register CSS properties for smooth color transitions */
@property --vinyl-color-1 {
    syntax: '<color>';
    initial-value: #642a2a;
    inherits: false;
}

@property --vinyl-color-2 {
    syntax: '<color>';
    initial-value: #753232;
    inherits: false;
}

@property --vinyl-color-3 {
    syntax: '<color>';
    initial-value: #452424;
    inherits: false;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: white;
    color: #000;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: none;
    font-weight: 250;
}

/* Hide default cursor globally */
*, *::before, *::after {
    cursor: none !important;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Puts it behind everything */
    pointer-events: none; /* Allows you to click links on top of it */
}

/* 1. Make the intro section a reference point for positioning */
.intro {
    position: relative; 
    /* Ensure the intro background is transparent so we see the canvas */
    background: transparent !important; 
}

/* 2. Position the canvas container */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Fills the full viewport height */
    z-index: 0; /* Behind text, but above background */
    overflow: hidden;
}

/* Mobile: End canvas before work section starts */
@media (max-width: 768px) {
    #canvas-container {
        height: 100%; /* Match intro section height instead of full viewport */
    }
}

/* 3. Ensure your text sits on top */
.intro-content {
    position: relative;
    z-index: 1; /* Puts text above the canvas */
    pointer-events: none; /* Let clicks pass through text areas to the canvas */
}

/* Re-enable clicks for buttons/links inside the content */
.intro-content a, 
.intro-content button,
.intro-roles {
    pointer-events: auto;
}

/* Important: Make sure your main body is transparent so we can see the canvas */
body, main, section {
    background-color: transparent !important; 
}

/* Content visibility for password modal transition */
/* Commented out since password functionality is disabled */
/* body.content-hidden header,
body.content-hidden main,
body.content-hidden footer {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

body:not(.content-hidden) header,
body:not(.content-hidden) main,
body:not(.content-hidden) footer {
    opacity: 1;
    animation: fadeInContent 0.6s ease-in;
} */

/* Force content to be visible - override any hidden states */
header, main, footer {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Ensure password modal is hidden */
#passwordModal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive elements hide default cursor */
button, .record, .hamburger, .mobile-close, .theme-toggle-btn, .logo, .center-button, .turntable-record, .work-item, .project-image-container, .project-image {
  cursor: none !important;
}

/* Navigation links hide default cursor */
.nav a, .mobile-nav a {
  cursor: none !important;
}

/* All links hide default cursor */
a {
  cursor: none;
}

/* Custom Cursor Dots */
.cursor-dot {
    position: fixed;
    width: 20px;
    height: 20px;
    background: #333333;
    border: none;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    left: -100px;
    top: -100px;
    opacity: 0;
    display: block !important;
    transition: background 0.3s ease, border 0.3s ease, opacity 0.1s ease;
}

body.dark-mode .cursor-dot {
    background: #d0d0d0;
    border: none;
}

#cursor-dot {
    width: 20px;
    height: 20px;
    transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease, transform 0.05s ease-out;
}

/* Text cursor - morphs from dot to line */
#cursor-dot.cursor-text {
    width: 5px;
    height: 44px;
    border-radius: 3px;
}

#cursor-dot-2 {
    width: 12px;
    height: 12px;
    opacity: 0.8;
    transition: transform 0.15s ease-out;
}

#cursor-dot-3 {
    width: 10px;
    height: 10px;
    opacity: 0.6;
    transition: transform 0.25s ease-out;
}

@media (max-width: 768px) {
    .cursor-dot {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Cursor Bubble - Expands from dot with text */
.cursor-bubble {
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    left: -100px;
    top: -100px;
    background: #1a1a1a;
    border-radius: 5px;
    padding: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition:
        width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease,
        background 0.3s ease;
}

.cursor-bubble.active {
    width: auto;
    height: auto;
    padding: 10px 20px;
    opacity: 1;
}

.cursor-bubble-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.cursor-bubble.active .cursor-bubble-text {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

body.dark-mode .cursor-bubble {
    background: #ffffff;
}

body.dark-mode .cursor-bubble-text {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .cursor-bubble {
        display: none !important;
    }
}

/* Project pages cursor colors */
body.project-page .cursor-dot {
    background: #333333;
    border: none;
    transition: background 0.3s ease, border 0.3s ease;
}

body.project-page.dark-mode .cursor-dot {
    background: #d0d0d0;
    border: none;
}

/* Override cursor styles for images on project pages - keep custom cursor visible */
body.project-page .expandable-image,
body.project-page .class-hero-image .expandable-image,
body.project-page .class-dashboard-image,
body.project-page img.expandable-image,
body.project-page .solution-gif,
body.project-page .wireframe-image,
body.project-page .ideation-image,
body.project-page .card-sort-image,
body.project-page .card-sort-photo,
body.project-page .rfq-image,
body.project-page .translation-img,
body.project-page .insights-image,
body.project-page .journey-map-image,
body.project-page .prototyping-image,
body.project-page .class-map-image {
    cursor: none !important;
}

/* Ensure no red circle or zoom cursor appears on project page images */
body.project-page .expandable-image:hover,
body.project-page .class-hero-image .expandable-image:hover,
body.project-page .class-dashboard-image:hover,
body.project-page img.expandable-image:hover,
body.project-page .solution-gif:hover,
body.project-page .wireframe-image:hover,
body.project-page .ideation-image:hover,
body.project-page .card-sort-image:hover,
body.project-page .card-sort-photo:hover,
body.project-page .rfq-image:hover,
body.project-page .translation-img:hover,
body.project-page .insights-image:hover,
body.project-page .journey-map-image:hover,
body.project-page .prototyping-image:hover,
body.project-page .class-map-image:hover {
    cursor: none !important;
}

/* Remove any expand icons or plus signs that might appear on images */
body.project-page .expandable-image::before,
body.project-page .expandable-image::after,
body.project-page img::before,
body.project-page img::after {
    display: none !important;
    content: none !important;
}

/* Prevent green highlight when clicking images */
body.project-page img:active,
body.project-page img:focus,
body.project-page .expandable-image:active,
body.project-page .expandable-image:focus,
body.project-page .solution-gif:active,
body.project-page .solution-gif:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Light blue cursor for records and logo hover */
/* .record:hover, .logo:hover, .theme-toggle-btn:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='rgba(173,216,230,0.6)' stroke='rgba(173,216,230,0.9)' stroke-width='1'/%3E%3Ccircle cx='16' cy='16' r='8' fill='rgba(173,216,230,0.4)' stroke='rgba(173,216,230,0.8)' stroke-width='0.5'/%3E%3Ccircle cx='16' cy='16' r='2' fill='rgba(0,0,0,0.6)'/%3E%3C/svg%3E") 16 16, pointer;
} */
.logo {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
}
/* Theme Toggle Button - Simple Icon */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
    height: 100%;
    flex-shrink: 0; /* Prevent theme toggle from shrinking */
}

.theme-toggle-btn {
    position: relative;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: auto 0;
}

.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.sun-icon, .moon-icon {
    color: #000000;
    transition: all 0.2s ease;
    width: 22px;
    height: 22px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sun-icon {
    opacity: 0;
}

.moon-icon {
    opacity: 1;
}

.theme-toggle-btn.dark .sun-icon {
    opacity: 1;
}

.theme-toggle-btn.dark .moon-icon {
    opacity: 0;
}

/* Dark Mode Styles */
body.dark-mode {
    background: #010101 !important;
    background-color: #010101 !important;
    color: #ffffff;
}


body.dark-mode .header {
    background: #010101; /* #1a1a1a */
    opacity: 0;
    transform: translateY(-20px);
}

body.dark-mode .header.loaded {
    opacity: 1;
    transform: translateY(0);
}



body.dark-mode .logo {
    color: #ffffff;
}

body.dark-mode .logo:visited, 
body.dark-mode .logo:active,
body.dark-mode .logo:hover {
    color: #ffffff;
}

/* Dark mode logo animation - matching light mode */
body.dark-mode .logo-nika {
  margin-right: 2px;
}
body.dark-mode .logo-a,
body.dark-mode .logo-b {
  display: inline-block;
  margin-bottom: 0;
}
body.dark-mode .logo-nika, 
body.dark-mode .logo-hagavatula {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
  transition: max-width 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.3s 0.2s, margin-right 0.6s cubic-bezier(0.4,0,0.2,1);
}
body.dark-mode .logo:hover .logo-nika {
  max-width: 60px;
  opacity: 1;
  margin-right: 8px;
  transition: max-width 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.3s 0.1s, margin-right 0.6s cubic-bezier(0.4,0,0.2,1);
}
body.dark-mode .logo:hover .logo-hagavatula {
  max-width: 200px;
  opacity: 1;
  transition: max-width 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.3s 0.1s;
}

body.dark-mode .nav a {
    color: #777777;
    transition: color 0.3s ease;
}

body.dark-mode .nav a:hover {
    color: #ffffff;
}

body.dark-mode .nav a.active {
    color: #ffffff;
}

body.dark-mode .nav a.active:hover {
    color: #ffffff;
}

body.dark-mode .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .sun-icon,
body.dark-mode .moon-icon {
    color: #ffffff;
}

body.dark-mode .hamburger span {
    background: #ffffff;
}

body.dark-mode .mobile-nav {
    background: rgba(0, 0, 0, 0.9);
}

body.dark-mode .mobile-nav-content {
    background: #ffffff;
    color: #111;
}

body.dark-mode .mobile-close {
    color: #ffffff;
}

body.dark-mode .slogan {
    color: #ffffff;
}

body.dark-mode .mobile-nav a {
    color: #111 !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.dark-mode .mobile-nav.active a {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

body.dark-mode .mobile-nav.active a:nth-child(1) { transition-delay: 0.2s !important; }
body.dark-mode .mobile-nav.active a:nth-child(2) { transition-delay: 0.3s !important; }
body.dark-mode .mobile-nav.active a:nth-child(3) { transition-delay: 0.4s !important; }
body.dark-mode .mobile-nav.active a:nth-child(4) { transition-delay: 0.5s !important; }
body.dark-mode .mobile-nav.active a:nth-child(5) { transition-delay: 0.6s !important; }

body.dark-mode .mobile-nav .mobile-theme-toggle {
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.dark-mode .mobile-nav.active .mobile-theme-toggle {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.6s !important;
}

body.dark-mode .mobile-theme-toggle .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05) !important;
}

body.dark-mode .mobile-theme-toggle .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

body.dark-mode .mobile-theme-toggle .sun-icon,
body.dark-mode .mobile-theme-toggle .moon-icon {
    color: #000000 !important;
}

body.dark-mode .mobile-nav a:hover {
    color: #ffffff !important;
}

body.dark-mode .mobile-nav a.active {
    color: #111 !important;
    font-weight: 600;
}

body.dark-mode footer {
    background: #010101;
}

body.dark-mode .contact-info h3 {
    color: #ffffff;
}

body.dark-mode .contact-info a {
    color: #ffffff;
}

body.dark-mode .contact-info a:hover {
    color: #cccccc;
}

body.dark-mode .linkedin-icon {
    color: #ffffff !important;
}

/* Dark mode mail icon styles removed - reverted to text email */

body.dark-mode .linkedin-icon:hover {
    color: #ffffff !important;
}
.header {
    width: 100%;
    display: flex !important;
    justify-content: space-between;
    align-items: center !important;
    padding: 48px 60px 0 60px;
    padding-bottom: 2%;
    background: #fff;
    position: relative;
    z-index: 100; /* Ensure header is visible above other content */
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-wrap: nowrap !important; /* Prevent wrapping */
    flex-direction: row !important; /* Force horizontal layout */
}

/* HOME PAGE - DISABLE ALL TRANSITIONS */

.header .logo {
    margin-left: 0;
    margin-right: auto !important;
    flex-shrink: 0; /* Prevent logo from shrinking */
    flex-grow: 0; /* Don't let logo grow */
}
  
  .logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: #111;
    letter-spacing: 1px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .logo:visited, .logo:active {
    color: #111;
    text-decoration: none;
  }
  .logo:hover {
    color: #111;
    text-decoration: none;
  }

  .logo-a, .logo-b, .logo-nika, .logo-hagavatula {
  display: inline;
  font-size: 1.3rem;
  line-height: 1.1;
  margin-bottom: 0;
  padding-top: 0;
}
.logo-nika {
  margin-right: 2px;
}
.logo-a, .logo-b {
  display: inline-block;
  transition: color 0.3s;
  margin-bottom: 0;
}
.logo-nika, .logo-hagavatula {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
  transition: max-width 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.3s 0.2s, margin-right 0.6s cubic-bezier(0.4,0,0.2,1);
}
.logo:hover .logo-nika {
  max-width: 60px;
  opacity: 1;
  margin-right: 8px;
  transition: max-width 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.3s 0.1s, margin-right 0.6s cubic-bezier(0.4,0,0.2,1);
}
.logo:hover .logo-hagavatula {
  max-width: 200px;
  opacity: 1;
  transition: max-width 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.3s 0.1s;
}

  
  /* .logo-a {
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1.1;
    margin-bottom: 0;
    padding-top: 0;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
  }
  
  .logo-b {
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1.1;
    margin-bottom: 0;
    padding-top: 0;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
  } */
  
  /* .logo-nika, .logo-hagavatula {
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1.1;
    margin-bottom: 0;
    padding-top: 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    width: 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    overflow: hidden;
  } */
  
  /* Logo hover effects - smooth slide open
  .logo:hover .logo-nika {
    opacity: 1;
    transform: translateX(0);
    width: auto;
    pointer-events: auto;
  }
  
  .logo:hover .logo-b {
    transform: translateX(80px);
  }
  
  .logo:hover .logo-hagavatula {
    opacity: 1;
    transform: translateX(0);
    width: auto;
    pointer-events: auto;
  }
  
  /* Sequential animation timing */
  /* .logo:hover .logo-nika {
    transition-delay: 0s;
  }
  
  .logo:hover .logo-b {
    transition-delay: 0.15s;
  }
  
  .logo:hover .logo-hagavatula {
    transition-delay: 0.3s;
  }
  
  /* Smooth slide closed when not hovering */
  /* .logo:not(:hover) .logo-hagavatula {
    opacity: 0;
    transform: translateX(-30px);
    width: 0;
  }
  
  .logo:not(:hover) .logo-b {
    transform: translateX(0);
  }
  
  .logo:not(:hover) .logo-nika {
    opacity: 0;
    transform: translateX(-30px);
    width: 0;
  } */
  
  /* Sequential reverse animation timing */
  /* .logo:not(:hover) .logo-hagavatula {
    transition-delay: 0s;
  }
  
  .logo:not(:hover) .logo-b {
    transition-delay: 0.1s;
  }
  
  .logo:not(:hover) .logo-nika {
    transition-delay: 0.2s;
  }
    */ 

  
  .nav {
    display: flex !important;
    align-items: center;
    gap: 2rem;
    margin-left: auto !important;
    margin-right: 0;
    flex-shrink: 0; /* Prevent nav from shrinking */
    flex-wrap: nowrap; /* Keep items on same line */
    flex-direction: row !important; /* Force horizontal layout */
}
  
  .nav a {
    text-decoration: none;
    color: #9f9f9f;
    font-weight: 200;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

  .nav a:hover {
    color: #000000;
}

  .nav a.active {
    color: #000000;
  }

  .nav a.active:hover {
    color: #000000;
  }

/* Hamburger Menu */
.hamburger {
    display: none !important; /* Hidden by default on desktop */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 18px;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2rem;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #111;
    transition: all 0.3s ease, background-color 0.3s ease;
}

.hamburger:hover span {
    background: #903232;
}

body.menu-open .hamburger span {
    background: #903232;
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99999;
    padding: 2rem;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
}

.mobile-nav.active {
    background: rgba(0, 0, 0, 0.85);
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.mobile-nav-content {
    background: white !important;
    border-radius: 12px;
    /* padding: 2rem 2rem; */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
    max-width: 10vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.mobile-nav.active .mobile-nav-content {
    opacity: 1;
    transform: translateY(0);
}

/* Closing animations */
.mobile-nav.closing {
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: visible;
    transform: none;
}

.mobile-nav.closing .mobile-nav-content {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0s;
}

.mobile-nav.closing a {
    opacity: 0;
    transform: translateY(10px);
    transition-delay: 0s;
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #111;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, color 0.3s ease;
}

.mobile-close:hover {
    opacity: 0.7;
    transition: opacity 0.2s, color 0.3s ease;
}

.mobile-nav a {
    color: #111;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
}

.mobile-nav.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active a:nth-child(1) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.4s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.5s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.6s; }

.mobile-nav .mobile-theme-toggle {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active .mobile-theme-toggle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.mobile-nav a:hover {
    color: #000000;
    transition: opacity 0.2s, color 0.3s ease;
}

.mobile-nav a.active {
    color: #111;
    font-weight: 600;
    transition: opacity 0.2s, font-weight 0.1s ease;
}

.mobile-nav a.active.download-btn {
    color: #111 !important;
    font-weight: 600;
    transition: opacity 0.2s, font-weight 0.1s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 1.5rem 1.5rem;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.60);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    body.dark-mode .header {
        background: rgba(1, 1, 1, 0.75);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    /* Transparent header on home page mobile - NO TRANSITIONS */
    
    .header .logo {
        margin-left: -0.25rem;
    }
    
    .nav {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    .mobile-nav.active {
        display: flex !important;
    }
    
    .mobile-nav {
        padding: 0;
    }
    
    /* Add padding to main content to account for fixed header */
    main {
        padding-top: 80px;
    }
    
    .about-main,
    .resume-main,
    .class-main,
    .work-main,
    .margin-main,
    .playground-main,
    .vantage-main,
    .ai-main {
        padding-top: 6rem !important;
    }
    
    .mobile-nav-content {
        padding: 2rem 2rem 4rem 2rem;
        margin: 2rem;
        max-height: 80vh;
        overflow-y: hidden;
    }
    
    .mobile-nav-content a {
        font-size: 1rem;
        padding: 0.2rem 0;
        min-height: 1.5rem;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #111;
        text-decoration: none;
        font-weight: 300;
        transition: opacity 0.2s, color 0.3s ease;
        background: transparent !important;
    }

    .mobile-nav-content a:hover {
        color: #000000 !important;
        transition: opacity 0.2s, color 0.3s ease;
    }

    .mobile-nav-content a.active {
        color: #111 !important;
        font-weight: 600;
        transition: opacity 0.2s, font-weight 0.1s ease;
    }

    .mobile-nav-content a.active.download-btn {
        color: #111 !important;
        font-weight: 600;
        transition: opacity 0.2s, font-weight 0.1s ease;
    }
    
    .mobile-theme-toggle {
        margin-top: -4rem;
        margin-left: 0;
        align-items: center;
        pointer-events: none;
    }

    .mobile-theme-toggle .theme-toggle-btn {
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.05);
    }

    .mobile-theme-toggle .theme-toggle-btn:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    .mobile-theme-toggle .sun-icon,
    .mobile-theme-toggle .moon-icon {
        color: #000000;
    }
    
    .mobile-nav-content a.download-btn {
        position: relative;
        z-index: 2;
    }
    
    .mobile-close {
        position: absolute;
        top: 1rem;
        right: 0.8rem;
        background: none;
        border: none;
        font-size: 2.5rem;
        color: white;
        cursor: pointer;
        padding: 0;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.5s, color 0.5s ease;
        z-index: 100000;
    }

    .mobile-close:hover {
        opacity: 0.7;
        transition: opacity 0.2s, color 0.3s ease;
    }
}
  
/* Removed duplicate header rule - using .header instead */

nav {
    display: flex;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
} */

/* Main Content */
main {
    padding-top: 1px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Page load animations */
.header {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease;
}

.header.loaded {
    opacity: 1;
    transform: translateY(0);
}

.intro {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-top: 6rem;
}

.intro.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Fun text animation for intro */
@keyframes crisp-slide-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-text h1 .poppins-text {
    display: block !important;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.intro-text h1.fade-in.loaded .poppins-text {
    animation: crisp-slide-in 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.intro-text h1.fade-in.loaded .poppins-text:nth-child(1) {
    animation-delay: 0.15s;
}

.intro-text h1.fade-in.loaded .poppins-text:nth-child(2) {
    animation-delay: 0.35s;
}

.fade-in-delay-1 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.fade-in-delay-1.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.4s;
}

.fade-in-delay-2.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in-delay-3 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.6s;
}

.fade-in-delay-3.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in-delay-4 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.8s;
}

.fade-in-delay-4.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in-delay-5 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 1.0s;
}

.fade-in-delay-5.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in-delay-6 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 1.2s;
}

.fade-in-delay-6.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered fade-in for multiple elements */
.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-stagger.loaded > *:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.fade-in-stagger.loaded > *:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.fade-in-stagger.loaded > *:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.fade-in-stagger.loaded > *:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.fade-in-stagger.loaded > *:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.fade-in-stagger.loaded > *:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Ensure work items start hidden for fade-in animation */
.work-grid.fade-in-stagger .work-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(7) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(8) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(9) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.work-grid.fade-in-stagger.loaded .work-item:nth-child(10) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.0s;
}

  /* Intro Section */
  .intro {
      padding: 10rem 60px 8rem 60px;
      max-width: 100%;
  }

/* Workspace fade-in animations */
.workspace-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
}

.intro-workspace.loaded .workspace-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.workspace-delay-1 {
    transition-delay: 0.2s;
}

.workspace-delay-2 {
    transition-delay: 0.5s;
}

.workspace-delay-3 {
    transition-delay: 0.8s;
}

/* Workspace tooltips */
.workspace-tooltip {
    position: absolute;
    left: 50%;
    background: transparent;
    color: #000;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
    width: 0;
    transition: opacity 0.2s ease, width 0s 0.3s;
}

/* Typewriter effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Whiteboard tooltip - above */
.whiteboard .workspace-tooltip {
    top: -3rem;
    left: 50%;
    margin-left: -6ch;
}

.whiteboard:hover .workspace-tooltip {
    opacity: 1;
    width: auto;
    animation: typewriter 0.6s steps(25) forwards;
    transition: opacity 0.2s ease;
}

/* Teapot tooltip - above */
.teapot-tooltip {
    top: -1.5rem;
    left: 55%;
    margin-left: -5ch;
}

.teapot-container:hover .teapot-tooltip {
    opacity: 1;
    width: auto;
    animation: typewriter 0.6s steps(25) forwards;
    transition: opacity 0.2s ease;
}

/* Record tooltip - below */
.record-tooltip {
    bottom: -2.5rem;
    left: 50%;
    margin-left: -5ch;
}

.record-player-container:hover .record-tooltip {
    opacity: 1;
    width: auto;
    animation: typewriter 0.6s steps(25) forwards;
    transition: opacity 0.2s ease;
}

/* Computer tooltip - below */
.intro-computer .workspace-tooltip {
    bottom: -3rem;
    left: 50%;
    margin-left: -6ch;
}

.intro-computer:hover .workspace-tooltip {
    opacity: 1;
    width: auto;
    animation: typewriter 0.6s steps(25) forwards;
    transition: opacity 0.2s ease;
}

/* AR Goggles tooltip - below */
.ar-goggles .workspace-tooltip {
    bottom: -2.5rem;
    left: 60%;
    margin-left: -6ch;
}

.ar-goggles:hover .workspace-tooltip {
    opacity: 1;
    width: auto;
    animation: typewriter 0.6s steps(25) forwards;
    transition: opacity 0.2s ease;
}

body.dark-mode .workspace-tooltip {
    background: transparent;
    color: #fff;
}

.intro-content {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-top: 5%;
    margin-top: 2%;
    width: 100%;
    position: relative;
    min-height: 60vh;
}

.intro-text {
    position: absolute;
    top: 0; /* Start at top of intro-content */
    left: 0; /* Align with left edge (intro section already has 60px padding) */
    z-index: 10; /* Above the canvas */
    pointer-events: none; /* Allow clicks to pass through to canvas */
    max-width: 70%; /* Remove max-width constraint */
    margin: 0;
    padding: 0;
    width: auto; /* Let content determine width */
}

.intro-text * {
    pointer-events: auto; /* Re-enable pointer events for text content */
}

/* Interactive Neuron Network */
.intro-neuron-network {
    position: absolute;
    top: 0;
    right: 0px;
    width: 45%;
    height: 100vh;
    margin-top: 0;
    padding: 3rem 3rem 3rem 0;
    z-index: 1;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Record Player on Main Page */
.intro-record-player {
    position: absolute;
    top: 0;
    right: 0px;
    width: 45%;
    height: 100vh;
    margin-top: 0;
    padding: 0 3rem 3rem 0;
    z-index: 1;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

/* Tablet styles for record player */
@media (max-width: 1024px) and (min-width: 769px) {
    .intro {
        padding: 6rem 40px;
    }

    .intro-content {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding-top: 0;
        margin-top: 0;
    }

    .intro-text {
        position: relative;
        top: auto;
        left: auto;
        max-width: 100%;
        width: 100%;
        text-align: left;
        margin-bottom: 2rem;
    }

    .intro-record-player {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        padding: 0;
        margin-top: 1rem;
        justify-content: flex-start;
    }

    .record-player-deck {
        width: 380px;
        height: 380px;
    }

    .intro h1 {
        font-size: 2.2rem;
    }

    .intro .work-subtitle {
        text-align: left;
        max-width: 600px;
    }
}

.record-player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 0;
}

.record-player-deck {
    background: linear-gradient(145deg, #8a8a8a 0%, #6a6a6a 50%, #4a4a4a 100%);
    border-radius: 4px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    width: 450px;
    height: 450px;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
    /* transition: background 0.3s ease; */
}

body.dark-mode .record-player-deck {
    background: linear-gradient(145deg, #5a5a5a 0%, #3a3a3a 50%, #2a2a2a 100%);
}

.vinyl-record {
    width: 80%;
    height: 80%;
    --vinyl-color-1: #642a2a;
    --vinyl-color-2: #753232;
    --vinyl-color-3: #452424;
    background: radial-gradient(circle at center, var(--vinyl-color-1) 0%, var(--vinyl-color-2) 8%, var(--vinyl-color-3) 8%, #2a2a2a 100%);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: --vinyl-color-1 0.5s ease, --vinyl-color-2 0.5s ease, --vinyl-color-3 0.5s ease;
}

/* Grey circle behind the black center */
.record-player-deck .vinyl-record::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22%;
    height: 22%;
    background: #1f1d1d;
    border-radius: 50%;
}

/* Black center circle of the vinyl */
.record-player-deck .vinyl-record::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8%;
    height: 8%;
    background: #000;
    border-radius: 50%;
}





.vinyl-record.spinning {
    animation: vinyl-spin 2s linear infinite;
}

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



.record-player-bottom-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding-top: 0.5rem;
}

.record-control-btn {
    position: relative;
    width: 28px;
    height: 28px;
    background: #6a6a6a;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.record-control-btn:hover {
    background: #7a7a7a;
}

.record-control-btn:active {
    background: #5a5a5a;
    transform: translateY(1px);
}

/* Active/pressed state for control buttons */
.record-control-btn.active {
    background: #5a5a5a;
    transform: translateY(1px);
}


.tone-arm {
    position: absolute;
    top: 18%;
    right: 12%;
    width: 140px;
    height: 8px;
    background: linear-gradient(90deg, #6a6a6a 0%, #4a4a4a 50%, #3a3a3a 100%);
    border-radius: 4px;
    transform-origin: right center;
    transform: rotate(-90deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 1.5s ease-in-out !important;
    z-index: 3;
}

.vinyl-record.spinning ~ .tone-arm {
    transform: rotate(-65deg);
}

.tone-arm::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #4a4a4a 0%, #2a2a2a 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.tone-arm::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #8a8a8a 0%, #6a6a6a 100%);
    border-radius: 50%;
}

.record-player-controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
}

.play-pause-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, #6a6a6a 0%, #4a4a4a 100%);
    border-radius: 50%;
    border: none;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #838383;
}

.play-pause-btn:hover {
    background: linear-gradient(145deg, #7a7a7a 0%, #5a5a5a 100%);
    box-shadow: 
        0 6px 16px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.25);
    /* transform: translateY(-2px); */
}

.play-pause-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

body.dark-mode .play-pause-btn {
    background: linear-gradient(145deg, #5a5a5a 0%, #3a3a3a 100%);
    color: #7f7f7f;
}

body.dark-mode .play-pause-btn:hover {
    background: linear-gradient(145deg, #6a6a6a 0%, #4a4a4a 100%);
}

/* ===== MAC COMPUTER WITH EYE ===== */
/* Workspace container */
.intro-workspace {
    position: absolute;
    top: 0rem;
    right: 5%;
    width: 50%;
    height: auto;
    margin-top: 0;
    /* padding: 2rem; */
    z-index: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    transform: scale(0.7);
    transform-origin: top right;
}

/* Whiteboard */
.whiteboard {
    width: 70%;
    max-width: 500px;
}

.whiteboard-frame {
    background: linear-gradient(135deg, #878787 0%, #828282 100%);
    border-radius: 12px;
    padding: 12px;
    position: relative;
}

.whiteboard-surface {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .whiteboard-surface {
    background: #ffffff;
}

.whiteboard-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #b8b8b8;
    font-weight: 300;
    letter-spacing: 2px;
}

.whiteboard-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 1;
}

.sticky-note {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #c98a8a;
    border-radius: 2px;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.1);
    transform: rotate(-3deg);
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    z-index: 5;
    pointer-events: auto;
}

.sticky-note:active {
    cursor: grabbing;
    box-shadow: 4px 6px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

.sticky-note:nth-child(3) {
    transform: rotate(5deg);
}

.sticky-note:nth-child(4) {
    transform: rotate(-8deg);
}

.push-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #a85a5a 0%, #8b3838 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.2s ease;
    z-index: 5;
    pointer-events: auto;
}

.push-pin:active {
    cursor: grabbing;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Whiteboard markers on ledge */
.whiteboard-markers {
    position: absolute;
    bottom: 8px;
    right: 16px;
    display: flex;
    gap: 6px;
    align-items: flex-end;
    z-index: 5;
}

.marker {
    width: 8px;
    border-radius: 2px;
    position: relative;
}

.marker-1 {
    height: 45px;
    background: linear-gradient(180deg, #3a3a3a 0%, #3a3a3a 15%, #d4a5a5 15%, #d4a5a5 100%);
}

.marker-2 {
    height: 40px;
    background: linear-gradient(180deg, #3a3a3a 0%, #3a3a3a 18%, #b87b7b 18%, #b87b7b 100%);
}

body.dark-mode .marker-1 {
    background: linear-gradient(180deg, #2a2a2a 0%, #2a2a2a 15%, #d4a5a5 15%, #d4a5a5 100%);
}

body.dark-mode .marker-2 {
    background: linear-gradient(180deg, #2a2a2a 0%, #2a2a2a 18%, #b87b7b 18%, #b87b7b 100%);
}

.push-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #6b2828;
    border-radius: 50%;
    pointer-events: none;
}

.intro-computer {
    position: relative;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    margin-top: 0;
    padding: 0;
    z-index: 1;
    overflow: visible;
    display: flex;
    align-self: flex-start;
    align-items: flex-start;
    justify-content: center;
}

/* Polaroid Stack */
.polaroid-stack {
    position: absolute;
    right: -120px;
    top: 20%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.polaroid {
    position: relative;
    width: 60px;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0s;
}

.polaroid-frame {
    background: #ffffff;
    padding: 5px 5px 15px 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.polaroid-photo {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Individual polaroid rotations */
.polaroid-1 {
    transform: rotate(-8deg);
}

.polaroid-2 {
    transform: rotate(5deg);
    margin-left: 10px;
}

.polaroid-3 {
    transform: rotate(-3deg);
    margin-left: -5px;
}

/* Hover effects */
.polaroid:hover {
    transform: rotate(0deg) scale(1.15) !important;
    z-index: 101;
}

.polaroid:hover .polaroid-frame {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Dark mode polaroids */
body.dark-mode .polaroid-frame {
    background: #f5f5f5;
}

.computer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.computer-monitor {
    position: relative;
}

.monitor-bezel {
    background: #6a6a6a;
    border-radius: 20px;
    padding: 20px 20px 10px 20px;
}

.monitor-screen {
    width: 280px;
    height: 190px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* Screen prompt text */
.screen-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.screen-prompt.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Screen content containers */
.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.screen-content.active {
    opacity: 1;
    pointer-events: auto;
}

/* Brain dots SVG */
.brain-dots-svg {
    width: 180px;
    height: 180px;
}

.brain-dot {
    fill: #903232;
    opacity: 0;
    animation: dotAppear 0.3s ease-out forwards;
}

@keyframes dotAppear {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Design elements - Wireframes */
.design-elements {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 15px;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.design-shape {
    position: relative;
    opacity: 0;
    animation: wireframeAppear 0.6s ease forwards;
    border: 1.5px solid #903232;
    background: transparent;
}

/* Mobile wireframe - portrait */
.shape-1 {
    width: 35px;
    height: 60px;
    border-radius: 5px;
    animation-delay: 0s;
    display: flex;
    flex-direction: column;
    padding: 3px;
    gap: 2px;
}

.shape-1::before {
    content: '';
    width: 100%;
    height: 10px;
    background: #903232;
    border-radius: 1px;
}

.shape-1::after {
    content: '';
    width: 100%;
    flex: 1;
    background: #90323250;
    border-radius: 1px;
}

/* Desktop/Website wireframe - landscape */
.shape-2 {
    width: 60px;
    height: 45px;
    border-radius: 3px;
    animation-delay: 0.1s;
    display: flex;
    flex-direction: column;
    padding: 3px;
    gap: 2px;
}

.shape-2::before {
    content: '';
    width: 100%;
    height: 10px;
    background: #903232;
    border-radius: 1px;
}

.shape-2::after {
    content: '';
    width: 100%;
    flex: 1;
    background: #90323240;
    border-radius: 1px;
}

/* Tablet wireframe */
.shape-3 {
    width: 42px;
    height: 55px;
    border-radius: 4px;
    animation-delay: 0.2s;
    display: flex;
    flex-direction: column;
    padding: 3px;
    gap: 2px;
}

.shape-3::before {
    content: '';
    width: 100%;
    height: 9px;
    background: #903232;
    border-radius: 1px;
}

.shape-3::after {
    content: '';
    width: 100%;
    flex: 1;
    background: #90323245;
    border-radius: 1px;
}

/* Card/Component wireframe */
.shape-4 {
    width: 38px;
    height: 42px;
    border-radius: 3px;
    animation-delay: 0.3s;
    display: flex;
    flex-direction: column;
    padding: 2px;
    gap: 2px;
}

.shape-4::before {
    content: '';
    width: 100%;
    height: 22px;
    background: #90323230;
    border-radius: 1px;
}

.shape-4::after {
    content: '';
    width: 100%;
    height: 8px;
    background: #90323260;
    border-radius: 1px;
}

/* Mobile landscape wireframe */
.shape-5 {
    width: 55px;
    height: 35px;
    border-radius: 4px;
    animation-delay: 0.4s;
    display: flex;
    flex-direction: column;
    padding: 2px;
    gap: 2px;
}

.shape-5::before {
    content: '';
    width: 100%;
    height: 8px;
    background: #903232;
    border-radius: 1px;
}

.shape-5::after {
    content: '';
    width: 100%;
    flex: 1;
    background: #90323238;
    border-radius: 1px;
}

/* Small widget wireframe */
.shape-6 {
    width: 35px;
    height: 35px;
    border-radius: 3px;
    animation-delay: 0.5s;
    display: flex;
    flex-direction: column;
    padding: 2px;
    gap: 2px;
}

.shape-6::before {
    content: '';
    width: 100%;
    height: 8px;
    background: #903232;
    border-radius: 1px;
}

.shape-6::after {
    content: '';
    width: 100%;
    flex: 1;
    background: #90323245;
    border-radius: 1px;
}

/* Watch/Wearable wireframe */
.shape-7 {
    width: 40px;
    height: 50px;
    border-radius: 3px;
    animation-delay: 0.6s;
    display: flex;
    flex-direction: column;
    padding: 3px;
    gap: 2px;
}

.shape-7::before {
    content: '';
    width: 100%;
    height: 18px;
    background: #90323235;
    border-radius: 1px;
}

.shape-7::after {
    content: '';
    width: 100%;
    height: 8px;
    background: #90323255;
    border-radius: 1px;
}

/* Small card wireframe */
.shape-8 {
    width: 42px;
    height: 38px;
    border-radius: 3px;
    animation-delay: 0.7s;
    display: flex;
    flex-direction: column;
    padding: 2px;
    gap: 2px;
}

.shape-8::before {
    content: '';
    width: 100%;
    height: 20px;
    background: #90323228;
    border-radius: 1px;
}

.shape-8::after {
    content: '';
    width: 100%;
    height: 7px;
    background: #90323250;
    border-radius: 1px;
}

/* Tall component wireframe */
.shape-9 {
    width: 30px;
    height: 50px;
    border-radius: 3px;
    animation-delay: 0.8s;
    display: flex;
    flex-direction: column;
    padding: 2px;
    gap: 2px;
}

.shape-9::before {
    content: '';
    width: 100%;
    height: 8px;
    background: #903232;
    border-radius: 1px;
}

.shape-9::after {
    content: '';
    width: 100%;
    flex: 1;
    background: #90323242;
    border-radius: 1px;
}

/* Wide component wireframe */
.shape-10 {
    width: 60px;
    height: 48px;
    border-radius: 3px;
    animation-delay: 0.9s;
    display: flex;
    flex-direction: column;
    padding: 3px;
    gap: 2px;
}

.shape-10::before {
    content: '';
    width: 100%;
    height: 9px;
    background: #903232;
    border-radius: 1px;
}

.shape-10::after {
    content: '';
    width: 100%;
    flex: 1;
    background: #90323248;
    border-radius: 1px;
}

@keyframes wireframeAppear {
    0% { opacity: 0; transform: scale(0.8) translateY(5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes triangleAppear {
    0% { opacity: 0; transform: translateX(-50%) scale(0); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* Code lines */
.code-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    width: 85%;
}

.code-line {
    height: 3px;
   
  
    opacity: 0;
    animation: lineAppear 0.4s ease forwards;
}

.code-line:nth-child(1) { width: 75%; animation-delay: 0s }
.code-line:nth-child(2) { width: 85%; animation-delay: 0.05s; margin-left: 15px }
.code-line:nth-child(3) { width: 65%; animation-delay: 0.1s; margin-left: 15px }
.code-line:nth-child(4) { width: 78%; animation-delay: 0.15s; margin-left: 15px }
.code-line:nth-child(5) { width: 55%; animation-delay: 0.2s}
.code-line:nth-child(6) { width: 82%; animation-delay: 0.25s; margin-left: 15px }
.code-line:nth-child(7) { width: 70%; animation-delay: 0.3s; margin-left: 15px; }
.code-line:nth-child(8) { width: 90%; animation-delay: 0.35s; margin-left: 30px }
.code-line:nth-child(9) { width: 60%; animation-delay: 0.4s }
.code-line:nth-child(10) { width: 88%; animation-delay: 0.45s; margin-left: 15px; background: #90323258; }
.code-line:nth-child(11) { width: 72%; animation-delay: 0.5s; margin-left: 15px; background: #90323252; }
.code-line:nth-child(12) { width: 65%; animation-delay: 0.55s; margin-left: 15px; background: #90323268; }

@keyframes lineAppear {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Computer buttons */
.computer-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.comp-btn {
    width: 28px;
    height: 28px;
    background: #5a5a5a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.comp-btn:hover {
    background: #707070;
}

.comp-btn:active {
}

.comp-btn.active {
    background: #8B3A3A;
}

.btn-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(0.7);
}

.plus-icon {
    fill: none;
    stroke: #e8e8e8;
}

body.dark-mode .plus-icon {
    stroke: #1a1a1a;
}

body.dark-mode .btn-icon {
    filter: brightness(0) invert(0.7);
}

#screen-draw {
    cursor: crosshair;
}

.monitor-screen.draw-mode {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23903232" d="M20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z"/></svg>') 0 24, crosshair;
}

.monitor-chin {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.monitor-logo {
    width: 24px;
    height: 16px;
    background: #4a4a4a;
    border-radius: 3px;
    opacity: 0.6;
}

/* Computer Stand */
.computer-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stand-neck {
    width: 50px;
    height: 60px;
    background: #4a4a4a;
}

.stand-base {
    width: 180px;
    height: 12px;
    background: #4a4a4a;
    border-radius: 6px 6px 10px 10px;
}

/* Bottom Row */
.workspace-bottom-row {
    display: flex;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-end;
}

/* Desk Items */
.desk-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-end;
    align-self: flex-start;
    margin-right: 2rem;
}

/* Sketchbook */
.sketchbook {
    width: 160px;
    position: relative;
    margin-top: 0;
    margin-left: 3rem;
    cursor: pointer;
}

.sketchbook-cover {
    position: relative;
    display: flex;
    gap: 0;
    justify-content: center;
    perspective: 1000px;
}

/* Gray book covers that flip */
.book-cover-left,
.book-cover-right {
    width: 65px;
    height: 85px;
    background: #b8b8b8;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95), z-index 0s;
    transform-style: preserve-3d;
}

body.dark-mode .book-cover-left,
body.dark-mode .book-cover-right {
    background: #a0a0a0;
}

.book-cover-left {
    transform-origin: right center;
}

.book-cover-right {
    transform-origin: left center;
}

/* White pages that flip */
.page {
    width: 60px;
    height: 73px;
    background: #ffffff;
    border-radius: 3px;
    position: absolute;
    top: 6px;
    transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95), opacity 0.8s ease, z-index 0s;
    transform-style: preserve-3d;
    cursor: pointer;
    z-index: 2;
    backface-visibility: hidden;
}

body.dark-mode .page {
    background: #f5f5f5;
}

.page-left {
    left: 30px;
    transform-origin: right center;
}

.page-right {
    right: 30px;
    transform-origin: left center;
}

/* Closed state - left cover and page flip over to close on right side */
.sketchbook.closed .book-cover-left {
    transform: rotateY(180deg);
    z-index: 10;
}

.sketchbook.closed .page-left {
    transform: rotateY(180deg);
    z-index: 9;
}

.sketchbook.closed .page-right {
    opacity: 0;
}

.page-content {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

/* Sketch elements */
.sketch-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #d0d0d0;
    top: 20px;
    left: 10px;
}

.sketch-line-2 {
    top: 30px;
    width: 25px;
}

.sketch-circle {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    top: 40px;
    left: 15px;
}

.sketch-circle-2 {
    top: 25px;
    left: 20px;
    width: 12px;
    height: 12px;
}

.sketch-square {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    top: 30px;
    left: 15px;
}

.sketch-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 17px solid #d0d0d0;
    top: 15px;
    left: 18px;
}

.sketchbook-binding {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 15px 0;
    z-index: 3;
}

.binding-line {
    width: 12px;
    height: 1.5px;
    background: #888;
    position: relative;
}

.binding-line::before,
.binding-line::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #888;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.binding-line::before {
    left: -2px;
}

.binding-line::after {
    right: -2px;
}

body.dark-mode .binding-line {
    background: #666;
}

body.dark-mode .binding-line::before,
body.dark-mode .binding-line::after {
    background: #666;
}

/* Flowerpot */
.flowerpot {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.flowerpot img {
    width: 80px;
    height: auto;
}

/* Posters */
.posters {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1rem;
    margin-top: 0.25rem;
    margin-right: 1rem;
    justify-content: start;
}

.poster {
    border-radius: 3px;
}

.poster-1 {
    width: 45px;
    height: 50px;
    background:  #b87b7b;
}

.poster-2 {
    width: 50px;
    height: 65px;
    background:  #d49090;
}

.poster-3 {
    width: 40px;
    height: 40px;
    background: #e8b5b5;
    grid-column: 1 / -1;
    justify-self: end;
}

body.dark-mode .poster-1 {
    background: #8b3838;
}

body.dark-mode .poster-2 {
    background: #a85858;
}

/* Flowerpot Section */
.flowerpot-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flowerpot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.flower-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.flower {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flower-1 {
    margin-bottom: 10px;
}

.flower-2 {
    margin-bottom: 25px;
}

.flower-3 {
    margin-bottom: 5px;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #b87b7b;
    border-radius: 50% 50% 0 50%;
}

.petal:nth-child(1) { transform: rotate(0deg) translateY(-10px); }
.petal:nth-child(2) { transform: rotate(72deg) translateY(-10px); }
.petal:nth-child(3) { transform: rotate(144deg) translateY(-10px); }
.petal:nth-child(4) { transform: rotate(216deg) translateY(-10px); }
.petal:nth-child(5) { transform: rotate(288deg) translateY(-10px); }

.flower-center {
    position: relative;
    width: 8px;
    height: 8px;
    background: #8b5a5a;
    border-radius: 50%;
    z-index: 1;
}

.stem {
    position: absolute;
    bottom: -15px;
    width: 3px;
    background: #7a7a7a;
}

.stem-1 {
    height: 35px;
    left: 8px;
}

.stem-2 {
    height: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.stem-3 {
    height: 30px;
    right: 8px;
}

.pot {
    width: 80px;
    height: 50px;
    background: linear-gradient(180deg, #c8c8c8 0%, #b0b0b0 100%);
    border-radius: 0 0 8px 8px;
    position: relative;
    margin-top: -15px;
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

body.dark-mode .pot {
    background: linear-gradient(180deg, #a8a8a8 0%, #909090 100%);
}

.ledge {
    width: 100%;
    max-width: 200px;
    height: 18px;
    background: linear-gradient(180deg, #888 0%, #707070 100%);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

body.dark-mode .ledge {
    background: linear-gradient(180deg, #606060 0%, #505050 100%);
}

/* Dark mode adjustments */
body.dark-mode .monitor-bezel {
    background: #3a3a3a;
}

body.dark-mode .stand-neck {
    background: #2a2a2a;
}

body.dark-mode .stand-base {
    background: #2a2a2a;
}

/* Tablet responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .intro-workspace {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 3rem;
        padding: 1rem;
    }

    .whiteboard {
        width: 80%;
    }

    .workspace-bottom-row {
        justify-content: center;
        gap: 2rem;
    }

    .desk-items {
        margin-right: 0;
    }

    .intro-computer {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        padding: 2rem 0;
        margin-top: 2rem;
        justify-content: flex-start;
    }

    .monitor-screen {
        width: 320px;
        height: 220px;
    }

    .computer-buttons {
        gap: 10px;
    }

    .comp-btn {
        width: 32px;
        height: 32px;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .intro-workspace {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 2rem;
        padding: 0;
        transform: scale(0.6);
        transform-origin: top center;
    }

    .sketchbook {
        margin-top: 0;
    }

    .monitor-bezel {
        padding: 15px 15px 8px 15px;
        border-radius: 16px;
    }

    .monitor-screen {
        width: 260px;
        height: 180px;
        border-radius: 6px;
    }

    .monitor-chin {
        height: 24px;
        margin-top: 6px;
    }

    .monitor-logo {
        width: 20px;
        height: 12px;
    }

    .stand-neck {
        width: 40px;
        height: 45px;
    }

    .stand-base {
        width: 140px;
        height: 10px;
    }

    .computer-buttons {
        gap: 8px;
    }

    .comp-btn {
        width: 28px;
        height: 28px;
    }

    .btn-icon {
        width: 14px;
        height: 14px;
    }

    .screen-prompt span {
        font-size: 0.85rem;
    }

    .brain-dots-svg {
        width: 140px;
        height: 140px;
    }

    .design-elements {
        gap: 6px;
        padding: 18px;
    }

    .shape-1 {
        width: 35px;
        height: 60px;
        padding: 3px;
    }

    .shape-1::before {
        height: 6px;
    }

    .shape-2 {
        width: 60px;
        height: 45px;
        padding: 3px;
    }

    .shape-2::before {
        height: 6px;
    }

    .shape-3 {
        width: 42px;
        height: 53px;
        padding: 3px;
    }

    .shape-4 {
        width: 38px;
        height: 42px;
        padding: 2px;
    }

    .shape-5 {
        width: 53px;
        height: 34px;
        padding: 2px;
    }

    .shape-6 {
        width: 34px;
        height: 34px;
        padding: 2px;
    }

    .shape-7 {
        width: 30px;
        height: 38px;
        padding: 2px;
    }

    .shape-8 {
        width: 42px;
        height: 38px;
        padding: 2px;
    }

    .shape-9 {
        width: 28px;
        height: 48px;
        padding: 2px;
    }

    .shape-10 {
        width: 45px;
        height: 36px;
        padding: 2px;
    }

    .code-lines {
        gap: 5px;
        padding: 15px;
    }

    .code-line {
        height: 2px;
    }
}

.neuron-svg {
    width: 100%;
    max-width: 450px;
    height: auto;
    color: #000;
    transition: all 0.3s ease;
}

body.dark-mode .neuron-svg {
    color: #fff;
}

/* Brain dots */
.brain-dots circle {
    fill: currentColor;
    opacity: 0.25;
    transition: all 0.3s ease;
}

.brain-dots.active circle {
    opacity: 0.45;
}

/* Synapse dots */
.synapse circle {
    fill: currentColor;
    opacity: 0;
    transition: all 0.3s ease;
}

.synapse.active circle {
    opacity: 0.6;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

/* Neuron buttons - clickable areas */
.neuron-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.neuron-button:hover .neuron-node {
    stroke-width: 3;
    filter: drop-shadow(0 0 8px currentColor);
}

.neuron-button:hover .neuron-core {
    opacity: 0.6;
}

/* Active state for clicked neurons */
.neuron-button.active .neuron-node {
    stroke-width: 3;
    filter: drop-shadow(0 0 12px currentColor);
    animation: neuron-pulse 1.5s ease-in-out infinite;
}

.neuron-button.active .neuron-core {
    opacity: 0.8;
    animation: core-pulse 1.5s ease-in-out infinite;
}

/* Central neuron pulse animation when active */
.central-neuron.active {
    animation: central-pulse 1.5s ease-in-out infinite;
}

.central-core.active {
    opacity: 0.5;
    animation: core-pulse 1.5s ease-in-out infinite;
}

/* Synapse animations */
.synapse {
    transition: all 0.4s ease;
}

.synapse.active {
    opacity: 1 !important;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px currentColor);
    animation: synapse-flow 1.2s ease-in-out infinite;
}

/* Neurotransmitter label */
.neurotransmitter-label {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

body.dark-mode .neurotransmitter-label {
    color: #fff;
}

.neurotransmitter-label.visible {
    opacity: 1;
}

/* Animations */
@keyframes neuron-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes core-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes central-pulse {
    0%, 100% {
        stroke-width: 2;
    }
    50% {
        stroke-width: 3;
        filter: drop-shadow(0 0 12px currentColor);
    }
}

@keyframes synapse-flow {
    0% {
        stroke-dasharray: 0 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 100 200;
        stroke-dashoffset: -100;
    }
    100% {
        stroke-dasharray: 0 200;
        stroke-dashoffset: -200;
    }
}

.intro-brain {
    position: absolute;
    top: -17vh; /* Move canvas higher on the page */
    right:0px; /* Align with header's right padding (matches theme toggle button) */
    width: 45%; /* Crop width to 48% - cropped on the right */
    height: 80vh; /* Crop to 80vh */
    margin-top: 0;
    padding-top: 0;
    z-index: 1; /* Behind the text */
    overflow: hidden; /* Hide any overflow */
}

#brain-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #ffffff;
    pointer-events: none;
    border-radius: 8px;
}

#brain-app {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent; /* Always transparent to match canvas */
    outline: none; /* Remove any outline */
    border: none; /* Remove any border */
    will-change: transform; /* Optimize for animations */
    transform: translateZ(0); /* Force GPU acceleration */
}

body.dark-mode #brain-bg,
body.dark-mode #brain-app {
    background: transparent; /* Always transparent in dark mode too */
}

#brain-app canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23903232'/%3E%3C/svg%3E") 6 6, auto;
    outline: none; /* Remove any outline */
    border: none; /* Remove any border */
  }

.intro h1 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    width: 100%;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    color: #000;
}

body.dark-mode .intro h1 {
    color: #fff;
}

.intro h1 > span {
    display: block;
    font-size: 4rem;
}

/* Gradient effect for interdisciplinary */
.intro h1 i {
    font-family: 'playfair display', serif;
    font-weight: 200;
    /* font-style: italic; */
    background: linear-gradient(135deg, #000000 0%, #4a4a4a 50%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-bottom: 0.1em;
    padding-right: 0.15em;
}

body.dark-mode .intro h1 i {
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Breathing color animation for product designer text */
.breathing-text {
    display: inline !important; /* Keep breathing-text spans inline */
    animation: breatheColor 4s ease-in-out infinite;
    transition: color 0.3s ease;
}

@keyframes breatheColor {
    0%, 100% {
        color: #903232; /* Dark red */
    }
    50% {
        color: #903232; /* Medium coral */
    }
}

/* Dark mode breathing animation */
body.dark-mode .breathing-text {
    animation: breatheColorDark 4s ease-in-out infinite;
}

@keyframes breatheColorDark {
    0%, 100% {
        color: #C94949; /* Medium coral - lighter for dark mode */
    }
    50% {
        color: #C94949; /* Light coral */
    }
}


.intro p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 250;
    max-width: 100%;
    color: #000000;
    transition: color 0.3s ease;
}

.intro p.fade-in-delay-2 {
    font-size: 1rem;
}

/* Intro roles section */
.intro-roles {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 250;
    color: #000;
    transition: color 0.3s ease;
}

.role-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #000000;
}

body.dark-mode .role-icon {
    color: #ffffff;
}

/* For img tags with role-icon class */
img.role-icon {
    filter: none;
}

body.dark-mode img.role-icon {
    filter: invert(1) brightness(1);
}

.role-text {
    line-height: 1.5;
}

body.dark-mode .role-item {
    color: #ffffff;
}

/* School links in intro */
.school-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: none;
}

.school-link:hover {
    opacity: 0.7;
}


/* Highlight phrases styling */
.highlight-phrase {
    font-weight: 700;
    color: #000000;
    transition: color 0.3s ease;
}

/* Dark mode for paragraph text */
body.dark-mode .intro p {
    color: #ffffff;
}


/* Dark mode for role-cursor elements */
body.dark-mode .role-cursor {
    color: #ffffff;
}

/* Dark mode for highlighted phrases */
body.dark-mode .highlight-phrase {
    color: #ffffff;
}

.slogan {
    font-size: 1.8rem;
    font-weight: 250;
    color: #000000;
    margin: 1.5rem 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Projects Section */
.projects {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    width: 100%;
}

.records-container {
    display: flex;
    align-items: center;
    gap: -50px;
    position: relative;
    height: 400px;
}

/* Record Styling */
.record {
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    opacity: 0; /* Start hidden for animation */
    text-decoration: none;
    display: block;
}

.record:nth-child(1) {
    z-index: 1;
    margin-left: 0;
}

.record:nth-child(2) {
    z-index: 1;
    margin-left: -200px;
}

.record:nth-child(3) {
    z-index: 1;
    margin-left: -200px;
}

.record:nth-child(4) {
    z-index: 1;
    margin-left: -200px;
}

/* Record Image Styling */
.record-image {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
    /* border-radius: 50%; */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    transform-origin: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    outline: none;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}





/* Hover Effects */
.record:hover .record-image {
    transform: rotate(360deg) scale(1.1);
}



/* Global outline removal for all elements */
*:focus,
*:focus-visible,
*:focus-within {
    outline: none !important;
    outline-offset: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
}

/* Ensure record links maintain styling */
.record:visited,
.record:active,
.record:focus,
.record:focus-visible,
.record:focus-within {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    outline-offset: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    box-shadow: none !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.record:focus {
    outline: none !important;
    outline-offset: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    box-shadow: none !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.record:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    box-shadow: none !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.record:focus-within {
    outline: none !important;
    outline-offset: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    box-shadow: none !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .records-container {
        gap: -30px;
    }

    .record-image {
        max-width: 450px;
        max-height: 450px;
    }

    .record:nth-child(2),
    .record:nth-child(3),
    .record:nth-child(4) {
        margin-left: -180px;
    }

    .intro-content {
        gap: 0;
        flex-direction: column;
    }

    /* Keep desktop layout for tablets - only change for mobile (768px and below) */
    .intro-neuron-network {
        height: 100vh;
        width: 100%;
    }

    .intro-brain {
        height: 100vh;
        width: 100%;
    }

    .intro-text {
        position: relative;
        left: 0;
        max-width: 100%;
        width: 100%;
        margin-bottom: 2rem;
    }

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

    .intro h1 > span,
    .intro h1 span {
        font-size: 2.8rem;
    }

    .intro h1 .poppins-text {
        font-size: 2.5rem;
    }

    .intro-computer {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 2rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .logo {
        margin-left: -0.25rem !important;
        padding-left: 0 !important;
    }
    
    .intro {
        padding: 2rem !important;
    }

    .intro-content {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
        position: relative;
    }

    .intro-text {
        position: relative;
        width: 100%;
        max-width: 100%;
        order: 0;
        text-align: left;
        padding: 0;
    }

    .intro-workspace {
        position: relative;
        width: 100%;
        transform: scale(0.5);
        transform-origin: top left;
        right: auto;
        left: 10%;
        order: 1;
        margin-top: 0.5rem;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .whiteboard {
        width: 90%;
    }

    .intro-neuron-network {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 60vh;
        right: auto;
        top: auto;
        order: 1;
        margin-top: 2rem;
    }

    .intro-record-player {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 350px;
        right: auto;
        top: auto;
        order: 1;
        margin-top: 1rem;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .record-player-container {
        gap: 1rem;
    }

    .record-player-deck {
        width: 280px;
        height: 280px;
        padding: 1rem;
    }

    .vinyl-record {
        width: 85%;
        height: 85%;
    }

    .tone-arm {
        width: 80px;
        top: 15%;
        right: 10%;
    }

    .tone-arm::before {
        width: 18px;
        height: 18px;
        right: -8px;
    }

    .tone-arm::after {
        width: 12px;
        height: 12px;
        left: -6px;
    }

    .play-pause-btn {
        width: 28px;
        height: 28px;
    }

    .record-control-btn {
        width: 20px;
        height: 20px;
    }

    .record-player-bottom-controls {
        gap: 1rem;
        padding-top: 0.3rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .intro h1 {
        font-size: 1.8rem;
    }

    .intro h1 span {
        font-size: 2rem;
    }

    .intro h1 .poppins-text {
        font-size: 1.5rem;
    }

    .intro p {
        font-size: 0.9rem;
    }

    .role-item {
        font-size: 0.85rem;
    }

    .role-text {
        font-size: 0.80rem;
    }

    .intro-roles {
        margin-top: 1rem;
    }

    .work-title,
    .about-title,
    .resume-title {
        font-size: 1.5rem;
    }

    .record-player-deck {
        width: 240px;
        height: 240px;
        padding: 0.8rem;
    }

    .tone-arm {
        width: 65px;
    }

    .play-pause-btn {
        width: 24px;
        height: 24px;
    }

    .record-control-btn {
        width: 18px;
        height: 18px;
    }

    .record-player-bottom-controls {
        gap: 0.8rem;
    }

    .intro-brain {
        position: relative; /* Change from absolute to relative for mobile */
        width: 100%;
        max-width: 100%;
        height: 60vh; /* Reasonable height for mobile */
        right: auto; /* Remove absolute positioning */
        top: auto; /* Remove negative top */
        order: 1; /* Show brain after text on mobile */
        margin-top: 2rem;
    }
    
    .intro-text {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        padding: 0;
        max-width: 100%;
        order: 0;
        text-align: left;
    }
    
    .intro h1 {
        font-size: 1.8rem !important;
        width: 100%;
        line-height: 1.3;
    }

    .intro h1 > span,
    .intro h1 span {
        font-size: 2rem !important;
    }

    .intro h1 .poppins-text {
        font-size: 2.2rem !important;
    }

    .intro p {
        max-width: 100%;
        font-size: 0.85rem;
        color: #000000;
        transition: color 0.3s ease;
        text-align: left;
    }

    .intro p.fade-in-delay-2,
    .intro .work-subtitle {
        font-size: 0.85rem;
        text-align: left;
    }

    .role-item {
        font-size: 0.85rem;
    }

    .work-title,
    .about-title,
    .resume-title {
        font-size: 2.2rem;
    }

    /* Mobile dark mode for paragraph text */
    body.dark-mode .intro p {
        color: #ffffff;
    }
    
    /* Mobile dark mode for role-cursor elements */
    body.dark-mode .role-cursor {
        color: #ffffff;
    }
    
    /* Mobile styling for highlighted phrases */
    .highlight-phrase {
        font-weight: 700;
        color: #000000;
        transition: color 0.3s ease;
    }
    
    /* Dark mode for highlighted phrases on mobile */
    body.dark-mode .highlight-phrase {
        color: #ffffff;
    }
    
    .slogan {
        font-size: 1.4rem;
        margin: 1rem 0;
        color: #000000;
        transition: color 0.3s ease;
    }
    
    /* Mobile dark mode for slogan */
    body.dark-mode .slogan {
        color: #ffffff;
    }
    
    .projects {
        padding: 1rem 2rem;
    }
    
    .records-container {
        flex-direction: column;
        gap: 2rem;
        height: auto;
    }
    
    .record {
        margin-left: 0 !important;
    }
    
    .record-image {
        max-width: 320px;
        max-height: 320px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Dark mode for back to top button - inverted colors */
body.dark-mode .back-to-top {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

body.dark-mode .back-to-top:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Responsive back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 32px;
        height: 32px;
    }
}

/* Next Project Section */
.next-project-section {
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.next-project-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin: 0 180px 3rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.next-project-card:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(8px);
}

.next-project-card h2 {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.next-project-image {
    width: 240px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.next-project-image img,
.next-project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-project-info {
    flex: 1;
}

.next-project-info h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #000;
}

.next-project-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.next-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.next-project-tags .tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    color: #666;
}

.next-project-arrow {
    display: none;
}

.next-project-card:hover .next-project-arrow {
    color: #000;
    transform: translateX(5px);
}

/* Dark mode for next project section */
body.dark-mode .next-project-card {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .next-project-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .next-project-info h3 {
    color: #fff;
}

body.dark-mode .next-project-info p {
    color: #aaa;
}

body.dark-mode .next-project-tags .tag {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

body.dark-mode .next-project-arrow {
    color: #555;
}

body.dark-mode .next-project-card:hover .next-project-arrow {
    color: #fff;
}

/* Responsive for next project section */
@media (max-width: 1024px) {
    .next-project-card {
        margin: 0 60px 2rem;
    }
}

@media (max-width: 768px) {
    .next-project-card {
        margin: 0 1.5rem 2rem;
        gap: 1rem;
        padding: 1rem;
    }

    .next-project-image {
        width: 120px;
        height: 80px;
    }

    .next-project-info h3 {
        font-size: 1rem;
    }

    .next-project-info p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .next-project-tags .tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .next-project-arrow {
        font-size: 1.2rem;
    }

    .next-project-card h2 {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .next-project-card {
        margin: 0 1.5rem 2rem;
    }
}

/* Letter Grid Section */
.letter-grid-section {
    padding: 5rem 60px;
    position: relative;
}

.lg-inspiration {
    font-size: 0.72rem;
    color: #888;
    margin: 0 0 12px 0;
    letter-spacing: 0.03em;
}

body.dark-mode .lg-inspiration {
    color: #777;
}

.lg-nav {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

.lg-arrow {
    background: #ebebeb;
    border: none;
    border-radius: 5px;
    color: #555;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 4px 12px 8px;
    transition: background 0.15s, color 0.15s;
}

.lg-arrow:hover {
    background: #d8d8d8;
    color: #111;
}

body.dark-mode .lg-arrow {
    background: #2a2a2a;
    color: #aaa;
}

body.dark-mode .lg-arrow:hover {
    background: #383838;
    color: #eee;
}

.letter-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 5px;
    width: 100%;
}

/* Split-flap tile — dark board aesthetic */
.lg-tile {
    aspect-ratio: 1;
    position: relative;
    border-radius: 5px;
    user-select: none;
    perspective: 200px; /* gives child flaps their 3D depth */
}

.lg-tile:not(.lg-space) { cursor: pointer; }

/* Four card panels — static backs + animated flaps */
.lg-upper, .lg-lower, .lg-flap-t, .lg-flap-b {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Static top half — shows new char, visible once top flap folds away */
.lg-upper {
    top: 0;
    height: calc(50% - 1px);
    align-items: flex-end;
    border-radius: 5px 5px 0 0;
    background: #1e1e20;
    transition: background 0.1s ease;
}

/* Static bottom half — shows old char until midpoint, then new */
.lg-lower {
    bottom: 0;
    height: calc(50% - 1px);
    align-items: flex-start;
    border-radius: 0 0 5px 5px;
    background: #19191b;
    transition: background 0.1s ease;
}

/* Top flap — covers upper, shows old char, folds down during flip */
.lg-flap-t {
    top: 0;
    height: calc(50% - 1px);
    align-items: flex-end;
    border-radius: 5px 5px 0 0;
    background: #26262a;
    transform-origin: bottom center;
    z-index: 2;
}

/* Bottom flap — starts folded up, unfolds showing new char */
.lg-flap-b {
    bottom: 0;
    height: calc(50% - 1px);
    align-items: flex-start;
    border-radius: 0 0 5px 5px;
    background: #212125;
    transform-origin: top center;
    transform: rotateX(90deg);
    z-index: 2;
}

/* The center split line */
.lg-tile::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 1px);
    height: 2px;
    background: #070707;
    z-index: 5;
    pointer-events: none;
}

/* Character text — warm amber like real boards */
/* Shared character style */
.lg-upper span, .lg-lower span,
.lg-flap-t span, .lg-flap-b span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.75rem, 1.9vw, 1.35rem);
    font-weight: 700;
    color: #ffffff;
    pointer-events: none;
    display: block;
    line-height: 1;
}

/* Center the character on the split line:
   upper/flapT align to bottom edge, then push down 50% of char height
   → char center lands exactly at the split → overflow clips the bottom half */
.lg-upper span, .lg-flap-t span {
    transform: translateY(50%);
}

/* lower/flapB align to top edge, then pull up 50% of char height
   → char center lands exactly at the split → overflow clips the top half */
.lg-lower span, .lg-flap-b span {
    transform: translateY(-50%);
}

/* Space tiles — slightly dimmer */
.lg-space .lg-upper, .lg-space .lg-flap-t { background: #161618; }
.lg-space .lg-lower, .lg-space .lg-flap-b { background: #131315; }
.lg-space::after { background: #050505; }

/* Hover lift */
.lg-tile:not(.lg-space):hover { z-index: 2; }

/* Responsive */
@media (max-width: 900px) {
    .letter-grid-section { padding: 3rem 30px; }
    .letter-grid { gap: 4px; }
}

@media (max-width: 600px) {
    .letter-grid-section { display: none; }
}

/* Explorations Section */
.explorations-section {
    padding: 0 60px;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.explorations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-top: 3rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.explorations-header .about-title {
    margin: 0;
    flex-shrink: 0;
}

.explorations-intro {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    margin: 0;
    text-align: right;
}

body.dark-mode .explorations-intro {
    color: #666;
}

.explorations-intro a {
    color: inherit;
    text-decoration: none;
}

body.dark-mode .explorations-intro a {
    color: inherit;
}

.explorations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.exp-card {
    padding: 24px 20px;
    border-radius: 5px;
    cursor: default;
    position: relative;
}

.exp-card.exp-1 {
    background: #111;
    color: #fff;
}

.exp-card.exp-2 {
    background: #e8e8e8;
    color: #222;
}

.exp-card.exp-3 {
    background: #f5f5f5;
    color: #333;
}

.exp-card.exp-4 {
    background: #555;
    color: #fff;
}

.exp-card.exp-5 {
    background: #2a2a2a;
    color: #fff;
}

.exp-card.exp-6 {
    background: #d0d0d0;
    color: #222;
}

body.dark-mode .exp-card.exp-2 {
    background: #2a2a2a;
    color: #ccc;
}

body.dark-mode .exp-card.exp-3 {
    background: #1e1e1e;
    color: #aaa;
}

body.dark-mode .exp-card.exp-6 {
    background: #333;
    color: #bbb;
}

.exp-number {
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.5;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.exp-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.exp-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    opacity: 0.65;
    line-height: 1.5;
    font-weight: 300;
}

/* Expand button */
.exp-expand-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    color: inherit;
    padding: 0;
    z-index: 2;
}

.exp-expand-btn:hover,
.exp-expand-btn.active {
    opacity: 1;
}

.exp-expand-icon {
    font-size: 13px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin-top: 1.25px;
}

.exp-expand-btn.active .exp-expand-icon {
    transform: rotate(45deg);
}

/* Popup */
.exp-popup {
    position: absolute;
    top: 36px;
    right: 0;
    width: 188px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 5px;
    padding: 14px 16px;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13), 0 2px 6px rgba(0, 0, 0, 0.07);
    color: #111;
}

.exp-popup.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.exp-popup-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    color: #111;
    margin-bottom: 3px;
}

.exp-popup-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.67rem;
    font-style: italic;
    color: #999;
    margin-bottom: 9px;
    font-weight: 300;
}

.exp-popup-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #555;
    font-weight: 300;
}

body.dark-mode .exp-popup {
    background: rgba(28, 28, 28, 0.97);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
    color: #eee;
}

body.dark-mode .exp-popup-title {
    color: #eee;
}

body.dark-mode .exp-popup-date {
    color: #777;
}

body.dark-mode .exp-popup-desc {
    color: #aaa;
}

@media (max-width: 768px) {
    .explorations-section {
        padding: 0 2rem;
    }
    .explorations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .explorations-grid {
        grid-template-columns: 1fr;
    }
}

/* Exploration card hover image preview */
.exp-hover-preview {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-radius: 5px;
    overflow: hidden;
    width: 260px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.exp-hover-preview.visible {
    opacity: 1;
    transform: scale(1);
}

.exp-hover-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Footer */
footer {
    width: 100%;
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    background: transparent;
    margin-top: 0.5rem;
}
.footer-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 2rem;
    padding-left: 4rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    color: #888;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-align: right;
}

body.dark-mode footer {
    border-top: none;
}
body.dark-mode .footer-content {
    color: #aaa;
}

.contact-info {
    text-align: right;
}

.contact-info h3 {
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000;
    transition: color 0.3s ease;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
}

.contact-info a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0;
    text-align: right;
}

.contact-info a:hover {
    color: #000;
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.25rem;
    gap: 0.75rem;
}

.footer-credit {
    font-size: 0.75rem;
    color: #b0b0b0;
    margin-top: 1rem;
    text-align: right;
}

body.dark-mode .footer-credit {
    color: #666666;
}

/* Footer responsive */
@media (max-width: 768px) {
    footer {
        padding: 2rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: right;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 0.5rem;
        padding-right: 0 !important;
        padding-left: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        justify-content: flex-start;
        align-items: flex-end;
    }
    
    .contact-info {
        text-align: right;
        margin: 0 !important;
        padding: 0;
        padding-bottom: 1rem;
        /* font-size: 0.8rem; */
    }

    .footer-credit {
        padding-top: -.3rem;
    }
    

    .social-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        margin: 0 !important;
        margin-top: 0.75rem !important;
        padding: 0;
        gap: 0.5rem;
    }
    
    .contact-info h3 {
        margin: 0 !important;
        padding: 0;
        padding-bottom: 0.2rem;
        font-size: 1.3rem;
    }
    
    .contact-info a {
        margin: 0 !important;
        padding: 0;
        padding-bottom: 0.1rem;
        font-size: 0.8rem;
    }

    .email-icon svg {
        width: 24px !important;
        height: 25px !important;
    }
    
    .linkedin-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Mail icon styles removed - reverted to text email */

/* Mail icon hover styles removed - reverted to text email */

.email-icon svg {
    width: 29px;
    height: 30px;

}

.email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #000 !important;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.linkedin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding-top: 0.5%;
    color: #000 !important;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.email-icon:hover,
.linkedin-icon:hover {
    color: #000 !important;
    transform: scale(1.18);
}

.email-icon {
    color: #000;
}

body.dark-mode .email-icon {
    color: #ffffff !important;
}

body.dark-mode .email-icon:hover {
    color: #ffffff !important;
}

/* Spinning Record Transition */
.spinning-record {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.spinning-record.active {
    opacity: 1;
}

.spinning-record .record-image {
    max-width: 200px;
    max-height: 200px;
    animation: continuous-spin 2s linear infinite;
}

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

/* Project Page Styles */
.project-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 60px;
    min-height: calc(100vh - 200px);
}



.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-header h1 {
    font-size: 8.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.project-subtitle {
    font-size: 1.5rem;
    color: #666;
    font-weight: 400;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.project-features,
.project-tech {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-description {
    grid-column: 1 / -1;
}

.project-details h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
}

.project-details p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 1rem;
}

.project-details ul {
    list-style: none;
    padding: 0;
}

.project-details li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #15705b;
    font-weight: bold;
}

/* Project page responsive */
@media (max-width: 768px) {
    .project-content {
        padding: 2rem;
    }
    
    .project-header h1 {
        font-size: 2.5rem;
    }
    
    .project-subtitle {
        font-size: 1.2rem;
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .spinning-record.landing {
        right: 2rem;
        top: 80px;
    }
    
    .spinning-record .record-image {
        max-width: 150px;
        max-height: 150px;
    }
} 

/* === ABOUT PAGE STYLES === */
.about-main {
    padding: 8rem 60px;
    margin: 0;
}

.about-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
}

.about-left {
    flex: 1;
    max-width: none;
}


.about-title {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 2rem 0;
    padding: 0;
}
.about-dot {
    color: #111;
}
.about-intro {
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    color: #222;
    max-width: none;
}

.about-highlight-quote {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin: 2rem 0;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    transition-delay: 0.4s;
}

.about-highlight-quote.loaded {
    opacity: 1;
    transform: translateY(0);
}
.about-edu {
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    color: #222;
}
.about-edu-icon {
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
}

.about-hats {
    margin: 0;
    padding: 0;
}
.about-hats h3 {
    font-size: 1.1rem;
    font-weight: 250;
    margin: 0;
    padding: 0;
}
.hats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: none;
    max-width: none;
}
.hat-item {
    font-size: 1rem;
    color: #222;
    padding: 0;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.hat-item:hover {
    background: #f0f7f4;
    color: #15705b;
}
.hat-item:not(:last-child) {
    border-bottom: none;
}

.about-photo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}
.about-img {
    width: 500px;
    height: 480px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    background: #f7f7f7;
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: rotate(3deg);
}

body.dark-mode .about-img {
    transition: transform 0.3s ease !important;
}

body.dark-mode .about-img:hover {
    transform: rotate(3deg);
}

/* About image wrapper for polaroid icons */
.about-img-wrapper {
    position: relative;
    display: inline-block;
}

/* Polaroid icons that pop up around profile image */
.about-icon-polaroid {
    position: absolute;
    width: 50px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 10;
}

.about-icon-polaroid .polaroid-frame {
    background: #ffffff;
    padding: 6px 6px 12px 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.about-icon-polaroid .polaroid-photo {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    color: #333;
}

/* Position each icon */
.about-icon-code {
    top: -20px;
    left: -30px;
    transform: scale(0.5) rotate(-12deg);
}

.about-icon-brain {
    top: -30px;
    right: -20px;
    transform: scale(0.5) rotate(8deg);
}

.about-icon-art {
    bottom: 60px;
    left: -40px;
    transform: scale(0.5) rotate(-5deg);
}

/* Show icons on hover */
.about-img-wrapper:hover .about-icon-polaroid {
    opacity: 1;
    transform: scale(1);
}

.about-img-wrapper:hover .about-icon-code {
    transform: scale(1) rotate(-12deg);
}

.about-img-wrapper:hover .about-icon-brain {
    transform: scale(1) rotate(8deg);
}

.about-img-wrapper:hover .about-icon-art {
    transform: scale(1) rotate(-5deg);
}

/* Dark mode for polaroid icons */
body.dark-mode .about-icon-polaroid .polaroid-frame {
    background: #f0f0f0;
}

body.dark-mode .about-icon-polaroid .polaroid-photo {
    background: #e8e8e8;
    color: #222;
}

.about-strengths {
    display: flex;
    justify-content: flex-end;
}
.strengths-card {
    background: #d6eadd;
    border-radius: 18px;
    padding: 0;
    max-width: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    font-size: 1.08rem;
    color: #183c2b;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.strengths-card b {
    font-size: 1.13rem;
    color: #183c2b;
}




/* DJ Turntable Section */
.about-dj-section {
    margin-top: 0rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.dj-section-header {
    text-align: left;
    max-width: 600px;
    margin-top: 2rem;
}

.dj-section-title {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.dj-section-subtitle {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.5;
    font-weight: 100;
}
.dj-layout {
    display: flex;
    gap: 10rem;
    align-items: flex-start;
    margin: 2rem 0 0 0;
    width: 100%;
    justify-content: flex-start;
}

.dj-images-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 500px;
    flex-shrink: 1;
    margin-left: 0;
    box-sizing: border-box;
    min-width: 300px;
}

.dj-image-set {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    flex-wrap: wrap;
}

.dj-image-set.active {
    opacity: 1;
    display: flex;
}

.dj-image-set.active .dj-image-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.dj-image-set.active .dj-image-item:nth-child(1) { animation-delay: 0.2s; }
.dj-image-set.active .dj-image-item:nth-child(2) { animation-delay: 0.4s; }
.dj-image-set.active .dj-image-item:nth-child(3) { animation-delay: 0.6s; }

/* Individual floating animations for each image */
.dj-image-set.active .dj-image-item:nth-child(1).floating { 
    animation: fadeInUp 0.6s ease forwards, floatGently1 5.2s ease-in-out infinite;
    animation-delay: 0.2s, 0s;
}
.dj-image-set.active .dj-image-item:nth-child(2).floating { 
    animation: fadeInUp 0.6s ease forwards, floatGently2 6.8s ease-in-out infinite;
    animation-delay: 0.4s, 0s;
}
.dj-image-set.active .dj-image-item:nth-child(3).floating { 
    animation: fadeInUp 0.6s ease forwards, floatGently3 7.7s ease-in-out infinite;
    animation-delay: 0.6s, 0s;
}

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

@keyframes floatGently1 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-6px) rotate(1.5deg); 
    }
    50% { 
        transform: translateY(-12px) rotate(-1deg); 
    }
    75% { 
        transform: translateY(-3px) rotate(0.8deg); 
    }
}

@keyframes floatGently2 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    20% { 
        transform: translateY(-10px) rotate(-0.8deg); 
    }
    40% { 
        transform: translateY(-2px) rotate(1.2deg); 
    }
    60% { 
        transform: translateY(-15px) rotate(-0.5deg); 
    }
    80% { 
        transform: translateY(-5px) rotate(0.3deg); 
    }
}

@keyframes floatGently3 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    30% { 
        transform: translateY(-8px) rotate(2deg); 
    }
    60% { 
        transform: translateY(-4px) rotate(-1.5deg); 
    }
    90% { 
        transform: translateY(-11px) rotate(0.7deg); 
    }
}

.dj-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.dj-image-item:hover {
    transform: translateX(-10px) scale(1.05);
}

.dj-image-item:hover .dj-image-placeholder {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.dj-image-placeholder {
    width: 220px;
    height: 220px;
    background: #f5f5f5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.7rem;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    flex-shrink: 1;
    position: relative;
    min-width: 120px;
    max-width: 220px;
}

.dj-image-placeholder::before {
    content: "📷";
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.dj-image-placeholder::after {
    content: "";
    position: absolute;
    bottom: 0.5rem;
    font-size: 0.6rem;
    opacity: 0;
}

.dj-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Override flexbox when there's an image */
.dj-image-placeholder.has-image {
    display: block;
    align-items: initial;
    justify-content: initial;
}

.dj-image-placeholder:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.dj-image-caption {
    font-size: 0.9rem;
    color: #000000;
    text-align: center;
    max-width: 150px;
    line-height: 1.3;
    margin: 0;
}

.dj-image-1,
.dj-image-2,
.dj-image-3 {
    transform: translateX(0);
}
.dj-turntable {
    background: linear-gradient(145deg, #7a7a7a 0%, #5a5a5a 100%);
    border-radius: 16px;
    padding: 2rem;
    width: 550px;
    min-height: 280px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
    border: 1px solid rgba(0,0,0,0.3);
    flex-shrink: 0;
    transition: background 0.3s ease;
    max-width: 600px;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 550px;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.4),
        0 4px 10px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.15),
        inset 0 -3px 6px rgba(0,0,0,0.3);
}

.turntable-deck {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.turntable-record {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #2a2a2a 20%, #3a3a3a 40%, #2a2a2a 100%);
    border-radius: 50%;
    box-shadow:
        0 6px 16px rgba(65, 65, 65, 0.6),
        0 3px 8px rgba(0,0,0,0.4),
        inset 0 2px 3px rgba(255,255,255,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.5);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid rgba(0,0,0,0.4);
}

.turntable-record.spinning {
    animation: continuous-spin 1.2s linear infinite;
}

.record-arcs {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    opacity: 30%;
    transition: none;
    z-index: 2;
    /* No animation by default */
}

.turntable-record.spinning .record-arcs {
    animation: record-arcs-spin 1.2s linear infinite;
}

@keyframes record-arcs-spin {
    100% { transform: rotate(360deg); }
}

.turntable-record::after {
    display: none;
}

.turntable-sliders {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.slider {
    width: 32px;
    height: 32px;
    background: #5a5a5a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-radius: 50%;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.2);
}

.slider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(145deg, #8a8a8a 0%, #6a6a6a 100%);
    border-radius: 50%;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(0,0,0,0.3);
}

.slider:hover {
    background: linear-gradient(145deg, #7a7a7a 0%, #5a5a5a 100%);
    box-shadow: 
        0 3px 12px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.25);
}

.slider span {
    display: none;
}

.turntable-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 120px;
}

.center-screen {
    width: 140px;
    height: 85px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.center-screen::before {
    display: none;
}

.screen-text {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
    word-wrap: break-word;
}

.screen-text.visible {
    opacity: 1;
}

.center-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.center-button {
    width: 24px;
    height: 24px;
    background: linear-gradient(180deg, #7a7a7a 0%, #5a5a5a 100%);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.center-button:hover {
    background: linear-gradient(180deg, #8a8a8a 0%, #6a6a6a 100%);
}

.center-button.active {
    background: linear-gradient(180deg, #5a5a5a 0%, #4a4a4a 100%);
}


/* Desktop: 3 images horizontal */
@media (min-width: 1401px) {
    .dj-image-set {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .dj-image-set .dj-image-item {
        flex: 0 0 calc(33.333% - 1.33rem);
    }
}

/* Less than desktop: Triangle layout (2 on top, 1 below) */
@media (max-width: 1400px) {
    .dj-layout {
        gap: 4rem;
    }
    
    .dj-images-container {
        width: 350px;
    }
    
    .dj-image-set {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .dj-image-set .dj-image-item:nth-child(1),
    .dj-image-set .dj-image-item:nth-child(2) {
        flex: 0 0 calc(45% - 0.5rem);
    }
    
    .dj-image-set .dj-image-item:nth-child(3) {
        flex: 0 0 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 1000px) {
    .dj-layout {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }
    
    .dj-turntable {
        width: 100%;
        max-width: 450px;
        min-width: auto;
    }
    
    .dj-images-container {
        width: 100%;
        max-width: 600px;
    }
}

/* Tablet responsive */
/* Intermediate breakpoint for better responsiveness */
@media (max-width: 1300px) and (min-width: 1025px) {
    .about-img {
        width: 400px;
        height: 380px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .about-main {
        padding: 4rem 3rem;
    }
    
    .about-top {
        gap: 2rem;
    }
    
    .about-img {
        width: 350px;
        height: 350px;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-intro {
        font-size: 0.95rem;
    }
}

@media (max-width:900px) {
    .about-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-main {
        padding: 2rem;
    }
    
    /* Restructure about-top for mobile */
    .about-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .about-left {
        order: 1;
        width: 100%;
        text-align: left;
    }
    
    .about-title {
        font-size: 2.2rem;
        text-align: left;
        margin-bottom: 2rem;
    }
    
    .about-photo {
        order: 2;
        width: 100%;
        align-items: flex-end;
        margin-bottom: 2rem;
    }
    
    .about-img {
        width: 250px;
        height: 250px;
        margin-bottom: 1rem;
    }

    /* Hide polaroid icons on mobile */
    .about-icon-polaroid {
        display: none;
    }

    .about-edu {
        font-size: 0.85rem;
        text-align: left;
    }

    .about-edu-right {
        font-size: 0.85rem;
        text-align: left;
        align-self: flex-start;
    }
    
    
    .about-intro {
        font-size: 0.85rem;
        max-width: 100%;
        text-align: left;
        margin-top: 0;
    }
    
    .about-highlight-quote {
        font-size: 1.2rem;
        margin: 1.5rem 0;
    }
    
    /* Mobile dark mode for highlight quote */
    body.dark-mode .about-highlight-quote {
        color: #ffffff;
    }
    
    .dj-layout {
        padding: 0 2rem;
    }
    .strengths-card {
        padding: 1rem 1.2rem;
        font-size: 0.98rem;
    }
    
    .dj-section-title {
        font-size: 1.8rem;
        font-weight: 400;
    }
    
    .dj-section-subtitle {
        font-size: 0.85rem;
    }
    .dj-turntable {
        width: 100%;
        max-width: 450px;
        min-height: 180px;
        padding: 1rem 0.8rem;
        gap: 0.8rem;
        min-width: auto;
    }
    .turntable-record {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }
    .slider {
        width: 28px;
        height: 28px;
    }
    .center-screen {
        width: 100px;
        height: 60px;
    }
    .screen-text {
        font-size: 0.8rem;
    }
    .center-buttons {
        gap: 0.3rem;
    }
    .center-button {
        width: 18px;
        height: 18px;
    }
    .dj-images-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        max-width: 450px;
        width: 100%;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .dj-image-set {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .dj-image-item {
        width: auto;
        align-items: center;
        flex: 0 0 auto;
    }
    .dj-image-placeholder {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    .dj-image-caption {
        font-size: 0.7rem;
        max-width: 80px;
        text-align: center;
    }
}

/* Music Favorites Section */
.music-favorites-section {
    margin-top: 4rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin-left: 2rem;
    margin-right: 2rem;
}

.music-header {
    text-align: center;
    margin-bottom: 2rem;
}

.music-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.music-dot {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.music-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 250;
}

.vinyl-collection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 0 2rem 0;
    padding: 0;
}

.vinyl-collection .vinyl-record {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.vinyl-collection .vinyl-record:hover {
    transform: translateY(-15px) rotateY(15deg) scale(1.1);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.vinyl-collection .vinyl-record::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #2a2a2a 0%, #1a1a1a 60%, #000 100%);
    border-radius: 50%;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 2px 0 rgba(255,255,255,0.1);
}

.vinyl-collection .vinyl-record::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: conic-gradient(from 0deg, transparent, var(--vinyl-color, #4a5568), transparent);
    border-radius: 50%;
    opacity: 0.8;
    animation: spin 3s linear infinite;
    animation-play-state: paused;
}

.vinyl-collection .vinyl-record:hover::after {
    animation-play-state: running;
}

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

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.vinyl-label {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
}

.vinyl-grooves {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 1;
}

.vinyl-info {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.vinyl-collection .vinyl-record:hover .vinyl-info {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.vinyl-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.vinyl-info p {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 250;
}

.music-player {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.player-screen {
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.album-art {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.3rem;
}

.track-artist {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 250;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.control-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Set vinyl colors */
.vinyl-record[data-color="#1a1a2e"] { --vinyl-color: #1a1a2e; }
.vinyl-record[data-color="#2d1b69"] { --vinyl-color: #2d1b69; }
.vinyl-record[data-color="#1e3a8a"] { --vinyl-color: #1e3a8a; }
.vinyl-record[data-color="#7c2d12"] { --vinyl-color: #7c2d12; }
.vinyl-record[data-color="#166534"] { --vinyl-color: #166534; }
.vinyl-record[data-color="#581c87"] { --vinyl-color: #581c87; }

/* Password Protection Modal - Commented out since password is disabled */
/* .password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.5s ease-out;
    pointer-events: auto;
} */

.password-modal.fade-out {
    opacity: 0;
    pointer-events: none;
}

.password-modal[style*="display: none"] {
    pointer-events: none !important;
}


.password-modal-content {
    background: #903232;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.4s ease-out;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.password-modal.fade-out .password-modal-content {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.password-header {
    margin-bottom: 2rem;
}

.lock-icon {
    color: #F6E4E4;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.password-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.password-header p {
    font-size: 1rem;
    color: #E8B3B3;
    line-height: 1.5;
    margin: 0;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

#passwordInput {
    padding: 1rem;
    border: 2px solid #5A1C1C;
    border-radius: 8px;
    font-size: 1rem;
    background: #5A1C1C;
    color: #ffffff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    outline: none;
}

#passwordInput:focus {
    background: #2A0909;
    border-color: #2A0909;
}

#passwordInput::placeholder {
    color: #C94949;
}

.password-submit-btn {
    background: white;
    color: #903232;
    border: 2px solid white;
    padding: 0.6rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.password-submit-btn:hover {
    background: #F6E4E4;
    border-color: #F6E4E4;
    color: #903232;
}

.password-error {
    display: none !important;
    align-items: center;
    gap: 0.5rem;
    color: #F6E4E4;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #5A1C1C;
    border-radius: 8px;
    border: 1px solid #2A0909;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
    max-height: 0;
    overflow: hidden;
}

.password-error.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 100px;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

/* Dark mode for password modal */
body.dark-mode .password-modal-content {
    background: #5A1C1C;
    color: white;
}

body.dark-mode .lock-icon {
    color: #F6E4E4;
}

body.dark-mode .password-header h2 {
    color: #ffffff;
}

body.dark-mode .password-header p {
    color: #E8B3B3;
}

body.dark-mode #passwordInput {
    background: #2A0909;
    border-color: #2A0909;
    color: white;
}

body.dark-mode #passwordInput:focus {
    background: #1a0505;
    border-color: #1a0505;
}

body.dark-mode #passwordInput::placeholder {
    color: #C94949;
}

body.dark-mode .password-submit-btn {
    background: white;
    color: #903232;
    border-color: white;
}

body.dark-mode .password-submit-btn:hover {
    background: #F6E4E4;
    border-color: #F6E4E4;
    color: #903232;
}

body.dark-mode .password-error {
    background: #2A0909;
    border-color: #1a0505;
    color: #F6E4E4;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .password-modal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .password-header h2 {
        font-size: 1.5rem;
    }
    
    .password-header p {
        font-size: 0.9rem;
    }
}

/* Extra small phone styles */
@media (max-width: 480px) {
    header {
        padding: 1.5rem;
    }
    
    .dj-layout {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .about-main {
        padding: 1.5rem;
    }
    
    .dj-turntable {
        min-height: 160px;
        padding: 0.8rem 0.6rem;
        gap: 0.6rem;
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }
    
    .dj-images-container {
        max-width: 320px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .dj-image-set {
        gap: 0.8rem;
    }
    
    .dj-image-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .dj-image-caption {
        font-size: 0.65rem;
        max-width: 70px;
    }
    .turntable-record {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }
    .slider {
        width: 24px;
        height: 24px;
    }
    .center-screen {
        width: 90px;
        height: 55px;
    }
    .screen-text {
        font-size: 0.7rem;
    }
    .center-buttons {
        gap: 0.2rem;
    }
    .center-button {
        width: 16px;
        height: 16px;
    }
    .dj-images-container {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        max-width: 350px;
    }
    .dj-image-placeholder {
        width: 100px;
        height: 100px;
    }
    .dj-image-caption {
        font-size: 0.75rem;
        max-width: 120px;
    }
}

/* Loading Screen Styles */
.loading-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
.loading-overlay[data-theme="dark"] {
  background: rgba(1, 1, 1, 0.97);
}
.loading-overlay[data-theme="light"] {
  background: rgba(255,255,255,0.95);
}
.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-bounce {
  0%, 80%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-8px) scale(1);
    opacity: 1;
  }
}

/* === HOMETEST.HTML SPECIFIC STYLES === */
/* Test Records Container */
.test-records-container {
    display: flex;
    align-items: center;
    gap: -50px;
    position: relative;
    height: 400px;
}

/* Test Record Styling - Enhanced version below */

.test-record:nth-child(1) {
    z-index: 1;
    margin-left: 0;
}

.test-record:nth-child(2) {
    z-index: 1;
    margin-left: -200px;
}

.test-record:nth-child(3) {
    z-index: 1;
    margin-left: -200px;
}

.test-record:nth-child(4) {
    z-index: 1;
    margin-left: -200px;
}

/* Test Record Image Styling */
.test-record-image {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    transform-origin: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Enhanced Test Record Hover Effects */
.test-record {
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    opacity: 1; /* Start visible */
    text-decoration: none;
    display: block;
    z-index: 1;
}

.test-record:hover {
    z-index: 10;
    margin-left: 0 !important;
}

.test-record:hover .test-record-image {
    transform: rotate(360deg) scale(1.1);
    animation: continuous-spin 2s linear infinite;
}

/* Completely hide other test records when hovering */
.test-records-container:hover .test-record:not(:hover) {
    opacity: 0 !important;
    transform: scale(0.95) !important;
}

/* Test Project Information Container */
.test-project-info-container {
    position: absolute;
    top: 50%;
    left: 500px; /* Position to the right of the leftmost record */
    transform: translateY(-50%);
    width: 400px;
    height: 300px;
    pointer-events: none;
    z-index: 5;
}

.test-project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.test-project-info.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.test-project-description {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.test-project-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
}

.test-project-description p {
    font-size: 0.9rem;
    color: #000;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.test-project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.test-tag {
    background: #15705b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 250;
}

.test-project-preview {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Dark mode for test project info */
body.dark-mode .test-project-description {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
}

body.dark-mode .test-project-description h3 {
    color: #fff;
}

body.dark-mode .test-project-description p {
    color: #ccc;
}

/* Test Responsive Design */
@media (max-width: 1200px) {
    .test-records-container {
        gap: -30px;
    }
    
    .test-record-image {
        max-width: 450px;
        max-height: 450px;
    }
    
    .test-record:nth-child(2),
    .test-record:nth-child(3),
    .test-record:nth-child(4) {
        margin-left: -180px;
    }
}

@media (max-width: 1200px) {
    .test-project-info-container {
        width: 350px;
        height: 250px;
        left: 450px; /* Adjust for smaller record size */
    }
    
    .test-project-description {
        padding: 1rem;
    }
    
    .test-project-description h3 {
        font-size: 1.25rem;
    }
    
    .test-project-description p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .test-records-container {
        flex-direction: column;
        gap: 2rem;
        height: auto;
    }
    
    .test-record {
        margin-left: 0 !important;
    }
    
    .test-record-image {
        max-width: 320px;
        max-height: 320px;
    }
    
    .test-project-info-container {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 2rem;
    }
    
    .test-project-info {
        position: static;
        transform: none;
        opacity: 1;
        flex-direction: column;
        height: auto;
    }
    
    .test-project-description {
        margin-bottom: 1rem;
    }
    
    .test-record:hover {
        margin-left: 0 !important;
    }
    
    .test-records-container:hover .test-record:not(:hover) {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* End Loading Screen Styles */ 

/* Dark Mode Styles for About Page */
body.dark-mode .about-title {
    color: #ffffff;
}

body.dark-mode .about-dot {
    color: #ffffff;
}

body.dark-mode .about-intro {
    color: #ffffff;
}

body.dark-mode .about-highlight-quote {
    color: #ffffff;
}

body.dark-mode .about-edu {
    color: #ffffff;
}

body.dark-mode .about-hats h3 {
    color: #ffffff;
}

body.dark-mode .hat-item {
    color: #ffffff;
}

body.dark-mode .hat-item:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

body.dark-mode .hat-item:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

body.dark-mode .hats-list {
    border-left: 2px solid rgba(255,255,255,0.2);
}

body.dark-mode .dj-section-title {
    color: #ffffff;
}

body.dark-mode .dj-section-subtitle {
    color: #cccccc;
}

/* Recent Vinyl Picks Section */
.vinyl-picks-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    max-width: 300px;
    margin-left: auto;
}

.vinyl-picks-header {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    text-align: right;
    max-width: 400px;
    margin-top: 1rem;
}

.vinyl-picks-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.vinyl-picks-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 0.5rem 0 0 0;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap; /* Keep all albums on the same line */
}

.vinyl-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 120px;
}

.vinyl-pick:hover {
    transform: translateY(-3px);
}

body.dark-mode .vinyl-pick {
    transition: transform 0.3s ease;
}

body.dark-mode .vinyl-pick:hover {
    transform: translateY(-3px);
}

.vinyl-album-cover {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.vinyl-album-cover:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode .vinyl-album-cover {
    transition: box-shadow 0.3s ease;
}

body.dark-mode .vinyl-album-cover:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Removed zoom effect on hover - no transform scale */

.vinyl-pick .vinyl-info {
    text-align: center;
    max-width: 100px;
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.album-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.album-artist {
    font-size: 0.6rem !important;
    color: #000000;
    font-weight: 400;
    line-height: 1.4;
}



/* Dark mode for vinyl picks */
body.dark-mode .vinyl-picks-title {
    color: #ffffff;
}

body.dark-mode .album-title {
    color: #ffffff;
}

body.dark-mode .album-artist {
    color: #cccccc;
}

/* Responsive design for vinyl picks */
@media (max-width: 768px) {
    .vinyl-picks-section {
        align-items: flex-end;
        margin-left: 0;
        margin-right: 0;
        padding-right: 0;
        max-width: 100%;
        width: 100%;
    }

    .vinyl-picks-header {
        text-align: right;
        padding-right: 0;
    }

    .vinyl-picks-container {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        justify-content: flex-end;
        padding-right: 0;
    }
    
    .vinyl-pick {
        max-width: 100px;
    }
    
    .vinyl-album-cover {
        width: 70px;
        height: 70px;
    }
    
    .vinyl-pick .vinyl-info {
        max-width: 90px;
    }
    
    .vinyl-picks-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .vinyl-picks-container {
        gap: 0.8rem;
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .vinyl-pick {
        max-width: 80px;
    }
    
    .vinyl-album-cover {
        width: 60px;
        height: 60px;
    }
    
    .vinyl-pick .vinyl-info {
        max-width: 80px;
    }
    
    .vinyl-picks-title {
        font-size: 0.85rem;
    }
}

/* Vinyl Picks Section - Simple Text Line */
/* .vinyl-picks-section {
    margin-top: 0rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 60px;
}

.vinyl-picks-header {
    text-align: left;
    max-width: 600px;
    margin-top: 2rem;
}

.vinyl-picks-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.vinyl-artists-line {
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    text-transform: lowercase;
    line-height: 1.5;
    width: 100%;
}

/* Responsive design for vinyl picks */
@media (max-width: 1024px) and (min-width: 769px) {
    .vinyl-picks-section {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .vinyl-picks-section {
        padding: 0 2rem;
    }
    
    .vinyl-picks-title {
        font-size: 2rem;
    }
    
    .vinyl-artists-line {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .vinyl-picks-section {
        padding: 0 1.5rem;
    }
    
    .vinyl-artists-line {
        font-size: 0.8rem;
    }
}

/* Dark mode for vinyl picks */
body.dark-mode .vinyl-picks-title {
    color: #ffffff;
}

body.dark-mode .vinyl-artists-line {
    color: #cccccc;
} */

body.dark-mode .dj-image-placeholder {
    background: #000000;
    border-color: #555;
    color: #999;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

body.dark-mode .dj-image-placeholder:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transform: scale(1.05);
}

body.dark-mode .dj-image-set {
    transition: opacity 0.3s ease !important;
}

body.dark-mode .dj-image-set.active {
    opacity: 1;
    display: flex;
}

body.dark-mode .dj-image-set.active .dj-image-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards !important;
}

body.dark-mode .dj-image-set.active .dj-image-item:nth-child(1) { animation-delay: 0.2s !important; }
body.dark-mode .dj-image-set.active .dj-image-item:nth-child(2) { animation-delay: 0.4s !important; }
body.dark-mode .dj-image-set.active .dj-image-item:nth-child(3) { animation-delay: 0.6s !important; }

body.dark-mode .dj-image-set.active .dj-image-item:nth-child(1).floating {
    animation: fadeInUp 0.6s ease forwards, floatGently1 5.2s ease-in-out infinite !important;
    animation-delay: 0.2s, 0s !important;
}
body.dark-mode .dj-image-set.active .dj-image-item:nth-child(2).floating {
    animation: fadeInUp 0.6s ease forwards, floatGently2 6.8s ease-in-out infinite !important;
    animation-delay: 0.4s, 0s !important;
}
body.dark-mode .dj-image-set.active .dj-image-item:nth-child(3).floating {
    animation: fadeInUp 0.6s ease forwards, floatGently3 7.7s ease-in-out infinite !important;
    animation-delay: 0.6s, 0s !important;
}

body.dark-mode .dj-image-item {
    transition: all 0.3s ease !important;
}

body.dark-mode .dj-image-item:hover {
    transform: translateX(-10px) scale(1.05);
}

body.dark-mode .dj-image-item:hover .dj-image-placeholder {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

body.dark-mode .dj-image-caption {
    color: #ffffff;
    text-align: center;
} 

.about-edu-right {
    text-align: right;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #222;
    width: 100%;
}

body.dark-mode .about-edu-right {
    color: #fff;
} 

@media (max-width: 768px) {
    .about-edu-right {
        font-size: 0.85rem;
    }
}

.role-svg-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.18s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
    display: block;
}
.role-svg-cursor.visible {
    opacity: 1;
} 

.role-cursor {
    transition: color 0.3s ease;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23903232'/%3E%3C/svg%3E") 6 6, pointer;
}
.role-cursor:hover {
    color: #15705b;
} 

.gradcap-icon svg {
    color: #000000;
    transition: color 0.3s;
    vertical-align: middle;
}
body.dark-mode .gradcap-icon svg {
    color: #fff;
} 

/* Music Rotation Section */
.music-rotation {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.music-rotation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
    text-align: left;
    display: block !important;
    visibility: visible !important;
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
    position: relative;
    min-height: 80px;
}

.song-item:nth-child(1) { animation-delay: 0.1s; }
.song-item:nth-child(2) { animation-delay: 0.3s; }
.song-item:nth-child(3) { animation-delay: 0.5s; }

.song-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cassette-icon {
    width: 60px;
    height: 40px;
    background: #15705b;
    border-radius: 8px;
    border: 3px solid #0f5a47;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cassette-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    height: 8px;
    background: #0f5a47;
    border-radius: 4px;
}

.cassette-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 20px;
    background: #0f5a47;
    border-radius: 4px;
}

.cassette-reel {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #0f5a47;
    border-radius: 50%;
    border: 2px solid #15705b;
}

.cassette-reel.left {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.cassette-reel.right {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.cassette-reel::before {
    content: '✱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #15705b;
    font-size: 8px;
}

/* Album Cover Placeholders */
.album-cover {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 8px;
    border: none;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.album-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.song-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #15705b;
    min-width: 30px;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    flex: 1;
}

.song-artist {
    font-size: 0.9rem;
    color: #666;
    font-weight: 250;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dark mode for music rotation */
body.dark-mode .music-rotation {
    border-top-color: #333;
}

body.dark-mode .music-rotation-title {
    color: #ffffff;
}

body.dark-mode .song-item {
    background: #000000;
    border-color: transparent;
}

body.dark-mode .song-item:hover {
    background: #000000;
    border-color: transparent;
}

body.dark-mode .album-cover {
    background: #374151;
    border-color: #4b5563;
}

body.dark-mode .album-placeholder {
    color: #6b7280;
}

body.dark-mode .song-number {
    color: #9ca3af;
}

/* Responsive design for music rotation */
@media (max-width: 768px) {
    .music-rotation-title {
        font-size: 1.2rem;
    }
    
    .song-number {
        font-size: 0.8rem;
        min-width: 25px;
    }
    
    .song-title {
        font-size: 0.9rem;
    }
    
    .song-artist {
        font-size: 0.8rem;
    }
    
    .album-cover {
        width: 50px;
        height: 50px;
    }
    
    .song-item {
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }
}

body.dark-mode .song-title {
    color: #ffffff;
}

body.dark-mode .song-artist {
    color: #cccccc;
}

/* Dark mode styles for music player */
body.dark-mode .player-screen {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
}

body.dark-mode .album-art {
    background: linear-gradient(45deg, #15705b, #22c55e);
}

body.dark-mode .progress-fill {
    background: linear-gradient(90deg, #15705b, #22c55e);
}

/* Override blue vinyl record color in dark mode */
body.dark-mode .vinyl-record[data-color="#1e3a8a"] { 
    --vinyl-color: #2a2a2a; 
}

/* === RESUME PAGE STYLES === */
.resume-main {
    padding: 8rem 60px;
    margin: 0;
    min-height: calc(100vh - 200px);
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.resume-title {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    padding: 0;
    color: #111;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #000000;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #000000;
}

.download-btn:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-btn svg {
    transition: transform 0.3s ease;
}

.download-btn:hover svg {
    transform: translateX(2px);
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Scroll Animation Styles */
.timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left.animate {
    transform: translateX(0);
}

.timeline-item.right.animate {
    transform: translateX(0);
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #cccccc 0%, #000000 50%, #cccccc 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
}

.timeline-item.left {
    justify-content: flex-start;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: #000000;
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-node {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.3);
}

.timeline-content {
    max-width: 45%;
    padding: 0 2rem;
}

.timeline-item.left .timeline-content {
    text-align: right;
    padding-right: 3rem;
}

.timeline-item.right .timeline-content {
    text-align: left;
    padding-left: 3rem;
}

.timeline-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.timeline-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date {
    font-size: 1rem;
    color: #666;
    font-weight: 250;
    background: rgba(144, 50, 50, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.timeline-card {
    background: #fafafa;
    border-radius: 5px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.timeline-card h4 {
    font-size: 1.4rem;
    font-family: 'Space Grotesk', 'Playfair Display', serif;

    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.timeline-card .degree,
.timeline-card .company {
    font-size: 1rem;
    color: #666666;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-card .location,
.timeline-card .duration {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.timeline-card .summary {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
    margin-top: 1rem;
    font-weight: 250;
}

/* Removed job-item styles as they're no longer needed */

.timeline-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.timeline-card li {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 250;
}

.timeline-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #903232;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Skills Section */
.skills-section {
    margin-top: 6rem;
    padding: 4rem 0;
}

.skills-title {
    font-size: 3rem;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: #fafafa;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

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

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #903232;
    margin-bottom: 1.5rem;
}

.skill-category p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Dark Mode Styles for Resume Page */
body.dark-mode .resume-title {
    color: #ffffff;
}

body.dark-mode .timeline-header h3 {
    color: #ffffff;
}

body.dark-mode .timeline-card {
    background: #141414;
}

body.dark-mode .timeline-card:hover {
    transform: translateY(-4px);
}

body.dark-mode .timeline-card h4 {
    color: #ffffff;
}

body.dark-mode .timeline-card .degree,
body.dark-mode .timeline-card .company {
    color: #999999;
}

body.dark-mode .timeline-card .location,
body.dark-mode .timeline-card .duration {
    color: #cccccc;
}

/* Darker styling for education entries */
.timeline-card.education-card {
    background: #e8e8e8;
}

.timeline-card.education-card h4 {
    color: #000;
}

.timeline-card.education-card .degree {
    color: #000;
    font-weight: 600;
}

/* Dark mode styling for education entries - lighter background */
body.dark-mode .timeline-card.education-card {
    background: #2a2a2a;
}

body.dark-mode .timeline-card.education-card:hover {
    transform: translateY(-4px);
}

body.dark-mode .timeline-card.education-card h4 {
    color: #ffffff;
}

body.dark-mode .timeline-card.education-card .degree {
    color: #cccccc;
    font-weight: 600;
}

body.dark-mode .timeline-card .summary {
    color: #cccccc;
}

body.dark-mode .timeline-card li {
    color: #cccccc;
}

/* Dark mode for timeline line and nodes */
body.dark-mode .timeline-line {
    background: linear-gradient(180deg, #4a4a4a 0%, #ffffff 50%, #4a4a4a 100%);
}

body.dark-mode .timeline-node {
    background: #ffffff;
    border: 4px solid #000000;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

body.dark-mode .timeline-item:hover .timeline-node {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.4);
}

body.dark-mode .skill-category h3 {
    color: #C94949;
}

body.dark-mode .skill-category p {
    color: #cccccc;
}

body.dark-mode .skill-category {
    background: #1a1a1a;
}

/* Removed border-top styles as they're no longer needed */

body.dark-mode .skills-title {
    color: #ffffff;
}

/* Removed job-item dark mode styles as they're no longer needed */

body.dark-mode .download-btn {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

body.dark-mode .download-btn:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Mobile nav download button styles - styled as regular nav link */
.mobile-nav .download-btn {
    background: transparent !important;
    color: #111 !important;
    border: none !important;
    padding: 0.2rem 0 !important;
    border-radius: 0 !important;
    font-weight: 300 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 0 !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    font-size: 1rem !important;
}

.mobile-nav.active .download-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.5s !important;
}

.mobile-nav .download-btn:hover {
    background: transparent !important;
    border: none !important;
    transform: translateY(0) !important;
    opacity: 0.7 !important;
}

body.dark-mode .mobile-nav .download-btn {
    background: transparent !important;
    border: none !important;
    color: #111 !important;
}

body.dark-mode .mobile-nav a.active.download-btn {
    color: #111 !important;
    font-weight: 600;
}

body.dark-mode .mobile-nav .download-btn:hover {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Responsive Design for Resume Page */
@media (max-width: 1200px) {
    .timeline-content {
        max-width: 42%;
    }
    
    .timeline-content.left {
        padding-right: 2rem;
    }
    
    .timeline-content.right {
        padding-left: 2rem;
    }
}

@media (max-width: 1000px) {
    .timeline-line {
        left: 2rem;
        transform: none;
    }
    
    .timeline-node {
        left: 2rem;
        transform: none;
    }
    
    .timeline-item:hover .timeline-node {
        transform: scale(1.2);
    }
    
    /* Mobile dark mode for timeline elements */
    body.dark-mode .timeline-line {
        background: linear-gradient(180deg, #4a4a4a 0%, #ffffff 50%, #4a4a4a 100%);
    }

    body.dark-mode .timeline-node {
        background: #ffffff;
        border: 4px solid #000000;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    body.dark-mode .timeline-item:hover .timeline-node {
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.4);
    }
    
    .timeline-content {
        max-width: none;
        margin-left: 4rem;
        padding: 0 0 0 2rem;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        padding: 0 0 0 2rem;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
        margin-bottom: 1.5rem;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .resume-main {
        padding: 2rem;
    }
    
    .resume-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .resume-title {
        font-size: 2.5rem;
    }
    
    .download-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .timeline-line {
        left: calc(1.5rem + 5px);
        z-index: 1;
    }
    
    .timeline-node {
        left: 1.5rem;
        width: 12px;
        height: 12px;
        border-width: 3px;
        z-index: 2;
    }
    
    /* Small mobile dark mode for timeline elements */
    body.dark-mode .timeline-node {
        border: 3px solid #000000;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    .timeline-item:hover .timeline-node {
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.3);
    }

    body.dark-mode .timeline-item:hover .timeline-node {
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.4);
    }
    
    .timeline-content {
        margin-left: 3rem;
        padding: 0 0 0 1rem;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        text-align: left;
    }
    
    .timeline-card {
        padding: 1.5rem;
    }
    
    .timeline-card h4 {
        font-size: 1.2rem;
    }
    
    .timeline-card .degree,
    .timeline-card .company {
        font-size: 0.85rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-section {
        margin-top: 4rem;
        padding: 2rem 0;
    }
    
    .skills-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .timeline-card .summary {
    font-size: 0.85rem;
    }
    .resume-main {
        padding: 1.5rem;
    }
    
    .resume-title {
        font-size: 2rem;
    }
    
    .timeline-line {
        left: calc(1rem + 4px);
        z-index: 1;
    }
    
    .timeline-node {
        left: 1rem;
        width: 10px;
        height: 10px;
        border-width: 2px;
        z-index: 2;
    }
    
    /* Extra small mobile dark mode for timeline elements */
    body.dark-mode .timeline-node {
        border: 2px solid #000000;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    .timeline-item:hover .timeline-node {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3);
    }

    body.dark-mode .timeline-item:hover .timeline-node {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
    }
    
    .timeline-content {
        margin-left: 2.5rem;
        padding: 0 0 0 0.5rem;
    }
    
    .timeline-card {
        padding: 1rem;
    }
    
    .timeline-card h4 {
        font-size: 1.1rem;
    }
    
    .timeline-card li {
        font-size: 0.9rem;
    }
    
    .skills-section {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
    
    .skills-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .skills-grid {
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
}

/* === CLASS CASE STUDY PAGE STYLES === */
.class-main {
    padding: 8rem 180px 2rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.class-header {
    margin-bottom: 6rem;
    padding: 4rem 0rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 0;
    right: 0;
    transform: none;
}

.class-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 3rem;
}

.class-meta {
    flex: 1;
}

.organization-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.class-organization {
    font-size: 1.1rem;
    color: #2e2e2e;
    font-weight: 200;
    display: inline-block;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 250;
    color: #4A9FCA;
    background-color: rgba(135, 206, 235, 0.3);
    border-radius: 5px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* CLASS shipped chip on home page */
.status-chip.class-shipped {
    color: #4A9FCA;
    background-color: rgba(135, 206, 235, 0.3);
    border-radius: 5px;
}

.status-chip.coachpro-shipped {
    color: #15705b;
    background-color: #0f5a47;
    border-radius: 5px;
}

body.dark-mode .status-chip.class-shipped {
    color: #87CEEB;
    background-color: rgba(135, 206, 235, 0.25);
}

/* Xometry shipped chip on home page */
.status-chip.xometry-shipped {
    color: #7493BA;
    background-color: rgba(116, 147, 186, 0.15);
    border-radius: 5px;
}

body.dark-mode .status-chip.xometry-shipped {
    color: #7493BA;
    background-color: rgba(116, 147, 186, 0.2);
}

.class-title {
    font-size: 4rem;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    padding-bottom: 2rem;
    color: #111;
}

.class-details {
    display: flex;
    gap: 4rem;
    flex: 1;
}

.class-detail-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.class-detail-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.class-detail-item p {
    font-size: 0.9rem;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

.class-hero-image {
    width: 100%;
    margin-top: 2rem;
}

.class-hero-image .expandable-image {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23903232'/%3E%3C/svg%3E") 6 6, pointer !important;
    transition: none !important;
}

.class-hero-image .expandable-image:hover {
    transform: none !important;
    box-shadow: none !important;
}

.class-dashboard-image {
    width: 100vw;
    max-width: none;
    height: auto;
    display: block;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    box-shadow: none;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.class-dashboard-image:hover {
    transform: scale(1.01);
}

/* Case Study Sections */
.case-study-section {
    margin-bottom: 9.5rem;
}

/* Reduced spacing for Overview and Solution sections */
#overview {
    margin-bottom: 5rem;
}

#solution {
    margin-bottom: 5rem;
}

/* Overview Flexbox Layout */
.overview-flex {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.overview-text {
    flex: 1;
}

.overview-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.class-logo {
    max-width: 400px;
    height: auto;
    transition: transform 0.3s ease;
}

.class-logo:hover {
    transform: scale(1.05);
}

/* Mobile responsiveness for overview flexbox */
@media (max-width: 768px) {
    .overview-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }

    .class-logo {
        max-width: 300px;
    }
}

/* CLASS Map Styling */
.class-map-container {
    margin: 2rem 0;
    text-align: center;
}

.class-map-image {
    max-width: 400px;
    height: auto;
    border-radius: 5px;
    box-shadow: none;
    transition: none;
}

.class-map-image:hover {
    /* Hover effects removed - keeping image flat */
}

.image-caption,
p.image-caption,
.section-text p.image-caption {
    font-size: 0.75rem !important;
    color: #666 !important;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.5 !important;
}

body.dark-mode .image-caption,
body.dark-mode p.image-caption,
body.dark-mode .section-text p.image-caption {
    color: #999 !important;
}

.widget-note {
    display: inline-block;
    position: relative;
    padding-left: 1rem;
}

.widget-note::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #4A9FCA;
    border-radius: 50%;
}

body.dark-mode .widget-note::before {
    background-color: #87CEEB;
}

/* Theme-based image visibility for structured day map */
.class-map-light {
    display: block !important;
}

.class-map-dark {
    display: none !important;
}

body.dark-mode .class-map-light,
[data-theme="dark"] .class-map-light {
    display: none !important;
}

body.dark-mode .class-map-dark,
[data-theme="dark"] .class-map-dark {
    display: block !important;
}

/* Blue highlight for key phrases */
.blue-highlight {
    color: #87CEEB;
    font-weight: 600;
}

/* Insights Image Container */
.insights-image-container {
    margin: 3rem 0;
    padding-top: 4rem;
    text-align: center;
}

.insights-image {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for insights */
.insights-light {
    display: block !important;
}

.insights-dark {
    display: none !important;
}

body.dark-mode .insights-light,
[data-theme="dark"] .insights-light {
    display: none !important;
}

body.dark-mode .insights-dark,
[data-theme="dark"] .insights-dark {
    display: block !important;
}

/* Problem Section Blue Background */
#problem {
    background: #A0D7DC;
    padding: 3rem 0;
    margin: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Image Container Styling */
.image-container {
    margin: 2rem 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: translateY(-2px);
}

/* H4 Styling for Case Study Sections */
.case-study-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

body.dark-mode .case-study-section h4 {
    color: #ffffff;
}

/* Smaller Image Container */
.image-container.small img {
    max-width: 60%;
    height: auto;
}

/* Responsive Image Container */
@media (max-width: 768px) {
    .image-container {
        margin: 1.5rem 0;
    }
    
    .image-container.small img {
        max-width: 80%;
    }
    
    .case-study-section h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .image-container {
        margin: 1rem 0;
    }
    
    .image-container.small img {
        max-width: 90%;
    }
    
    .case-study-section h4 {
        font-size: 1.1rem;
        margin: 1.2rem 0 0.6rem 0;
    }
}

/* Xometry Problem Section - Black background with white text in light mode */
#problem.xometry-problem {
    background: #000000 !important;
    padding: 3rem 0;
    margin: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

#problem .section-title,
#problem .section-impact,
#problem .problem-factor h4,
#problem .problem-factor p {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
}

#problem.xometry-problem .section-title,
#problem.xometry-problem .section-subtitle,
#problem.xometry-problem .section-text p {
    color: #ffffff !important;
}

#problem .problem-factors {
    margin-top: 2rem;
}

#problem .section-content {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto;
}

#problem .section-header {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.xometry-problem .section-content {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto;
}

.xometry-problem .section-header {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.section-header {
    margin-bottom: .8rem;
}

.section-title {
    font-size: .8rem;
    font-weight: 200;
    color: #111;
    margin: 0 0 0 0;
    display: inline-block;
    font-family: 'Poppins', sans-serif !important;
}

.class-section-title {
    color: #64B7E5 !important;
}

body.dark-mode .class-section-title {
    color: #64B7E5 !important;
}

.section-content {
    max-width: 100%;
}

.section-subtitle {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.section-impact {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 2rem;
    line-height: 1.3;
    position: relative;
}

/* Problem Image Container */
.problem-image-container {
    margin: 3rem 0;
    text-align: left;
}

.problem-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0;
}

.problem-statement-text {
    display: none;
}

/* Theme-based image visibility for problem section (flipped) */
.problem-light {
    display: none !important;
}

.problem-dark {
    display: block !important;
}

body.dark-mode .problem-light,
[data-theme="dark"] .problem-light {
    display: block !important;
}

body.dark-mode .problem-dark,
[data-theme="dark"] .problem-dark {
    display: none !important;
}

.section-text {
    margin-bottom: 3rem;
}

/* Left-right container flexbox layout */
.left-right-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Fix list indentation within paragraphs */
.section-text ul,
.section-text ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-text li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 2;
}

/* Make llmstructure image larger */
.class-map-image[src*="llmstructure.png"] {
    max-width: 1200px;
}

/* Make pipeline image larger */
.class-map-image[src*="pipeline.png"] {
    max-width: 120%;
    width: 120%;
}

/* Make calculations image larger */
.class-map-image[src*="calculations.png"] {
    max-width: 1200px;
}

.left-right-container .section-text {
    flex: 1;
    margin-bottom: 0;
}

.left-right-container .class-map-container {
    flex: 0 0 auto;
    margin: 0;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .left-right-container {
        flex-direction: column;
        gap: 1rem;
    }

    .left-right-container .section-text {
        order: 2;
    }

    .left-right-container .class-map-container {
        align-self: center;
        order: 1;
        width: 100%;
    }

    .class-map-image[src*="pipeline.png"] {
        max-width: 100% !important;
        width: 100% !important;
    }
}

.section-text p,
p.section-text {
    font-size: 0.9rem;
    line-height: 2;
    color: #000;
    margin-bottom: 1.5rem;
}

/* Research Methods */
.research-methods {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.research-methods-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Theme-based image visibility for research methods */
.research-methods-light {
    display: block !important;
}

.research-methods-dark {
    display: none !important;
}

body.dark-mode .research-methods-light,
[data-theme="dark"] .research-methods-light {
    display: none !important;
}

body.dark-mode .research-methods-dark,
[data-theme="dark"] .research-methods-dark {
    display: block !important;
}

.research-method {
    text-align: center;
    transition: all 0.3s ease;
}

.research-method:hover {
    transform: translateY(-2px);
}

.method-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #87CEEB;
    transition: all 0.3s ease;
}

.research-method:hover .method-icon {
    color: #5DADE2;
    transform: scale(1.1);
}

.research-method h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* Insights */
.insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.insight {
    padding: 2.5rem;
    background: #A0D7DC;
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.insight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.insight h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight p {
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    font-weight: 250;
}

/* Problem Statement */
.problem-statement {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(21, 112, 91, 0.2);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin: 4rem 0;
    text-align: center;
}

.problem-statement h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

/* Journey Map Styles */
.journey-map-container {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.journey-map-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.journey-map-image:hover {
    transform: scale(1.02);
}

/* Responsive Journey Map */
@media (max-width: 768px) {
    .journey-map-container {
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    .journey-map-container {
        margin: 1.5rem 0;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.image-modal-content:active,
.image-modal-content:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.image-modal-close:hover {
    color: #999999;
}

.image-modal-close:active,
.image-modal-close:focus {
    color: #999999;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 25px;
    }
}

/* Problem Factors */
.problem-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.problem-factor {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(21, 112, 91, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.problem-factor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.problem-factor h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #15705b;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.problem-factor p {
    font-size: 0.9rem;
    color: #000;
    line-height: 1.6;
    margin: 0;
    font-weight: 250;
}

/* Dark Mode Styles for CLASS Page */
body.dark-mode .class-title {
    color: #ffffff;
}


body.dark-mode .class-organization {
    color: #cccccc;
}

body.dark-mode .status-chip {
    color: #87CEEB;
    background-color: rgba(135, 206, 235, 0.25);
}

body.dark-mode .class-detail-item h3 {
    color: #ffffff;
}

body.dark-mode .class-detail-item p {
    color: #cccccc;
}

body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .section-subtitle {
    color: #ffffff;
}

/* Special styling for problem section subtitle */
#problem .section-subtitle {
    font-size: 2.5rem;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 100%;
}

#problem.xometry-problem .section-subtitle {
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 100%;
}

/* Dark mode for problem section */
body.dark-mode #problem .section-subtitle {
    color: #ffffff;
}

body.dark-mode #problem.xometry-problem {
    background: #ffffff !important;
}

body.dark-mode #problem.xometry-problem .section-title,
body.dark-mode #problem.xometry-problem .section-subtitle,
body.dark-mode #problem.xometry-problem .section-text p {
    color: #000000 !important;
}

body.dark-mode .section-text p {
    color: #ffffff;
}

body.dark-mode .method-icon {
    color: #87CEEB;
}

body.dark-mode .research-method h4 {
    color: #ffffff;
}

body.dark-mode .insight {
    background: #A0D7DC;
    border: none;
}

body.dark-mode .insight h4 {
    color: #000000;
}

body.dark-mode .insight p {
    color: #000000;
}

body.dark-mode .problem-statement {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(21, 112, 91, 0.3);
}

body.dark-mode .problem-statement h3 {
    color: #ffffff;
}

body.dark-mode .problem-factor {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(21, 112, 91, 0.2);
}

body.dark-mode .problem-factor h4 {
    color: #15705b;
}

body.dark-mode .problem-factor p {
    color: #cccccc;
}

/* Problem Flow Arrows */
.problem-factors {
    position: relative;
}

.problem-factors::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: linear-gradient(to top, #15705b, transparent);
    opacity: 0.6;
    animation: arrowFlow 2s ease-in-out infinite;
}

.problem-factors::after {
    content: '↑';
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #15705b;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.8;
    animation: arrowBounce 2s ease-in-out infinite;
}

/* Individual problem factor arrows - only for left and right boxes */
.problem-factor {
    position: relative;
}

.problem-factor:first-child::before,
.problem-factor:last-child::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1.5rem;
    background: linear-gradient(to top, #15705b, transparent);
    opacity: 0.4;
    animation: arrowFlow 2s ease-in-out infinite;
    animation-delay: calc(var(--factor-index) * 0.2s);
}

.problem-factor:first-child::after,
.problem-factor:last-child::after {
    content: '↑';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #15705b;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.6;
    animation: arrowBounce 2s ease-in-out infinite;
    animation-delay: calc(var(--factor-index) * 0.2s);
}

/* Arrow animations */
@keyframes arrowFlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
        opacity: 1;
    }
}

/* Dark mode arrows */
body.dark-mode .problem-factors::before,
body.dark-mode .problem-factor:first-child::before,
body.dark-mode .problem-factor:last-child::before {
    background: linear-gradient(to top, #22c55e, transparent);
}

body.dark-mode .problem-factors::after,
body.dark-mode .problem-factor:first-child::after,
body.dark-mode .problem-factor:last-child::after {
    color: #22c55e;
}

/* Ideation Section */
.ideation-questions {
    margin: 3rem 0;
}

.question-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.question-item:hover {
    transform: translateX(5px);
}

.question-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #15705b;
    margin-right: 1rem;
    min-width: 2rem;
}

.question-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000;
}

/* Ideation Section - Side by Side Layout */
.ideation-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.ideation-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ideation-image-container {
    width: 100%;
}

.ideation-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Theme-based image visibility for ideation section */
.ideation-light {
    display: block !important;
}

.ideation-dark {
    display: none !important;
}

body.dark-mode .ideation-light,
[data-theme="dark"] .ideation-light {
    display: none !important;
}

body.dark-mode .ideation-dark,
[data-theme="dark"] .ideation-dark {
    display: block !important;
}

/* Info Consolidation Image Container */
.infoconsolidation-image-container {
    margin: 3rem 0;
    text-align: center;
}

.infoconsolidation-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for info consolidation */
.infoconsolidation-light {
    display: block !important;
}

.infoconsolidation-dark {
    display: none !important;
}

body.dark-mode .infoconsolidation-light,
[data-theme="dark"] .infoconsolidation-light {
    display: none !important;
}

body.dark-mode .infoconsolidation-dark,
[data-theme="dark"] .infoconsolidation-dark {
    display: block !important;
}

/* Card Sort Image Container (in ideation section) */
.cardsort-image-container {
    margin: 3rem 0;
    text-align: center;
}

.cardsort-image {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Card Sort Insights Image Container */
.cardsortinsights-image-container {
    margin: 3rem 0;
    text-align: center;
}

.cardsortinsights-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Lo-Fi Prototypes Image Container */
.lofis-image-container {
    margin: 4rem 0;
    text-align: center;
}

.lofis-image {
    max-width: 95%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Testing Insights Image Container */
.testinginsights-image-container {
    margin: 4rem 0;
    text-align: center;
}

.testinginsights-image {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for testing insights */
.testinginsights-light {
    display: block !important;
}

.testinginsights-dark {
    display: none !important;
}

body.dark-mode .testinginsights-light,
[data-theme="dark"] .testinginsights-light {
    display: none !important;
}

/* Iteration Image Container */
.iteration-image-container {
    margin: 4rem 0;
    text-align: center;
}

.iteration-image {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for iteration */
.iteration-light {
    display: block !important;
}

.iteration-dark {
    display: none !important;
}

body.dark-mode .iteration-light,
[data-theme="dark"] .iteration-light {
    display: none !important;
}

body.dark-mode .iteration-dark,
[data-theme="dark"] .iteration-dark {
    display: block !important;
}

body.dark-mode .testinginsights-dark,
[data-theme="dark"] .testinginsights-dark {
    display: block !important;
}

/* Design Decisions Image Container */
.designdecisions-image-container {
    margin: 4rem 0;
    text-align: center;
}

.designdecisions-image {
    max-width: 95%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for design decisions */
.designdecisions-light {
    display: block !important;
}

.designdecisions-dark {
    display: none !important;
}

body.dark-mode .designdecisions-light,
[data-theme="dark"] .designdecisions-light {
    display: none !important;
}

body.dark-mode .designdecisions-dark,
[data-theme="dark"] .designdecisions-dark {
    display: block !important;
}

/* Hi-Fi Images Container */
.hifi-images-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 4rem 0;
}

.hifistaff-image-container,
.hifipart-image-container {
    width: 100%;
    text-align: center;
}

.hifi-image {
    max-width: 95%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for hi-fi staff */
.hifistaff-light {
    display: block !important;
}

.hifistaff-dark {
    display: none !important;
}

body.dark-mode .hifistaff-light,
[data-theme="dark"] .hifistaff-light {
    display: none !important;
}

body.dark-mode .hifistaff-dark,
[data-theme="dark"] .hifistaff-dark {
    display: block !important;
}

/* Theme-based image visibility for hi-fi participant */
.hifipart-light {
    display: block !important;
}

.hifipart-dark {
    display: none !important;
}

body.dark-mode .hifipart-light,
[data-theme="dark"] .hifipart-light {
    display: none !important;
}

body.dark-mode .hifipart-dark,
[data-theme="dark"] .hifipart-dark {
    display: block !important;
}

/* Theme-based image visibility for hi-fi designs */
.hifi-light {
    display: block !important;
}

.hifi-dark {
    display: none !important;
}

body.dark-mode .hifi-light,
[data-theme="dark"] .hifi-light {
    display: none !important;
}

body.dark-mode .hifi-dark,
[data-theme="dark"] .hifi-dark {
    display: block !important;
}

/* Outcomes Image Container */
.outcomes-image-container {
    margin: 4rem 0;
    text-align: center;
}

.outcomes-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for outcomes */
.outcomes-light {
    display: block !important;
}

.outcomes-dark {
    display: none !important;
}

body.dark-mode .outcomes-light,
[data-theme="dark"] .outcomes-light {
    display: none !important;
}

body.dark-mode .outcomes-dark,
[data-theme="dark"] .outcomes-dark {
    display: block !important;
}

/* Prototyping Image Container */
.prototyping-image-container {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.prototyping-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    transition: all 0.3s ease;
}

.prototyping-image:hover {
    transform: scale(1.02);
}

/* Class Insight Image Container */
.class-insight-container {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.class-insight-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    transition: all 0.3s ease;
}

.class-insight-image:hover {
    transform: scale(1.02);
}

/* Dark mode for ideation */
body.dark-mode .question-item p {
    color: #ffffff;
}

/* Prototyping Section */
.prototyping-diagram {
    margin: 4rem 0;
    text-align: center;
}

.card-sort-diagram {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.card-sort-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.card-sort-image:hover {
    transform: scale(1.02);
}

.card-sort-photos {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.card-sort-photo {
    width: 100vw;
    max-width: none;
    height: auto;
    display: block;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    cursor: zoom-in;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: none;
}

.card-sort-photo:hover {
    transform: scale(1.01);
}

.prototyping-takeaways {
    margin: 4rem 0;
}

.takeaway-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.takeaway-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.takeaway-icon {
    width: 48px;
    height: 48px;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #15705b, #22c55e);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.takeaway-item:hover .takeaway-icon {
    transform: scale(1.1);
}

.takeaway-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000;
}

/* Usability Testing Section */
.usability-insights {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 2rem 0 4rem 0;
}

.insights-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.insights-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color, #000);
    margin-bottom: 0.5rem;
}

.insight-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
}

.insight-card {
    background: #000000;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.insight-card:hover {
    background: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insight-icon {
    background: transparent;
    color: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.insight-card p {
    margin: 0;
    color: #ffffff;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Dark mode for usability testing */
body.dark-mode .insights-category-title {
    color: #ffffff;
}

body.dark-mode .insight-card {
    background: #ffffff;
}

body.dark-mode .insight-card:hover {
    background: #f0f0f0;
}

body.dark-mode .insight-card p {
    color: #000000;
}

body.dark-mode .insight-card .insight-icon {
    color: #000000;
}

body.dark-mode .insight-card .insight-icon svg {
    color: #000000;
}

/* Class page specific insight cards with blue theme */
.class-insight-card {
    background: #000000;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.class-insight-card:hover {
    background: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.class-insight-card .insight-icon {
    background: transparent;
    color: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.class-insight-card .insight-icon svg {
    color: #ffffff;
}

.class-insight-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.class-insight-card p {
    margin: 0;
    color: #ffffff;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Dark mode for class insight cards */
body.dark-mode .class-insight-card {
    background: #ffffff;
}

body.dark-mode .class-insight-card:hover {
    background: #f0f0f0;
}

body.dark-mode .class-insight-card h3 {
    color: #000000;
}

body.dark-mode .class-insight-card p {
    color: #000000;
}

body.dark-mode .class-insight-card .insight-icon {
    color: #000000;
}

body.dark-mode .class-insight-card .insight-icon svg {
    color: #000000;
}

/* Research Page Specific Styles */
.research-question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #A0D7DC;
}

body.dark-mode .research-question-text {
    color: #fff;
    background: #2a2a2a;
    border-left-color: #A0D7DC;
}

.pipeline-stages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pipeline-stage {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #A0D7DC;
}

body.dark-mode .pipeline-stage {
    background: #2a2a2a;
    border-left-color: #A0D7DC;
}

.stage-number {
    background: #A0D7DC;
    color: #000;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stage-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

body.dark-mode .stage-content h3 {
    color: #fff;
}

.stage-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

body.dark-mode .stage-content p {
    color: #ccc;
}

.evaluation-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    background: #000000;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #A0D7DC;
}

body.dark-mode .metric-card {
    background: #ffffff;
    border-left-color: #A0D7DC;
}

.metric-card h3 {
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-size: 1.2rem;
}

body.dark-mode .metric-card h3 {
    color: #000000;
}

.metric-card p {
    margin: 0.5rem 0;
    color: #ffffff;
    line-height: 1.6;
}

body.dark-mode .metric-card p {
    color: #000000;
}

.metric-card code {
    background: #333333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ffffff;
}

body.dark-mode .metric-card code {
    background: #f0f0f0;
    color: #000000;
}

.back-to-work-section {
    margin: 4rem 0 2rem 0;
    text-align: center;
}

.back-to-work-content {
    display: flex;
    justify-content: center;
}

/* Sample Pipeline Image - Make it bigger */
.class-map-container .class-map-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    display: block;
}

/* Class page specific - Make class-map-container smaller */
.class-main .class-map-container .class-map-image {
    max-width: 500px;
    margin: 1rem auto;
}

/* Make pipeline image BIG - override the class-main restriction */
.class-main .class-map-container .class-map-image[src*="pipeline.png"] {
    max-width: 100% !important;
    width: 100% !important;
}

/* Make calculations image BIG - override the class-main restriction */
.class-main .class-map-container .class-map-image[src*="calculations.png"] {
    max-width: 100% !important;
    width: 100% !important;
}

/* Make samplepipeline images smaller */
.class-main .class-map-container .class-map-image[src*="samplepipeline.png"],
.class-main .class-map-container .class-map-image[src*="samplepipeline2.png"] {
    max-width: 350px !important;
}

/* Context-aware page specific - Center only the "Coming Soon..." text */
.context-aware-vr-page .coming-soon-subtitle {
    text-align: center;
}

.context-aware-vr-page .coming-soon-description {
    text-align: center;
}

/* Context-aware page specific - Allow class-details to wrap for logo */
.context-aware-vr-page .class-details {
    flex-wrap: wrap;
}

/* XR Logo styling */
.xr-logo-container {
    flex-basis: 100%;
    padding-top: 2rem;
    background-color: #ffffff;
    text-align: center;
    border-radius: 10px;
}

body.dark-mode .xr-logo-container {
    background-color: #ffffff;
}

.xr-logo {
    max-width: 40%;
    width: 100%;
    height: auto;
}

/* Feature GIFs - Rounded borders */
.design-features img {
    border-radius: 5px;
    object-fit: cover;
    object-position: center 4%;
}

/* Problem section - Black background in light mode, white in dark mode */
.class-main #problem {
    background: #000000 !important;
    color: #ffffff !important;
}

.class-main #problem .section-title,
.class-main #problem .section-impact,
.class-main #problem h3,
.class-main #problem p {
    color: #ffffff !important;
}

body.dark-mode .class-main #problem {
    background: #ffffff !important;
    color: #000000 !important;
}

body.dark-mode .class-main #problem .section-title,
body.dark-mode .class-main #problem .section-impact,
body.dark-mode .class-main #problem h3,
body.dark-mode .class-main #problem p {
    color: #000000 !important;
}

/* Responsive adjustments for research page */
@media (max-width: 768px) {
    .research-question-text {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .pipeline-stage {
        flex-direction: column;
        text-align: center;
    }
    
    .evaluation-metrics {
        grid-template-columns: 1fr;
    }
    
    .metric-card code {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .class-map-container .class-map-image {
        max-width: 100%;
    }
}

/* Responsive design for usability testing */
@media (max-width: 1200px) {
    .insight-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .usability-insights {
        gap: 2rem;
    }
    
    .insight-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .insight-card {
        padding: 1.25rem;
    }
    
    .insights-category-title {
        font-size: 1.1rem;
    }
    
    .coming-soon-content {
        padding: 2rem 0;
    }
    
    .coming-soon-subtitle {
        font-size: 1.25rem;
    }
    
    .coming-soon-description {
        font-size: 1rem;
    }
}

/* Design Section */
#design .section-content {
    position: relative;
}

.video-container {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: #f5f5f5;
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.video-container iframe {
    width: 800px;
    height: 450px;
    max-width: 90vw;
    max-height: 50vw;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Dark mode for design section */
body.dark-mode .video-container {
    background: #1a1a1a;
}

/* Design Features */
.design-features {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 12rem;
    margin-top: 4rem;
}

.design-feature {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}


.feature-text {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color, #000);
    margin: 0;
}

.feature-insight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.insight-icon {
    color: var(--accent-color, #007AFF);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color, #000);
    margin: 0;
}

.insight-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #666);
    text-transform: lowercase;
    font-weight: 250;
    letter-spacing: 0.5px;
}

.feature-gif {
    flex: 1.4;
    max-width: 1500px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.feature-image {
    width: 100%;
    height: auto;
    max-height: 1200px;
    object-fit: cover;
    display: block;
}

.feature-caption {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #A0D7DC;
    border-radius: 8px;
    border-left: none;
}

.caption-icon {
    color: #000000;
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 1.2rem;
}

.feature-caption span {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color, #000);
}

/* Dark mode for design features */
body.dark-mode .feature-title,
body.dark-mode .feature-description {
    color: #ffffff;
}

body.dark-mode .feature-caption span {
    color: #000000;
}

body.dark-mode .insight-label {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .feature-gif {
    background: #2a2a2a;
}

body.dark-mode .feature-caption {
    background: #A0D7DC;
}

/* Responsive design for design section */
@media (max-width: 768px) {
    .video-container {
        padding: 2rem 0;
    }
    
    .video-container iframe {
        width: 100%;
        height: 200px;
        max-height: 56.25vw;
    }
    
    .design-features {
        gap: 15rem;
        margin-top: 3rem;
    }
    
    .design-feature {
        flex-direction: column;
        gap: 2rem;
    }
    
    .feature-text {
        gap: 1.25rem;
    }
    
    .feature-content {
        gap: 1.25rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .feature-gif {
        max-width: 100%;
    }
    
    .feature-caption {
        padding: 0.75rem;
    }
}

/* Impact Section */
/* Impact Image */
.impact-image-container {
    width: 100%;
    margin: 3rem 0;
}

.impact-image {
    width: 100%;
    height: auto;
}

/* Live Status Indicator */
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;

    background-color: #B6D99F;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-top: 0%;
    margin-bottom: 3%;
    /* margin: 2rem 0; */
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #6CBE45;
    border-radius: 50%;
}

.live-text {
    color: #6CBE45;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.metric-card {
    background: #000000;
    border: none;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.metric-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.metric-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 1rem;
}

.metric-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff !important;
    margin: 0;
    opacity: 0.9;
}

.quotes-section {
    margin-top: 4rem;
}

.quotes-title {
    font-size: 1.1rem;
    font-weight: 250;
    color: var(--text-color, #000);
    margin-bottom: 2rem;
    text-align: center;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.quote-item {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.quote-item p {
    margin: 0 0 1rem 0;
    color: var(--text-color, #000);
    line-height: 1.6;
    font-size: 0.95rem;
    /* font-style: italic; */
}

.quote-attribution {
    font-size: 0.85rem;
    color: var(--text-color, #666);
    font-weight: 250;
}

/* Final Thoughts Section */
.final-thoughts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.thoughts-title {
    font-size: 1.1rem;
    font-weight: 250;
    color: var(--text-color, #000);
    margin-bottom: 2rem;
}

.thoughts-title-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.thoughts-icon {
    color: var(--accent-color, #007AFF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thoughts-content {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    position: relative;
}

.thoughts-content p {
    margin: 0;
    color: var(--text-color, #000);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Dark mode for impact and final thoughts */
body.dark-mode .impact-column-title,
body.dark-mode .quotes-title,
body.dark-mode .thoughts-title {
    color: #ffffff;
}

body.dark-mode .insight-box {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .insight-box:hover {
    border-color: var(--accent-color, #007AFF);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .outcome-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .outcome-item:hover {
    border-color: var(--accent-color, #007AFF);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .quote-item {
    border: none;
}

body.dark-mode .thoughts-content {
    background: transparent;
    border: none;
}

body.dark-mode .outcome-item p,
body.dark-mode .quote-content p,
body.dark-mode .thoughts-content p {
    color: #ffffff;
}

body.dark-mode .quote-item p {
    color: #ffffff;
}

body.dark-mode .quote-attribution {
    color: gray;
}

body.dark-mode .quote-icon {
    border-color: rgba(0, 122, 255, 0.3);
}

body.dark-mode .metric-card {
    background: #ffffff;
}

body.dark-mode .metric-icon {
    color: #000000;
}

body.dark-mode .metric-title {
    color: #000000 !important;
}

body.dark-mode .metric-description {
    color: #000000 !important;
    opacity: 0.9;
}

body.dark-mode .metric-icon {
    color: #000000 !important;
}

body.dark-mode .insight-icon {
    color: #ffffff;
}

body.dark-mode .insight-icon svg {
    color: #ffffff;
}

body.dark-mode .caption-icon {
    color: #000000;
}

/* Coming Soon Section */
.coming-soon-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 0;
}


.coming-soon-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    color: #A480A6;
}

.coming-soon-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color, #000);
    margin-bottom: 1.5rem;
}

.coming-soon-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary, #666);
    margin-bottom: 2.5rem;
}

.coming-soon-cta {
    display: flex;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #A480A6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 250;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #8B6B8D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 128, 166, 0.3);
}

/* Dark mode for coming soon */
body.dark-mode .coming-soon-subtitle {
    color: #ffffff;
}

body.dark-mode .coming-soon-description {
    color: #cccccc;
}

body.dark-mode .coming-soon-icon {
    color: #A480A6;
}

/* Coachpro page specific styling */
.coachpro-page .coming-soon-icon {
    color: #2c804b;
}

.coachpro-page .btn-primary {
    background: #2c804b;
    color: white;
}

.coachpro-page .btn-primary:hover {
    background: #296b41;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Responsive design for impact and final thoughts */
@media (max-width: 768px) {
    .impact-metrics {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .final-thoughts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Dark mode for prototyping */
body.dark-mode .takeaway-item {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .takeaway-item:hover {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .takeaway-item p {
    color: #ffffff;
}

body.dark-mode .card-sort-photo {
    box-shadow: none;
}

body.dark-mode .card-sort-photo:hover {
    box-shadow: none;
}

/* Prototype Gallery */
.prototype-gallery {
    margin: 4rem 0;
    position: relative;
}

.prototype-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3e9554;
    margin-bottom: 1.5rem;
    text-align: center;
}

.prototype-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    scroll-behavior: smooth;
    /* Hide scrollbar for webkit browsers */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.prototype-scroll-container::-webkit-scrollbar {
    display: none;
}

.prototype-image {
    width: auto;
    height: 400px;
    min-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: none;
}

.prototype-image:hover {
    transform: none;
    box-shadow: none;
}

.scroll-indicator {
    text-align: center;
    margin-top: 1rem;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Dark mode for prototype gallery */
body.dark-mode .prototype-image {
    box-shadow: none;
}

body.dark-mode .prototype-image:hover {
    box-shadow: none;
}

body.dark-mode .scroll-indicator span {
    color: #999;
}

body.dark-mode .prototype-header {
    color: #3e9554;
}


/* Responsive Design for CLASS Page */
@media (max-width: 1000px) {
    .class-header-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .class-details {
        flex-direction: column;
        gap: 2rem;
    }
    
    .research-methods {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .insights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .problem-factors {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Move back button down on mobile */
    .back-button {
        top: 4rem;
    }

    /* Simple rule: class-main has 0 padding, everything aligns to 1.5rem from screen edge */
    .class-main {
        padding: 0;
    }

    /* Header, sections, and content all get same 1.5rem left padding */
    .class-header {
        padding: 2rem 1.5rem 0 1.5rem;
    }

    .section-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Solution section already has padding, don't double up */
    #solution .section-header {
        padding-left: 0;
        padding-right: 0;
    }

    .section-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* VR page logo container - center vertically on mobile */
    .xr-logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }

    .problem-statement {
        padding: 2rem 1.5rem;
    }

    /* Problem section mobile - show text, hide image, fix alignment */
    #problem .section-header {
        padding: 0 !important;
        padding-left: 2.8rem !important;
        max-width:80%;
        margin: 0 0 2rem 0 !important;
    }

    #problem .section-content {
        padding: 0 !important;
        padding-left: 2.5rem !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .problem-statement-text {
        display: block !important;
        font-size: 1.4rem;
        font-weight: 400;
        color: #ffffff;
        margin: 0;
        padding: 0;
    }

    .problem-image-container {
        display: none;
    }

    /* Font sizes */
    .class-title {
        font-size: 2.5rem;
    }

    .class-organization {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 0.9rem;
    }

    .section-subtitle {
        font-size: 1.4rem;
    }

    #problem .section-subtitle {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    #problem.xometry-problem .section-subtitle {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .problem-statement h3 {
        font-size: 1.5rem;
    }

    /* Layout adjustments */
    .class-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }

    .class-detail-column {
        gap: 1.5rem;
    }

    /* Overview section - logo below text on mobile */
    .overview-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .overview-text {
        order: 1 !important;
    }

    .overview-logo {
        order: 2 !important;
        padding-top: 0;
        margin-top: 0;
    }

    .class-logo {
        max-width: 300px;
    }

    .research-methods {
        margin: 2rem 0;
    }

    .research-methods-image {
        width: 100%;
        max-width: none;
        height: auto;
        transform: scale(1.2);
    }

    /* Insights image - bigger on mobile */
    .insights-image-container {
        margin: 1rem 0 2rem 0;
        padding-top: 0 !important;
    }

    .insights-image {
        width: 100%;
        max-width: none;
        height: auto;
        transform: scale(1.3);
    }

    /* Problem image - much bigger on mobile */
    .problem-image-container {
        margin: 2rem 0;
        text-align: left;
    }

    .problem-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto;
        display: block;
        margin: 0 !important;
    }

    /* Impact image - bigger on mobile */
    .impact-image-container {
        margin: 2rem 0;
    }

    .impact-image {
        width: 120%;
        max-width: 120%;
        margin-left: -10%;
    }

    .case-study-section {
        margin-bottom: 4rem !important;
    }

    /* Hero image - full width, cropped with zoom */
    .class-hero-image {
        overflow: hidden;
        width: 100vw;
        margin-left: calc(-1 * (100vw - 100%) / 2);
        height: 250px;
    }

    .class-dashboard-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transform: scale(1.15);
        transform-origin: center top;
    }

    /* AI Page Mobile Styles - Same clean approach as class page */
    .ai-main {
        padding: 0 !important;
    }

    .ai-main .ai-header {
        padding: 8rem 1.5rem 0 1.5rem !important;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
    }

    .ai-main .ai-header-content {
        padding-left: 0;
        display: flex;
        flex-direction: column;
    }

    .ai-main .ai-meta {
        order: 1;
    }

    .ai-main .ai-hero-image {
        order: 2;
        margin: 2rem 0;
    }

    .ai-main .class-details {
        order: 3;
    }

    /* AI title and organization - same sizes as class page */
    .ai-main .ai-title {
        font-size: 2.5rem !important;
    }

    .ai-main .ai-organization {
        font-size: 0.85rem !important;
    }

    /* AI header content - stack vertically on mobile */
    .ai-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    /* AI class-details two-column grid layout */
    .ai-main .class-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }

    .ai-main .class-detail-column {
        gap: 1.5rem;
    }

    .case-study-section {
        margin-bottom: 4rem !important;
    }

    /* AI page solution section - match left indent with rest of page */
    .ai-main #solution {
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding-left: calc(50vw - 50% + 1.5rem) !important;
        padding-right: calc(50vw - 50% + 1.5rem) !important;
    }
}

@media (max-width: 480px) {
    .class-main {
        padding: 1.5rem;
    }

    .class-header {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        position: relative;
        left: 0;
        right: 0;
        transform: none;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .class-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 0.85rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    #problem .section-subtitle {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    #problem.xometry-problem .section-subtitle {
        font-size: 1.7rem !important;
        margin-bottom: 2rem;
    }

    #problem.xometry-problem .section-content {
        padding-right: 1.5rem !important;
    }
    
    .section-text p {
        font-size: 0.95rem;
    }
    
    .research-methods {
        margin: 1.5rem 0;
    }
    
    .research-method {
        margin-bottom: 1rem;
    }
    
    .insight {
        padding: 1.5rem;
    }
    
    /* Hide arrows on mobile for cleaner look */
    .problem-factors::before,
    .problem-factors::after,
    .problem-factor::before,
    .problem-factor::after {
        display: none;
    }
    
    .problem-factor {
        padding: 1.5rem;
    }
    
    /* Ideation responsive - text first, image below with reduced spacing */
    .ideation-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 2rem 0;
    }

    .ideation-text {
        order: 1 !important;
        margin-bottom: 1rem !important;
    }

    .ideation-image-container {
        order: 2 !important;
        margin: 0 !important;
    }

    .ideation-image {
        max-width: 100%;
        margin-top: 0 !important;
    }
    
    .infoconsolidation-image {
        max-width: 100%;
    }
    
    .cardsort-image {
        max-width: 100%;
    }
    
    .cardsortinsights-image {
        max-width: 100%;
    }
    
    .lofis-image {
        max-width: 100%;
    }
    
    .testinginsights-image {
        max-width: 100%;
    }
    
    .designdecisions-image {
        max-width: 100%;
    }
    
    .hifi-image {
        max-width: 100%;
    }
    
    .hifi-images-container {
        gap: 2rem;
        margin: 2rem 0;
    }
    
    .outcomes-image {
        max-width: 100%;
    }
    
    .prototyping-image-container {
        margin: 2rem 0;
    }
    
    .prototyping-image {
        max-width: 100%;
    }
    
    .class-insight-container {
        margin: 2rem 0;
    }
    
    .class-insight-image {
        max-width: 100%;
    }
    
    /* Prototyping responsive */
    .card-sort-image {
        max-width: 100%;
    }
    
    .card-sort-photo {
        max-width: 100%;
    }
    
    .takeaway-item {
        padding: 1rem;
    }
    
    .takeaway-icon {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }
    
    .takeaway-item p {
        font-size: 1rem;
    }
    
    /* Prototype gallery responsive */
    .prototype-image {
        height: 300px;
    }
    
    .scroll-indicator span {
        font-size: 0.8rem;
    }
    
    .prototype-header {
        font-size: 1.1rem;
    }

    /* AI Page 480px Mobile Styles */
    .ai-main {
        padding: 1.5rem !important;
    }

    .ai-main .ai-title {
        font-size: 1.8rem !important;
    }

    .ai-main .ai-organization {
        font-size: 0.85rem !important;
    }
}

/* === WORK PAGE STYLES === */
.work-main {
    padding: 0rem 60px;
    margin: 0;
}

.work-header {
    text-align: left;
    margin-bottom: 4rem;
}

.work-header-divider {
    width: 100%;
    height: 1px;
    background: #ddd;
    margin-bottom: 2rem;
}

body.dark-mode .work-header-divider {
    background: #444;
}

.work-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-top: 3rem;
    margin-top:3rem;
}

.work-header-content .about-title {
    margin: 0;
}

.work-header-content .filter-container {
    display: flex;
    gap: 0.5rem;
}

#work {
    scroll-margin-top: 5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    #work {
        scroll-margin-top: 4rem;
    }
}

.work-title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    padding: 0;
    transition: color 0.3s ease;
}

.work-dot {
    color: #111;
    transition: color 0.3s ease;
}

.work-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #000000;
    font-weight: 400;
    max-width: 60%;
    line-height: 1.6;
    transition: color 0.3s ease; /* Always transition color at same speed as title */
}

/* Highlight words for computer button interaction */
.highlight-word {
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 12px;
}

.highlight-word.active {
    color: #C45050;
    /* background-color: rgba(196, 80, 80, 0.15); */
}

body.dark-mode .highlight-word.active {
    color: #E07070;
    /* background-color: rgba(224, 112, 112, 0.15); */
}
.work-subtitle:not(.fade-in-delay-2) {
    transition: color 0.3s ease;
}

/* Ensure work-subtitle with fade-in-delay-2 has proper initial state */
.work-subtitle.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
                color 0.3s ease; /* Color transitions immediately, no delay */
}

.work-subtitle.fade-in-delay-2.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Work Filters Section */
.work-filters {
    margin-bottom: 5rem;
    border: none;
    outline: none;
}

/* Work sections on index page (not inside .work-main) */
.intro + .work-header {
    padding: 0 60px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.intro + .work-header + .work-grid {
    padding: 0 60px;
    position: relative;
    z-index: 1;
}

.filter-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    border: none;
    outline: none;
}

.filter-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    color: #999;
    position: relative;
    overflow: visible;
}

.filter-btn:hover {
    background: #e4e4e4;
    transform: none;
    box-shadow: none;
    color: #333;
}

.filter-btn.active {
    background: #000;
    color: #fff;
    transform: none;
    box-shadow: none;
    font-weight: 400;
}

.filter-text {
    font-weight: inherit;
    white-space: nowrap;
}

.filter-count {
    display: none;
}

.filter-btn:not(.active) .filter-count {
    display: none;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    justify-content: start;
}

.work-item {
    width: 100%;
    margin-bottom: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-decoration: none !important;
}

.work-item:visited,
.work-item:visited * {
    text-decoration: none !important;
}

.work-item:visited .project-name {
    color: #111 !important;
}

.work-item:visited .project-description {
    color: #666 !important;
}

body.dark-mode .work-item:visited .project-name {
    color: #ffffff !important;
}

body.dark-mode .work-item:visited .project-description {
    color: #cccccc !important;
}

.work-item.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.work-item.coming-soon {
    cursor: default;
}

.work-item.coming-soon .project-image-container {
    cursor: default;
}

.work-item.coming-soon .project-image-container:hover .project-image {
    transform: none;
}

.project-image-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
}

.project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Lazy loading styles */

.project-image-container:hover .project-image {
    transform: scale(1.05);
    border-radius: 5px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: 5px;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-container:hover .project-overlay {
    opacity: 1;
    border-radius: 5px;
}

.view-project {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}



.project-name {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.2;
}



.project-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}



.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f5f5f5;
    color: #000;
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 250;
}



.work-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #15705b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #15705b;
}

.cta-button:hover {
    background: #0f5a47;
    border-color: #0f5a47;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 112, 91, 0.3);
}

/* Dark mode styles for work page */


body.dark-mode .work-title {
    color: #ffffff;
}

body.dark-mode .work-dot {
    color: #ffffff;
}

body.dark-mode .work-subtitle {
    color: #ffffff;
}


/* Dark mode for work-subtitle with fade-in-delay-2 */
body.dark-mode .work-subtitle.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
                color 0.3s ease; /* Color transitions immediately, no delay */
}

body.dark-mode .work-subtitle.fade-in-delay-2.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

body.dark-mode .filter-btn {
    background: #1e1e1e;
    color: #666;
    border: none;
}

body.dark-mode .filter-btn:hover {
    background: #2a2a2a;
    color: #aaa;
}

body.dark-mode .filter-btn.active {
    background: #fff;
    color: #000;
}

body.dark-mode .filter-btn:not(.active) .filter-count {
    display: none;
}




body.dark-mode .project-name {
    color: #ffffff;
}

body.dark-mode .project-description {
    color: #cccccc;
}

body.dark-mode .tag {
    background: #2a2a2a;
    color: #e0e0e0;
    border: none;
}

body.dark-mode .work-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

body.dark-mode .cta-content h2 {
    color: #ffffff;
}

body.dark-mode .cta-content p {
    color: #cbd5e1;
}

/* Responsive design for work page */
@media (max-width: 1100px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .work-main {
        padding: 2rem;
    }
    
    /* Work sections on index page - mobile */
    .intro + .work-header {
        padding: 0 2rem;
    }

    .intro + .work-header + .work-grid {
        padding: 0 2rem;
    }

    

    .work-title {
        font-size: 2.2rem;
    }
    
    .work-subtitle {
        font-size: 1rem;
        max-width: 100%;
        color: #000000;
    }
    
    .work-subtitle:not(.fade-in-delay-2) {
        transition: color 0.3s ease;
    }
    
    /* Ensure work-subtitle with fade-in-delay-2 has proper initial state on mobile */
    .work-subtitle.fade-in-delay-2 {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
                    color 0.3s ease; /* Color transitions immediately, no delay */
    }
    
    .work-subtitle.fade-in-delay-2.loaded {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Mobile dark mode for work subtitle */
    body.dark-mode .work-subtitle {
        color: #ffffff;
    }
    
    
    /* Mobile dark mode for work-subtitle with fade-in-delay-2 */
    body.dark-mode .work-subtitle.fade-in-delay-2 {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
                    color 0.3s ease; /* Color transitions immediately, no delay */
    }
    
    body.dark-mode .work-subtitle.fade-in-delay-2.loaded {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .filter-container {
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        border: none;
    }
    
    .filter-text {
        font-size: 0.85rem;
    }

    .work-grid {
        gap: 0.5rem;
    }

    

    .work-content {
        padding: 1.5rem;
    }
    
    .project-name {
        font-size: 1.5rem;
    }
    
    .work-cta {
        padding: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .work-main {
        padding: 1.5rem;
    }
    
    .intro {
        padding: 1.5rem !important;
    }
    
    .intro-content {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
        position: relative;
    }
    .work.work-header {
        padding-top: 2rem;
    }
    
    .intro-neuron-network {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 50vh;
        right: auto;
        top: auto;
        order: 1;
        margin-top: 2rem;
    }

    .intro-brain {
        position: relative; /* Change from absolute to relative for small mobile */
        width: 100%;
        max-width: 100%;
        height: 50vh; /* Smaller height for very small screens */
        right: auto;
        top: auto;
        order: 1; /* Show brain after text */
        margin-top: 2rem;
    }
    
    .intro-text {
        position: relative; /* Change from absolute to relative for small mobile */
        width: 100%;
        top: auto;
        left: auto;
        padding: 0;
        max-width: 100%;
        order: 0; /* Show text first */
    }
    
    /* Work sections on index page - small mobile */
    .intro + .work-header {
        padding: 0 1.5rem;
    }
    
    .intro + .work-header + .work-grid {
        padding: 0 1.5rem;
        padding-top:2rem;
    }
    
    .work-title {
        font-size: 1.2rem;
    }

    .work-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-top:2rem;
    }

    .filter-container {
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .filter-btn {
        justify-content: center;
        padding: 0.6rem 1rem;
        border: none;
        flex: 0 0 auto;
    }
    
    .work-grid {
        gap: 0.2rem;
    }

    .project-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .work-content {
        padding: 1rem;
    }

    .project-name {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .work-cta {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Back Button */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 250;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.back-button.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.back-button::before {
    content: "←";
    font-size: 1.1rem;
}

body.dark-mode .back-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
}

body.dark-mode .back-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0.95;
    cursor: none !important;
}

.progress-indicator:hover {
    opacity: 1;
    transform: translateY(-50%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    cursor: none !important;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: none !important;
    transition: all 0.3s ease;
    padding: 0.3rem;
    border-radius: 8px;
    position: relative;
}

.progress-step:hover {
    /* background: rgba(0, 0, 0, 0.05); */
    transform: translateX(-4px);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: none !important;
}

.progress-step.active .step-dot {
    background: #333;
    border-color: #333;
    box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.2);
    transform: scale(1.2);
}

.progress-step.completed .step-dot {
    background: #000;
    border-color: #000;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 250;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: none !important;
}

.progress-step.active .step-label {
    color: #000;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #000;
    font-weight: 600;
}

/* Light mode styles for progress indicator */
[data-theme="light"] .progress-indicator {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .progress-indicator:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* [data-theme="light"] .progress-step:hover {
    background: rgba(0, 0, 0, 0.08);
} */

[data-theme="light"] .step-dot {
    background: rgba(0, 0, 0, 0.3);
    border: none;
}

[data-theme="light"] .step-label {
    color: #666;
    font-weight: 250;
    font-size: 0.75rem;
}

[data-theme="light"] .progress-step.active .step-label {
    color: #000;
    font-weight: 700;
}

[data-theme="light"] .progress-step.completed .step-label {
    color: #000;
    font-weight: 700;
}

/* Dark mode styles for progress indicator */
[data-theme="dark"] .progress-indicator {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .progress-indicator:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* [data-theme="dark"] .progress-step:hover {
    background: rgba(255, 255, 255, 0.1);
} */

[data-theme="dark"] .step-dot {
    background: rgba(255, 255, 255, 0.4);
    border: none;
}

[data-theme="dark"] .progress-step.active .step-dot {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .progress-step.completed .step-dot {
    background: rgba(255, 255, 255, 0.6);
    border: none;
}

[data-theme="dark"] .step-label {
    color: #ffffff;
    font-weight: 250;
    font-size: 0.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 1;
}

[data-theme="dark"] .progress-step.active .step-label {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    opacity: 1;
}

[data-theme="dark"] .progress-step.completed .step-label {
    color: #ffffff;
    font-weight: 400;
    text-shadow: none;
    opacity: 0.6;
}

/* Dark mode styles for progress indicator on project pages using body.dark-mode */
body.dark-mode .step-label {
    color: #ffffff;
}

body.dark-mode .progress-step.active .step-label {
    color: #ffffff;
    font-weight: 700;
}

body.dark-mode .progress-step.completed .step-label {
    color: #ffffff;
    opacity: 0.6;
}

/* Xometry Page Specific Styles */
.rfq-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.rfq-old h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.rfq-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rfq-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.design-translation {
    margin: 2rem 0;
}

.translation-section {
    margin-bottom: 3rem;
}

.translation-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.translation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.translation-text p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.translation-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.translation-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.refactoring-features {
    margin: 2rem 0;
}

.refactoring-feature {
    margin-bottom: 2rem;
}

.refactoring-feature h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.refactoring-feature p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.refactoring-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.refactoring-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Xometry page specific status chip styling */
.xometry-page .status-chip {
    color: #7493BA;
    background-color: rgba(116, 147, 186, 0.15);
}

body.dark-mode.xometry-page .status-chip {
    color: #7493BA;
    background-color: rgba(116, 147, 186, 0.2);
}

/* Timeline image styling */
.timeline-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Goals image styling */
.goals-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 2rem auto;
    padding: 2rem 0;
}

/* Dark theme adjustments for Xometry sections */
[data-theme="dark"] .rfq-old h4,
[data-theme="dark"] .translation-section h4,
[data-theme="dark"] .refactoring-feature h4 {
    color: #ffffff;
}

[data-theme="dark"] .rfq-image,
[data-theme="dark"] .translation-img,
[data-theme="dark"] .refactoring-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .rfq-image:hover,
[data-theme="dark"] .translation-img:hover,
[data-theme="dark"] .refactoring-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Mobile responsiveness for Xometry sections */
@media (max-width: 768px) {
    .rfq-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .translation-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .translation-text {
        order: 2;
    }

    .translation-image {
        order: 1;
    }

    .timeline-image {
        width: 100%;
    }

    .goals-image {
        width: 100%;
        padding: 1.5rem 0;
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .timeline-image {
        margin: 0 -1rem;
        width: calc(100% + 2rem);
        max-width: none;
    }

    .goals-image {
        margin: 1rem -1rem;
        width: calc(100% + 2rem);
        max-width: none;
        padding: 1rem 0;
    }
}
/* Solution Features Section - New Alternating Layout for CLASS */
.class-main #solution {
    background-color: #C4DFEE !important;
    padding: 4rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

body.dark-mode .class-main #solution {
    background-color: #C4DFEE !important;
}

body.dark-mode .class-main #solution .section-title,
body.dark-mode .class-main #solution .section-subtitle,
body.dark-mode .class-main #solution .section-text,
body.dark-mode .class-main #solution p,
body.dark-mode .class-main #solution h3,
body.dark-mode .class-main #solution .solution-category,
body.dark-mode .class-main #solution .solution-feature-title {
    color: #000000 !important;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    margin-top: 4rem;
}

.solution-feature {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-feature-reverse {
    grid-template-columns: 1fr 1.4fr;
    direction: ltr;
}

.solution-mockup {
    width: 100%;
}

.solution-image {
    width: 90%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.solution-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.solution-category {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    /* font-weight: 600; */
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    color: #000000;
}

.solution-feature-title {
    font-size: 2rem;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0;
}

/* Dark mode styles for solution section */
body.dark-mode .solution-category {
    color: #fff;
}

body.dark-mode .solution-feature-title {
    color: #ffffff;
}

body.dark-mode .solution-image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .solution-image:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Responsive styles for solution section */
@media (max-width: 1024px) {
    .class-main #solution {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: calc(50vw - 50% + 2rem);
        padding-right: calc(50vw - 50% + 2rem);
    }

    .solution-features {
        gap: 6rem;
    }

    .solution-feature {
        gap: 3rem;
    }

    .solution-feature-title {
        font-size: 1.75rem;
    }

    .ideation-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .class-main #solution {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: calc(50vw - 50% + 1.5rem);
        padding-right: calc(50vw - 50% + 1.5rem);
    }

    .solution-features {
        gap: 4rem;
    }

    .solution-feature,
    .solution-feature-reverse {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Always show image first, then text on mobile */
    .solution-feature .solution-mockup,
    .solution-feature-reverse .solution-mockup {
        order: 1;
    }

    .solution-feature .solution-text,
    .solution-feature-reverse .solution-text {
        order: 2;
    }

    .solution-feature-title {
        font-size: 1.5rem;
    }

    .solution-category {
        font-size: 0.85rem;
    }
}

/* NeuroLogic Page Specific Styles */
.solution-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.solution-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.solution-gif {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.solution-gif:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.solution-caption {
    max-width: 100%;
}

.solution-caption h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.solution-caption p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

.wireframe-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.wireframe-item {
    display: flex;
    flex-direction: column;
}

.wireframe-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wireframe-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.interaction-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.interaction-feature {
    padding: 1.5rem;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 8px;
}

.interaction-feature h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.interaction-feature p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Dark theme adjustments for NeuroLogic sections */
[data-theme="dark"] .solution-caption h4 {
    color: #ffffff;
}

[data-theme="dark"] .solution-caption p {
    color: #cccccc;
}

[data-theme="dark"] .solution-gif {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .solution-gif:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .interaction-feature {
    background: rgba(128, 128, 128, 0.15);
}

[data-theme="dark"] .interaction-feature h4 {
    color: #ffffff;
}

[data-theme="dark"] .interaction-feature p {
    color: #cccccc;
}

[data-theme="dark"] .wireframe-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .wireframe-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Mobile responsiveness for NeuroLogic sections */
@media (max-width: 768px) {
    .solution-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wireframe-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .interaction-feature {
        padding: 1rem;
    }
}

/* Live Site Link */
.live-site-link {
    text-align: center;
    margin-top: 2rem;
}

.live-site-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.live-site-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #333333;
}

.live-site-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.live-site-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Dark mode for live site link */
body.dark-mode .live-site-button {
    background: #ffffff;
    color: black;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

body.dark-mode .live-site-button:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

body.dark-mode .live-site-icon {
    color: black;
}

/* Mobile responsiveness for live site link */
@media (max-width: 768px) {
    .live-site-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .live-site-icon {
        width: 18px;
        height: 18px;
    }
}

/* QuantFrame Confidential Notice */
.confidential-notice {
    margin-top: 3rem;
    padding: 2rem;
    background: #608494;
    border-radius: 8px;
}

.notice-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.notice-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #ffffff;
}

.notice-content a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 250;
}

.notice-content a:hover {
    text-decoration: underline;
}

.confidential-icon {
    text-align: left;
    margin-bottom: 1rem;
}

.confidential-icon svg {
    color: #ffffff;
    width: 24px;
    height: 24px;
}

/* Dark mode for confidential notice */
[data-theme="dark"] .confidential-notice {
    background: #608494;
}

[data-theme="dark"] .notice-content h4 {
    color: #ffffff;
}

[data-theme="dark"] .notice-content p {
    color: #ffffff;
}

[data-theme="dark"] .notice-content a {
    color: #ffffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .progress-indicator {
        display: none;
    }
    
    .confidential-notice {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}
.ai-main {
    padding: 8rem 180px 2rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.ai-header {
    margin-bottom: 6rem;
    padding: 4rem 0rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 0;
    right: 0;
    transform: none;
}

.ai-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 3rem;
}

.ai-meta {
    flex: 1;
}

.organization-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-organization {
    font-size: 1.1rem;
    color: #2e2e2e;
    font-weight: 200;
    display: inline-block;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 250;
    color: #4A9FCA;
    background-color: rgba(135, 206, 235, 0.3);
    border-radius: 5px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.ai-title {
    font-size: 4rem;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    padding-bottom: 2rem;
    color: #111;
}

.ai-details {
    display: flex;
    gap: 4rem;
    flex: 1;
}

.ai-detail-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-detail-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-detail-item p {
    font-size: 0.9rem;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

.ai-hero-image {
    width: 100%;
    margin-top: 2rem;
}

.ai-hero-image .expandable-image {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23903232'/%3E%3C/svg%3E") 6 6, pointer !important;
    transition: none !important;
}

.ai-hero-image .expandable-image:hover {
    transform: none !important;
    box-shadow: none !important;
}

.ai-dashboard-image {
    width: 100vw;
    max-width: none;
    height: auto;
    display: block;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    box-shadow: none;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.ai-dashboard-image:hover {
    transform: scale(1.01);
}

/* Case Study Sections */
.case-study-section {
    margin-bottom: 9.5rem;
}

/* Reduced spacing for Overview and Solution sections */
#overview {
    margin-bottom: 5rem;
}

#solution {
    margin-bottom: 5rem;
}

/* Overview Flexbox Layout */
.overview-flex {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.overview-text {
    flex: 1;
}

.overview-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.ai-logo:hover {
    transform: scale(1.05);
}

/* Mobile responsiveness for overview flexbox */
@media (max-width: 768px) {
    .overview-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }
    
    .overview-logo {
        order: -1;
    }
    
    .ai-logo {
        max-width: 120px;
    }
}

/* CLASS Map Styling */
.ai-map-container {
    margin: 2rem 0;
    text-align: center;
}

.ai-map-image {
    max-width: 400px;
    height: auto;
    border-radius: 5px;
    box-shadow: none;
    transition: none;
}

.ai-map-image:hover {
    /* Hover effects removed - keeping image flat */
}

/* Theme-based image visibility for structured day map */
.ai-map-light {
    display: block !important;
}

.ai-map-dark {
    display: none !important;
}

body.dark-mode .ai-map-light,
[data-theme="dark"] .ai-map-light {
    display: none !important;
}

body.dark-mode .ai-map-dark,
[data-theme="dark"] .ai-map-dark {
    display: block !important;
}

/* AI Solution Section Background */
.ai-main #solution {
    background-color: #E1BAAB !important;
    padding: 4rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

body.dark-mode .ai-main #solution {
    background-color: #E1BAAB !important;
}

/* AI Solution Images - Larger Size */
.ai-main .solution-image {
    width: 100%;
    max-width: 1200px;
}

/* AI Research Methods Images - Smaller Size */
.ai-main .research-methods-image {
    max-width: 600px;
}

/* AI Problem Section Background Colors */
.ai-main #problem {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.dark-mode .ai-main #problem {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* AI Problem Section Layout */
.ai-main .ai-problem-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 2rem 0;
}

.ai-main .ai-problem-text {
    flex: 1;
    font-size: 2rem;
    line-height: 1.6;
    font-family: 'Space Grotesk', serif;
}

body.dark-mode .ai-main .ai-problem-text {
    color: #000000;
}

.ai-main .ai-problem-text .orange-highlight {
    color: #D9693D;
    font-weight: 700;
}

.ai-main .ai-problem-image-container {
    flex: 1;
    text-align: right;
}

.ai-main .ai-problem-image-container .problem-image {
    max-width: 100%;
    height: auto;
}

/* Mobile responsiveness for AI problem section */
@media (max-width: 768px) {
    .ai-main #problem .section-header {
        padding: 0 2.5rem !important;
        margin: 0 0 2rem 0 !important;
        max-width: 100% !important;
    }

    .ai-main #problem .section-content {
        padding: 0 2.5rem !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .ai-main #problem .section-title {
        color: #ffffff !important;
    }

    body.dark-mode .ai-main #problem .section-title {
        color: #000000 !important;
    }

    .ai-main .ai-problem-layout {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }

    .ai-main .ai-problem-text {
        font-size: 1.5rem;
    }

    .ai-main .ai-problem-image-container {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .ai-main .ai-problem-image-container .problem-image {
        max-width: 80% !important;
    }

    /* Iterations section - make images much smaller for mobile */
    .ai-main .iteration-image {
        max-width: 100% !important;
    }

    /* Final designs section - make insight text smaller for mobile */
    .ai-main .insight-text {
        font-size: 0.75rem !important;
        line-height: 2 !important;
    }
}

/* Theme-based image visibility for lofis */
.lofis-light {
    display: block !important;
}

.lofis-dark {
    display: none !important;
}

body.dark-mode .lofis-light,
[data-theme="dark"] .lofis-light {
    display: none !important;
}

body.dark-mode .lofis-dark,
[data-theme="dark"] .lofis-dark {
    display: block !important;
}

/* AI Testing Results Images - Bigger Size */
.ai-main .testinginsights-image {
    max-width: 1200px;
    width: 100%;
}

/* AI Iteration Images - Smaller Size */
.ai-main .iteration-image {
    max-width: 700px;
}

/* Challenge Chip */
.challenge-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #E1BAAB;
    color: #BC6949;
    font-size: 0.9rem;
    font-weight: 250;
    border-radius: 20px;
    margin: 1rem 0;
}

/* Design Feature Container */
.design-feature-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
    padding: 3rem 0;
}

.design-reasoning {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.design-insight {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.lightbulb-icon {
    flex-shrink: 0;
    color: #D9693D;
}

.lightbulb-icon svg {
    width: 32px;
    height: 32px;
}

.insight-text {
    font-size: 0.9rem;
    line-height: 2;
    color: #000;
    margin: 0;
}

body.dark-mode .insight-text {
    color: #ffffff;
}

.design-arrow {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem 0;
    padding-left: 0;
    color: #D9693D;
}

.design-arrow svg {
    width: 32px;
    height: 40px;
}

.design-decision {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.design-icon {
    flex-shrink: 0;
    color: #D9693D;
}

.design-icon svg {
    width: 32px;
    height: 32px;
}

.design-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.decision-label {
    font-weight: 400;
    font-size: 0.9rem;
    color: #D9693D;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.decision-text {
    font-size: 0.9rem;
    line-height: 2;
    color: #000;
    margin: 0;
}

body.dark-mode .decision-text {
    color: #ffffff;
}

.design-mockup {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.design-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.design-image:hover {
    transform: scale(1.02);
}

/* Responsive Design for Design Features */
@media (max-width: 968px) {
    .design-feature-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .design-mockup {
        order: -1;
    }
    
    .design-image {
        max-width: 100%;
    }
}

/* Blue highlight for key phrases */
.blue-highlight {
    color: #87CEEB;
    font-weight: 600;
}

/* Insights Image Container */
.insights-image-container {
    margin: 3rem 0;
    padding-top: 4rem;
    text-align: center;
}

.insights-image {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for insights */
.insights-light {
    display: block !important;
}

.insights-dark {
    display: none !important;
}

body.dark-mode .insights-light,
[data-theme="dark"] .insights-light {
    display: none !important;
}

body.dark-mode .insights-dark,
[data-theme="dark"] .insights-dark {
    display: block !important;
}

/* Problem Section Blue Background */
#problem {
    background: #A0D7DC;
    padding: 3rem 0;
    margin: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Image Container Styling */
.image-container {
    margin: 2rem 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: translateY(-2px);
}

/* H4 Styling for Case Study Sections */
.case-study-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

body.dark-mode .case-study-section h4 {
    color: #ffffff;
}

/* Smaller Image Container */
.image-container.small img {
    max-width: 60%;
    height: auto;
}

/* Responsive Image Container */
@media (max-width: 768px) {
    .image-container {
        margin: 1.5rem 0;
    }
    
    .image-container.small img {
        max-width: 80%;
    }
    
    .case-study-section h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .image-container {
        margin: 1rem 0;
    }
    
    .image-container.small img {
        max-width: 90%;
    }
    
    .case-study-section h4 {
        font-size: 1.1rem;
        margin: 1.2rem 0 0.6rem 0;
    }
}

/* Xometry Problem Section - Black background with white text in light mode */
#problem.xometry-problem {
    background: #000000 !important;
    padding: 3rem 0;
    margin: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

#problem .section-title,
#problem .section-impact,
#problem .problem-factor h4,
#problem .problem-factor p {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
}

#problem.xometry-problem .section-title,
#problem.xometry-problem .section-subtitle,
#problem.xometry-problem .section-text p {
    color: #ffffff !important;
}

#problem .problem-factors {
    margin-top: 2rem;
}

#problem .section-content {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto;
}

#problem .section-header {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.xometry-problem .section-content {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto;
}

.xometry-problem .section-header {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.section-header {
    margin-bottom: .8rem;
}

.section-title {
    font-size: .8rem;
    font-weight: 200;
    color: #111;
    margin: 0 0 0 0;
    display: inline-block;
    font-family: 'Poppins', sans-serif !important;
}

.ai-section-title {
    color: #000000 !important;
}

body.dark-mode .ai-section-title {
    color: #ffffff !important;
}

.section-content {
    max-width: 100%;
}

.section-subtitle {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.section-impact {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 2rem;
    line-height: 1.3;
    position: relative;
}

/* Problem Image Container */
.problem-image-container {
    margin: 3rem 0;
    text-align: left;
}

.problem-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0;
}

.problem-statement-text {
    display: none;
}

/* Theme-based image visibility for problem section (flipped) */
.problem-light {
    display: none !important;
}

.problem-dark {
    display: block !important;
}

body.dark-mode .problem-light,
[data-theme="dark"] .problem-light {
    display: block !important;
}

body.dark-mode .problem-dark,
[data-theme="dark"] .problem-dark {
    display: none !important;
}

.section-text {
    margin-bottom: 3rem;
}

/* Left-right container flexbox layout */
.left-right-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Fix list indentation within paragraphs */
.section-text ul,
.section-text ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-text li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 2;
}

/* Make llmstructure image larger */
.ai-map-image[src*="llmstructure.png"] {
    max-width: 1200px;
}

.left-right-container .section-text {
    flex: 1;
    margin-bottom: 0;
}

.left-right-container .ai-map-container {
    flex: 0 0 auto;
    margin: 0;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .left-right-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .left-right-container .ai-map-container {
        align-self: center;
    }
}

.section-text p,
p.section-text {
    font-size: 0.9rem;
    line-height: 2;
    color: #000;
    margin-bottom: 1.5rem;
}

/* Research Methods */
.research-methods {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.research-methods-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Theme-based image visibility for research methods */
.research-methods-light {
    display: block !important;
}

.research-methods-dark {
    display: none !important;
}

body.dark-mode .research-methods-light,
[data-theme="dark"] .research-methods-light {
    display: none !important;
}

body.dark-mode .research-methods-dark,
[data-theme="dark"] .research-methods-dark {
    display: block !important;
}

.research-method {
    text-align: center;
    transition: all 0.3s ease;
}

.research-method:hover {
    transform: translateY(-2px);
}

.method-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #87CEEB;
    transition: all 0.3s ease;
}

.research-method:hover .method-icon {
    color: #5DADE2;
    transform: scale(1.1);
}

.research-method h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* Insights */
.insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.insight {
    padding: 2.5rem;
    background: #A0D7DC;
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.insight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.insight h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight p {
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    font-weight: 250;
}

/* Problem Statement */
.problem-statement {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(21, 112, 91, 0.2);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin: 4rem 0;
    text-align: center;
}

.problem-statement h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

/* Journey Map Styles */
.journey-map-container {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.journey-map-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.journey-map-image:hover {
    transform: scale(1.02);
}

/* Responsive Journey Map */
@media (max-width: 768px) {
    .journey-map-container {
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    .journey-map-container {
        margin: 1.5rem 0;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.image-modal-content:active,
.image-modal-content:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.image-modal-close:hover {
    color: #999999;
}

.image-modal-close:active,
.image-modal-close:focus {
    color: #999999;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 25px;
    }
}

/* Problem Factors */
.problem-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.problem-factor {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(21, 112, 91, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.problem-factor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.problem-factor h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #15705b;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.problem-factor p {
    font-size: 0.9rem;
    color: #000;
    line-height: 1.6;
    margin: 0;
    font-weight: 250;
}

/* Dark Mode Styles for CLASS Page */
body.dark-mode .ai-title {
    color: #ffffff;
}


body.dark-mode .ai-organization {
    color: #cccccc;
}

body.dark-mode .status-chip {
    color: #87CEEB;
    background-color: rgba(135, 206, 235, 0.25);
}

body.dark-mode .ai-detail-item h3 {
    color: #ffffff;
}

body.dark-mode .ai-detail-item p {
    color: #cccccc;
}

body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .section-subtitle {
    color: #ffffff;
}

/* Special styling for problem section subtitle */
#problem .section-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 100%;
}

#problem.xometry-problem .section-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 100%;
}

/* Dark mode for problem section */
body.dark-mode #problem .section-subtitle {
    color: #ffffff;
}

body.dark-mode #problem.xometry-problem {
    background: #ffffff !important;
}

body.dark-mode #problem.xometry-problem .section-title,
body.dark-mode #problem.xometry-problem .section-subtitle,
body.dark-mode #problem.xometry-problem .section-text p {
    color: #000000 !important;
}

body.dark-mode .section-text p {
    color: #ffffff;
}

body.dark-mode .method-icon {
    color: #87CEEB;
}

body.dark-mode .research-method h4 {
    color: #ffffff;
}

body.dark-mode .insight {
    background: #A0D7DC;
    border: none;
}

body.dark-mode .insight h4 {
    color: #000000;
}

body.dark-mode .insight p {
    color: #000000;
}

body.dark-mode .problem-statement {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(21, 112, 91, 0.3);
}

body.dark-mode .problem-statement h3 {
    color: #ffffff;
}

body.dark-mode .problem-factor {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(21, 112, 91, 0.2);
}

body.dark-mode .problem-factor h4 {
    color: #15705b;
}

body.dark-mode .problem-factor p {
    color: #cccccc;
}

/* Problem Flow Arrows */
.problem-factors {
    position: relative;
}

.problem-factors::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: linear-gradient(to top, #15705b, transparent);
    opacity: 0.6;
    animation: arrowFlow 2s ease-in-out infinite;
}

.problem-factors::after {
    content: '↑';
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #15705b;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.8;
    animation: arrowBounce 2s ease-in-out infinite;
}

/* Individual problem factor arrows - only for left and right boxes */
.problem-factor {
    position: relative;
}

.problem-factor:first-child::before,
.problem-factor:last-child::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1.5rem;
    background: linear-gradient(to top, #15705b, transparent);
    opacity: 0.4;
    animation: arrowFlow 2s ease-in-out infinite;
    animation-delay: calc(var(--factor-index) * 0.2s);
}

.problem-factor:first-child::after,
.problem-factor:last-child::after {
    content: '↑';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #15705b;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.6;
    animation: arrowBounce 2s ease-in-out infinite;
    animation-delay: calc(var(--factor-index) * 0.2s);
}

/* Arrow animations */
@keyframes arrowFlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
        opacity: 1;
    }
}

/* Dark mode arrows */
body.dark-mode .problem-factors::before,
body.dark-mode .problem-factor:first-child::before,
body.dark-mode .problem-factor:last-child::before {
    background: linear-gradient(to top, #22c55e, transparent);
}

body.dark-mode .problem-factors::after,
body.dark-mode .problem-factor:first-child::after,
body.dark-mode .problem-factor:last-child::after {
    color: #22c55e;
}

/* Ideation Section */
.ideation-questions {
    margin: 3rem 0;
}

.question-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.question-item:hover {
    transform: translateX(5px);
}

.question-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #15705b;
    margin-right: 1rem;
    min-width: 2rem;
}

.question-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000;
}

/* Ideation Section - Side by Side Layout */
.ideation-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.ideation-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ideation-image-container {
    width: 100%;
}

.ideation-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Theme-based image visibility for ideation section */
.ideation-light {
    display: block !important;
}

.ideation-dark {
    display: none !important;
}

body.dark-mode .ideation-light,
[data-theme="dark"] .ideation-light {
    display: none !important;
}

body.dark-mode .ideation-dark,
[data-theme="dark"] .ideation-dark {
    display: block !important;
}

/* Info Consolidation Image Container */
.infoconsolidation-image-container {
    margin: 3rem 0;
    text-align: center;
}

.infoconsolidation-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for info consolidation */
.infoconsolidation-light {
    display: block !important;
}

.infoconsolidation-dark {
    display: none !important;
}

body.dark-mode .infoconsolidation-light,
[data-theme="dark"] .infoconsolidation-light {
    display: none !important;
}

body.dark-mode .infoconsolidation-dark,
[data-theme="dark"] .infoconsolidation-dark {
    display: block !important;
}

/* Card Sort Image Container (in ideation section) */
.cardsort-image-container {
    margin: 3rem 0;
    text-align: center;
}

.cardsort-image {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Card Sort Insights Image Container */
.cardsortinsights-image-container {
    margin: 3rem 0;
    text-align: center;
}

.cardsortinsights-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Lo-Fi Prototypes Image Container */
.lofis-image-container {
    margin: 4rem 0;
    text-align: center;
}

.lofis-image {
    max-width: 95%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Testing Insights Image Container */
.testinginsights-image-container {
    margin: 4rem 0;
    text-align: center;
}

.testinginsights-image {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for testing insights */
.testinginsights-light {
    display: block !important;
}

.testinginsights-dark {
    display: none !important;
}

body.dark-mode .testinginsights-light,
[data-theme="dark"] .testinginsights-light {
    display: none !important;
}

/* Iteration Image Container */
.iteration-image-container {
    margin: 4rem 0;
    text-align: center;
}

.iteration-image {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for iteration */
.iteration-light {
    display: block !important;
}

.iteration-dark {
    display: none !important;
}

body.dark-mode .iteration-light,
[data-theme="dark"] .iteration-light {
    display: none !important;
}

body.dark-mode .iteration-dark,
[data-theme="dark"] .iteration-dark {
    display: block !important;
}

body.dark-mode .testinginsights-dark,
[data-theme="dark"] .testinginsights-dark {
    display: block !important;
}

/* Design Decisions Image Container */
.designdecisions-image-container {
    margin: 4rem 0;
    text-align: center;
}

.designdecisions-image {
    max-width: 95%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for design decisions */
.designdecisions-light {
    display: block !important;
}

.designdecisions-dark {
    display: none !important;
}

body.dark-mode .designdecisions-light,
[data-theme="dark"] .designdecisions-light {
    display: none !important;
}

body.dark-mode .designdecisions-dark,
[data-theme="dark"] .designdecisions-dark {
    display: block !important;
}

/* Hi-Fi Images Container */
.hifi-images-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 4rem 0;
}

.hifistaff-image-container,
.hifipart-image-container {
    width: 100%;
    text-align: center;
}

.hifi-image {
    max-width: 95%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for hi-fi staff */
.hifistaff-light {
    display: block !important;
}

.hifistaff-dark {
    display: none !important;
}

body.dark-mode .hifistaff-light,
[data-theme="dark"] .hifistaff-light {
    display: none !important;
}

body.dark-mode .hifistaff-dark,
[data-theme="dark"] .hifistaff-dark {
    display: block !important;
}

/* Theme-based image visibility for hi-fi participant */
.hifipart-light {
    display: block !important;
}

.hifipart-dark {
    display: none !important;
}

body.dark-mode .hifipart-light,
[data-theme="dark"] .hifipart-light {
    display: none !important;
}

body.dark-mode .hifipart-dark,
[data-theme="dark"] .hifipart-dark {
    display: block !important;
}

/* Theme-based image visibility for hi-fi designs */
.hifi-light {
    display: block !important;
}

.hifi-dark {
    display: none !important;
}

body.dark-mode .hifi-light,
[data-theme="dark"] .hifi-light {
    display: none !important;
}

body.dark-mode .hifi-dark,
[data-theme="dark"] .hifi-dark {
    display: block !important;
}

/* Outcomes Image Container */
.outcomes-image-container {
    margin: 4rem 0;
    text-align: center;
}

.outcomes-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Theme-based image visibility for outcomes */
.outcomes-light {
    display: block !important;
}

.outcomes-dark {
    display: none !important;
}

body.dark-mode .outcomes-light,
[data-theme="dark"] .outcomes-light {
    display: none !important;
}

body.dark-mode .outcomes-dark,
[data-theme="dark"] .outcomes-dark {
    display: block !important;
}

/* Prototyping Image Container */
.prototyping-image-container {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.prototyping-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    transition: all 0.3s ease;
}

.prototyping-image:hover {
    transform: scale(1.02);
}

/* Class Insight Image Container */
.ai-insight-container {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.ai-insight-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    transition: all 0.3s ease;
}

.ai-insight-image:hover {
    transform: scale(1.02);
}

/* Dark mode for ideation */
body.dark-mode .question-item p {
    color: #ffffff;
}

/* Prototyping Section */
.prototyping-diagram {
    margin: 4rem 0;
    text-align: center;
}

.card-sort-diagram {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.card-sort-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.card-sort-image:hover {
    transform: scale(1.02);
}

.card-sort-photos {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.card-sort-photo {
    width: 100vw;
    max-width: none;
    height: auto;
    display: block;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    cursor: zoom-in;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: none;
}

.card-sort-photo:hover {
    transform: scale(1.01);
}

.prototyping-takeaways {
    margin: 4rem 0;
}

.takeaway-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.takeaway-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.takeaway-icon {
    width: 48px;
    height: 48px;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #15705b, #22c55e);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.takeaway-item:hover .takeaway-icon {
    transform: scale(1.1);
}

.takeaway-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000;
}

/* Usability Testing Section */
.usability-insights {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 2rem 0 4rem 0;
}

.insights-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.insights-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color, #000);
    margin-bottom: 0.5rem;
}

.insight-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
}

.insight-card {
    background: #000000;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.insight-card:hover {
    background: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insight-icon {
    background: transparent;
    color: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.insight-card p {
    margin: 0;
    color: #ffffff;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Dark mode for usability testing */
body.dark-mode .insights-category-title {
    color: #ffffff;
}

body.dark-mode .insight-card {
    background: #ffffff;
}

body.dark-mode .insight-card:hover {
    background: #f0f0f0;
}

body.dark-mode .insight-card p {
    color: #000000;
}

body.dark-mode .insight-card .insight-icon {
    color: #000000;
}

body.dark-mode .insight-card .insight-icon svg {
    color: #000000;
}

/* Class page specific insight cards with blue theme */
.ai-insight-card {
    background: #000000;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ai-insight-card:hover {
    background: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-insight-card .insight-icon {
    background: transparent;
    color: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-insight-card .insight-icon svg {
    color: #ffffff;
}

.ai-insight-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-insight-card p {
    margin: 0;
    color: #ffffff;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Dark mode for class insight cards */
body.dark-mode .ai-insight-card {
    background: #ffffff;
}

body.dark-mode .ai-insight-card:hover {
    background: #f0f0f0;
}

body.dark-mode .ai-insight-card h3 {
    color: #000000;
}

body.dark-mode .ai-insight-card p {
    color: #000000;
}

body.dark-mode .ai-insight-card .insight-icon {
    color: #000000;
}

body.dark-mode .ai-insight-card .insight-icon svg {
    color: #000000;
}

/* Research Page Specific Styles */
.research-question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #A0D7DC;
}

body.dark-mode .research-question-text {
    color: #fff;
    background: #2a2a2a;
    border-left-color: #A0D7DC;
}

.pipeline-stages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pipeline-stage {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #A0D7DC;
}

body.dark-mode .pipeline-stage {
    background: #2a2a2a;
    border-left-color: #A0D7DC;
}

.stage-number {
    background: #A0D7DC;
    color: #000;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stage-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

body.dark-mode .stage-content h3 {
    color: #fff;
}

.stage-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

body.dark-mode .stage-content p {
    color: #ccc;
}

.evaluation-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    background: #000000;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #A0D7DC;
}

body.dark-mode .metric-card {
    background: #ffffff;
    border-left-color: #A0D7DC;
}

.metric-card h3 {
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-size: 1.2rem;
}

body.dark-mode .metric-card h3 {
    color: #000000;
}

.metric-card p {
    margin: 0.5rem 0;
    color: #ffffff;
    line-height: 1.6;
}

body.dark-mode .metric-card p {
    color: #000000;
}

.metric-card code {
    background: #333333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ffffff;
}

body.dark-mode .metric-card code {
    background: #f0f0f0;
    color: #000000;
}

.back-to-work-section {
    margin: 4rem 0 2rem 0;
    text-align: center;
}

.back-to-work-content {
    display: flex;
    justify-content: center;
}

/* Sample Pipeline Image - Make it bigger */
.ai-map-container .ai-map-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    display: block;
}

/* Class page specific - Make class-map-container smaller */
.ai-main .ai-map-container .ai-map-image {
    max-width: 700px;
    margin: 1rem auto;
}

/* Context-aware page specific - Center only the "Coming Soon..." text */
.context-aware-vr-page .coming-soon-subtitle {
    text-align: center;
}

.context-aware-vr-page .coming-soon-description {
    text-align: center;
}

/* Feature GIFs - Rounded borders */
.design-features img {
    border-radius: 5px;
    object-fit: cover;
    object-position: center 4%;
}

/* Problem section - Black background in light mode, white in dark mode */
.ai-main #problem {
    background: #000000 !important;
    color: #ffffff !important;
}

.ai-main #problem .section-title,
.ai-main #problem .section-impact,
.ai-main #problem h3,
.ai-main #problem p {
    color: #ffffff !important;
}

body.dark-mode .ai-main #problem {
    background: #ffffff !important;
    color: #000000 !important;
}

body.dark-mode .ai-main #problem .section-title,
body.dark-mode .ai-main #problem .section-impact,
body.dark-mode .ai-main #problem h3,
body.dark-mode .ai-main #problem p {
    color: #000000 !important;
}

/* === MARGIN CASE STUDY PAGE STYLES === */
.margin-page {
    cursor: none;
}

.margin-page * {
    text-decoration: none !important;
    cursor: none !important;
}

.margin-page h1,
.margin-page h2,
.margin-page h3,
.margin-page p,
.margin-page span:not(.challenge-badge) {
    color: inherit !important;
}

/* Margin page cursor - filled circle in light mode, border in dark mode */
body.margin-page .cursor-dot {
    background: #333333;
    border: none;
}

body.margin-page.dark-mode .cursor-dot {
    background: #d0d0d0;
    border: none;
}

.margin-main {
    padding: 8rem 180px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.margin-header {
    margin-bottom: 6rem;
    padding: 4rem 0rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 0;
    right: 0;
    transform: none;
}

.margin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 3rem;
}

.margin-meta {
    flex: 1;
}

.margin-organization {
    font-size: 1.1rem;
    color: #2e2e2e;
    font-weight: 200;
    display: inline-block;
    text-decoration: none !important;
}

.margin-organization:visited {
    color: #2e2e2e;
    text-decoration: none !important;
}

.margin-logo-container {
    margin-top: 2rem;
    text-align: left;
}

.margin-logo {
    max-width: 150px;
    height: auto;
}

.margin-title {
    font-size: 4rem;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    padding-bottom: 2rem;
    color: #111;
    text-decoration: none !important;
}

body.dark-mode .margin-title {
    color: #ffffff;
}

.margin-title:visited {
    color: #111;
    text-decoration: none !important;
}

body.dark-mode .margin-title:visited {
    color: #ffffff;
}

.margin-details {
    display: flex;
    gap: 4rem;
    flex: 1;
}

.margin-detail-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.margin-detail-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .margin-detail-item h3 {
    color: #ffffff;
}

.margin-detail-item p {
    font-size: 0.9rem;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

body.dark-mode .margin-detail-item p {
    color: #ffffff;
}

body.dark-mode .margin-organization {
    color: #ffffff;
}

.margin-section {
    margin-bottom: 9.5rem;
}

.margin-section-title {
    font-size: .8rem;
    font-weight: 200;
    color: #5B4FB8 !important;
    margin: 0 0 2% 0;
    display: inline-block;
    font-family: 'Poppins', sans-serif !important;
}

body.dark-mode .margin-section-title {
    color: #8B7FD8 !important;
}

.margin-section-subtitle {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-decoration: none !important;
}

body.dark-mode .margin-section-subtitle {
    color: #ffffff;
}

.margin-section-subtitle:visited {
    color: #000;
    text-decoration: none !important;
}

body.dark-mode .margin-section-subtitle:visited {
    color: #ffffff;
}

.margin-section-text {
    margin-bottom: 3rem;
    font-size: 0.9rem;
    line-height: 2;
    color: #000;
}

body.dark-mode .margin-section-text {
    color: #ffffff;
}

.margin-section-text p {
    font-size: 0.9rem;
    line-height: 2;
    color: #000;
    margin-bottom: 1rem;
}

body.dark-mode .margin-section-text p {
    color: #ffffff;
}

/* Margin Preview Image */
.margin-preview-container {
    margin: 4rem 0;
    text-align: center;
}

.margin-preview-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body.dark-mode .margin-preview-image {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Margin Image Styling */
.margin-image-container {
    margin: 2rem 0;
    text-align: center;
}

.margin-image {
    width: 70%;
    max-width: 70%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Challenge Components */
.challenge-item {
    margin: 3rem 0;
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.challenge-badge {
    background: #5B4FB8;
    color: #ffffff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 250;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.challenge-badge::before {
    content: '●';
    margin-right: 0.5rem;
    font-size: 0.6rem;
    color: #ffffff !important;
}

body.dark-mode .challenge-badge {
    background: #DCDBEF;
    color: #000000 !important;
}

body.dark-mode .challenge-badge::before {
    color: #000000 !important;
}

.challenge-title {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

body.dark-mode .challenge-title {
    color: #ffffff;
}

.challenge-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #000;
    margin-bottom: 1.5rem;
}

body.dark-mode .challenge-description {
    color: #ffffff;
}

.challenge-solution {
    background: #E8E4F3;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #000;
}

.challenge-solution strong {
    font-weight: 600;
}

body.dark-mode .challenge-solution {
    background: #2D2640;
    color: #ffffff;
}

/* Responsive Design for Margin Page */
@media (max-width: 1024px) {
    .margin-main {
        padding: 6rem 80px;
    }
}

@media (max-width: 768px) {
    .margin-main {
        padding: 0 !important;
    }

    .margin-header {
        margin-bottom: 4rem;
        padding: 8rem 1.5rem 0 1.5rem;
    }

    .margin-header-content {
        flex-direction: column;
        gap: 2rem;
        padding-left: 1rem;
    }

    .margin-meta {
        flex: 1;
    }

    /* Margin details - two column grid like CLASS page */
    .margin-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }

    .margin-detail-column {
        gap: 1.5rem;
    }

    .margin-title {
        font-size: 2.5rem;
        padding-bottom: 1rem;
    }

    .margin-section {
        margin-bottom: 6rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .margin-section-subtitle {
        font-size: 1.5rem;
    }

    /* Larger left padding for all sections */
    .margin-main .section-header {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .margin-main .section-content {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    /* Make margin images larger on mobile */
    .margin-image-container {
        overflow: visible;
        transform: scale(1.1);
    }

    .margin-image {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .margin-main {
        padding: 3rem 20px;
    }

    .margin-title {
        font-size: 2rem;
    }

    .margin-section {
        margin-bottom: 4rem;
    }

    .margin-section-subtitle {
        font-size: 1.3rem;
    }

    .challenge-title {
        font-size: 1rem
    }
    
    .challenge-badge {
    background: #5B4FB8;
    color: #ffffff !important;
    padding: 0.2rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 250;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    }

    .challenge-description {
    font-size: 0.85rem;
    }
    .challenge-solution {
        font-size: 0.85rem;
    }
    .margin-section-title {
        padding-bottom: 2%;
    }
}

/* ===== VANTAGE PROJECT STYLES ===== */

.vantage-main {
    padding: 8rem 180px 2rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.vantage-header {
    margin-bottom: 6rem;
    padding: 4rem 0rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 0;
    right: 0;
    transform: none;
}

.vantage-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 3rem;
}

.vantage-meta {
    flex: 1;
}

.vantage-title {
    font-size: 4rem;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    padding-bottom: 2rem;
    color: #111;
}

body.dark-mode .vantage-title {
    color: #ffffff;
}

.vantage-details {
    display: flex;
    gap: 4rem;
    flex: 1;
}

.vantage-detail-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vantage-detail-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .vantage-detail-item h3 {
    color: #ffffff;
}

.vantage-detail-item p {
    font-size: 0.9rem;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

body.dark-mode .vantage-detail-item p {
    color: #cccccc;
}

.vantage-hero-image {
    width: 100%;
    margin-top: 4rem;
}

.vantage-dashboard-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.vantage-dashboard-image:hover {
    transform: scale(1.01);
}

.vantage-section-title {
    color: #111 !important;
}

body.dark-mode .vantage-section-title {
    color: #ffffff !important;
}

/* Overview Stats */
.overview-stats {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    justify-content: center;
}

.stat-box {
    background: #000000;
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
}

body.dark-mode .stat-box {
    background: #1a1a1a;
    border: 1px solid #333;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
}

/* Research Insights */
.research-insights {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
}

.insight-card {
    flex: 1;
    background: #D3D3D3;
    padding: 2rem;
    border-radius: 12px;
}

body.dark-mode .insight-card {
    background: #2a2a2a;
}

.insight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.insight-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
}

body.dark-mode .insight-text {
    color: #ffffff;
}

/* Directions Container */
.directions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.direction-card {
    background: #D3D3D3;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

body.dark-mode .direction-card {
    background: #2a2a2a;
}

.direction-card.direction-selected {
    border: 2px solid #E89A5A;
}

body.dark-mode .direction-card.direction-selected {
    border: 2px solid #E89A5A;
}

.direction-label {
    background: #000000;
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

body.dark-mode .direction-label {
    background: #ffffff;
    color: #000000;
}

.direction-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 1rem 0;
}

body.dark-mode .direction-card h4 {
    color: #ffffff;
}

.direction-card p {
    color: #000;
    line-height: 1.6;
    margin: 1rem 0;
}

body.dark-mode .direction-card p {
    color: #cccccc;
}

.direction-image-placeholder {
    background: #ffffff;
    min-height: 200px;
    border-radius: 8px;
    margin: 1.5rem 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .direction-image-placeholder {
    background: #ffffff;
}

.direction-challenge,
.direction-rationale {
    font-size: 0.95rem;
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

body.dark-mode .direction-challenge,
body.dark-mode .direction-rationale {
    color: #999;
}

.selected-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #E89A5A;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

body.dark-mode .selected-badge {
    background: #E89A5A;
    color: #ffffff;
}

/* Phases Grid */
.phases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.phase-card {
    background: #D3D3D3;
    padding: 2rem;
    border-radius: 12px;
}

body.dark-mode .phase-card {
    background: #2a2a2a;
}

.phase-badge {
    background: #000000;
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

body.dark-mode .phase-badge {
    background: #ffffff;
    color: #000000;
}

.phase-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin: 0.5rem 0;
}

body.dark-mode .phase-card h4 {
    color: #ffffff;
}

.phase-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0.5rem 0 1rem 0;
    font-style: italic;
}

body.dark-mode .phase-subtitle {
    color: #999;
}

.phase-description {
    color: #000;
    line-height: 1.6;
}

body.dark-mode .phase-description {
    color: #cccccc;
}

/* Radial Menu Example */
.radial-menu-example {
    background: #f5f5f5;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

body.dark-mode .radial-menu-example {
    background: #f5f5f5;
}

.radial-menu-example h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 2rem;
}

body.dark-mode .radial-menu-example h4 {
    color: #000000;
}

.metadata-item {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

body.dark-mode .metadata-item {
    border-bottom: 1px solid #ddd;
}

.metadata-item:last-child {
    border-bottom: none;
}

.metadata-item strong {
    color: #000;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

body.dark-mode .metadata-item strong {
    color: #000000;
}

.metadata-item {
    color: #333;
}

body.dark-mode .metadata-item {
    color: #333333;
}

/* Responsive Styles for Vantage */
@media (max-width: 1024px) {
    .vantage-main {
        padding: 6rem 60px;
    }
    
    .vantage-header-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .vantage-details {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .vantage-main {
        padding: 2rem;
    }

    .vantage-header {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        position: relative;
        left: 0;
        right: 0;
        transform: none;
        padding-left: 0rem;
        padding-right: 2rem;
    }

    .vantage-title {
        font-size: 2.5rem;
    }

    /* Vantage details - two column grid like CLASS page */
    .vantage-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }

    .vantage-detail-column {
        gap: 1.5rem;
    }

    .overview-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .stat-box {
        min-width: auto;
        max-width: 60%;
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .research-insights {
        flex-direction: column;
    }

    .phases-grid {
        grid-template-columns: 1fr;
    }

    .vantage-main #problem .section-content,
    .vantage-main #problem .section-header {
        padding: 0 2rem;
    }

    .vantage-main #problem .section-subtitle {
        font-size: 1.3rem;
        padding-right: 1.5rem;
    }

    .vantage-main #problem .section-text {
        padding-right: 1.5rem;
    }

    .direction-card h4 {
        font-size: 1.2rem;
    }

    .direction-card p {
        font-size: 0.8rem;
    }

    .direction-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .selected-badge {
        font-size: 0.7rem;
        margin-top: 0.2rem;
        padding: 0.5rem 0.8rem;
        background: transparent;
        color: #E89A5A;
    }

    /* Phase styles - mirror direction styles */
    .phase-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .phase-subtitle {
        font-size: 1rem;
    }

    .phase-description {
        font-size: 0.8rem;
    }

    .vantage-main .section-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .vantage-main {
        padding: 1.5rem;
    }

    .vantage-header {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        position: relative;
        left: 0;
        right: 0;
        transform: none;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .metadata-item {
        font-size: 0.75rem;
    }

    .vantage-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    .stat-box {

    }
}

/* Vantage Problem Section - Black background in light mode, white in dark mode */
.vantage-main #problem {
    background: #000000 !important;
    padding: 3rem 0;
    margin: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

body.dark-mode .vantage-main #problem {
    background: #ffffff !important;
}

.vantage-main #problem .section-title,
.vantage-main #problem .section-subtitle,
.vantage-main #problem .section-text,
.vantage-main #problem .section-text p {
    color: #ffffff !important;
}

body.dark-mode .vantage-main #problem .section-title,
body.dark-mode .vantage-main #problem .section-subtitle,
body.dark-mode .vantage-main #problem .section-text,
body.dark-mode .vantage-main #problem .section-text p {
    color: #000000 !important;
}

.vantage-main #problem .section-content {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto;
}

.vantage-main #problem .section-header {
    padding: 0 180px;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

@media (max-width: 1024px) {
    .vantage-main #problem .section-content,
    .vantage-main #problem .section-header {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .vantage-main #problem .section-content,
    .vantage-main #problem .section-header {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .vantage-main #problem .section-content,
    .vantage-main #problem .section-header {
        padding: 0 1.5rem;
    }
    
}

/* Vantage Insights Image */
.vantage-insights-image-container {
    margin: 3rem 0;
    text-align: center;
}

.vantage-insights-image {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .vantage-insights-image-container {
        margin: 2rem 0;
        overflow: visible;
    }

    .vantage-insights-image {
        max-width: 100%;
        transform: scale(1.1);
    }
}

/* Vantage h4 lighter font weight */
.vantage-main .case-study-section h4 {
    font-weight: 400;
}

/* Direction image placeholder updates */
.direction-image-placeholder img {
    max-width: 70%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .direction-image-placeholder img {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .direction-image-placeholder img {
        max-width: 100%;
    }
}

/* ===== ANIMATED DESK ITEMS (NEW VERSION) ===== */

/* Flowerpot with rustling leaves */
.animated-flowerpot {
    position: relative;
    width: 80px;
    height: 100px;
    margin-bottom: 1rem;
}

.flowerpot-pot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 40px;
    background: linear-gradient(to bottom, #B08968 0%, #8B7355 100%);
    border-radius: 0 0 8px 8px;
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.flowerpot-pot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: #9A7B5F;
    border-radius: 4px;
}

.flowerpot-leaves {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 60px;
}

.leaf {
    position: absolute;
    width: 25px;
    height: 35px;
    background: #2D5016;
    border-radius: 50% 0;
    transform-origin: bottom center;
}

.leaf-1 {
    left: 50%;
    top: 0;
    transform: translateX(-50%) rotate(-10deg);
    animation: rustle1 3s ease-in-out infinite;
}

.leaf-2 {
    left: 20%;
    top: 10px;
    transform: translateX(-50%) rotate(-30deg);
    animation: rustle2 3.5s ease-in-out infinite;
}

.leaf-3 {
    right: 10%;
    top: 10px;
    transform: translateX(50%) rotate(30deg) scaleX(-1);
    animation: rustle3 3.2s ease-in-out infinite;
}

.leaf-4 {
    left: 5%;
    top: 25px;
    transform: translateX(-50%) rotate(-45deg);
    background: #3D6B1F;
    animation: rustle1 3.7s ease-in-out infinite 0.5s;
}

.leaf-5 {
    right: 0%;
    top: 25px;
    transform: translateX(50%) rotate(45deg) scaleX(-1);
    background: #3D6B1F;
    animation: rustle2 3.3s ease-in-out infinite 0.7s;
}

.flower-center {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #E8B4B8 0%, #D4848C 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(232, 180, 184, 0.6);
}

@keyframes rustle1 {
    0%, 100% { transform: translateX(-50%) rotate(-10deg); }
    50% { transform: translateX(-50%) rotate(-15deg); }
}

@keyframes rustle2 {
    0%, 100% { transform: translateX(-50%) rotate(-30deg); }
    50% { transform: translateX(-50%) rotate(-25deg); }
}

@keyframes rustle3 {
    0%, 100% { transform: translateX(50%) rotate(30deg) scaleX(-1); }
    50% { transform: translateX(50%) rotate(35deg) scaleX(-1); }
}

/* Tea cup with steam */
.tea-cup-container {
    position: relative;
    width: 60px;
    height: 80px;
    margin-bottom: 1rem;
}

.tea-cup {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 40px;
}

.cup-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(to bottom, #8B4513 0%, #6B3410 100%);
    border-radius: 0 0 8px 8px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.cup-handle {
    position: absolute;
    right: -12px;
    bottom: 8px;
    width: 15px;
    height: 20px;
    border: 3px solid #8B4513;
    border-left: none;
    border-radius: 0 50% 50% 0;
}

.tea-liquid {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 28px;
    background: linear-gradient(to bottom, #A0522D 0%, #8B4513 100%);
    border-radius: 0 0 6px 6px;
}

.steam-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 45px;
}

.steam {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0;
}

.steam-1 {
    transform: translateX(-50%);
    animation: steam-rise 3s ease-in-out infinite;
}

.steam-2 {
    transform: translateX(-70%);
    animation: steam-rise 3s ease-in-out infinite 1s;
}

.steam-3 {
    transform: translateX(-30%);
    animation: steam-rise 3s ease-in-out infinite 2s;
}

@keyframes steam-rise {
    0% {
        bottom: 0;
        opacity: 0;
        transform: translateX(-50%) scale(1);
    }
    20% {
        opacity: 0.8;
    }
    100% {
        bottom: 45px;
        opacity: 0;
        transform: translateX(-50%) scale(1.5);
    }
}

body.dark-mode .steam {
    background: rgba(200, 200, 200, 0.5);
}

/* Spinning record player */
.record-player-mini {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

.record-player-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 12px;
    background: linear-gradient(to bottom, #5A5A5A 0%, #3A3A3A 100%);
    border-radius: 4px;
}

.vinyl-record-spinning {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
    border-radius: 50%;
    animation: spin-record 3s linear infinite;
}

.record-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #903232 0%, #6B2424 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 2px #333;
}

.record-grooves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.record-grooves::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.tone-arm-mini {
    position: absolute;
    top: 15px;
    right: 5px;
    width: 25px;
    height: 3px;
    background: linear-gradient(to right, #666 0%, #999 100%);
    border-radius: 2px;
    transform-origin: right center;
    transform: rotate(-35deg);
}

.tone-arm-mini::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #903232;
    border-radius: 50%;
}

@keyframes spin-record {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Responsive adjustments for animated items */
@media (max-width: 768px) {
    .animated-flowerpot,
    .tea-cup-container,
    .record-player-mini {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .animated-flowerpot,
    .tea-cup-container,
    .record-player-mini {
        transform: scale(0.7);
    }
}

/* Desk Items Container */
.desk-items {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

/* Ledge Items - Clock and Cup on the same shelf */
.ledge-items {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

/* Digital Clock Container */
.digital-clock-container {
    position: absolute;
    top: 50px;
    left: 10px;
    z-index: 10;
}

.digital-clock {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 2px solid #4a4a4a;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.clock-display {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow:
        0 0 10px rgba(255, 107, 107, 0.5),
        0 0 20px rgba(255, 107, 107, 0.3);
    letter-spacing: 0.08em;
    user-select: none;
}

/* Clock tooltip positioning */
.clock-tooltip {
    top: -1.8rem;
    left: 50%;
    margin-left: -5.5ch;
}

.digital-clock-container:hover .clock-tooltip {
    opacity: 1;
    width: auto;
    animation: typewriter 0.6s steps(25) forwards;
    transition: opacity 0.2s ease;
}

/* Dark mode for clock */
body.dark-mode .digital-clock {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-color: #333;
}

body.dark-mode .clock-display {
    color: #ff8787;
}

/* Teapot Container */
.teapot-container {
    position: relative;
    width: auto;
}

.teapot-container img {
    width: auto;
    max-width: 200px;
    height: auto;
    display: block;
}

/* Record Player Container */
.record-player-container {
    position: relative;
    width: auto;
    margin-top: 35px;
    align-self: flex-end;
}

.record-player-container img {
    width: auto;
    max-width: 80px;
    height: auto;
    display: block;
}

/* AR Goggles */
.ar-goggles {
    position: absolute;
    top: 5%;
    right: -5%;
    width: auto;
}

.ar-goggles img {
    width: auto;
    max-width: 120px;
    height: auto;
    display: block;
    transform-origin: top center;
    animation: goggles-swing 3s ease-in-out infinite;
}

@keyframes goggles-swing {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

@media (max-width: 768px) {
    .teapot-container img,
    .record-player-container img {
        max-width: 150px;
    }

    .ar-goggles img {
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .teapot-container img,
    .record-player-container img {
        max-width: 120px;
    }

    .ar-goggles {
        right: -15%;
    }

    .ar-goggles img {
        max-width: 70px;
    }

    .digital-clock-container {
        top: 30px;
    }

    .digital-clock {
        padding: 3px 6px;
    }

    .clock-display {
        font-size: 0.9rem;
    }
}

/* Spinning record overlay positioned over the record player */
.setup-record-container {
    position: absolute;
    bottom: 25%;
    right: 16%;
    width: 57px;
    height: 57px;
    pointer-events: none;
}

.setup-spinning-record {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 170deg,
            rgba(255, 255, 255, 0.1) 170deg,
            rgba(255, 255, 255, 0.1) 180deg
        ),
        radial-gradient(circle at center,
            #000000 0%,
            #000000 25%,
            #903333 25%,
            #903333 100%
        );
    box-shadow:
        inset 0 0 3px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.3);
    animation: record-spin 2s linear infinite;
}

/* Black center label */
.setup-spinning-record::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: #000000;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Small white center circle */
.setup-spinning-record::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffffff;
    z-index: 2;
}

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

body.dark-mode .setup-spinning-record {
    background:
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 170deg,
            rgba(255, 255, 255, 0.1) 170deg,
            rgba(255, 255, 255, 0.1) 180deg
        ),
        radial-gradient(circle at center,
            #000000 0%,
            #000000 25%,
            #903333 25%,
            #903333 100%
        );
}

/* Steam container positioned over the teapot */
.setup-steam-container {
    position: absolute;
    bottom: 42%;
    right: 20%;
    width: 20px;
    height: 50px;
    pointer-events: none;
}

/* Steam wisps */
.setup-steam {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 15px;
    background: rgba(100, 100, 100, 0.6);
    border-radius: 50%;
    filter: blur(3px);
    opacity: 0;
}

.setup-steam-1 {
    transform: translateX(-50%);
    animation: setup-steam-rise 4s ease-in-out infinite;
}

.setup-steam-2 {
    transform: translateX(-70%);
    animation: setup-steam-rise 4s ease-in-out infinite 1.5s;
}

.setup-steam-3 {
    transform: translateX(-30%);
    animation: setup-steam-rise 4s ease-in-out infinite 3s;
}

@keyframes setup-steam-rise {
    0% {
        bottom: 0;
        opacity: 0;
        transform: translateX(-50%) scale(1);
    }
    20% {
        opacity: 0.6;
        transform: translateX(-55%) scale(1.05);
    }
    40% {
        transform: translateX(-45%) scale(1.1);
    }
    60% {
        transform: translateX(-55%) scale(1.15);
    }
    80% {
        opacity: 0.3;
        transform: translateX(-45%) scale(1.25);
    }
    100% {
        bottom: 50px;
        opacity: 0;
        transform: translateX(-50%) scale(1.3);
    }
}

body.dark-mode .setup-steam {
    background: rgba(200, 200, 200, 0.5);
}

/* Responsive adjustments for steam position and spinning record */
@media (max-width: 768px) {
    .setup-record-container {
        width: 38px;
        height: 38px;
        bottom: 7%;
        right: 12%;
    }

    .setup-spinning-record::before {
        width: 5px;
        height: 5px;
    }

    .setup-steam-container {
        bottom: 58%;
        right: 20%;
        width: 16px;
        height: 40px;
    }

    .setup-steam {
        width: 5px;
        height: 12px;
    }
    
    @keyframes setup-steam-rise {
        0% {
            bottom: 0;
            opacity: 0;
            transform: translateX(-50%) scale(1);
        }
        20% {
            opacity: 0.6;
        }
        100% {
            bottom: 40px;
            opacity: 0;
            transform: translateX(-50%) scale(1.3);
        }
    }
}

@media (max-width: 480px) {
    .setup-record-container {
        width: 85px;
        height: 85px;
        bottom: 25%;
        right: 15%;
    }

    .setup-spinning-record::before {
        width: 4px;
        height: 4px;
    }

    .setup-steam-container {
        bottom: 58%;
        right: 20%;
        width: 12px;
        height: 30px;
    }

    .setup-steam {
        width: 4px;
        height: 10px;
    }
    
    @keyframes setup-steam-rise {
        0% {
            bottom: 0;
            opacity: 0;
            transform: translateX(-50%) scale(1);
        }
        20% {
            opacity: 0.6;
        }
        100% {
            bottom: 30px;
            opacity: 0;
            transform: translateX(-50%) scale(1.3);
        }
    }
}

/* ===== PLAYGROUND PAGE ===== */
.playground-main {
    padding: 8rem 60px;
    min-height: calc(100vh - 200px);
    background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
}

body.dark-mode .playground-main {
    background-image: radial-gradient(circle, #404040 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
}

/* Playground page header and footer dots */
body.playground-page .header {
    background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: transparent;
}

body.playground-page footer {
    background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: transparent;
}

body.playground-page.dark-mode .header {
    background-image: radial-gradient(circle, #404040 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: transparent;
}

body.playground-page.dark-mode footer {
    background-image: radial-gradient(circle, #404040 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: transparent;
}

.playground-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.playground-title {
    font-family: 'Space Grotesk', 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 2rem 0;
    padding: 0;
    color: #000;
}

.playground-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #666;
}

body.dark-mode .playground-title {
    color: #fff;
}

body.dark-mode .playground-subtitle {
    color: #aaa;
}

.playground-canvas {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 3rem;
}

.playground-item {
    position: absolute;
    width: 200px;
    height: 250px;
    background-color: #d9d9d9;
    border-radius: 5px;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.playground-item img,
.playground-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    pointer-events: none;
    user-select: none;
}

.playground-item:active {
    cursor: grabbing;
}

.playground-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.playground-item.clicked-forward {
    z-index: 1000 !important;
}

.playground-item:active {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .playground-item {
    background-color: #4a4a4a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .playground-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .playground-item:active {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Expand button on playground image cards */
.pg-expand-btn {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.playground-item:hover .pg-expand-btn {
    opacity: 0.8;
}

.pg-expand-btn:hover,
.pg-expand-btn.active {
    opacity: 1 !important;
}

/* Fixed-position popup for playground (escapes overflow:hidden) */
.pg-popup {
    position: fixed !important;
    z-index: 10000;
}

/* Playground fade-in animations */
.playground-fade-in {
    opacity: 0 !important;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.playground-title.playground-fade-in,
.playground-subtitle.playground-fade-in {
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.playground-fade-in.loaded {
    opacity: 1 !important;
}

.playground-title.playground-fade-in.loaded,
.playground-subtitle.playground-fade-in.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.playground-fade-in.playground-delay-1 {
    transition-delay: 0.2s;
}
.playground-fade-in.playground-delay-2 {
    transition-delay: 0.4s;
}
.playground-fade-in.playground-delay-3 {
    transition-delay: 0.6s;
}
.playground-fade-in.playground-delay-4 {
    transition-delay: 0.8s;
}
.playground-fade-in.playground-delay-5 {
    transition-delay: 1.0s;
}
.playground-fade-in.playground-delay-6 {
    transition-delay: 1.2s;
}
.playground-fade-in.playground-delay-7 {
    transition-delay: 1.4s;
}
.playground-fade-in.playground-delay-8 {
    transition-delay: 1.6s;
}
.playground-fade-in.playground-delay-9 {
    transition-delay: 1.8s;
}
.playground-fade-in.playground-delay-10 {
    transition-delay: 2.0s;
}
.playground-fade-in.playground-delay-11 {
    transition-delay: 2.2s;
}
.playground-fade-in.playground-delay-12 {
    transition-delay: 2.4s;
}
.playground-fade-in.playground-delay-13 {
    transition-delay: 2.6s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .playground-section {
        padding: 0;
    }

    .playground-title {
        font-size: 2.5rem;
    }

    .playground-canvas {
        height: 550px;
    }

    .playground-item {
        width: 180px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .playground-main {
        padding: 4rem 3rem;
        background-position: 0 0;
    }

    .playground-section {
        padding: 0;
    }

    .playground-title {
        font-size: 2.2rem;
    }

    .playground-subtitle {
        font-size: 0.85rem;
        margin-bottom: 3rem;
    }

    .playground-canvas {
        height: 1200px;
        margin-top: 2rem;
    }

    .playground-item {
        width: 140px;
        height: 180px;
    }

    /* Adjust positioning to prevent overlap and cutoff */
    .playground-item[style*="left: 58%"] {
        left: 45% !important;
    }

    .playground-item[style*="left: 70%"],
    .playground-item[style*="left: 72%"] {
        left: 50% !important;
    }

    .playground-item[style*="left: 78%"] {
        left: 10% !important;
        top: 85% !important;
    }
}

@media (max-width: 480px) {
    .playground-main {
        padding: 2rem;
        background-position: 0 0;
    }

    .playground-section {
        padding: 0;
    }

    .playground-main {
        padding: 1.5rem;
    }

    .playground-title {
        font-size: 1.8rem;
    }

    .playground-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .playground-canvas {
        height: 1000px;
        overflow: hidden;
    }

    .playground-item {
        width: 110px;
        height: 140px;
        border-radius: 6px;
        /* Constrain items to stay within viewport */
        max-width: calc(100vw - 60px);
    }

    /* Override inline left and top positions for mobile to prevent overlap and cutoff */
    /* Row 1 - top: 0-15% */
    .playground-item[style*="top: 5%"] {
        top: 5% !important;
    }

    .playground-item[style*="top: 2%"] {
        top: 2% !important;
        left: 50% !important;
    }

    .playground-item[style*="top: 8%"] {
        top: 12% !important;
        left: 55% !important;
    }

    .playground-item[style*="top: 12%"] {
        left: 20% !important;
        top: 18% !important;
    }

    /* Row 2 - top: 30-50% */
    .playground-item[style*="top: 35%"] {
        top: 32% !important;
    }

    .playground-item[style*="top: 32%"] {
        left: 10% !important;
        top: 45% !important;
    }

    .playground-item[style*="top: 40%"] {
        left: 35% !important;
        top: 50% !important;
    }

    /* Row 3 - top: 55-70% */
    .playground-item[style*="top: 55%"] {
        left: 55% !important;
        top: 60% !important;
    }

    .playground-item[style*="top: 58%"] {
        left: 48% !important;
        top: 65% !important;
    }

    .playground-item[style*="top: 62%"] {
        top: 70% !important;
    }

    /* Row 4 - top: 68%+ */
    .playground-item[style*="top: 68%"] {
        top: 78% !important;
    }

    .playground-item[style*="top: 75%"] {
        left: 40% !important;
        top: 85% !important;
    }
}

/* ===============================================
   INTERACTIVE MODE TOGGLE SYSTEM
   =============================================== */

.mode-toggle-container {
    position: absolute;
    bottom: 10rem;
    right: 4rem;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: auto;
}

/* Mode Toggle Header */
.mode-toggle-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    text-align: right;
    margin-bottom: -0.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

body.dark-mode .mode-toggle-header {
    color: rgba(255, 255, 255, 0.6);
}

/* Mode Toggle Buttons - Pill Shape */
.mode-toggle-buttons {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

body.dark-mode .mode-toggle-buttons {
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mode-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    font-size: 0.85rem;
    font-weight: 200;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

body.dark-mode .mode-btn {
    color: #999;
}

.mode-btn:hover:not(.active) {
    color: #000;
}

body.dark-mode .mode-btn:hover:not(.active) {
    color: #fff;
}

.mode-btn.active {
    background: #000;
    color: #fff;
}

body.dark-mode .mode-btn.active {
    background: #fff;
    color: #000;
}

/* Mode Panels */
.mode-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    min-width: 300px;
    max-width: 300px;
    pointer-events: auto;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mode-panel.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animation keyframes for panel entrance */
@keyframes panelSlideIn {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.99);
    }
    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.005);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes panelSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(6px) scale(0.99);
    }
}

.mode-panel.animate-in {
    animation: panelSlideIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.mode-panel.animate-out {
    animation: panelSlideOut 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.design-panel,
.research-panel,
.dev-panel {
    height: 280px;
}

body.dark-mode .mode-panel {
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.mode-panel h3 {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
}

body.dark-mode .mode-panel h3 {
    color: #fff;
}

/* Design Mode Controls */
.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #666;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

body.dark-mode .control-group label {
    color: #999;
}

.control-group input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    padding: 0;
    -webkit-appearance: none;
}

.control-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 8px;
}

.control-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

/* Style the color picker dialog */
.control-group input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 8px;
}

input[type="color"]::-webkit-color-picker-panel {
    border-radius: 12px;
}

body.dark-mode .control-group input[type="color"] {
    background: #1a1a1a;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
    outline: none;
    -webkit-appearance: none;
}

body.dark-mode .control-group input[type="range"] {
    background: rgba(255, 255, 255, 0.2);
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

body.dark-mode .control-group input[type="range"]::-webkit-slider-thumb {
    background: #fff;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: none;
}

body.dark-mode .control-group input[type="range"]::-moz-range-thumb {
    background: #fff;
}

.reset-btn, .execute-btn {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

body.dark-mode .reset-btn,
body.dark-mode .execute-btn {
    background: #fff;
    color: #000;
}

.reset-btn:hover, .execute-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.dark-mode .reset-btn:hover,
body.dark-mode .execute-btn:hover {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Dev Mode Controls - Code Editor */
.code-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.3;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: auto;
}

body.dark-mode .code-editor {
    background: rgba(255, 255, 255, 0.03);
}

/* Dev mode code lines */
.dev-code-line {
    display: block;
    white-space: nowrap;
}

.dev-code-line.has-comment {
    margin-top: 0.25rem;
    margin-bottom: -0.1rem;
}

.dev-code-line.indent-1 {
    padding-left: 1.5em;
}

.dev-code-line.indent-2 {
    padding-left: 3em;
}

/* Variable name with fixed width for alignment */
.code-var {
    display: inline-block;
    width: 85px;
}

.dev-code-line.indent-2:has(.code-input) {
    display: flex;
    align-items: center;
}

.code-keyword {
    color: #8B3A8B;
    font-weight: 600;
}

body.dark-mode .code-keyword {
    color: #C586C0;
}

.code-class {
    color: #267F99;
    font-weight: 600;
}

body.dark-mode .code-class {
    color: #4EC9B0;
}

.code-function {
    color: #795E26;
}

body.dark-mode .code-function {
    color: #DCDCAA;
}

.code-comment {
    color: #008000;
    font-style: italic;
    font-size: 0.7rem;
}

body.dark-mode .code-comment {
    color: #6A9955;
}

.code-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0.15rem 0.35rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #098658;
    font-weight: 600;
    width: 50px;
    text-align: center;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

body.dark-mode .code-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #B5CEA8;
}

.code-input:focus {
    outline: none;
    border-color: #000;
    background: rgba(0, 0, 0, 0.08);
}

body.dark-mode .code-input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.code-input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.code-error {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #e74c3c;
    display: none;
}

.code-error.show {
    display: block;
}

/* Research Mode Controls */
.research-tools {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

body.dark-mode .tool-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

.tool-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

body.dark-mode .tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tool-btn.active {
    background: #000;
    color: #fff;
}

body.dark-mode .tool-btn.active {
    background: #fff;
    color: #000;
}

.research-content textarea {
    width: 100%;
    min-height: 150px;
    padding: 0.75rem;
    border: none;
    outline: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    resize: none;
    background: white;
    color: #000;
}

body.dark-mode .research-content textarea {
    background: #1a1a1a;
    color: #fff;
}

#research-distance {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.dark-mode #research-distance {
    background: rgba(255, 255, 255, 0.03);
}

#research-distance p {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: #666;
}

body.dark-mode #research-distance p {
    color: #999;
}

#distance-result {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    white-space: pre-line;
    text-align: left;
}

body.dark-mode #distance-result {
    color: #fff;
}


/* Custom Cursors for Each Mode */
/* Hide default cursor dot when mode is active */
body.design-mode .cursor-dot,
body.dev-mode .cursor-dot,
body.research-mode .cursor-dot {
    display: none;
}

/* Mobile Responsiveness - Hide mode toggle on tablets and phones */
@media (max-width: 1024px) {
    .mode-toggle-container {
        display: none;
    }
}


