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

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #0d0a08 0%, #1a1410 50%, #0d0a08 100%);
    color: #e8dcc4;
    line-height: 1.6;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.laboratory-header {
    background: linear-gradient(135deg, rgba(45, 36, 22, 0.95) 0%, rgba(26, 20, 16, 0.95) 100%);
    border-bottom: 4px solid #4a3f2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-center {
    text-align: center;
    flex: 1;
}

.logo-seal {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.mystical-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4cf67 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    margin-bottom: 5px;
}

.subtitle-text {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: #b8a888;
    font-size: 1.1rem;
}

.candle-left,
.candle-right {
    width: 20px;
    height: 60px;
    background: linear-gradient(180deg, #e8dcc4 0%, #b8a888 100%);
    border-radius: 0 0 10px 10px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.flame {
    width: 15px;
    height: 25px;
    background: radial-gradient(ellipse at center, #ffd700 0%, #ff8c00 50%, #ff4500 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation: flicker 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.8);
}

@keyframes flicker {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.1, 0.9); opacity: 0.9; }
}

.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.alchemical-symbol-bg {
    position: absolute;
    font-size: 15rem;
    opacity: 0.05;
    color: #d4af37;
    pointer-events: none;
}

.alchemical-symbol-bg::before {
    content: "⚗";
}

.symbol-rotate-1 {
    top: -50px;
    left: -100px;
    animation: symbolRotate 30s linear infinite;
}

.symbol-rotate-2 {
    bottom: -50px;
    right: -100px;
    animation: symbolRotate 30s linear infinite reverse;
}

@keyframes symbolRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.8rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-text p {
    margin-bottom: 25px;
    text-align: justify;
}

.illuminated-paragraph {
    position: relative;
}

.illuminated-letter {
    font-family: 'Cinzel Decorative', serif;
    font-size: 5rem;
    color: #d4af37;
    float: left;
    line-height: 0.8;
    margin: 10px 15px 0 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.ornate-divider {
    text-align: center;
    margin: 60px 0;
}

.divider-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    opacity: 0.6;
}

.potions-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.5) 0%, rgba(45, 36, 22, 0.5) 100%);
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.section-subtitle {
    text-align: center;
    color: #b8a888;
    font-size: 1.2rem;
    margin-bottom: 50px;
    font-style: italic;
}

.laboratory-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.potion-card {
    background: linear-gradient(135deg, rgba(45, 36, 22, 0.8) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 3px solid #4a3f2a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(212, 175, 55, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.potion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3), inset 0 0 40px rgba(212, 175, 55, 0.1);
}

.potion-bottle {
    width: 80px;
    height: 100px;
    margin: 0 auto 25px;
    position: relative;
}

.bottle-body {
    width: 100%;
    height: 70%;
    background: linear-gradient(180deg, rgba(45, 95, 63, 0.4) 0%, rgba(45, 95, 63, 0.7) 100%);
    border: 3px solid #2d5f3f;
    border-radius: 0 0 40px 40px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 0 25px rgba(45, 95, 63, 0.5), inset 0 0 20px rgba(45, 95, 63, 0.3);
    animation: bottleGlow 3s ease-in-out infinite;
}

.bottle-neck {
    width: 40%;
    height: 35%;
    background: linear-gradient(180deg, rgba(45, 95, 63, 0.3) 0%, rgba(45, 95, 63, 0.5) 100%);
    border: 3px solid #2d5f3f;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bottle-cork {
    width: 50%;
    height: 15%;
    background: #4a3f2a;
    border-radius: 3px 3px 0 0;
    position: absolute;
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@keyframes bottleGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(45, 95, 63, 0.5), inset 0 0 20px rgba(45, 95, 63, 0.3); }
    50% { box-shadow: 0 0 35px rgba(45, 95, 63, 0.7), inset 0 0 25px rgba(45, 95, 63, 0.5); }
}

