@font-face {
    font-family: 'Blinker';
    src: url('https://static.igem.wiki/teams/5836/fonts/blinker/blinker-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('https://static.igem.wiki/teams/5836/fonts/raleway/raleway-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nixie One';
    src: url('https://static.igem.wiki/teams/5836/fonts/nixie-one/nixieone-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('https://static.igem.wiki/teams/5836/fonts/fraunces/fraunces-72pt-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans Code';
    src: url('https://static.igem.wiki/teams/5836/fonts/googlesanscode/googlesanscode-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Dark blue background for the entire page */
body {
    background-color: #0b1320 !important;
}

/* Alternative: If the above doesn't work, target the page content wrapper */
#page_content {
    background-color: #0b1320 !important;
}

/* Also ensure the main container has the dark blue background */
.main-content,
.container-fluid,
main {
    background-color: #0b1320 !important;
}

/* Make sure the model hero section blends seamlessly */
.model-hero {
    background-color: #0b1320;
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    margin-top: -20px; /* Remove gap below navbar */
    padding-top: 20px; /* Add padding to maintain spacing */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-content {
    z-index: 2;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 8rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
    font-family: 'Fraunces', serif;
    line-height: 1.1;
    text-align: center;
    display: block;
}

.hero-spacing-breaks {
    height: 1px;
}

/* Model Image Container */
.model-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: hidden;
    pointer-events: none;
}

.model-image {
    width: 760px;
    height: auto;
    opacity: 0.7;
    position: absolute;
    z-index: 5;
}

.model-image-right {
    top: 0;
    right: -200px;
}

/* Animated Background Styles */
.animated-background {
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 112.5%;
    z-index: 1;
    overflow: hidden;
}

.background-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.3;
}

.model-image-left {
    top: 0;
    left: -200px;
    transform: scaleX(-1); /* Mirror horizontally */
}

/* ML Models Container Styles */
.ml-models-container {
    margin: 2rem 0;
    padding: 0 2rem;
}

.ml-model {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 4px solid #d7af6b;
}

.model-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.indent-1 {
    padding-left: 3rem;
    color: #cccccc;
}

/* Measurement Images Container Styles */
.measurement-images-container {
    display: flex;
    justify-content: center;
    gap: -8rem;
    margin: 3rem 0;
    padding: 0;
    position: relative;
    left: -3rem;
}

.measurement-image-wrapper {
    flex: 1;
    text-align: center;
}

.measurement-image {
    width: 130%;
    height: auto;
    max-width: 650px;
    border-radius: 8px;
}

/* Make vasilescu, sun, and roc images 30% smaller than before */
img[src*="vasilescu"],
img[src*="sun"],
img[src*="roc"] {
    width: 77% !important;
    max-width: 77% !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Make specific images 10% bigger */
.content-image[src*="vasilescu"],
.content-image[src*="sun"],
.content-image[src*="roc"] {
    width: 77% !important;
    max-width: 77% !important;
    display: block !important;
    margin: 0 auto !important;
}

/* PCA Animation Styles */
.pca-animation-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(215, 175, 107, 0.2);
}

.pca-animation-frame {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Section Navigation */
.section-navigation {
    position: fixed;
    top: 100px;
    left: 20px;
    background: rgba(11, 19, 32, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(215, 175, 107, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 180px;
    max-width: 250px;
    transition: all 0.3s ease;
    transform: scale(0.75);
    transform-origin: top left;
}

.navigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(215, 175, 107, 0.2);
    cursor: pointer;
}

.navigation-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d7af6b;
    letter-spacing: 0.5px;
}

.navigation-toggle {
    background: none;
    border: none;
    color: #d7af6b;
    cursor: pointer;
    padding: 0;
    display: none;
    transition: transform 0.3s ease;
}

.navigation-toggle:hover {
    background-color: rgba(215, 175, 107, 0.2);
}

.navigation-content {
    padding: 0.75rem 0;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.navigation-item {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #afc1d0;
    text-decoration: none;
    font-family: 'Nixie One', serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.navigation-item:hover {
    color: #d7af6b;
    background: rgba(215, 175, 107, 0.1);
    border-left-color: #d7af6b;
    text-decoration: none;
}

.navigation-item.active {
    color: #d7af6b;
    background: rgba(215, 175, 107, 0.15);
    border-left-color: #d7af6b;
    font-weight: 500;
}

/* Main Content */
.model-main-content {
    background-color: #0b1320;
    padding: 4rem 0 4rem 150px;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.content-frame {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #0b1320;
}

/* Text Classes - Model specific with smaller paragraph text */
.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 3rem 0 2rem 0;
    text-align: left;
    line-height: 1.2;
}

.subsection-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #afc1d0;
    margin: 2.5rem 0 1.5rem 0;
    text-align: left;
    line-height: 1.3;
}

.paragraph {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem); /* Between current size and description page */
    color: white;
    margin: 1.5rem 0;
    text-align: left;
    line-height: 1.6;
}

.code-text {
    font-family: 'Google Sans Code', monospace;
    color: #d7af6b;
    font-weight: normal;
}

.formula {
    display: block;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.3em;
    color: white;
    font-family: 'Times New Roman', serif;
    line-height: 1.4;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Force MathJax to wrap properly */
.formula .MathJax,
.formula .MathJax_Display,
.formula .MathJax_CHTML {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* Desktop formula responsiveness */
@media (min-width: 769px) {
    .formula {
        font-size: 1.1em;
    }
    
    .formula .MathJax,
    .formula .MathJax_Display {
        font-size: 1em !important;
        max-width: 100% !important;
    }
}

/* Mobile formula responsiveness */
@media (max-width: 768px) {
    .formula {
        font-size: 0.9em;
        text-align: center;
        padding: 0 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .formula .MathJax,
    .formula .MathJax_Display {
        font-size: 0.8em !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }
}

/* Animation container styling */
.animation-container {
    text-align: center;
    margin: 3rem 0;
}

.animation-image {
    max-width: 100%;
    height: auto;
}

/* Text under GIFs and pictures */
.image-caption {
    text-align: center;
}

.image-caption p {
    font-family: 'Nixie One', serif;
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0;
    font-style: italic;
    opacity: 0.8;
}

/* Bold text styling */
strong, b {
    color: #d7af6b;
    font-weight: bold;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Nixie One', serif;
    background-color: rgba(11, 19, 32, 0.8);
    border: 1px solid rgba(215, 175, 107, 0.3);
}

/* Specific styling for performance table */
.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Nixie One', serif;
    background-color: rgba(11, 19, 32, 0.9);
    border: 2px solid rgba(215, 175, 107, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.specification-table {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Ensure tables don't overflow on mobile */
@media (max-width: 768px) {
    table {
        margin: 1rem 0;
    }
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(215, 175, 107, 0.2);
}

th {
    background-color: rgba(215, 175, 107, 0.2);
    color: #d7af6b;
    font-weight: bold;
    font-size: 1.1rem;
}

td {
    color: white;
    font-size: 1rem;
}

tr:hover {
    background-color: rgba(215, 175, 107, 0.1);
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive table */
@media (max-width: 768px) {
    .table-container {
        margin: 1rem 0;
    }
    
    table {
        font-size: 0.7rem;
        width: 100%;
        table-layout: fixed;
    }
    
    th, td {
        padding: 4px 2px;
        font-size: 0.65rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        vertical-align: top;
    }
    
    th {
        font-size: 0.7rem;
    }
    
    /* Make columns more flexible */
    th:first-child, td:first-child {
        width: 25%;
    }
    
    th:not(:first-child), td:not(:first-child) {
        width: auto;
    }
}

/* Table container for mobile responsiveness */
.table-container {
    width: 100%;
}

/* Comprehensive MathJax wrapping - target all possible MathJax elements */
.MathJax_CHTML,
.MathJax_SVG,
.MathJax_MML,
.mjx-chtml,
.mjx-svg,
.mjx-mml,
mjx-container,
mjx-math {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
}

/* Ensure formula containers don't exceed boundaries */
.formula mjx-container,
.formula .MathJax_Display mjx-container {
    max-width: calc(100% - 20px) !important;
    display: inline-block !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Force line breaks in long formulas */
mjx-math {
    line-height: 1.4 !important;
    word-spacing: normal !important;
}

/* Additional safety for any MathJax overflow */
.formula * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Global MathJax improvements for all screen sizes */
.MathJax_Display {
    text-align: center !important;
    margin: 1em 0 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

.MathJax {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    line-height: 1.3 !important;
}

/* Desktop MathJax settings */
@media (min-width: 769px) {
    .MathJax {
        font-size: 16px !important;
    }
}

/* Mobile improvements */
@media (max-width: 768px) {
    .MathJax {
        font-size: 12px !important;
    }
    
    /* For tables not in containers, make them responsive */
    table:not(.table-container table) {
        width: 100%;
        table-layout: fixed;
    }
    
    table:not(.table-container table) th,
    table:not(.table-container table) td {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    /* Fix sequence list truncation on mobile */
    .mylist li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        font-size: clamp(0.8rem, 1vw, 1rem);
        line-height: 1.4;
    }
    
    /* Fix monospace sequence truncation */
    .paragraph[style*="monospace"] {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        font-size: clamp(0.7rem, 0.9vw, 0.9rem) !important;
        line-height: 1.3 !important;
    }
    
    /* Fix code text truncation on mobile */
    .code-text {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: pre-wrap !important;
        font-size: clamp(0.6rem, 0.8vw, 0.8rem) !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        padding: 10px !important;
    }
    
    /* Ensure content doesn't overflow on very small screens */
    .content-frame {
        padding: 15px 10px;
    }
}

/* Reference links styling */
.reference-link {
    color: #afc1d0;
    text-decoration: underline;
}

.reference-link:hover {
    color: #d7af6b;
    text-decoration: underline;
}

/* References section styling - same size as paragraphs */
.references-section {
    text-align: left;
    line-height: 1.8;
    font-size: clamp(1rem, 1.2vw, 1.2rem); /* Same as paragraph font size */
}

.references-section p {
    margin-bottom: 1rem;
    font-family: 'Nixie One', serif;
    color: white;
}

/* Center alignment for paragraphs and references */
.center-aligned {
    text-align: center !important;
}

/* READ MORE link styling */
.read-more-link {
    color: white;
    text-decoration: underline;
    font-weight: normal;
}

.read-more-link:hover {
    color: #d7af6b;
    text-decoration: underline;
}

/* GitLab link styling - matches READ MORE links from description */
.gitlab-link {
    color: white;
    text-decoration: underline;
    font-weight: normal;
}

.gitlab-link:hover {
    color: #d7af6b;
    text-decoration: underline;
}

/* Code styling - matches model page exactly */
.code-span {
    font-family: 'Google Sans Code', monospace;
    color: #d7af6b;
    font-weight: normal;
}

/* Formula styling - matches model page exactly */
.formula {
    display: block;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.3em;
    color: white;
    font-family: 'Times New Roman', serif;
    line-height: 1.4;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Remove formula-block class and use formula directly */
.formula-block {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

/* Code block styling for multi-line code */
.code-block {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(215, 175, 107, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    white-space: pre;
    font-size: 0.9rem;
}

/* Demo images 20% larger and truly centered */
.demo-image-large {
    width: 120% !important;
    max-width: 120% !important;
    height: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Nested list styling with smaller bullets */
.nested-list {
    list-style: none;
    padding-left: 2rem;
    margin: 0.5rem 0;
}

.nested-list li {
    margin: 0.4rem 0;
    padding-left: 0;
    position: relative;
    font-size: 1rem;
}

.nested-list li::before {
    content: '•';
    color: #d7af6b;
    position: absolute;
    left: -1rem;
    font-weight: bold;
    font-size: 0.6em;
    top: 0.4em;
}

.gitlab-link:hover {
    color: #d7af6b;
    text-decoration: underline;
}

/* Device Image Container */
.device-image-container {
    text-align: center;
    margin: 3rem 0;
}

.device-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Show computer on desktop, hide mobile */
.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

/* Device with Arrows Layout */
.device-with-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.desktop-device-layout {
    display: flex;
}

.mobile-device-layout {
    display: none;
}

.legend-arrows {
    width: 600px !important;
    height: auto;
    flex-shrink: 0;
}

/* Make phone image larger */
.device-phone-large {
    max-width: 120% !important;
}

/* Make pipeline image larger but truly centered */
.pipeline-image-large {
    width: 120% !important;
    max-width: 120% !important;
    height: auto;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Media queries for responsive images */
@media (max-width: 768px) {
    /* Hide computer on mobile/tablet, show mobile */
    .desktop-image {
        display: none;
    }
    
    .mobile-image {
        display: block;
    }
    
    /* Show mobile layout, hide desktop */
    .desktop-device-layout {
        display: none;
    }
    
    .mobile-device-layout {
        display: flex;
        gap: 1rem;
    }
    
    /* Make arrows visible and appropriately sized on mobile */
    .legend-arrows {
        width: 150px !important;
        display: block !important;
    }
    
    /* Make phone image 1.5x larger on mobile */
    .device-phone-large {
        max-width: 150% !important;
    }
    
    /* Make pipeline image bigger on mobile and center it */
    .pipeline-image-large {
        width: 140% !important;
        max-width: 140% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Fix nested list truncation on mobile */
    .nested-list {
        padding-left: 1.5rem !important;
        margin-right: 1rem !important;
    }
    
    .nested-list li {
        padding-right: 1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Mobile formula styling to match model.html */
    .formula {
        font-size: 1.1em !important;
        padding: 0 5px !important;
        line-height: 1.3 !important;
        margin: 1rem 0 !important;
    }
    
    /* Mobile ML models styling */
    .ml-models-container {
        padding: 0 1rem !important;
    }
    
    .ml-model {
        margin-bottom: 2rem !important;
    }
    
    .model-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .indent-1 {
        padding-left: 2rem !important;
    }
    
    /* Mobile measurement images - stack vertically */
    .measurement-images-container {
        flex-direction: column !important;
        gap: -5rem !important;
        padding: 0 !important;
        left: 0 !important;
    }
    
    .measurement-image-wrapper {
        margin-bottom: 1rem !important;
    }
    
    .measurement-image {
        width: 130% !important;
        max-width: 130% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: relative !important;
    }
    
    /* Mobile PCA animation */
    .pca-animation-container {
        padding: 1rem !important;
        margin: 2rem 0 !important;
    }
    
    .pca-animation-frame {
        max-width: 100% !important;
    }
    
    /* Fix reference links truncation on mobile */
    .references-list {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .references-list li {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.6 !important;
    }
    
    .reference-link {
        word-break: break-all !important;
        display: inline-block !important;
        max-width: 100% !important;
    }
}\n\n/* Note styling - grey text with same font size as paragraphs */
.note {
    font-family: 'Nixie One', serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem); /* Same as paragraph */
    color: #888888; /* Grey color */
    margin: 1.5rem 0;
    text-align: left;
    line-height: 1.6;
    font-style: italic;
}

/* Custom bullet list styling */
.mylist {
    font-family: 'Nixie One', serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem); /* Same as paragraph */
    color: white;
    margin: 1.5rem 0;
    text-align: left;
    line-height: 1.6;
    list-style: none;
    padding-left: 0;
}

.mylist li {
    margin: 0.8rem 0;
    padding-left: 6rem;
    position: relative;
}

.mylist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1.5rem;
    width: 5rem;
    height: 5rem;
    background-image: url('https://static.igem.wiki/teams/5836/model/special/bullet.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Main content image styling */
.main-content-image {
    text-align: center;
    margin: 3rem 0;
}

.content-image {
    max-width: 60%; /* 3/4 of original 80% size */
    height: auto;
    display: block;
    margin: 0 auto;
    width: 60%; /* Maintains good visibility while fitting well in layout */
}

.content-image-white-bg {
    max-width: 60%; /* 3/4 of original 80% size */
    height: auto;
    display: block;
    margin: 0 auto;
    width: 60%; /* Maintains good visibility while fitting well in layout */
    background-color: rgba(255, 255, 255, 1.0); /* Solid white background */
    padding: 20px;
    border-radius: 8px;
}

/* Reference links styling */
.reference-link {
    color: #afc1d0;
    text-decoration: underline;
}

.reference-link:hover {
    color: #d7af6b;
    text-decoration: underline;
}

/* Responsive adjustments for note and list */
@media (max-width: 480px) {
    .note {
        font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    }
    
    .mylist {
        font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    }
    
    .mylist li {
        padding-left: 4rem;
    }
    
    .mylist li::before {
        width: 3rem;
        height: 3rem;
        top: -1rem;
    }
}

/* Small laptops - make section navigation smaller */
@media (max-width: 1200px) and (min-width: 769px) {
    .section-navigation {
        transform: scale(0.65);
        min-width: 160px;
        max-width: 220px;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hero-spacing-breaks {
        display: none;
    }
    
    .model-main-content {
        padding: 4rem 0;
    }
    
    .section-navigation {
        top: 85px;
        left: 0;
        right: 0;
        width: 100%;
        min-width: auto;
        max-width: none;
        border-radius: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        background-color: #0b1320;
        backdrop-filter: none;
        z-index: 49;
        transform: none;
    }
    
    .navigation-toggle {
        display: block;
    }
    
    .navigation-content {
        display: none;
    }
    
    .navigation-content.active {
        display: block;
    }
    
    .navigation-toggle.active {
        transform: rotate(180deg);
    }

    .content-frame {
        width: 90%;
        padding: 1rem;
        margin: 0 auto;
    }
    
    .model-hero {
        min-height: 40vh;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .section-navigation {
        top: 75px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .model-image {
        width: 533px !important;
        opacity: 0.6;
    }
    
    .model-image-right {
        top: 0 !important;
        right: -150px !important;
    }
    
    .model-image-left {
        top: 0 !important;
        left: -150px !important;
    }
    
    .mylist li {
        padding-left: 5rem;
    }
    
    .mylist li::before {
        width: 4rem;
        height: 4rem;
        top: -1.2rem;
    }
    
    /* Mobile responsive for specific images */
    .content-image[src*="vasilescu"],
    .content-image[src*="sun"],
    .content-image[src*="roc"],
    img[src*="vasilescu"],
    img[src*="sun"],
    img[src*="roc"] {
        width: 90% !important;
        max-width: 90% !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .section-navigation {
        top: 80px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .subsection-title {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
    }
    
    .paragraph {
        font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    }

    .model-image {
        width: 400px !important;
        opacity: 0.5;
    }
    
    .model-image-right {
        top: 0 !important;
        right: -100px !important;
    }
    
    .model-image-left {
        top: 0 !important;
        left: -100px !important;
    }
}
