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

:root {
    --primary-color: #8B4513;
    --secondary-color: #228B22;
    --accent-color: #FF6B35;
    --warm-brown: #D2691E;
    --forest-green: #228B22;
    --sage-green: #9CAF88;
    --cream: #F5F5DC;
    --warm-white: #FAFAFA;
    --text-dark: #2C2C2C;
    --text-light: #6B6B6B;
    --gold: #FFD700;
    --bronze: #CD7F32;
    --shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    --shadow-hover: 0 8px 30px rgba(139, 69, 19, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    height: 100vh;
}

.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-tree {
    margin-bottom: 2rem;
    animation: treeGrow 2s ease-out;
}

.tree-trunk {
    width: 20px;
    height: 60px;
    background: var(--warm-brown);
    margin: 0 auto;
    border-radius: 10px;
}

.tree-leaves {
    width: 80px;
    height: 60px;
    background: var(--forest-green);
    border-radius: 50%;
    margin: -30px auto 0;
    position: relative;
}

.tree-leaves::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: var(--sage-green);
    border-radius: 50%;
}

@keyframes treeGrow {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-content h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
    color: var(--gold);
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--accent-color));
    border-radius: 2px;
    animation: loadingProgress 3s ease-out;
}

@keyframes loadingProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.personal-note {
    text-align: center;
    margin-top: 2rem;
    padding: 0.5rem;
}

.personal-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

@media (max-width: 768px) {
    .personal-note p {
        color: rgba(255, 255, 255, 0.9);
    }
}

.author-link {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.author-link:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

/* 3D Forest Experience */
.forest-experience {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
}

#forest-container {
    width: 100%;
    height: 100%;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-tree {
    margin-bottom: 2rem;
    animation: treeGrow 2s ease-out;
}

.tree-trunk {
    width: 20px;
    height: 60px;
    background: var(--warm-brown);
    margin: 0 auto;
    border-radius: 10px;
}

.tree-leaves {
    width: 80px;
    height: 60px;
    background: var(--forest-green);
    border-radius: 50%;
    margin: -30px auto 0;
    position: relative;
}

.tree-leaves::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: var(--sage-green);
    border-radius: 50%;
}

@keyframes treeGrow {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-content h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
    color: var(--gold);
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--accent-color));
    border-radius: 2px;
    animation: loadingProgress 3s ease-out;
}

@keyframes loadingProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.mobile-warning {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    text-align: center;
    color: #FFC107;
    display: none;
}

.mobile-warning i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.mobile-warning p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Mobile Popup */
.mobile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    pointer-events: auto;
}

.mobile-popup.hidden {
    display: none;
}

.mobile-popup-content {
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.95), rgba(72, 61, 139, 0.95));
    border: 2px solid rgba(135, 206, 235, 0.6);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.mobile-popup-header {
    margin-bottom: 1.5rem;
}

.mobile-popup-header i {
    font-size: 3rem;
    color: #FFC107;
    margin-bottom: 1rem;
    display: block;
}

.mobile-popup-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
}

.mobile-popup-content p {
    margin: 0 0 2rem 0;
    line-height: 1.6;
    opacity: 0.9;
}

.mobile-popup-close {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: #FFC107;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.mobile-popup-close:hover {
    background: rgba(255, 193, 7, 0.4);
    transform: scale(1.05);
}

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

/* Forest UI */
.forest-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.ui-top {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ui-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-btn {
    margin-left: 10px;
}

.fullscreen-btn.fullscreen {
    background: rgba(255, 215, 0, 0.3);
}

/* Expandable Menu */
.expandable-menu {
    position: absolute;
    top: 80px;
    left: 20px;
    width: 350px;
    max-height: 70vh;
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.95), rgba(72, 61, 139, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(135, 206, 235, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(135, 206, 235, 0.3);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.expandable-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s infinite;
    opacity: 0.6;
    pointer-events: none;
}

.expandable-menu.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(135, 206, 235, 0.3);
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.8), rgba(72, 61, 139, 0.8));
    color: white;
    position: relative;
    z-index: 2;
}

