/* Global Styles */
    @import url('https://fonts.googleapis.com/css2?family=PingFang+SC:wght@400;600;700&display=swap');

    :root {
        --color-background-start: #f5f5f5;
        --color-background-end: #ffe5d9;
        --color-primary: #ff8c42;
        --color-secondary: #d98a6d;
        --color-accent: #ffd700;
        --color-text: #333333;
        --color-heading: #222222;
        --color-link: #ff8c42;
        --color-link-hover: #d98a6d;
        --color-section-divider: linear-gradient(90deg, rgba(255,140,66,1) 0%, rgba(217,138,109,1) 100%);
        --font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        --transition-speed: 0.3s;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: var(--font-family);
        font-size: 16px;
        line-height: 1.6;
        color: var(--color-text);
        background: linear-gradient(to bottom, var(--color-background-start), var(--color-background-end));
        transition: background var(--transition-speed) ease-in-out;
    }

    h2, h3, h4 {
        color: var(--color-heading);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8em;
        font-weight: 700;
    }

    h3 {
        font-size: 1.6em;
        font-weight: 600;
    }

    h4 {
        font-size: 1.4em;
        font-weight: 600;
    }

    p {
        margin-bottom: 1.2rem;
        font-size: 1em;
        color: var(--color-text);
    }

    a {
        color: var(--color-link);
        text-decoration: none;
        transition: color var(--transition-speed), transform var(--transition-speed);
    }

    a:hover {
        color: var(--color-link-hover);
        transform: scale(1.05);
    }

    /* Navigation Styles */
    nav {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: rgba(245, 245, 245, 0.95);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: background-color var(--transition-speed);
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 1rem 2rem;
    }

    .nav-logo {
        font-size: 1.5em;
        font-weight: 700;
        color: var(--color-primary);
    }

    .nav-menu {
        display: flex;
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 1em;
        font-weight: 600;
        position: relative;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background-color: var(--color-primary);
        left: 0;
        bottom: -5px;
        transition: width var(--transition-speed);
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    /* Responsive Navigation */
    @media (max-width: 768px) {
        .nav-menu {
            display: none;
        }

        .nav-menu.mobile {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 60px;
            right: 2rem;
            background-color: rgba(245, 245, 245, 0.95);
            border: 1px solid #ddd;
            padding: 1rem;
            border-radius: 8px;
        }

        .nav-toggle {
            display: block;
            cursor: pointer;
        }

        .nav-toggle div {
            width: 25px;
            height: 3px;
            background-color: var(--color-text);
            margin: 5px 0;
            transition: all var(--transition-speed);
        }
    }

    /* Main Content Styles */
    .content {
        max-width: 1200px;
        margin: 100px auto 50px;
        padding: 0 2rem;
    }

    section {
        margin-bottom: 3rem;
        padding: 2rem 0;
        position: relative;
    }

    section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 2px;
        background: var(--color-section-divider);
    }

    section:first-of-type::before {
        display: none;
    }

    img {
        display: block;
        max-width: 900px;
        min-width: 500px;
        width: 100%;
        height: auto;
        margin: 1.5rem auto;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    }

    img:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    /* Navigation Sidebar for Desktop */
    .sidebar {
        position: fixed;
        top: 80px;
        left: 50px;
        width: 200px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar a {
        font-size: 1em;
        color: var(--color-link);
        text-decoration: none;
        transition: color var(--transition-speed);
    }

    .sidebar a:hover {
        color: var(--color-link-hover);
    }

    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background-color: var(--color-primary);
        color: #fff;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        text-decoration: none;
        font-size: 0.9em;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        transition: background-color var(--transition-speed), transform var(--transition-speed);
    }

    .back-to-top:hover {
        background-color: var(--color-secondary);
        transform: translateY(-5px);
    }

    /* Footer Styles */
    footer {
        background-color: rgba(245, 245, 245, 0.95);
        padding: 2rem;
        text-align: center;
        color: var(--color-text);
        border-top: 1px solid #ddd;
    }

    footer a {
        color: var(--color-link);
        margin: 0 0.5rem;
        text-decoration: none;
        transition: color var(--transition-speed);
    }

    footer a:hover {
        color: var(--color-link-hover);
    }

    /* Highlighted Text */
    span {
        background: rgba(255, 140, 66, 0.1);
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
    }

    /* Media Queries for Responsiveness */
    @media (max-width: 1200px) {
        .sidebar {
            display: none;
        }
    }

    @media (max-width: 768px) {
        .content {
            margin: 80px 1rem 50px;
            padding: 0 1rem;
        }

        img {
            max-width: 100%;
            min-width: unset;
        }
    }

    @media (max-width: 480px) {
        h2 {
            font-size: 1.6em;
        }

        h3 {
            font-size: 1.4em;
        }

        p {
            font-size: 0.95em;
        }

        .back-to-top {
            right: 15px;
            bottom: 15px;
            padding: 0.4rem 0.8rem;
            font-size: 0.8em;
        }
    }

    /* Animations */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .fade-in {
        animation: fadeIn 1s ease-in-out;
    }

    /* Decorative Elements */
    .decorative-line {
        width: 50px;
        height: 4px;
        background: var(--color-primary);
        margin: 1rem auto;
        border-radius: 2px;
    }
