/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.7;
    color: #E0E0E0;
    background: #0A0A2A;
    overflow-x: hidden;
    position: relative;
}

/* Sfondo cosmico animato */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0A0A2A 0%, #2C003E 50%, #0A0A2A 100%);
    z-index: -2;
    animation: cosmicShift 20s ease-in-out infinite alternate;
}

@keyframes cosmicShift {
    0% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, #0A0A2A 0%, #2C003E 50%, #0A0A2A 100%);
    }
    100% {
        background: 
            radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(120, 219, 226, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, #2C003E 0%, #0A0A2A 50%, #2C003E 100%);
    }
}

/* Stelle animate */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #D4AF37, transparent),
        radial-gradient(2px 2px at 40px 70px, #C0C0C0, transparent),
        radial-gradient(1px 1px at 90px 40px, #A080C0, transparent),
        radial-gradient(1px 1px at 130px 80px, #D4AF37, transparent),
        radial-gradient(2px 2px at 160px 30px, #C0C0C0, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 8s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.main-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #D4AF37;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 30px rgba(212, 175, 55, 0.1);
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3), 0 0 30px rgba(212, 175, 55, 0.1); }
    to { text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 25px rgba(212, 175, 55, 0.5), 0 0 35px rgba(212, 175, 55, 0.3); }
}

.subtitle {
    font-size: 1.3rem;
    color: #A080C0;
    font-style: italic;
    font-weight: 500;
}

/* Content sections */
.content {
    padding-bottom: 80px;
}

.intro-section {
    margin-bottom: 60px;
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    color: #B06080;
    font-style: italic;
    line-height: 1.8;
    padding: 30px;
    background: rgba(176, 96, 128, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(176, 96, 128, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-section {
    margin-bottom: 50px;
}

.content-section p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: justify;
    text-indent: 30px;
}

.content-section h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: #D4AF37;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    letter-spacing: 1px;
}

/* Dividers */
.divider {
    text-align: center;
    margin: 60px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(to right, transparent, #D4AF37, transparent);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.symbol {
    font-size: 2rem;
    color: #D4AF37;
    background: #0A0A2A;
    padding: 0 20px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: symbolPulse 2s ease-in-out infinite alternate;
}

@keyframes symbolPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Special boxes */
.note-box,
.reflection-box {
    margin: 40px 0;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.note-box {
    background: rgba(96, 160, 192, 0.1);
    border: 1px solid rgba(96, 160, 192, 0.3);
    border-left: 5px solid #60A0C0;
}

.reflection-box {
    background: rgba(160, 128, 192, 0.1);
    border: 1px solid rgba(160, 128, 192, 0.3);
    border-left: 5px solid #A080C0;
}

.note-box h3,
.reflection-box h3 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.4rem;
    color: #D4AF37;
    margin-bottom: 20px;
    text-align: center;
}

.note-box p,
.reflection-box p {
    text-indent: 0;
    margin-bottom: 15px;
}

.emphasis {
    font-weight: 600;
    color: #B06080;
    text-align: center;
    font-style: italic;
    font-size: 1.15rem;
}

/* Quote */
.osho-quote {
    margin: 40px 0;
    padding: 30px;
    background: rgba(212, 175, 55, 0.1);
    border-left: 5px solid #D4AF37;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.osho-quote::before {
    content: '"';
    font-size: 4rem;
    color: #D4AF37;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.osho-quote cite {
    display: block;
    text-align: right;
    margin-top: 15px;
    color: #A080C0;
    font-weight: 600;
}

/* Final wisdom */
.final-wisdom {
    font-size: 1.2rem;
    text-align: center;
    color: #D4AF37;
    font-weight: 600;
    padding: 30px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    margin: 40px 0;
    text-indent: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Author section */
.author-section {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    text-align: center;
}

.author-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    color: #D4AF37;
    margin-bottom: 30px;
    text-indent: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: #E0E0E0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.social-link .icon {
    font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-header {
        padding: 60px 0 40px;
    }
    
    .content-section p {
        text-indent: 15px;
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .note-box,
    .reflection-box,
    .osho-quote {
        padding: 20px;
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
        padding: 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #E0E0E0;
}

/* Strong text styling */
strong {
    color: #D4AF37;
    font-weight: 600;
}