.menu-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.menu-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.menu-close-btn:hover {
    opacity: 1;
}

.menu-items {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.5rem;
    position: relative;
    z-index: 2;
    background: rgba(25, 25, 112, 0.3);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(135, 206, 235, 0.4);
    backdrop-filter: blur(10px);
    color: white;
}

.menu-item:hover {
    background: rgba(135, 206, 235, 0.3);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.5);
    border-color: rgba(135, 206, 235, 0.8);
}

.menu-item-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.menu-item-content h4 {
    margin: 0 0 0.3rem 0;
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.4);
}

.menu-item-content p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.menu-footer {
    padding: 1rem;
    border-top: 1px solid rgba(135, 206, 235, 0.3);
    background: rgba(72, 61, 139, 0.4);
    position: relative;
    z-index: 2;
}

.letter-status {
    display: flex;
    align-items: center;
}

.letter-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.letter-info h4 {
    margin: 0 0 0.3rem 0;
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(135, 206, 235, 0.4);
}

.letter-info p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

/* Menu item states */
.menu-item.collected {
    background: rgba(50, 205, 50, 0.3);
    border-color: rgba(50, 205, 50, 0.8);
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.5);
}

.menu-item.collected .menu-item-icon {
    animation: collectedPulse 2s infinite;
    filter: drop-shadow(0 0 10px rgba(50, 205, 50, 0.8));
}

@keyframes collectedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.compass {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--gold);
    transform: translate(-50%, -50%);
    transform-origin: center;
    animation: compassSpin 4s linear infinite;
}

