/* General Styles */
body {
    margin: 0;
    padding: 0;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay animations for sequential appearance */
.hero-section .animate-on-scroll:nth-child(1) {
    transition-delay: 0.2s;
}

.hero-section .animate-on-scroll:nth-child(2) {
    transition-delay: 0.4s;
}

.hero-section .animate-on-scroll:nth-child(3) {
    transition-delay: 0.6s;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background: url('../css/images/backgroundimage.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.4);
    z-index: 1;
}

.group-photo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1200px;
    height: 70vh;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.group-photo {
    width: 60%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.bookshelf-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    background: url('../images/bookshelf-bg.jpg') repeat;
    opacity: 0.9;
    z-index: 2;
}

.bookshelf-overlay.left {
    left: 0;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.bookshelf-overlay.right {
    right: 0;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 4;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(44, 24, 16, 0.7);
    border-radius: 5px;
}

.hero-section .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(44, 24, 16, 0.7);
    border-radius: 5px;
}

/* Navbar Customization */
.navbar {
    background: transparent !important;
    padding: 10px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(33, 37, 41, 0.95) !important;
    padding: 8px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.brand-logo {
    height: 45px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.store-id {
    font-size: 0.99rem;
    opacity: 0.9;
    color: #ffffff;
}

.nav-list {
    margin-left: auto;
    padding-right: 0;
}

.nav-item {
    margin: 0 2px;
}

.nav-link {
    font-size: 1rem;
    padding: 0.5rem 0.8rem !important;
    transition: color 0.3s ease;
    color: #fafafa !important;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link:hover {
    color: #ffae00 !important;
}

/* Update navbar colors when scrolled */
.navbar.scrolled .brand-name,
.navbar.scrolled .store-id,
.navbar.scrolled .nav-link {
    color: #fff !important;
}

.navbar.scrolled .nav-link:hover {
    color: #ff6b6b !important;
}

/* Hero Section Title */
.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.3;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section h1 br {
    display: block;
}

.hero-section .lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-primary {
    background: linear-gradient(to right, #ff6b6b, #ff8585);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(to right, #ff8585, #ff6b6b);
}

/* Featured Books Section */
.featured-books {
    background-color: #fff;
    position: relative;
}

.featured-books .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-books .card:hover {
    transform: translateY(-5px);
}

.featured-books .card-img-top {
    height: 400px;
    object-fit: cover;
}

/* Footer Customization */
footer {
    background-color: #343a40;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #17a2b8 !important;
}

footer i {
    margin-right: 10px;
}

/* Footer Styling */
.footer-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 70px 0 0;
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #ff4d4d, #ff6b6b, #ff4d4d);
}

.footer-section h5 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h5 i {
    margin-right: 10px;
    color: #ff6b6b;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ff6b6b;
}

/* About Section */
.footer-about p {
    color: #b3b3b3;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ff6b6b;
    color: #fff;
    transform: translateY(-3px);
}

/* Quick Links */
.footer-links ul li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links ul li i {
    color: #ff6b6b;
    margin-right: 10px;
    font-size: 0.8rem;
}

.footer-links ul li a {
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ff6b6b;
    padding-left: 5px;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item p, 
.contact-item a {
    color: #b3b3b3;
    margin: 0;
    line-height: 1.6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #ff6b6b;
}

/* Footer Bottom */
.footer-bottom {
    background: #141414;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-bottom p {
    color: #808080;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .footer-section {
        padding: 50px 0 0;
    }
    
    .footer-section h5 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .store-id {
        font-size: 0.8rem;
    }
    
    .brand-logo {
        height: 40px;
    }
    
    .group-photo {
        width: 75%;
    }
    
    .bookshelf-overlay {
        width: 20%;
    }
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
    
    .footer-section h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section h5 {
        text-align: center;
    }
    
    .footer-about p {
        text-align: center;
    }
    
    .footer-links ul li {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .nav-link i {
        font-size: 0.95rem;
    }
    
    .brand-name {
        font-size: 0.8rem;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    .group-photo {
        width: 85%;
    }
    
    .bookshelf-overlay {
        width: 15%;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: clamp(1rem, 1.8vw, 1.1rem);
    }
    
    .hero-section .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .featured-books .card-img-top {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .group-photo {
        width: 95%;
    }
    
    .bookshelf-overlay {
        width: 10%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
    }

    .hero-section .animate-on-scroll {
        transition-delay: 0s;
    }
}

/* Vintage Gallery Section */
.vintage-gallery {
    background-color: #f8f5f0;
    padding: 80px 0;
    position: relative;
}

.vintage-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/paper-texture.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.vintage-gallery h2 {
    font-family: 'Playfair Display', serif;
    color: #2c1810;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.vintage-frame {
    margin-bottom: 30px;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.frame-border {
    background: #fff;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.frame-border::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    pointer-events: none;
}

.vintage-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: sepia(20%) contrast(90%) brightness(90%);
    transition: all 0.3s ease;
}

.frame-caption {
    text-align: center;
    padding: 10px 0 0;
    font-family: 'Playfair Display', serif;
    color: #5c3d2e;
    font-size: 0.9rem;
    font-style: italic;
}

.vintage-frame:hover {
    transform: translateY(-5px);
}

.vintage-frame:hover .frame-border {
    transform: rotateY(5deg);
}

.vintage-frame:hover .vintage-img {
    filter: sepia(10%) contrast(100%) brightness(100%);
}

/* Add subtle grain texture overlay */
.vintage-gallery::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/grain-texture.png') repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Responsive adjustments for vintage gallery */
@media (max-width: 992px) {
    .vintage-img {
        max-height: 350px;
    }
    
    .vintage-gallery h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .vintage-img {
        max-height: 300px;
    }
    
    .vintage-gallery {
        padding: 60px 0;
    }
    
    .frame-caption {
        font-size: 0.8rem;
    }
}

