:root {
    --primary-orange: #f26b1d;
    --dark-blue: #2c7a8a;
    --bg: #fdfdfd;
    --text: #1a1a1a;
    --max-width: 1200px;
    --section-padding: 4rem 2rem;
    --border-radius: 15px;
    --sidebar-width: 300px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #e0f7fa, #fce4ec);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container for max-width consistency */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--dark-blue), var(--primary-orange));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-orange));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

/* Assicurati che la sidebar sia sempre renderizzata */
@media (min-width: 769px) {
    .mobile-sidebar {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .hamburger {
        display: none;
    }
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 2rem 0;
    flex: 1;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    padding-left: 2.5rem;
}

.sidebar-menu a i {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.sidebar-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--section-padding);
    min-height: 70vh;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    color: var(--text);
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: #d65c16;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 107, 29, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* About Page Sections */
.about-main {
    padding: 2rem 0;
}

.about-intro-section,
.vision-section,
.why-noobie-section,
.future-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

/* Alternating layouts */
.vision-section,
.future-section {
    flex-direction: row-reverse;
}

.intro-content,
.vision-content,
.why-noobie-content,
.future-content {
    flex: 2;
    z-index: 2;
}

.intro-content h1,
.vision-content h2,
.why-noobie-content h2,
.future-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.me {
    color: var(--primary-orange);
    position: relative;
}

.me::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), transparent);
    border-radius: 2px;
}

.intro-content p,
.vision-content p,
.why-noobie-content p,
.future-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.2rem;
}

.intro-icon,
.vision-icon,
.why-noobie-icon,
.future-icon {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(5rem, 8vw, 8rem);
    color: var(--dark-blue);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 2;
}

.intro-icon:hover,
.vision-icon:hover,
.why-noobie-icon:hover,
.future-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-orange);
}