@keyframes compassSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ui-bottom {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.inventory {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1rem;
    max-width: 400px;
    pointer-events: auto;
}

.inventory-title {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.inventory-items {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.inventory-item {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inventory-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Artifact Modal - Handwritten Letter Design */
.artifact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: auto;
}

.modal-content {
    background: 
        linear-gradient(135deg, #fefefe 0%, #f8f6f0 50%, #f0ede5 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(139, 69, 19, 0.02) 1px,
            rgba(139, 69, 19, 0.02) 2px
        );
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    position: relative;
    box-shadow: 
        0 25px 80px rgba(139, 69, 19, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 0 0 1px rgba(139, 69, 19, 0.1);
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    overflow-y: auto;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.modal-close {
    position: sticky;
    top: 1rem;
    right: 1rem;
    background: rgba(139, 69, 19, 0.05);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    color: #8B4513;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    margin-bottom: 1.5rem;
    z-index: 10;
}

.modal-close:hover {
    opacity: 1;
    background: rgba(139, 69, 19, 0.15);
    transform: scale(1.05);
    border-color: rgba(139, 69, 19, 0.5);
}

.artifact-scrollable-content {
    /* Remove max-height and overflow since the modal-content now handles scrolling */
    padding-right: 0.5rem;
}

.artifact-header {
    text-align: left;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
    padding-top: 0.5rem;
    position: relative;
}

/* Removed the header divider line */

/* Hide border for About Me section */
.artifact-header.about-section {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: .5rem;

}

.artifact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border: 2px solid #654321;
    border-radius: 50%;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f8f6f0;
    box-shadow: 
        0 4px 12px rgba(139, 69, 19, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    float: left;
    margin-right: 1.5rem;
}

.artifact-title {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    color: #2c1810;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
    margin-top: 0.5rem;
}

.artifact-description {
    color: #5D4037;
    line-height: 1.6;
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Navigation Hints */
.navigation-hints {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.hint {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hint:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Personal Note */
    .personal-note p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.7rem;
    }
    
    /* Navigation Hints */
    .navigation-hints {
        display: none;
    }
    
    /* Forest UI */
    .ui-top {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
        flex-direction: row;
        align-items: center;
    }
    
    .ui-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .compass {
        width: 50px;
        height: 50px;
    }
    
    /* Expandable Menu */
    .expandable-menu {
        width: 90%;
        max-width: 350px;
        left: 5%;
        top: 70px;
        max-height: 80vh;
        display: block !important; /* Force show on mobile */
    }
    
    .expandable-menu.hidden {
        display: block !important; /* Override hidden class on mobile */
    }
    
    .menu-header {
        padding: 1rem;
    }
    
    .menu-header h3 {
        font-size: 1.2rem;
    }
    
    .menu-items {
        max-height: 60vh;
        padding: 0.3rem;
    }
    
    .menu-item {
        padding: 0.8rem;
        margin: 0.3rem 0;
    }
    
    .menu-item-content h4 {
        font-size: 0.9rem;
    }
    
    .menu-item-content p {
        font-size: 0.7rem;
    }
    
    /* Artifact Modal */
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .artifact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .artifact-title {
        font-size: 1.3rem;
    }
    
    .artifact-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Inventory */
    .inventory {
        max-width: 100%;
        padding: 0.8rem;
    }
    
    .inventory-title {
        font-size: 0.8rem;
    }
    
    .inventory-items {
        gap: 0.3rem;
    }
    
    .inventory-item {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Proximity Hint */
    #proximity-hint {
        bottom: 20px;
        left: 10px;
        right: 10px;
        transform: none;
        font-size: 16px;
        padding: 15px 20px;
    }
    
    /* Mobile Popup */
    .mobile-popup-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .mobile-popup-header i {
        font-size: 2.5rem;
    }
    
    .mobile-popup-header h3 {
        font-size: 1.3rem;
    }
    
    .mobile-popup-content p {
        font-size: 0.9rem;
    }
    
    .mobile-popup-close {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Mobile optimizations for loading screen */
    
    .expandable-menu {
        width: 95%;
        left: 2.5%;
    }
    
    .ui-top {
        padding: 0.3rem;
    }
    
    .ui-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .artifact-title {
        font-size: 1.1rem;
    }
    
    .artifact-description {
        font-size: 0.8rem;
    }
}

/* Mobile Disclaimer Modal */
.mobile-disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-disclaimer-modal.show {
    opacity: 1;
}

.mobile-disclaimer-content {
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.95), rgba(72, 61, 139, 0.95));
    border: 2px solid rgba(135, 206, 235, 0.6);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mobile-disclaimer-modal.show .mobile-disclaimer-content {
    transform: scale(1);
}

.disclaimer-header {
    margin-bottom: 1.5rem;
}

.disclaimer-header i {
    font-size: 3rem;
    color: #87CEEB;
    margin-bottom: 1rem;
    display: block;
}

.disclaimer-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
}

.mobile-disclaimer-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    opacity: 0.9;
    font-size: 0.95rem;
}

.disclaimer-close-btn {
    background: rgba(135, 206, 235, 0.3);
    border: 1px solid rgba(135, 206, 235, 0.6);
    color: #87CEEB;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto 0 auto;
}

.disclaimer-close-btn:hover {
    background: rgba(135, 206, 235, 0.4);
    transform: scale(1.05);
}



/* Success Animation */
.success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Content Type Styles */
/* Content Type Styles - Handwritten Letter Design */
.artifact-dynamic-content {
    background: transparent;
    padding: 0;
    animation: fadeIn 0.5s ease-in-out;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    color: #2c1810;
    line-height: 1.8;
    letter-spacing: 0.2px;
}

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

/* Custom Scrollbar - Handwritten Letter Theme */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.05);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(139, 69, 19, 0.5));
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.4), rgba(139, 69, 19, 0.6));
}

/* Profile - Handwritten Letter Design */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.profile-name {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    color: #2c1810;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem 0;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.1);
}

/* Removed the top divider line */

.basics-section h3,
.personality-section h3,
.fun-facts-section h3,
.background-section h3,
.interests-section h3,
.values-section h3 {
    margin: 0 0 1.5rem 0;
    color: #2c1810;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-left: 2rem;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.3px;
}

