:root {
    /* Color Palette - Earthy, Spiritual */
    --primary-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-cream: #f5f5dc;
    --accent-gold: #d4af37;
    --overlay-dark: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #000;
    color: var(--text-light);
    position: relative;
}

/* Background with Nature Images */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

/* Hamburger Menu */
.hamburger {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    z-index: 1001;
    transition: transform var(--transition-medium);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all var(--transition-medium);
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Top Logo */
.nav-logo-top {
    display: flex;
    align-items: center;
}

.logo-top {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dropdown-content {
    padding: var(--spacing-lg) var(--spacing-md);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.menu-item:hover {
    color: var(--accent-gold);
    padding-left: var(--spacing-sm);
}

.menu-arrow {
    font-size: 2rem;
    transition: transform var(--transition-fast);
}

.menu-item:hover .menu-arrow {
    transform: translateX(10px);
}

/* Main Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px var(--spacing-md) 120px;
    position: relative;
}

.content-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s ease-out;
}

/* Saying Container */
.saying-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: slideUp 0.8s ease-out;
}

.verse-text {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.attribution-text {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.subhead-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-cream);
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.reference-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Refresh Button */
.refresh-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.refresh-btn svg {
    width: 24px;
    height: 24px;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.refresh-btn:active {
    transform: scale(0.95) rotate(180deg);
}

/* Bottom Logo */
.logo-bottom-link {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.logo-bottom {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity var(--transition-medium);
}

.logo-bottom-link:hover .logo-bottom {
    opacity: 1;
}

/* Footer Message */
.footer-message {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    text-align: center;
    padding: var(--spacing-sm);
    font-size: 0.875rem;
    line-height: 1.5;
    z-index: 50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Tablet Styles */
@media (min-width: 768px) {
    .verse-text {
        font-size: 2rem;
    }
    
    .attribution-text {
        font-size: 1.5rem;
    }
    
    .subhead-text {
        font-size: 1.125rem;
    }
    
    .reference-text {
        font-size: 1rem;
    }
    
    .container {
        padding: 100px var(--spacing-xl) 140px;
    }
    
    .menu-item {
        font-size: 2rem;
    }
    
    .footer-message {
        font-size: 0.95rem;
        padding: var(--spacing-md);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .verse-text {
        font-size: 2.5rem;
        line-height: 1.5;
    }
    
    .attribution-text {
        font-size: 1.75rem;
    }
    
    .subhead-text {
        font-size: 1.25rem;
    }
    
    .reference-text {
        font-size: 1.125rem;
    }
    
    .content-wrapper {
        max-width: 800px;
    }
    
    .refresh-btn {
        width: 70px;
        height: 70px;
    }
    
    .refresh-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .logo-bottom {
        height: 60px;
    }
    
    .footer-message {
        font-size: 1rem;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .verse-text {
        font-size: 3rem;
    }
    
    .attribution-text {
        font-size: 2rem;
    }
    
    .subhead-text {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        max-width: 1000px;
    }
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth transitions for content changes */
.saying-container.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.saying-container.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