/* Section background effects */
.about-intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(242, 107, 29, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(44, 122, 138, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.why-noobie-section::before {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(242, 107, 29, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.future-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -25%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 122, 138, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Code Example Section */
.code-example {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark-blue);
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: 95%;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    gap: 3rem;
}

.code-container {
    flex: 1;
    background: #161b22;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: #21262d;
    padding: 1rem;
    color: #c9d1d9;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #30363d;
}

.code-block {
    padding: 1.5rem;
    color: #c9d1d9;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    min-height: 120px;
    white-space: pre-wrap;
    overflow-x: auto;
}

.code-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #21262d;
    border-top: 1px solid #30363d;
}

.code-buttons button {
    background: #30363d;
    color: #c9d1d9;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 40px;
}

.code-buttons button:hover {
    background: #484f58;
    transform: translateY(-2px);
}

.code-buttons button.active {
    background: var(--primary-orange);
    color: white;
}

.code-message {
    flex: 1;
    text-align: center;
    color: white;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Syntax Highlighting */
.comment { color: #8b949e; }
.keyword { color: #ff7b72; }
.string { color: #a5d6ff; }
.output { color: #d2a8ff; }

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-orange));
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    height: 50px;
    margin: 0 auto 1rem;
}

.footer-logo p {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 80%;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Documentation Page Styles */
.documentation-hero {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-orange));
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 0;
}

.documentation-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.documentation-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.doc-version-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Documentation Container */
.documentation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 200px);
}

/* Documentation Header */
.doc-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-bottom: 3px solid var(--primary-orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.doc-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.doc-title {
    color: var(--text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-title i {
    color: var(--primary-orange);
}

.doc-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.doc-btn {
    background: var(--primary-orange);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    white-space: nowrap;
}

.doc-btn:hover {
    background: #d65c16;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 107, 29, 0.3);
}

.doc-btn.secondary {
    background: var(--dark-blue);
}

.doc-btn.secondary:hover {
    background: #225a66;
}

/* PDF Viewer Container */
.pdf-container {
    width: 100%;
    height: calc(100vh - 300px);
    min-height: 600px;
    border: none;
    background: #f5f5f5;
    position: relative;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* PDF Loading State */
.pdf-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: #f8f9fa;
    color: #666;
    text-align: center;
    padding: 2rem;
}

.pdf-loading i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PDF Error State */
.pdf-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: #f8f9fa;
    color: #666;
    text-align: center;
    padding: 2rem;
}

.pdf-error i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.pdf-error h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.pdf-error p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-orange);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image img,
.logo img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.animate-in {
    animation: fadeIn 0.6s ease-in-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 3rem 1.5rem;
        --sidebar-width: 280px;
    }
    
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        gap: 2rem;
    }
    
    .code-example {
        gap: 2rem;
        padding: 2rem;
    }
    
    .about-intro-section,
    .vision-section,
    .why-noobie-section,
    .future-section {
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 300px;
        margin-bottom: 2rem;
    }
    
    .about-intro-section,
    .vision-section,
    .why-noobie-section,
    .future-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }
    
    .vision-section,
    .future-section {
        flex-direction: column;
    }
    
    .intro-icon,
    .vision-icon,
    .why-noobie-icon,
    .future-icon {
        order: 1;
        font-size: 4rem;
        margin-bottom: 1rem;
    }
    
    .intro-content,
    .vision-content,
    .why-noobie-content,
    .future-content {
        order: 2;
    }
    
    .code-example {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
    
    .code-message {
        order: 1;
        text-align: center;
    }
    
    .code-container {
        order: 2;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .doc-header {
        padding: 1rem;
    }
    
    .doc-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .doc-actions {
        justify-content: center;
        width: 100%;
    }
    
    .pdf-container {
        height: calc(100vh - 350px);
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem 1rem;
        --sidebar-width: 260px;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    .about-intro-section,
    .vision-section,
    .why-noobie-section,
    .future-section {
        padding: 1.5rem 1rem;
        margin: 1rem 0.5rem;
        border-radius: 10px;
    }
    
    .intro-icon,
    .vision-icon,
    .why-noobie-icon,
    .future-icon {
        font-size: 3rem;
    }
    
    .code-example {
        padding: 1rem;
        margin: 1rem 0.5rem;
        border-radius: 10px;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .code-buttons {
        gap: 0.3rem;
        padding: 0.8rem;
    }
    
    .code-buttons button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .documentation-hero {
        padding: 2rem 1rem;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-menu a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .sidebar-footer {
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    :root {
        --sidebar-width: 240px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .about-intro-section,
    .vision-section,
    .why-noobie-section,
    .future-section {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .intro-content h1,
    .vision-content h2,
    .why-noobie-content h2,
    .future-content h2 {
        font-size: 1.8rem;
    }
    
    .intro-content p,
    .vision-content p,
    .why-noobie-content p,
    .future-content p {
        font-size: 1rem;
    }
    
    .code-example {
        padding: 0.8rem;
        margin: 0.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .navbar {
        padding: 0.8rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
    }
    
    .sidebar-header {
        padding: 0.8rem;
    }
    
    .sidebar-logo img {
        height: 35px;
    }
    
    .sidebar-menu a {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .sidebar-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        flex-direction: row;
        padding: 1rem;
        min-height: auto;
    }
    
    .hero-content {
        order: 1;
        text-align: left;
    }
    
    .hero-image {
        order: 2;
        max-width: 200px;
        margin: 0 0 0 1rem;
    }
    
    .documentation-hero {
        padding: 1.5rem 1rem;
    }
    
    .about-intro-section,
    .vision-section,
    .why-noobie-section,
    .future-section {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
    
    .code-example {
        padding: 1rem;
        margin: 1rem;
    }
}

/* Focus and accessibility improvements */
.cta-button:focus,
.code-buttons button:focus,
.nav-menu a:focus,
.footer-links a:focus,
.footer-social a:focus,
.hamburger:focus,
.sidebar-close:focus,
.sidebar-menu a:focus,
.sidebar-social a:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Improved loading states */
.hero-image img,
.logo img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Hover effects for better interactivity */
.about-intro-section:hover,
.vision-section:hover,
.why-noobie-section:hover,
.future-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hamburger,
    .code-buttons,
    .mobile-sidebar,
    .sidebar-overlay {
        display: none;
    }
    
    .hero,
    .about-intro-section,
    .vision-section,
    .why-noobie-section,
    .future-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .code-example {
        background: white !important;
        border: 1px solid #ddd;
    }
    
    .code-block {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .hero-content h1,
    .intro-content h1,
    .vision-content h2,
    .why-noobie-content h2,
    .future-content h2 {
        color: #333 !important;
    }
    
    .me {
        color: #333 !important;
    }
    
    .section-title {
        color: #333 !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hamburger.active span:nth-child(1),
    .hamburger.active span:nth-child(3) {
        transform: none;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 1;
    }
    
    .hero-image img:hover,
    .intro-icon:hover,
    .vision-icon:hover,
    .why-noobie-icon:hover,
    .future-icon:hover {
        transform: none;
    }
    
    .about-intro-section:hover,
    .vision-section:hover,
    .why-noobie-section:hover,
    .future-section:hover {
        transform: none;
    }
    
    .mobile-sidebar {
        transition: none;
    }
    
    .sidebar-overlay {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #ff4500;
        --dark-blue: #000080;
        --text: #000000;
    }
    
    .nav-menu a,
    .footer-links a,
    .footer-social a,
    .sidebar-menu a,
    .sidebar-social a {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .cta-button,
    .code-buttons button {
        border: 2px solid currentColor;
    }
    
    .about-intro-section,
    .vision-section,
    .why-noobie-section,
    .future-section {
        border: 2px solid #ddd;
    }
    
    .mobile-sidebar {
        border-right: 2px solid #ddd;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --text: #ffffff;
    }
    
    body {
        background: linear-gradient(to bottom right, #1a1a1a, #2d2d2d);
        color: var(--text);
    }
    
    .about-intro-section,
    .vision-section,
    .why-noobie-section,
    .future-section {
        background: #1e1e1e;
        color: var(--text);
        border: 1px solid #333;
    }
    
    .intro-content h1,
    .vision-content h2,
    .why-noobie-content h2,
    .future-content h2 {
        color: var(--text);
    }
    
    .intro-content p,
    .vision-content p,
    .why-noobie-content p,
    .future-content p {
        color: #ccc;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d65c16;
}

/* Selection styles */
::selection {
    background: var(--primary-orange);
    color: white;
}

::-moz-selection {
    background: var(--primary-orange);
    color: white;
}

/* Loading states */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Error states */
.error {
    color: #dc3545;
    border-color: #dc3545;
}

/* Success states */
.success {
    color: #28a745;
    border-color: #28a745;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* Performance optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Font loading optimization */
.font-loaded {
    font-display: swap;
}