.basics-section h3::before,
.personality-section h3::before,
.fun-facts-section h3::before,
.background-section h3::before,
.interests-section h3::before,
.values-section h3::before {
    content: '❦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #8B4513;
    opacity: 0.7;
}

/* Profile Photo Section */
.profile-photo-section {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid rgba(139, 69, 19, 0.3);
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    overflow: hidden;
    position: relative;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transform: scale(1.25);
}

/* Profile Quote Section */
.profile-quote-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(248, 246, 240, 0.4) 100%);
    border-radius: 12px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.profile-quote {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    font-size: 1.4rem;
    color: #2c1810;
    margin: 0;
    line-height: 1.6;
    position: relative;
    padding: 0 2rem;
}

.profile-quote::before,
.profile-quote::after {
    content: '"';
    font-size: 2rem;
    color: #8B4513;
    opacity: 0.6;
    position: absolute;
    top: -0.5rem;
}

.profile-quote::before {
    left: 0;
}

.profile-quote::after {
    right: 0;
}

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

.basic-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 246, 240, 0.6) 100%);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(139, 69, 19, 0.2);
    box-shadow: 
        0 2px 8px rgba(139, 69, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    font-size: 0.95rem;
}

.basic-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(139, 69, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(139, 69, 19, 0.5);
}

.basic-label {
    font-weight: 700;
    color: #8B4513;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.basic-value {
    color: #5D4037;
    font-weight: 600;
}

.background-text {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 220, 0.8) 100%);
    border-radius: 12px;
    padding: 1.8rem;
    line-height: 1.8;
    margin: 0;
    border-left: 4px solid #8B4513;
    box-shadow: 
        0 4px 15px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #5D4037;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.interest-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 220, 0.95) 100%);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(10px);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
}

.interest-item::before {
    content: '✨';
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    border-left: 5px solid var(--sage-green);
    box-shadow: 0 4px 15px rgba(156, 175, 136, 0.1);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 175, 136, 0.15);
}

.value-item::before {
    content: '💎';
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Photo Gallery - Enhanced */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.photo-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 255, 248, 0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 139, 34, 0.2);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.2);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.gallery-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.photo-item:hover .gallery-photo {
    transform: scale(1.02);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.photo-overlay i {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-caption {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Notes Container - Redesigned */
.notes-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.note-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.note-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
}

.note-author {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-text {
    font-style: italic;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

/* Timeline - Redesigned */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--accent-color), var(--forest-green));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 255, 248, 0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 139, 34, 0.2);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.15);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-year {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    margin: 0 0 0.8rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-company {
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.timeline-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

.adventures-list,
.practices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.adventures-list li,
.practices-list li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    padding-left: 2rem;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.adventures-list li::before {
    content: '✦';
    position: absolute;
    left: 0.5rem;
    color: #8B4513;
    font-size: 1rem;
}

.practices-list li::before {
    content: '❦';
    position: absolute;
    left: 0.5rem;
    color: #8B4513;
    font-size: 0.9rem;
}

/* Enhanced Journey/Inner Work Section */
.journey-container {
    max-width: 100%;
}

.journey-intro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.9) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #8B4513;
}

.journey-intro p {
    margin: 0;
    line-height: 1.7;
    color: #5D4037;
    font-size: 1.1rem;
}

.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.journey-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 255, 248, 0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 5px solid #00b894;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.1);
    transition: all 0.3s ease;
}

.journey-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.15);
}

.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.journey-header h3 {
    margin: 0;
    color: #2c1810;
    font-size: 1.2rem;
    font-weight: 600;
}

.journey-year,
.journey-status {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.journey-status {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.journey-description {
    color: #5D4037;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.journey-impact {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid #00b894;
}

.journey-impact h4 {
    margin: 0 0 0.5rem 0;
    color: #2c1810;
    font-size: 0.9rem;
    font-weight: 600;
}

.journey-impact p {
    margin: 0;
    color: #5D4037;
    line-height: 1.6;
    font-size: 0.9rem;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.practice-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 246, 240, 0.8) 100%);
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid rgba(0, 184, 148, 0.2);
    font-size: 0.9rem;
    color: #5D4037;
    text-align: center;
    transition: all 0.3s ease;
}

