/* ====================================
   DuckyHug Website Styles
   ==================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #F5EFE0 0%, #E8DCC4 100%);
    color: #4A4338;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ====================================
   Header Styles
   ==================================== */
header {
    padding: 20px 40px;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: #2B5F6F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid #F5EFE0;
}

.logo-icon {
    font-size: 16px;
    color: #F5EFE0;
}

.logo-text a {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #2B5F6F;
    font-weight: 700;
}

/* ====================================
   Main Content Layout
   ==================================== */
.main-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding: 40px 60px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}

/* ====================================
   Hero/Paper Section
   ==================================== */
.hero {
    position: relative;
}

.paper-container {
    position: relative;
    max-width: 900px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: white;
    animation: float 4s ease-in-out infinite;
    position: absolute;
    z-index: 10;
    border: 5px solid white;
}

.avatar-left {
    top: -40px;
    left: -60px;
    animation-delay: 0s;
}

.avatar-right {
    top: -40px;
    right: -60px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Paper Content */
.paper {
    background: linear-gradient(to bottom, #FFFEF9 0%, #F9F7F0 100%);
    padding: 80px 60px 60px 60px;
    border-radius: 8px;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.15),
        0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-0.5deg);
    border: 1px solid #E8DCC4;
}

.paper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, 
        transparent 0%, 
        #E8DCC4 10%, 
        transparent 15%,
        #E8DCC4 25%,
        transparent 30%,
        #E8DCC4 40%,
        transparent 100%);
}

.flourish {
    text-align: center;
    color: #8B6F47;
    font-size: 24px;
    margin-bottom: 20px;
}

.paper h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #2C2416;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}

.paper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #8B6F47;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
    font-style: italic;
}

.paper p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: #4A4338;
}

.paper li {
    margin-bottom: 9px;
    margin-left: 9px;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
    color: #4A4338;
}

.divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8B6F47, transparent);
    margin: 30px auto;
}

/* ====================================
   Scroll Indicator
   ==================================== */
.scroll-indicator {
    display: none;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 20px;
    opacity: 0.6;
}

.scroll-indicator-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #8B6F47;
    margin-bottom: 3px;
    font-weight: 400;
}

.scroll-arrow {
    font-size: 16px;
    color: #8B6F47;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ====================================
   Email Signup Section
   ==================================== */
.email-signup {
    background: linear-gradient(to bottom, #FFFEF9 0%, #F9F7F0 100%);
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #E8DCC4;
    margin-top: 40px;
    max-width: 900px;
    text-align: center;
}

.email-signup h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #2C2416;
    margin-bottom: 15px;
}

.email-signup p {
    font-size: 18px;
    color: #6B6158;
    margin-bottom: 30px;
    line-height: 1.6;
}

.email-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #E8DCC4;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.email-input:focus {
    outline: none;
    border-color: #2B5F6F;
    box-shadow: 0 0 0 3px rgba(43, 95, 111, 0.1);
}

.email-submit {
    padding: 15px 40px;
    background: #E89A3C;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-submit:hover {
    background: #D68A2C;
    transform: scale(1.05);
}

.form-message {
    margin-top: 15px;
    font-size: 14px;
    color: #2B5F6F;
    display: none;
}

/* ====================================
   Books Sidebar & Carousel
   ==================================== */

   .books-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
}

/* On tablets & up: 2 per row */
@media (min-width: 600px) {
    .books-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* On desktops & up: 3 per row */
@media (min-width: 900px) {
    .books-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.books-sidebar {
    position: sticky;
    top: 40px;
}

.books-sidebar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #2C2416;
    text-align: center;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    height: 950px;
    position: relative;
}

.books-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: transform 0.5s ease;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #2B5F6F;
    color: #2B5F6F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.carousel-btn:hover {
    background: #2B5F6F;
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: white;
    color: #2B5F6F;
    transform: scale(1);
}

.book-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    flex-shrink: 0;
}

.book-card:hover {
    transform: translateX(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.book-cover {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #8B6F47, #2B5F6F);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.book-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #2C2416;
    margin-bottom: 8px;
}

.book-card p {
    font-size: 15px;
    color: #6B6158;
    margin-bottom: 15px;
    line-height: 1.5;
}

.book-link {
    display: inline-block;
    background: #E89A3C;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.book-link:hover {
    background: #D68A2C;
    transform: scale(1.05);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps it nicely cropped */
    display: block;
}

/* ====================================
   Social Media Sidebar
   ==================================== */
.social-sidebar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 24px;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.social-icon.facebook {
    color: #1877F2;
}

.social-icon.youtube {
    color: #FF0000;
}

/* ====================================
   Footer
   ==================================== */
footer {
    background: #E8DCC4;
    padding: 40px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    color: #4A4338;
    margin-bottom: 10px;
}

footer a {
    color: #2B5F6F;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ====================================
   Responsive Styles - Tablet
   ==================================== */
@media (min-width: 768px) and (max-width: 1279px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 40px 30px;
    }

    .paper-container {
        margin-top: 60px;
    }

    .avatars-tablet {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-bottom: 30px;
    }

    .avatar {
        width: 140px;
        height: 140px;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }

    .avatar-left,
    .avatar-right {
        display: none;
    }

    .email-signup {
        padding: 40px 30px;
    }

    .email-signup h3 {
        font-size: 32px;
    }

    .books-sidebar {
        position: relative;
        top: 0;
    }

    .carousel-wrapper {
        height: auto;
    }

    .books-stack {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .carousel-controls {
        display: none;
    }

    .social-sidebar {
        left: 20px;
    }
}

/* ====================================
   Responsive Styles - Mobile
   ==================================== */
@media (max-width: 767px) {
    header {
        padding: 15px 20px;
    }

    .logo-circle img {
        width: 70px;
        height: 70px;
    }

    .logo-icon {
        font-size: 26px;
    }

    .logo-text a {
        font-size: 18px;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 40px;
    }

    .paper-container {
        margin-top: 60px;
    }

    .avatars-mobile {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .avatar {
        width: 100px;
        height: 100px;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        border: 3px solid white;
    }

    .avatar-left,
    .avatar-right {
        display: none;
    }

    .scroll-indicator {
        display: block;
    }

    .paper {
        padding: 30px 25px;
        transform: rotate(0deg);
    }

    .paper h1 {
        font-size: 32px;
    }

    .paper h2 {
        font-size: 20px;
    }

    .paper p {
        font-size: 16px;
        line-height: 1.7;
        text-align: left;
    }

    .email-signup {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .email-signup h3 {
        font-size: 28px;
    }

    .email-signup p {
        font-size: 16px;
    }

    .email-form {
        flex-direction: column;
        gap: 15px;
    }

    .email-submit {
        width: 100%;
    }

    .books-sidebar {
        position: relative;
        top: 0;
    }

    .books-sidebar h2 {
        font-size: 32px;
    }

    .carousel-wrapper {
        height: auto;
    }

    .books-stack {
        gap: 25px;
    }

    .carousel-controls {
        display: none;
    }

    .book-cover {
        height: 280px;
    }

    .social-sidebar {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 40px 0;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    footer {
        margin-top: 40px;
        padding: 30px 20px;
    }
}

/* ====================================
   Hide/Show Elements by Screen Size
   ==================================== */
@media (min-width: 1280px) {
    .avatars-mobile,
    .avatars-tablet {
        display: none;
    }
}

@media (max-width: 1279px) {
    .avatar-left,
    .avatar-right {
        display: none;
    }
}
