/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Warm, Spiritual Tones */
    --primary-gold: #d4af37;
    --deep-gold: #b8941f;
    --soft-cream: #faf8f3;
    --warm-beige: #f5f0e8;
    --text-dark: #2c2416;
    --text-light: #5a4f3f;
    --accent-orange: #ff8c42;
    --sacred-red: #c44536;
    --shadow-soft: rgba(44, 36, 22, 0.1);
    --shadow-medium: rgba(44, 36, 22, 0.15);

    /* Typography */
    --font-primary: 'Lora', serif;
    --font-display: 'Cormorant Garamond', serif;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--soft-cream) 0%, var(--warm-beige) 100%);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* Music Player */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-toggle {
    background: linear-gradient(135deg, var(--primary-gold), var(--deep-gold));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.music-toggle:active {
    transform: translateY(0);
}

.music-icon {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.music-toggle.playing .music-icon {
    animation: rotate 3s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Resource Links Section */
.resource-links {
    padding: 40px 0 20px;
    text-align: center;
}

.resources-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.resources-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-orange));
    border-radius: 2px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.resource-link {
    background: white;
    padding: 28px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 25px var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.resource-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-medium);
    border-color: var(--primary-gold);
}

.link-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.resource-link:hover .link-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.resource-link h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.resource-link p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Om Sai Ram Overlay */
.om-sai-ram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.8),
        0 0 40px rgba(212, 175, 55, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.6s ease;
    white-space: nowrap;
}

.om-sai-ram.visible {
    opacity: 1;
}

.image-container {
    cursor: pointer;
}

.hero-image {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-image.clicked {
    transform: scale(0) rotate(360deg);
    opacity: 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.image-container {
    position: relative;
    width: 320px;
    height: 400px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 60px var(--shadow-medium),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px var(--shadow-medium),
        0 0 0 2px var(--primary-gold),
        0 0 40px rgba(212, 175, 55, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.15) contrast(1.1);
    transition: filter 0.4s ease;
}

.image-container:hover .hero-image {
    filter: sepia(0.25) contrast(1.15);
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 50%,
            rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
}

.title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.dates {
    font-size: 1rem;
    color: var(--primary-gold);
    font-style: italic;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* Content Sections */
.content {
    padding: 40px 0 60px;
}

.section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow:
        0 10px 40px var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.intro-text {
    font-size: 1.35rem;
    line-height: 2;
    color: var(--text-dark);
    font-weight: 400;
}

h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 16px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-orange));
    border-radius: 2px;
}

.section p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 16px;
}

.section strong {
    color: var(--text-dark);
    font-weight: 600;
}

.section em {
    color: var(--primary-gold);
    font-style: italic;
}

/* Teaching Cards */
.teachings-section {
    margin-top: 60px;
}

.teaching-card {
    background: white;
    padding: 32px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-soft);
    border-left: 4px solid var(--primary-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teaching-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px var(--shadow-medium);
}

.teaching-card.highlight {
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    border-left-color: var(--accent-orange);
    border-left-width: 6px;
}

.teaching-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.teaching-card ul {
    list-style: none;
    padding-left: 0;
}

.teaching-card li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-light);
}

.teaching-card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.quote {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-align: center;
    margin: 20px 0 8px;
    line-height: 1.4;
}

.quote-translation {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
}

/* Legacy Grid */
.legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.legacy-item {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legacy-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px var(--shadow-medium);
}

.icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: grayscale(0.3);
}

.legacy-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.legacy-item p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Final Section */
.final-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 140, 66, 0.08) 100%);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px 60px;
    border-top: 1px solid rgba(44, 36, 22, 0.1);
    margin-top: 40px;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

.footer-text a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .intro-text {
        font-size: 1.15rem;
    }

    h2 {
        font-size: 2rem;
    }

    .image-container {
        width: 280px;
        height: 350px;
    }

    .teaching-card {
        padding: 24px;
    }

    .quote {
        font-size: 1.8rem;
    }

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

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

    .resources-title {
        font-size: 2.2rem;
    }

    .om-sai-ram {
        font-size: 2.2rem;
    }

    .music-toggle {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

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

    .image-container {
        width: 240px;
        height: 300px;
    }

    .intro-section {
        padding: 28px 20px;
    }

    .music-player {
        top: 10px;
        right: 10px;
    }

    .om-sai-ram {
        font-size: 1.8rem;
    }

    .resources-title {
        font-size: 1.8rem;
    }
}