.practice-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.1);
}

.journey-reflection {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 5px solid #fd79a8;
}

.journey-reflection h3 {
    margin: 0 0 1rem 0;
    color: #2c1810;
    font-size: 1.2rem;
    font-weight: 600;
}

.journey-reflection p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #5D4037;
}

.journey-reflection p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for journey section */
@media (max-width: 768px) {
    .journey-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .journey-item {
        padding: 1rem;
    }
}

/* Playlist - Redesigned */
.playlist-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 220, 0.95) 100%);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.1);
}

.playlist-header {
    text-align: center;
    margin-bottom: 2rem;
}

.playlist-header h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.spotify-link {
    display: inline-block;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.spotify-link:hover {
    background: linear-gradient(135deg, #1ed760, #1DB954);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
}

.favorites-list h4 {
    margin: 0 0 1.2rem 0;
    color: var(--accent-color);
}

.favorites-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.favorites-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.favorites-list li::before {
    content: '🎵';
    position: absolute;
    left: 0;
}

/* Vision */
.vision-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qualities-section h3,
.vision-section h3,
.divine-union-section h3,
.growth-consciousness-section h3,
.embodied-connection-section h3,
.adventure-wonder-section h3,
.community-impact-section h3,
.communication-repair-section h3,
.sacred-mundane-section h3 {
    margin: 0 0 1rem 0;
    color: var(--accent-color);
}

.qualities-list,
.vision-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualities-list li,
.vision-list li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    padding-left: 2rem;
}

.qualities-list li::before {
    content: '💝';
    position: absolute;
    left: 0.5rem;
}

.vision-list li::before {
    content: '✨';
    position: absolute;
    left: 0.5rem;
}

.vision-text {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Music Content Styles */
.artists-section,
.places-section,
.hobbies-section,
.music-track-section {
    margin-bottom: 2rem;
}

.artists-section h4,
.places-section h4,
.hobbies-section h4,
.music-track-section h4 {
    color: #2c1810;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
}

.artists-grid,
.places-grid,
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.artist-item,
.place-item,
.hobby-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 246, 240, 0.6) 100%);
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
}

.artist-item:hover,
.place-item:hover,
.hobby-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
}

.music-track-link {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(139, 69, 19, 0.2) 100%);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #2c1810;
    text-decoration: none;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.music-track-link:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(139, 69, 19, 0.3) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .gallery-photo {
        height: 120px;
    }
    
    .timeline-container {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -2rem;
    }
    
    .playlist-container {
        padding: 1rem;
    }
    
    .spotify-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .qualities-list li {
        padding: 0.6rem;
        padding-left: 1.8rem;
    }
    
    .basics-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .basic-item {
        padding: 0.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .interest-item {
        padding: 0.6rem;
        padding-left: 1.8rem;
        text-align: left;
    }
    
    .value-item {
        padding: 0.6rem;
        padding-left: 1.8rem;
    }
    
    /* Photo Modal Mobile */
    .photo-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .photo-modal-img {
        max-height: 70vh;
    }
    
    .photo-modal-close {
        top: -40px;
        right: 10px;
    }
} 

/* Photo Modal */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: auto;
}

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

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.photo-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.photo-modal-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.photo-modal-caption {
    color: white;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced Content Styles */

/* Personal Story Section */
.personal-story-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.9) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid #8B4513;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.story-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #5D4037;
    font-size: 1.1rem;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Enhanced Photo Gallery */
.gallery-intro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 246, 240, 0.8) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #8B4513;
    font-style: normal;
}

.gallery-intro p {
    margin: 0;
    line-height: 1.7;
    color: #5D4037;
    font-size: 1rem;
}

