/* 
    Rev. Dr. Sally Julie Armah Memorial Website
    Custom Design System
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Outfit:wght@100..900&display=swap');

:root {
    --primary-color: #4B0082; /* Deep Royal Purple */
    --secondary-color: #D4AF37; /* Gold Metallic */
    --accent-color: #8A2BE2; /* Royal Blue Violet */
    --text-dark: #1A1A1A;
    --text-light: #F8F9FA;
    --bg-cream: #FFFDF9;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(75, 0, 130, 0.5), rgba(0, 0, 0, 0.7)), url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* Cards & Hover Effects */
.premium-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Portrait Image Styles */
.portrait-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--secondary-color);
}

.portrait-container img {
    transition: var(--transition-smooth);
}

.portrait-container:hover img {
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    transition: var(--transition-smooth);
    padding: 25px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
    transition: var(--transition-smooth);
    mix-blend-mode: multiply;
    filter: contrast(1.1); /* Ensures pure white background is fully keyed out */
}

.navbar.scrolled .navbar-brand img {
    height: 45px;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.navbar-brand {
    color: white !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: white !important;
    margin-left: 25px;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Gold Text Utility */
.text-gold {
    color: var(--secondary-color);
}

/* Quote Section */
.quote-section {
    background: linear-gradient(rgba(75, 0, 130, 0.9), rgba(75, 0, 130, 0.9)), url('../assets/hero_bg.png');
    background-attachment: fixed;
    color: white;
}

.blockquote {
    font-size: 2.5rem;
    border: none;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

/* Hero & Carousel Section */
.hero-carousel {
    height: 100vh;
}

.carousel-item {
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(45, 0, 80, 0.4), rgba(0, 0, 0, 0.7));
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: initial;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease-out;
}

.carousel-caption p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation: fadeInUp 1.5s ease-out;
}

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

/* Book Section */
.book-section {
    background: linear-gradient(135deg, #FFFDF9 0%, #F5F0FF 100%);
    position: relative;
    overflow: hidden;
}

.book-img-container {
    perspective: 1000px;
    transition: var(--transition-smooth);
}

.book-img-container img {
    max-width: 100%;
    border-radius: 5px 15px 15px 5px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.2);
    transform: rotateY(-15deg);
    transition: var(--transition-smooth);
}

.book-img-container:hover img {
    transform: rotateY(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.btn-purchase {
    background: linear-gradient(45deg, var(--secondary-color), #F8D800);
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    padding: 15px 40px;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-purchase::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transition: 0.8s;
}

.btn-purchase:hover::after {
    left: 200%;
}

.btn-purchase:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
    color: var(--primary-color);
}

/* Aesthetic Refinement - Smooth Corner & Shadows */
.premium-card, .glass-card, .gallery-item {
    border-radius: 24px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
}

.text-gold-gradient {
    background: linear-gradient(45deg, #D4AF37, #F8D800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .gallery-item {
        height: 250px;
    }
    .book-img-container {
        text-align: center;
        margin-bottom: 2rem;
    }
}


