/* ===================================
   Intentique Website Styles
   Theme: Ivory, Dark Royal Green, Gold
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --ivory: #FFFEF6;
    --dark-green: #0B3D2E;
    --medium-green: #145741;
    --gold: #D4AF37;
    --gold-hover: #E5C454;
    --purple: #7B61FF;

    /* Neutrals */
    --white: #FFFFFF;
    --light-gray: #F5F5F0;
    --gray: #9CA3AF;
    --dark-gray: #374151;
    --error-red: #DC2626;

    /* Typography */
    --font-sans: system-ui, -apple-system, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 5rem 1.5rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--ivory);
    color: var(--dark-green);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 254, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(11, 61, 46, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    min-height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 36px;
    height: 36px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-green);
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 24px;
    position: relative;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    width: 100%;
    height: 2px;
    background-color: var(--dark-green);
    border-radius: 2px;
    position: absolute;
    transition: var(--transition);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
}

.nav-toggle-icon::before {
    top: -8px;
}

.nav-toggle-icon::after {
    top: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--medium-green);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--dark-green);
}

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

.nav-cta {
    padding: 0.625rem 1.25rem;
    background-color: var(--gold);
    color: var(--dark-green);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    padding: 6rem 1.5rem 5rem;
    background: linear-gradient(135deg, var(--ivory) 0%, #F8F6EC 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--medium-green);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-manifesto {
    font-size: 1.125rem;
    color: var(--dark-green);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--dark-green);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
}

.btn-secondary:hover {
    background-color: var(--dark-green);
    color: var(--ivory);
}

.btn-full {
    width: 100%;
}

/* ===================================
   Section Styles
   =================================== */

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--medium-green);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===================================
   Subscribe & Inquiry Forms
   =================================== */

.subscribe-section,
.inquiries-section {
    background-color: var(--white);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.precheck-form {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11, 61, 46, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-green);
    background-color: var(--white);
    border: 2px solid rgba(11, 61, 46, 0.15);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-red);
}

.form-error {
    display: block;
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    min-height: 1.25rem;
}

.form-embed {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 16px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--medium-green);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background-color: rgba(11, 61, 46, 0.05);
    border-radius: 8px;
}

.icon-lock {
    flex-shrink: 0;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--ivory) 100%);
    border-radius: 16px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--dark-green);
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.success-message h3 {
    font-size: 1.75rem;
    color: var(--dark-green);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.success-message > p {
    font-size: 1.125rem;
    color: var(--medium-green);
    margin-bottom: 2rem;
}

.privacy-reassurance {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 1.5rem;
    background-color: rgba(11, 61, 46, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--gold);
    max-width: 500px;
    margin: 0 auto;
}

.privacy-reassurance svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.privacy-reassurance p {
    font-size: 0.9rem;
    color: var(--medium-green);
    line-height: 1.6;
    margin: 0;
}

.privacy-reassurance strong {
    color: var(--dark-green);
    font-weight: 600;
}

/* ===================================
   Whitepaper Section
   =================================== */

.whitepaper-section {
    background: linear-gradient(to bottom, var(--ivory), var(--light-gray));
}

.whitepaper-content {
    max-width: 900px;
    margin: 0 auto;
}

.document-viewer {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 61, 46, 0.1);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
    border: 1px solid rgba(11, 61, 46, 0.1);
    min-height: 400px;
}

.document-viewer .loading {
    text-align: center;
    color: var(--gray);
    padding: 2rem;
}

.document-viewer h1,
.document-viewer h2,
.document-viewer h3 {
    font-family: var(--font-sans);
    color: var(--dark-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document-viewer h1 { font-size: 2rem; }
.document-viewer h2 { font-size: 1.5rem; }
.document-viewer h3 { font-size: 1.25rem; }

.document-viewer p {
    margin-bottom: 1rem;
}

.document-viewer ul,
.document-viewer ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.document-viewer li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

/* ===================================
   Platform Section
   =================================== */

.platform-section {
    background-color: var(--white);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.platform-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 61, 46, 0.1);
}

.platform-card h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.values-list,
.feature-list,
.tech-list {
    list-style: none;
}

.values-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(11, 61, 46, 0.1);
    color: var(--medium-green);
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list strong {
    color: var(--dark-green);
    font-weight: 600;
}

.feature-list li,
.tech-list li {
    margin-bottom: 1.5rem;
}

.feature-list li:last-child,
.tech-list li:last-child {
    margin-bottom: 0;
}

.feature-list strong,
.tech-list strong {
    display: block;
    color: var(--dark-green);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-list p,
.tech-list p {
    color: var(--medium-green);
    line-height: 1.6;
    font-size: 0.95rem;
}

.platform-purpose {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--ivory) 100%);
    border-radius: 16px;
}

.purpose-statement {
    font-size: 1.125rem;
    color: var(--medium-green);
    line-height: 1.8;
}

.purpose-statement strong {
    color: var(--dark-green);
}

/* ===================================
   Roadmap Section
   =================================== */

.roadmap-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--ivory) 100%);
}

.roadmap-timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
}

.roadmap-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    position: relative;
    padding-top: 2rem;
}

