/* Custom Design System for Willie L. Tisdale Author Website */

:root {
    --primary-color: #0f2b46;       /* Deep Navy Blue */
    --accent-color: #2b6cb0;        /* Soft Steel Blue */
    --bg-light: #f7fafc;            /* Very Light Blue-Grey */
    --bg-soft-blue: #eef2f7;        /* Soft blue bg */
    --text-main: #2d3748;           /* Dark Charcoal */
    --text-muted: #718096;          /* Soft Grey */
    --white: #ffffff;
    --border-light: #e2e8f0;
    --card-shadow: 0 10px 30px rgba(15, 43, 70, 0.04);
    --btn-shadow: 0 4px 14px rgba(43, 108, 176, 0.25);
    
    /* Typography */
    --serif-font: 'Playfair Display', Georgia, serif;
    --sans-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans-font);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.serif-font {
    font-family: var(--serif-font);
}

.logo-font {
    font-family: var(--serif-font);
    letter-spacing: -0.5px;
}

.text-dark-blue {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-light-muted {
    color: #a0aec0;
}

.tracking-wide {
    letter-spacing: 1.5px;
}

.tracking-wider {
    letter-spacing: 2px;
}

.italic {
    font-style: italic;
}

.max-w-lg {
    max-width: 550px;
}

.max-w-xl {
    max-width: 700px;
}

/* Generic Spacing */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Glassmorphism Navigation */
.transition-nav {
    transition: all 0.35s ease;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.transition-nav.scrolled {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(15, 43, 70, 0.06);
    border-bottom: 1px solid var(--border-light);
}

/* Custom Navigation Links */
#mainNavbar .nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

#mainNavbar .nav-link:hover {
    color: var(--accent-color);
}

#mainNavbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mainNavbar .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

#mainNavbar .nav-link.active::after {
    transform: scaleX(1);
}

/* Custom Badges */
.bg-soft-primary {
    background-color: rgba(43, 108, 176, 0.08);
}

/* Button Customizations */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1e4e7e 100%);
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: var(--btn-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e4e7e 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.35);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.transition-btn {
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
}

.hero-img-wrapper {
    width: 100%;
    max-width: 450px;
}

.hero-img-backdrop {
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background-color: rgba(43, 108, 176, 0.05) !important;
    border: 1px solid var(--border-light);
    z-index: 0;
}

.hero-portrait {
    transition: transform 0.5s ease;
}

.hero-portrait:hover {
    transform: scale(1.02);
}

/* About Author Section */
.bg-light-blue {
    background-color: rgba(43, 108, 176, 0.04);
}

.bio-portrait {
    transition: transform 0.5s ease;
}

.bio-portrait:hover {
    transform: scale(1.02);
}

.mission-block {
    background: linear-gradient(to right, rgba(43, 108, 176, 0.03), rgba(255, 255, 255, 0));
}

/* Book Section */
.book-cover-wrapper {
    position: relative;
    max-width: 350px;
}

.book-cover-shadow {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    background: rgba(0, 0, 0, 0.15);
    filter: blur(15px);
    z-index: 0;
}

.book-cover-img {
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.book-cover-img:hover {
    transform: translateY(-8px) rotate(-1deg);
}

/* Reader Benefit Cards */
.transition-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.transition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(15, 43, 70, 0.08) !important;
}

.icon-box-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(43, 108, 176, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

/* Buy The Book Section */
.btn-retailer {
    min-width: 220px;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--primary-color) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-retailer:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 43, 70, 0.08);
    border-color: rgba(43, 108, 176, 0.2);
}

.text-muted-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-amazon:hover {
    background-color: rgba(255, 153, 0, 0.04);
    border-color: #ff9900;
}

.btn-barnes:hover {
    background-color: rgba(1, 62, 53, 0.04);
    border-color: #013e35;
}

.btn-apple:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: #000000;
}

.btn-google:hover {
    background-color: rgba(52, 168, 83, 0.04);
    border-color: #34a853;
}

/* Social Media Section */
.social-circle-link {
    width: 55px;
    height: 55px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.35rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-circle-link:hover {
    transform: scale(1.1) translateY(-3px);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(15, 43, 70, 0.12);
}

.social-circle-link.facebook:hover {
    background-color: #3b5998;
    border-color: #3b5998;
}

.social-circle-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    border-color: #d6249f;
}

.social-circle-link.twitter:hover {
    background-color: #000000;
    border-color: #000000;
}

.social-circle-link.linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
}

.social-circle-link.youtube:hover {
    background-color: #ff0000;
    border-color: #ff0000;
}

/* Footer styling */
.bg-dark-blue {
    background-color: #0b1d30;
}

.footer-nav a {
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--white) !important;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    border: none;
}

.btn-back-to-top.show {
    display: flex;
    opacity: 1;
}

.btn-back-to-top:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .transition-nav {
        background-color: var(--white);
        box-shadow: 0 4px 20px rgba(15, 43, 70, 0.06);
    }
    
    #mainNavbar .nav-link::after {
        display: none;
    }
    
    #mainNavbar .nav-link {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-light);
    }
    
    #mainNavbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 120px;
    }
    
    .hero-img-wrapper {
        margin-top: 30px;
    }
    
    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 575.98px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .btn-retailer {
        width: 100%;
    }
}