.potion-green .bottle-body { background: linear-gradient(180deg, rgba(45, 95, 63, 0.4) 0%, rgba(45, 95, 63, 0.7) 100%); border-color: #2d5f3f; }
.potion-green .bottle-neck { background: linear-gradient(180deg, rgba(45, 95, 63, 0.3) 0%, rgba(45, 95, 63, 0.5) 100%); border-color: #2d5f3f; }

.potion-blue .bottle-body { background: linear-gradient(180deg, rgba(0, 71, 171, 0.4) 0%, rgba(0, 71, 171, 0.7) 100%); border-color: #0047ab; }
.potion-blue .bottle-neck { background: linear-gradient(180deg, rgba(0, 71, 171, 0.3) 0%, rgba(0, 71, 171, 0.5) 100%); border-color: #0047ab; }

.potion-purple .bottle-body { background: linear-gradient(180deg, rgba(75, 0, 130, 0.4) 0%, rgba(75, 0, 130, 0.7) 100%); border-color: #4b0082; }
.potion-purple .bottle-neck { background: linear-gradient(180deg, rgba(75, 0, 130, 0.3) 0%, rgba(75, 0, 130, 0.5) 100%); border-color: #4b0082; }

.potion-red .bottle-body { background: linear-gradient(180deg, rgba(139, 0, 0, 0.4) 0%, rgba(139, 0, 0, 0.7) 100%); border-color: #8b0000; }
.potion-red .bottle-neck { background: linear-gradient(180deg, rgba(139, 0, 0, 0.3) 0%, rgba(139, 0, 0, 0.5) 100%); border-color: #8b0000; }

.potion-gold .bottle-body { background: linear-gradient(180deg, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.7) 100%); border-color: #d4af37; }
.potion-gold .bottle-neck { background: linear-gradient(180deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.5) 100%); border-color: #d4af37; }

.potion-orange .bottle-body { background: linear-gradient(180deg, rgba(255, 140, 0, 0.4) 0%, rgba(255, 140, 0, 0.7) 100%); border-color: #ff8c00; }
.potion-orange .bottle-neck { background: linear-gradient(180deg, rgba(255, 140, 0, 0.3) 0%, rgba(255, 140, 0, 0.5) 100%); border-color: #ff8c00; }

.potion-cyan .bottle-body { background: linear-gradient(180deg, rgba(0, 139, 139, 0.4) 0%, rgba(0, 139, 139, 0.7) 100%); border-color: #008b8b; }
.potion-cyan .bottle-neck { background: linear-gradient(180deg, rgba(0, 139, 139, 0.3) 0%, rgba(0, 139, 139, 0.5) 100%); border-color: #008b8b; }

.potion-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.4rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 15px;
}

.potion-description {
    color: #e8dcc4;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.potion-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #4a3f2a;
    opacity: 0.8;
}

.tome-section {
    padding: 80px 0;
    background: rgba(13, 10, 8, 0.5);
}

.tome-container {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 0;
    max-width: 1000px;
    margin: 50px auto;
    background: linear-gradient(135deg, #2d2416 0%, #1a1410 100%);
    border: 4px solid #4a3f2a;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    padding: 40px;
}

.tome-page {
    padding: 20px;
}

.tome-spine {
    width: 40px;
    background: linear-gradient(90deg, #2d2416 0%, #4a3f2a 50%, #2d2416 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.tome-heading {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
}

.tome-text {
    color: #e8dcc4;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.illuminated-letter-small {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    color: #d4af37;
    float: left;
    line-height: 0.8;
    margin: 5px 10px 0 0;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.tome-illustration {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #4a3f2a;
    margin-top: 20px;
    opacity: 0.7;
}

.laboratory-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.5) 0%, rgba(45, 36, 22, 0.5) 100%);
}

.laboratory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.ingredient-card {
    background: linear-gradient(135deg, rgba(45, 36, 22, 0.6) 0%, rgba(26, 20, 16, 0.6) 100%);
    border: 2px solid #4a3f2a;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.ingredient-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.ingredient-text {
    color: #e8dcc4;
    line-height: 1.7;
}

.process-container {
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(45, 36, 22, 0.8) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 3px solid #4a3f2a;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.process-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 40px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1410;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

.step-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.step-text {
    color: #e8dcc4;
    line-height: 1.7;
}

.wisdom-section {
    padding: 80px 0;
    background: rgba(13, 10, 8, 0.5);
}

.scroll-container {
    max-width: 900px;
    margin: 50px auto;
    background: linear-gradient(to right, #1a1410 0%, #2d2416 5%, #3a2f1e 50%, #2d2416 95%, #1a1410 100%);
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(212, 175, 55, 0.05);
}

.scroll-edge {
    position: absolute;
    width: 40px;
    height: 100%;
    top: 0;
    background: linear-gradient(90deg, #4a3f2a 0%, #3a2f1e 50%, #4a3f2a 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.scroll-edge-left {
    left: 0;
    border-radius: 20px 0 0 20px;
}

.scroll-edge-right {
    right: 0;
    border-radius: 0 20px 20px 0;
}

.scroll-content {
    padding: 60px 80px;
}

.scroll-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.wisdom-text {
    color: #e8dcc4;
}

.wisdom-heading {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    color: #d4af37;
    margin: 30px 0 20px;
}

.wisdom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.wisdom-list li {
    padding-left: 30px;
    margin-bottom: 15px;
    position: relative;
    line-height: 1.7;
}

.wisdom-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-size: 1.2rem;
}

.wisdom-paragraph {
    line-height: 1.8;
    text-align: justify;
    margin-top: 20px;
}

.laboratory-footer {
    background: linear-gradient(135deg, rgba(45, 36, 22, 0.95) 0%, rgba(26, 20, 16, 0.95) 100%);
    border-top: 4px solid #4a3f2a;
    padding: 50px 0 30px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-seal {
    flex-shrink: 0;
}

.wax-seal-footer {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #8b0000 0%, #5a0000 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.wax-seal-footer::before {
    content: "T";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    color: #d4af37;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.footer-text {
    flex: 1;
    text-align: center;
}

.footer-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: #b8a888;
    margin-bottom: 15px;
}

.footer-links {
    color: #e8dcc4;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-link {
    color: #d4af37;
}

.footer-separator {
    margin: 0 10px;
    color: #4a3f2a;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: #b8a888;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-candles {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.candle-small {
    width: 15px;
    height: 50px;
    background: linear-gradient(180deg, #e8dcc4 0%, #b8a888 100%);
    border-radius: 0 0 8px 8px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.flame-small {
    width: 12px;
    height: 20px;
    background: radial-gradient(ellipse at center, #ffd700 0%, #ff8c00 50%, #ff4500 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: flicker 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.8);
}

@media (max-width: 768px) {
    .mystical-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tome-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .tome-spine {
        display: none;
    }
    
    .scroll-content {
        padding: 40px 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .candle-left,
    .candle-right {
        display: none;
    }
    
    .laboratory-shelf {
        grid-template-columns: 1fr;
    }
}