.photo-info {
    padding: 1rem;
}

.photo-context {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.photo-category,
.photo-year {
    background: rgba(139, 69, 19, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #8B4513;
    font-weight: 600;
}

.overlay-text {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-overlay:hover .overlay-text {
    opacity: 1;
}

/* Enhanced Notes Section */
.notes-intro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.9) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #8B4513;
}

.notes-intro p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #5D4037;
}

.interactive-prompt {
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.8) 0%, rgba(255, 228, 225, 0.8) 100%);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.interactive-prompt h4 {
    margin: 0 0 0.5rem 0;
    color: #8B4513;
    font-size: 1rem;
}

.interactive-prompt p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #5D4037;
}

.prompt-button {
    background: linear-gradient(135deg, #FF6B35, #CC4A1B);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prompt-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.note-toggle {
    background: rgba(139, 69, 19, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #8B4513;
    transition: all 0.3s ease;
}

.note-toggle:hover {
    background: rgba(139, 69, 19, 0.2);
}

.note-details {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 3px solid #8B4513;
}

.note-details.hidden {
    display: none;
}

.note-context {
    font-style: italic;
    color: #5D4037;
    margin-bottom: 1rem;
}

.note-reflection h5 {
    margin: 0 0 0.5rem 0;
    color: #8B4513;
    font-size: 0.9rem;
}

.note-reflection p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5D4037;
}

/* Enhanced Vision Section */
.vision-intro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.9) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #8B4513;
}

.vision-intro p {
    margin: 0;
    line-height: 1.7;
    color: #5D4037;
    font-size: 1.1rem;
}

.core-values-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 255, 248, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid #00b894;
}

.section-description {
    color: #8B4513;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.deal-breakers {
    border-left: 3px solid #ff6b6b;
}

.deal-breakers li {
    color: #d63031;
}

.what-i-bring-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid #74b9ff;
}

.life-vision-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 5px solid #fd79a8;
}

.life-vision-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #5D4037;
}

.life-vision-content p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .personal-story-section,
    .gallery-intro,
    .notes-intro,
    .vision-intro {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .story-content p,
    .vision-intro p {
        font-size: 1rem;
    }
    
    .photo-context {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Welcome Modal Styles */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.welcome-modal.show {
    opacity: 1;
}

.welcome-content {
    background: linear-gradient(135deg, #fefefe 0%, #f8f6f0 50%, #f0ede5 100%);
    border: 2px solid #8B4513;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 80px rgba(139, 69, 19, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.welcome-modal.show .welcome-content {
    transform: scale(1);
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.welcome-header h2 {
    margin: 0;
    color: #2c1810;
    font-size: 1.8rem;
    font-weight: 600;
}

.welcome-close {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.welcome-close:hover {
    background: rgba(139, 69, 19, 0.2);
    transform: scale(1.05);
}

.welcome-body {
    padding: 1.5rem 2rem 2rem 2rem;
}

.welcome-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5D4037;
    margin-bottom: 2rem;
    text-align: center;
}

.controls-section {
    margin-bottom: 2rem;
}

.controls-section h3 {
    color: #2c1810;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 246, 240, 0.8) 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

.control-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.control-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
}

.control-info h4 {
    margin: 0 0 0.3rem 0;
    color: #2c1810;
    font-size: 1rem;
    font-weight: 600;
}

.control-info p {
    margin: 0;
    color: #5D4037;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tips-section {
    margin-bottom: 2rem;
}

.tips-section h3 {
    color: #2c1810;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 246, 240, 0.6) 100%);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    color: #5D4037;
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 3px solid #8B4513;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

.welcome-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
}

.welcome-footer p {
    margin: 0 0 1.5rem 0;
    color: #5D4037;
    font-size: 1.1rem;
    font-weight: 600;
}

.welcome-start-btn {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.welcome-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .welcome-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .welcome-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .control-item {
        padding: 0.8rem;
    }
    
    .welcome-intro {
        font-size: 1rem;
    }
}