* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #764ba2;
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #764ba2;
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit; /* This will inherit the #764ba2 color from .logo */
}

.hamburger {
    position: absolute;
    right: 2em;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

    .hamburger:hover {
        background: rgba(118, 75, 162, 0.1);
        transform: scale(1.05);
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .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);
    }

.menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding-top: 80px;
}

    .menu.active {
        right: 0;
    }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.menu-links {
    list-style: none;
    padding: 0 2rem;
}

    .menu-links li {
        margin: 0.5rem 0;
        transform: translateX(50px);
        opacity: 0;
        transition: all 0.4s ease;
    }

.menu.active .menu-links li {
    transform: translateX(0);
    opacity: 1;
}

    .menu.active .menu-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .menu.active .menu-links li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .menu.active .menu-links li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .menu.active .menu-links li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .menu.active .menu-links li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .menu.active .menu-links li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .menu.active .menu-links li:nth-child(7) {
        transition-delay: 0.7s;
    }

    .menu.active .menu-links li:nth-child(8) {
        transition-delay: 0.8s;
    }

.menu-links a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    .menu-links a:hover {
        background: rgba(255, 255, 255, 0.15);
        border-left-color: rgba(255, 255, 255, 0.8);
        transform: translateX(10px);
    }

.content {
    margin-top: 100px;
    padding: 2rem;
}

.page-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

    .page-section.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .page-section h1 {
        color: #1a202c;
        font-size: 2.5rem;
        margin-bottom: 2rem;
        text-align: center;
        font-weight: 500;
    }

h2 {
    color: #1a202c;
    font-size: 1.8rem;
    margin: 50px 0 24px 0;
    font-weight: 500;
    letter-spacing: -0.3px;
}

    h2:first-of-type {
        margin-top: 0;
    }

h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin: 36px 0 18px 0;
    font-weight: 500;
}

h4 {
    color: #4a5568;
    font-size: 1.1rem;
    margin: 28px 0 14px 0;
    font-weight: 500;
}

p {
    margin-bottom: 24px;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2d3748;
}

.highlight {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 32px;
    border-radius: 8px;
    margin: 36px 0;
    border-left: 4px solid #4299e1;
}

.key-insight {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    padding: 28px;
    border-radius: 8px;
    margin: 32px 0;
    border-left: 4px solid #38a169;
}

.mechanism-box {
    background: #edf2f7;
    color: #2d3748;
    border: 1px solid #cbd5e0;
    padding: 32px;
    border-radius: 8px;
    margin: 36px 0;
}

    .mechanism-box h3 {
        color: #2d3748;
        margin-top: 0;
    }

.condition-list {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 28px;
    border-radius: 8px;
    margin: 32px 0;
}

.framework-section {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    padding: 36px;
    border-radius: 8px;
    margin: 40px 0;
}

    .framework-section h3 {
        margin-top: 0;
        color: #1f2937;
    }

.key-points {
    background: #f8f9fa;
    padding: 32px;
    border-radius: 8px;
    margin: 36px 0;
    border: 1px solid #e9ecef;
}

    .key-points h3 {
        color: #1f2937;
        margin-bottom: 20px;
        font-size: 1.2rem;
    }

    .key-points ul {
        list-style: none;
        padding-left: 0;
    }

    .key-points li {
        margin: 12px 0;
        padding-left: 24px;
        position: relative;
        color: #2d3748;
        line-height: 1.6;
    }

        .key-points li:before {
            content: "�";
            color: #4299e1;
            font-weight: bold;
            position: absolute;
            left: 0;
        }

.emphasis {
    font-weight: 600;
    color: #1a202c;
}

.quote {
    font-style: italic;
    color: #4a5568;
    border-left: 3px solid #cbd5e0;
    padding-left: 24px;
    margin: 32px 0;
    font-size: 1.1rem;
}

ul, ol {
    margin: 24px 0;
    padding-left: 32px;
    color: #2d3748;
}

li {
    margin: 10px 0;
    line-height: 1.6;
    color: #2d3748;
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2563eb;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    z-index: 1000;
}

    .scroll-top.visible {
        opacity: 1;
    }

    .scroll-top:hover {
        transform: translateY(-2px);
        background: #1e40af;
    }

.prevent-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: white;
        color: #2d3748;
        font-size: 1rem;
    }

        .contact-form input::placeholder,
        .contact-form textarea::placeholder {
            color: #a0aec0;
        }

    .contact-form button {
        padding: 1rem;
        background: #764ba2;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .contact-form button:hover {
            background: #553c7b;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    min-height: 50px;
}

.nav-btn {
    background: #764ba2;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .nav-btn:hover {
        background: #553c7b;
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-btn.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }


@media (max-width: 768px) {
    .scroll-top {
        display: none !important;
    }
    
    body {
        background: #764ba2 !important;
    }
    
    .page-section {
        padding: 20px !important;
        max-width: none !important;
        margin: 10px 5px !important; /* 10px top/bottom, 5px left/right */
    }
    
    .content {
        margin-top: 100px;
        padding: 0 !important; /* Remove default padding */
    }
    
    .header {
        padding: 1rem;
        justify-content: center !important;
    }
    
    .logo {
        font-size: 1rem !important;
    }
    
    .hamburger {
        right: 1rem;
    }
    
    .menu {
        width: 100%;
        right: -100%;
    }

    .page-section h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .highlight, .key-insight, .mechanism-box, .framework-section {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
}