/* ========================================
   MOBILE-SPECIFIC STYLES
   Only loaded on mobile devices
   ======================================== */

@media (max-width: 768px) {
  /* Force loader to be visible on mobile */
  .site-loader {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background: #000 !important;
    transition: opacity 0.6s ease, visibility 0.6s ease !important;
  }

  /* Allow loader to hide when loaded */
  .site-loader.loaded {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .loader-svg {
    width: 100px !important;
    height: 100px !important;
    display: block !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
  }

  .loader-circle {
    display: block !important;
    fill: none !important;
    stroke: rgba(255,255,255,0.8) !important;
    stroke-width: 2 !important;
    animation: drawCircle 2.5s ease-in-out infinite !important;
    -webkit-animation: drawCircle 2.5s ease-in-out infinite !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
  }

  @keyframes drawCircle {
    0% { stroke-dasharray: 0, 314; opacity: 0.3; }
    100% { stroke-dasharray: 314, 314; opacity: 0.3; }
  }

  @-webkit-keyframes drawCircle {
    0% { stroke-dasharray: 0, 314; opacity: 0.3; }
    100% { stroke-dasharray: 314, 314; opacity: 0.3; }
  }

  /* Mobile Hero Video Element */
  .mobile-hero-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0.9 !important;
    filter: brightness(1.3) contrast(1.1) !important;
  }

  /* Hero Title Section - Mobile */
  .hero-title {
    position: relative !important;
    z-index: 2 !important;
    padding: 8rem 1.5rem 0 1.5rem !important;
    text-align: center !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
  }

  .main-headline {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9) !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9) !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* Navigation - Mobile */
  .top-nav {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 100 !important;
  }

  .nav-logo {
    font-size: 1.25rem !important;
  }

  /* HIDE ALL DESKTOP ELEMENTS COMPLETELY */
  .mobile-warning-overlay {
    display: none !important;
  }

  /* Keep the main container but reset its styles for mobile */
  .work-grid,
  .main-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 0 1rem 4rem 1rem !important;
    height: auto !important;
    min-height: 100vh !important;
    background: transparent !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* Hide ALL desktop cards */
  .card-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Mobile cards will be added via JS - style them here */
  .mobile-card {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto 2rem auto !important;
    background: rgba(18, 18, 18, 0.6) !important;
    border: 1px solid rgba(221, 132, 72, 0.15) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 2 !important;
  }

  .mobile-card-header-section {
    padding: 1.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.01) !important;
  }

  .mobile-card-header {
    color: rgba(221, 132, 72, 0.8) !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 0.75rem !important;
    font-weight: 600 !important;
  }

  .mobile-card-title {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }

  .mobile-card-description {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  .mobile-card-projects {
    padding: 1.5rem !important;
  }

  .mobile-section-title {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
  }

  /* Match desktop project card styling */
  .mobile-project-card {
    display: flex !important;
    gap: 20px !important;
    padding: 20px !important;
    margin-bottom: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-left: 2px solid rgba(221, 132, 72, 0.3) !important;
    border-radius: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
  }

  .mobile-project-card:active {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left-color: rgba(221, 132, 72, 0.8) !important;
    padding-left: 24px !important;
  }

  .mobile-project-card::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 2px !important;
    background: linear-gradient(to bottom, transparent, rgba(221, 132, 72, 0.5), transparent) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }

  .mobile-project-card:active::before {
    opacity: 1 !important;
  }

  .project-number {
    flex-shrink: 0 !important;
    font-size: 1.8em !important;
    font-weight: 300 !important;
    color: rgba(221, 132, 72, 0.6) !important;
    line-height: 1 !important;
    font-family: 'Courier New', monospace !important;
    min-width: 40px !important;
  }

  .project-details {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .project-title {
    font-size: 0.95em !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    letter-spacing: 0.01em !important;
  }

  .project-description {
    font-size: 0.75em !important;
    opacity: 0.5 !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: white !important;
  }

  .project-tags {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .tech-badge {
    font-size: 0.65em !important;
    padding: 4px 10px !important;
    background: rgba(221, 132, 72, 0.1) !important;
    border: 1px solid rgba(221, 132, 72, 0.2) !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.02em !important;
  }

  /* Frontend card - orange colors (default) */
  .mobile-card[data-category="frontend"] .mobile-card-title {
    background: linear-gradient(135deg, rgba(221, 132, 72, 1), rgba(251, 191, 36, 0.9)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  /* Backend card - blue colors */
  .mobile-card[data-category="backend"] .mobile-card-header {
    color: rgba(59, 130, 246, 0.8) !important;
  }

  .mobile-card[data-category="backend"] .mobile-card-title {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(147, 197, 253, 0.9)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .mobile-card[data-category="backend"] .mobile-project-card {
    border-left-color: rgba(59, 130, 246, 0.3) !important;
  }

  .mobile-card[data-category="backend"] .mobile-project-card:active {
    border-left-color: rgba(59, 130, 246, 0.8) !important;
  }

  .mobile-card[data-category="backend"] .mobile-project-card::before {
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.5), transparent) !important;
  }

  .mobile-card[data-category="backend"] .project-number {
    color: rgba(59, 130, 246, 0.6) !important;
  }

  .mobile-card[data-category="backend"] .tech-badge {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
  }

  /* Architecture card - purple colors */
  .mobile-card[data-category="architecture"] .mobile-card-header {
    color: rgba(168, 85, 247, 0.8) !important;
  }

  .mobile-card[data-category="architecture"] .mobile-card-title {
    background: linear-gradient(135deg, rgba(168, 85, 247, 1), rgba(216, 180, 254, 0.9)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .mobile-card[data-category="architecture"] .mobile-project-card {
    border-left-color: rgba(59, 130, 246, 0.3) !important;
  }

  .mobile-card[data-category="backend"] .mobile-project-card:active {
    border-left-color: rgba(59, 130, 246, 0.8) !important;
  }

  .mobile-card[data-category="backend"] .mobile-project-card::before {
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.5), transparent) !important;
  }

  .mobile-card[data-category="backend"] .project-number {
    color: rgba(59, 130, 246, 0.6) !important;
  }

  .mobile-card[data-category="backend"] .tech-badge {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
  }

  /* Architecture card - purple colors */
  .mobile-card[data-category="architecture"] .mobile-project-card {
    border-left-color: rgba(168, 85, 247, 0.3) !important;
  }

  .mobile-card[data-category="architecture"] .mobile-project-card:active {
    border-left-color: rgba(168, 85, 247, 0.8) !important;
  }

  .mobile-card[data-category="architecture"] .mobile-project-card::before {
    background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.5), transparent) !important;
  }

  .mobile-card[data-category="architecture"] .project-number {
    color: rgba(168, 85, 247, 0.6) !important;
  }

  .mobile-card[data-category="architecture"] .tech-badge {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.2) !important;
  }

  /* Mobile expanded modal */
  .mobile-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    z-index: 2000 !important;
    display: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mobile-modal.active {
    display: block !important;
  }

  .mobile-modal-content {
    padding: 60px 20px 20px 20px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
  }

  .mobile-modal-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 2001 !important;
  }

  /* Disable background video on mobile */
  #bg-video {
    display: none !important;
  }

  /* Simplify hero */
  .hero-title {
    font-size: 2rem;
    padding: 2rem 1rem;
  }

  /* Make sure slideshows work */
  .mobile-project-card {
    min-height: 80px;
    margin-bottom: 0.5rem;
    touch-action: manipulation;
  }

  /* Ensure slideshows work on mobile - FULL SCREEN */
  .slideshow-modal {
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    background: #000000 !important;
  }

  .slideshow-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .slideshow-container {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
  }

  .slideshow-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    position: relative !important;
  }

  .slide-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
  }

  .slide,
  .slideshow-slide {
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 80px 10px 20px 10px !important;
    gap: 1rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* For slides with lots of text content (last slide), allow scrolling */
  .slide:last-child {
    justify-content: flex-start !important;
    padding: 60px 20px 80px 20px !important;
  }

  /* Make images and videos HUGE - fill most of screen */
  .slide img,
  .slide video,
  .slideshow-slide img,
  .slideshow-slide video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 75vh !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  /* For portrait images (mobile screenshots), use width-based sizing */
  .slide .slide-media,
  .slideshow-slide .slide-media {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .slide-media img,
  .slide-media video {
    width: 90% !important;
    max-width: 90% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  /* Special handling for Eco Coin slide 4 (tall phone mockup) */
  #slideshow-modal-eco .slide[data-slide="4"] {
    justify-content: flex-start !important;
    padding-top: 180px !important;
    padding-bottom: 20px !important;
  }

  #slideshow-modal-eco .slide[data-slide="4"] .slide-media {
    flex-shrink: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  #slideshow-modal-eco .slide[data-slide="4"] .slide-media img {
    width: 70% !important;
    max-width: 70% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 500px !important;
  }

  #slideshow-modal-eco .slide[data-slide="4"] .slide-info {
    flex-shrink: 0 !important;
    margin-top: 0.5rem !important;
  }

  /* Career Nexus mobile slide (slide 5) - tall phone mockup */
  #slideshow-modal-career .slide[data-slide="5"] {
    justify-content: flex-start !important;
    padding-top: 180px !important;
    padding-bottom: 20px !important;
  }

  #slideshow-modal-career .slide[data-slide="5"] .slide-media {
    flex-shrink: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  #slideshow-modal-career .slide[data-slide="5"] .slide-media img {
    width: 70% !important;
    max-width: 70% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 500px !important;
  }

  #slideshow-modal-career .slide[data-slide="5"] .slide-info {
    flex-shrink: 0 !important;
    margin-top: 0.5rem !important;
  }

  /* Mobile Frontend Slides Text Styling - All 3 Slides */
  #slideshow-modal .slide {
    padding: 1rem !important;
    overflow-y: auto !important;
  }

  /* Architecture Diagrams - Mobile Optimizations */
  .architecture-diagram {
    width: 100% !important;
    overflow: visible !important;
    position: relative !important;
    max-height: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 20px 10px !important;
  }

  .architecture-diagram svg,
  .arch-svg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  #slideshow-modal .slide-media {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    height: auto !important;
    margin-bottom: 1.5rem !important;
    margin-top: 2rem !important;
    overflow: visible !important;
    position: relative !important;
  }

  #slideshow-modal .slide-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: none !important;
  }

  #slideshow-modal .slide-info {
    padding: 1.5rem 1.25rem !important;
    text-align: center !important;
  }

  #slideshow-modal .slide-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em !important;
  }

  #slideshow-modal .slide-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 1.25rem !important;
    text-align: center !important;
  }

  /* Style tech-pill badges to match desktop */
  .tech-pill {
    padding: 0.5rem 1rem !important;
    background: rgba(0, 200, 255, 0.1) !important;
    border: 1px solid rgba(0, 200, 255, 0.3) !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    color: rgba(0, 200, 255, 0.9) !important;
    font-weight: 500 !important;
    display: inline-block !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .slide-tech-stack {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    justify-content: center !important;
  }

  /* Tech highlight badges */
  #slideshow-modal .tech-highlight-badge {
    font-size: 0.85rem !important;
    padding: 0.6rem 1.2rem !important;
  }

  #slideshow-modal .slide-tech-highlight {
    margin-top: 1rem !important;
  }

  /* For last slide with breakdown, make images smaller to allow scrolling */
  .slide:last-child img,
  .slide:last-child video {
    height: auto !important;
    max-height: 50vh !important;
  }

  /* Text content - compact */
  .slide p,
  .slide h2,
  .slide h3,
  .slideshow-slide p,
  .slideshow-slide h2,
  .slideshow-slide h3 {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    padding: 0 0.5rem !important;
    margin: 0.1rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .slide h2,
  .slideshow-slide h2 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.2rem !important;
  }

  .slide h3,
  .slideshow-slide h3 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: rgba(221, 132, 72, 0.9) !important;
  }

  /* Larger touch targets for navigation */
  .slideshow-nav {
    width: 60px !important;
    height: 60px !important;
    font-size: 2rem !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    z-index: 100 !important;
  }

  .slideshow-nav.prev {
    left: 10px !important;
  }

  .slideshow-nav.next {
    right: 10px !important;
  }

  .slideshow-close,
  .close-modal {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.5rem !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 200 !important;
    cursor: pointer !important;
  }

  /* Slide indicators at bottom */
  .slideshow-indicators {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 12px !important;
    z-index: 100 !important;
  }

  .indicator {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
  }

  .indicator.active {
    background: rgba(221, 132, 72, 1) !important;
    width: 12px !important;
    height: 12px !important;
  }

  /* Simplify hero section */
  .hero-title {
    display: block !important;
    padding: 4rem 1.5rem 3rem 1.5rem !important;
    text-align: center !important;
    background: transparent !important;
    margin-top: 60px !important; /* Add space for nav */
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .main-headline {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: white !important;
    line-height: 1.2 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  .hero-description {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px !important;
    margin: 0 auto 2rem auto !important;
    padding: 0 1.5rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 1.5rem !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .stat-item {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Make sure nav is visible and fixed */
  .top-nav {
    display: flex !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    padding: 1rem 1.5rem !important;
  }

  .nav-content {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
  }

  .nav-logo {
    font-size: 1.25rem !important;
    flex-shrink: 0 !important;
  }

  .nav-links {
    display: flex !important;
    gap: 1.5rem !important;
    font-size: 0.9rem !important;
  }

  .nav-link {
    white-space: nowrap !important;
  }

  /* Remove complex animations */
  * {
    animation: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
  }

  /* Disable background video on mobile */
  #bg-video {
    display: none !important;
  }

  /* Ensure body has dark background */
  body {
    background: #000000 !important;
    min-height: 100vh !important;
  }

  /* Design & Prototyping page - demo button optimization */
  .top-bar {
    height: 56px !important;
    padding: 0 1rem !important;
  }

  .demo-button {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    gap: 0.35rem !important;
    border-radius: 6px !important;
  }

  .demo-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25) !important;
  }

  .breadcrumb {
    font-size: 0.75rem !important;
    gap: 0.5rem !important;
  }

  /* About Section - Mobile Optimization */
  .about-section {
    padding: 3rem 1rem !important;
    margin-top: 2rem !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .about-header {
    margin-bottom: 2.5rem !important;
    padding: 0 0.5rem !important;
  }

  .about-title {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
  }

  .about-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .about-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    grid-template-columns: none !important;
  }

  .about-video-container {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    margin: 0 !important;
  }

  .about-video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .about-content-wrapper {
    gap: 1.5rem !important;
  }

  .about-story,
  .about-skills {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  .story-title,
  .skills-title {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
  }

  .story-text {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
  }

  .skills-grid {
    gap: 1.5rem !important;
  }

  .skill-category {
    padding-bottom: 1.5rem !important;
  }

  .category-name {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }

  .skill-list {
    font-size: 0.85rem !important;
  }

  .skill-list li {
    margin-bottom: 0.5rem !important;
  }

  /* AI Integration Section - ChatGPT Dark Mode Mobile */
  .ai-integration-section {
    padding: 3rem 1.25rem !important;
    background: #000 !important;
    min-height: 80vh !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* Mermaid Diagrams - Force Vertical Layout on Mobile */
  .mermaid-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 20px 10px !important;
    max-width: 100% !important;
    display: none !important; /* Hide complex diagrams on mobile */
  }

  /* Mobile-Friendly Diagram Alternative */
  .diagram-section {
    padding: 3rem 1.5rem !important;
  }

  .diagram-section::after {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem auto 0 !important;
  }

  /* Create simplified mobile diagram using pseudo-content */
  .section-subtitle::after {
    content: '' !important;
    display: block !important;
    margin-top: 2rem !important;
    padding: 2rem 1rem !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }

  /* Add mobile-specific simplified architecture flow */
  .mobile-arch-flow {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 2rem 1rem !important;
    background: rgba(0,0,0,0.3) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }

  .mobile-arch-layer {
    padding: 1.5rem !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 12px !important;
    border-left: 3px solid !important;
    position: relative !important;
  }

  .mobile-arch-layer::after {
    content: '↓' !important;
    position: absolute !important;
    bottom: -1.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 1.5rem !important;
    opacity: 0.3 !important;
  }

  .mobile-arch-layer:last-child::after {
    display: none !important;
  }

  .mobile-arch-title {
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }

  .mobile-arch-desc {
    font-size: 0.875rem !important;
    opacity: 0.7 !important;
    line-height: 1.5 !important;
  }

  .mermaid svg {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Ensure mermaid diagrams are readable on mobile */
  .mermaid .node rect,
  .mermaid .node circle,
  .mermaid .node polygon {
    min-width: 100px !important;
    min-height: 60px !important;
  }

  .mermaid .node .label {
    font-size: 11px !important;
    padding: 8px !important;
  }

  .mermaid .edgeLabel {
    font-size: 10px !important;
  }


  .ai-chat-container {
    gap: 1.5rem !important;
  }

  .ai-prompt-bubble {
    padding: 1.25rem 1.5rem !important;
    max-width: 90% !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .prompt-header {
    gap: 0.6rem !important;
    margin-bottom: 0.6rem !important;
  }

  .user-avatar {
    width: 28px !important;
    height: 28px !important;
  }

  .user-avatar svg {
    width: 16px !important;
    height: 16px !important;
  }

  .prompt-label {
    font-size: 0.8rem !important;
    color: #ececec !important;
  }

  .prompt-text {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #ececec !important;
  }

  .ai-response-bubble {
    padding: 1.25rem 1.5rem !important;
    border-radius: 14px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .response-header {
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.875rem !important;
    border-bottom: 1px solid #3a3a3a !important;
  }

  .ai-avatar {
    width: 28px !important;
    height: 28px !important;
  }

  .ai-avatar svg {
    width: 16px !important;
    height: 16px !important;
  }

  .response-label {
    font-size: 0.8rem !important;
    color: #ececec !important;
  }

  .thinking-indicator {
    padding: 0.75rem 0 !important;
    font-size: 0.875rem !important;
  }

  .thinking-dot {
    width: 7px !important;
    height: 7px !important;
    -webkit-animation: thinkingBounce 1.4s ease-in-out infinite !important;
    animation: thinkingBounce 1.4s ease-in-out infinite !important;
  }

  .thinking-dot:nth-child(1) {
    -webkit-animation-delay: 0s !important;
    animation-delay: 0s !important;
  }

  .thinking-dot:nth-child(2) {
    -webkit-animation-delay: 0.2s !important;
    animation-delay: 0.2s !important;
  }

  .thinking-dot:nth-child(3) {
    -webkit-animation-delay: 0.4s !important;
    animation-delay: 0.4s !important;
  }

  .response-intro {
    font-size: 0.9375rem !important;
    margin-bottom: 1.5rem !important;
    color: #d1d1d1 !important;
  }

  .ai-services-list {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .ai-service-item {
    padding: 1.25rem !important;
    border-radius: 10px !important;
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
  }

  .service-header {
    gap: 0.75rem !important;
    margin-bottom: 0.6rem !important;
  }

  .service-icon-wrapper {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background: #252525 !important;
    border: 1px solid #2a2a2a !important;
  }

  .service-icon-wrapper svg {
    width: 18px !important;
    height: 18px !important;
  }

  .service-name {
    font-size: 1rem !important;
    color: #ececec !important;
  }

  .service-desc {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.875rem !important;
    color: #b4b4b4 !important;
  }

  .service-tags {
    gap: 0.4rem !important;
  }

  .tag {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.75rem !important;
    border-radius: 10px !important;
    background: #252525 !important;
    border: 1px solid #2a2a2a !important;
    color: #b4b4b4 !important;
  }

  .response-footer {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #3a3a3a !important;
  }

  .footer-text {
    font-size: 0.9375rem !important;
    margin-bottom: 1rem !important;
    color: #d1d1d1 !important;
  }

  .ai-contact-btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.875rem !important;
    border-radius: 6px !important;
  }

  /* Ensure all sections sit above video background */
  section,
  .rates-container,
  .contact-section,
  footer {
    position: relative !important;
    z-index: 2 !important;
  }

  /* Architecture Diagrams - Mobile Optimization */
  .mermaid-container {
    padding: 20px 10px !important;
    border-radius: 20px !important;
    margin: 0 !important;
    max-width: 100vw !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mermaid {
    min-width: 1400px !important;
    transform: scale(1.2) !important;
    transform-origin: top left !important;
    margin-bottom: 100px !important;
  }

  .mermaid svg {
    max-width: none !important;
    width: 1400px !important;
    height: auto !important;
    min-height: 600px !important;
  }

  .architecture-section {
    padding: 60px 20px !important;
  }

  .section-header {
    margin-bottom: 40px !important;
    padding: 0 1rem !important;
  }

  .section-title {
    font-size: 1.75rem !important;
  }

  .section-description {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .architecture-diagram {
    padding: 30px 20px !important;
    border-radius: 16px !important;
  }

  .diagram-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
  }

  /* Make diagram text readable */
  .mermaid text {
    font-size: 18px !important;
  }

  .mermaid .nodeLabel {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  .mermaid .edgeLabel {
    font-size: 14px !important;
  }

  /* Ensure nodes are visible */
  .mermaid rect,
  .mermaid circle,
  .mermaid polygon {
    stroke-width: 2px !important;
  }
}
