/* custom.css */
:root {
    --oxblood: #660018;
    --deep-blue: #0F2C59;
    --gold: #C5A028;
    --light-bg: #fffef7;
}

/* Custom Color Utilities */
.text-oxblood { color: var(--oxblood); }
.text-deep-blue { color: var(--deep-blue); }
.text-gold { color: var(--gold); }
.bg-oxblood { background-color: var(--oxblood); }
.bg-deep-blue { background-color: var(--deep-blue); }

/* Typography */
body {
    font-family: 'Inter', sans-serif;
}
.serif-title {
    font-family: 'Playfair Display', serif;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFDFD;
}
::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Custom Gradients */
.hero-gradient-overlay {
    background: linear-gradient(135deg, #ffffff 40%, rgba(15, 44, 89, 0.08) 75%, rgba(102, 0, 24, 0.06) 100%);
}

.vision-gradient-mesh {
    background: linear-gradient(135deg, #0F2C59 0%, #2A1B35 50%, #660018 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.whatsapp-button {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}
.whatsapp-button:hover {
    animation: none;
    transform: scale(1.1);
}

/* Hero Section Enhancements */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0F2C59 0%, #660018 80%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}
.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C5A028, #660018);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.hero-title:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 1/1;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 44, 89, 0.9), transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay p {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Modal Structures */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}
.modal.flex {
    display: flex;
}
.modal-content {
    background-color: var(--light-bg);
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--oxblood);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.close-modal:hover {
    background: var(--deep-blue);
    transform: rotate(90deg);
}

.book-content {
    padding: 45px 50px;
    max-height: 75vh;
    overflow-y: auto;
}
.book-content h1 {
    font-size: 1.8rem;
    color: var(--deep-blue);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 800;
}
.book-content .author {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9rem;
}
.book-content h2 {
    font-size: 1.3rem;
    color: var(--oxblood);
    margin: 25px 0 15px;
    border-left: 4px solid var(--gold);
    padding-left: 15px;
    font-weight: 700;
}
.book-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
    color: #374151;
}
.book-content ul, .book-content ol {
    margin: 15px 0 15px 30px;
}
.book-content li {
    margin: 8px 0;
    line-height: 1.7;
    color: #4b5563;
}

@media (max-width: 768px) {
    .book-content { padding: 25px; }
    .book-content h1 { font-size: 1.4rem; }
    .book-content h2 { font-size: 1.1rem; }
}

/* Custom Dynamic Toast Message Styles */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    min-width: 300px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 5px solid #0F2C59;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}
.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }
.toast.warning { border-left-color: #F59E0B; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
.toast-fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Premium Touches */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.premium-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(102, 0, 24, 0.1);
}