.roadmap-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--medium-green);
    margin: 0 auto 1.5rem;
    position: relative;
    transition: var(--transition);
}

.roadmap-item.completed .roadmap-marker {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.roadmap-item.current .roadmap-marker {
    background-color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.2);
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: calc(50% + 20px);
    width: calc(100% - 20px);
    height: 4px;
    background-color: rgba(11, 61, 46, 0.2);
}

.roadmap-item:last-child::before {
    display: none;
}

.roadmap-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(11, 61, 46, 0.08);
    text-align: center;
    transition: var(--transition);
}

.roadmap-item:hover .roadmap-content {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 61, 46, 0.12);
}

.roadmap-content h3 {
    font-size: 1.25rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.roadmap-duration {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--white);
    background-color: var(--medium-green);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.roadmap-content p {
    font-size: 0.95rem;
    color: var(--medium-green);
    line-height: 1.6;
}

/* ===================================
   Team Section
   =================================== */

.team-section {
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 61, 46, 0.1);
    background-color: var(--ivory);
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: var(--dark-green);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(11, 61, 46, 0.1);
}

.team-member h3 {
    font-size: 1.125rem;
    color: var(--dark-green);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.team-role {
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--medium-green);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--dark-green);
    color: var(--ivory);
    padding: 3rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 254, 246, 0.8);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 254, 246, 0.8);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 254, 246, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 254, 246, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .roadmap-timeline {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--ivory);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 8px 24px rgba(11, 61, 46, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link,
    .nav-cta {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .precheck-form {
        padding: 1.5rem;
    }

    .document-viewer {
        padding: 1.5rem;
        font-size: 0.875rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================================
   Modal Styles
   =================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 61, 46, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background-color: var(--ivory);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-green);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--gold);
    transform: rotate(90deg);
}

.modal .section-title {
    margin-bottom: 0.5rem;
}

.modal .section-subtitle {
    text-align: left;
    margin-bottom: 2rem;
}

.modal .form-wrapper {
    margin: 0;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
    }
}

/* ===================================
   Secret Scroll Easter Egg
   =================================== */

.scroll-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.scroll-modal.hidden {
    display: none;
}

.scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 15, 10, 0.92);
    backdrop-filter: blur(10px);
}

.scroll-container {
    position: relative;
    background: #FFFEF6;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 4rem 3rem;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border: 1px solid #E5DDCC;
    position: relative;
}

.scroll-container::before {
    display: none;
}

.scroll-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(139, 90, 43, 0.1);
    color: #3A2F22;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 90, 43, 0.2);
    z-index: 2;
}

.scroll-close:hover {
    background-color: rgba(139, 90, 43, 0.2);
    transform: rotate(90deg);
}

.scroll-content {
    position: relative;
    z-index: 1;
}

.scroll-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(139, 90, 43, 0.2);
}

.scroll-header h2 {
    font-family: 'Caveat', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 2.5rem;
    color: #8B6914;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(212, 175, 55, 0.2);
    font-weight: 700;
}

.scroll-header p {
    font-family: 'Indie Flower', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 1.125rem;
    color: #3D2F1F;
    margin-bottom: 0.5rem;
}

.scroll-header h3 {
    font-family: 'Caveat', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 2rem;
    color: #2A1F12;
    margin: 1rem 0 0.5rem;
    font-weight: 700;
    text-shadow: none;
}

.scroll-subtitle {
    font-size: 1rem !important;
    font-style: italic;
    color: #5B4A35 !important;
}

.scroll-text {
    font-family: 'Indie Flower', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 1.125rem;
    line-height: 2;
    color: #3A2F22;
    white-space: pre-wrap;
    text-align: left;
    padding: 0 1rem;
}

.scroll-text h1,
.scroll-text h2,
.scroll-text h3 {
    font-family: 'Caveat', 'Brush Script MT', 'Lucida Handwriting', cursive;
    color: #1F1812;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: none;
    font-weight: 700;
}

.scroll-text h1 {
    font-size: 2rem;
    text-align: center;
}

.scroll-text h2 {
    font-size: 1.5rem;
}

.scroll-text h3 {
    font-size: 1.25rem;
}

/* Custom scrollbar for scroll */
.scroll-container::-webkit-scrollbar {
    width: 12px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(139, 90, 43, 0.04);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(139, 90, 43, 0.3);
    border-radius: 10px;
    border: 2px solid #FFFEF6;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 90, 43, 0.5);
}

@media (max-width: 768px) {
    .scroll-container {
        padding: 3rem 2rem;
        width: 95%;
    }

    .scroll-header h2 {
        font-size: 2rem;
    }

    .scroll-header h3 {
        font-size: 1.5rem;
    }

    .scroll-text {
        font-size: 1rem;
        line-height: 1.8;
        padding: 0;
    }
}

/* ===================================
   Dark Mode Support (Optional)
   =================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support */
    /*
    :root {
        --ivory: #1A1A1A;
        --light-gray: #2A2A2A;
        --white: #1F1F1F;
        --dark-green: #FFFEF6;
        --medium-green: #D4D4C8;
    }
    */
}
