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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #1A1A1A;
    color: #D4D4D4;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bat Animations */
.bats-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.bat {
    position: absolute;
    width: 25px;
    height: 15px;
    background-image: url('images/bat-frame1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    animation: flyAcross 12s linear infinite, flapWings 0.8s infinite;
}

.bat-1 {
    top: 20%;
    animation-delay: 0s, 0.1s;
}

.bat-2 {
    top: 40%;
    animation-delay: 3s, 0.3s;
}

.bat-3 {
    top: 60%;
    animation-delay: 6s, 0.2s;
}

.bat-4 {
    top: 30%;
    animation-delay: 9s, 0.4s;
}

.bat-5 {
    top: 50%;
    animation-delay: 12s, 0.1s;
}

@keyframes flyAcross {
    0% {
        left: -30px;
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(5px);
    }
    75% {
        transform: translateY(-5px);
    }
    100% {
        left: calc(100% + 30px);
        transform: translateY(2px);
    }
}

@keyframes flapWings {
    0% { background-image: url('images/bat-frame1.png'); }
    25% { background-image: url('images/bat-frame2.png'); }
    50% { background-image: url('images/bat-frame3.png'); }
    75% { background-image: url('images/bat-frame2.png'); }
    100% { background-image: url('images/bat-frame1.png'); }
}

.faulty-r {
    color: #FF0000;
    transition: color 0.1s ease-in-out;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

/* Trade Gothic Inline Regular Font */
@font-face {
    font-family: 'TradeGothicInline';
    src: url('webfontkit/trade-gothic-inline-regular-webfont.woff2') format('woff2'),
         url('webfontkit/trade-gothic-inline-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1A1A1A;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #282828;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    color: #FF0000;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #FF0000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF0000;
    transition: width 0.3s ease-in-out;
}

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

.facebook-link {
    color: #FFFFFF;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
}

.facebook-link:hover {
    color: #FF0000;
}

/* Instagram link styling to match Facebook */
.instagram-link {
    color: #FFFFFF;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
}

.instagram-link:hover {
    color: #FF0000;
}

/* Brand link styling - no underline */
.brand-link {
    text-decoration: none !important;
}

.brand-link:hover {
    text-decoration: none !important;
}

.brand-link h1 {
    text-decoration: none !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('images/hero-background.png') center 20% / cover no-repeat,
        linear-gradient(to bottom, #000000 0%, #1a1a1a 40%, #2a2a2a 70%, #1a1a1a 100%);
    background-attachment: fixed;
}

.hero-background::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, 
        rgba(26,26,26,0.9) 0%, 
        rgba(26,26,26,0.7) 50%, 
        transparent 100%);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, 
        rgba(40,40,40,0.8) 0%, 
        rgba(40,40,40,0.6) 30%, 
        rgba(40,40,40,0.4) 60%, 
        transparent 100%);
    clip-path: polygon(
        0% 100%, 5% 80%, 10% 85%, 15% 70%, 20% 75%, 25% 60%, 30% 65%, 35% 50%, 
        40% 55%, 45% 40%, 50% 45%, 55% 35%, 60% 40%, 65% 25%, 70% 30%, 75% 20%, 
        80% 25%, 85% 15%, 90% 20%, 95% 10%, 100% 15%, 100% 100%
    );
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26,26,26,0.6), rgba(26,26,26,0.9));
    z-index: 1;
    opacity: 0.7;
}

.fog-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.fog {
    position: absolute;
    background: linear-gradient(
        135deg,
        rgba(40,40,40,0.6) 0%,
        rgba(60,60,60,0.4) 30%,
        rgba(80,80,80,0.2) 60%,
        rgba(100,100,100,0.1) 80%,
        transparent 100%
    );
    border-radius: 50% 30% 70% 20% / 30% 70% 50% 80%;
    animation: driftFog 25s linear infinite;
    filter: blur(6px);
}

.fog-1 {
    width: 450px;
    height: 300px;
    top: 15%;
    left: -225px;
    animation-delay: 0s;
    animation-duration: 28s;
    border-radius: 60% 40% 80% 10% / 40% 90% 30% 70%;
}

.fog-2 {
    width: 600px;
    height: 375px;
    top: 55%;
    left: -300px;
    animation-delay: 8s;
    animation-duration: 32s;
    opacity: 0.9;
    border-radius: 30% 80% 40% 60% / 70% 40% 90% 20%;
}

.fog-3 {
    width: 375px;
    height: 225px;
    top: 35%;
    left: -188px;
    animation-delay: 15s;
    animation-duration: 24s;
    border-radius: 80% 20% 50% 70% / 20% 60% 80% 40%;
}

.fog-4 {
    width: 525px;
    height: 270px;
    top: 65%;
    left: -263px;
    animation-delay: 22s;
    animation-duration: 30s;
    opacity: 0.8;
    border-radius: 50% 70% 30% 90% / 60% 30% 70% 50%;
}

.fog-5 {
    width: 420px;
    height: 255px;
    top: 25%;
    left: -210px;
    animation-delay: 10s;
    animation-duration: 26s;
    opacity: 0.85;
    border-radius: 70% 50% 90% 40% / 40% 80% 60% 30%;
}

.fog-6 {
    width: 480px;
    height: 285px;
    top: 45%;
    left: -240px;
    animation-delay: 18s;
    animation-duration: 29s;
    opacity: 0.7;
    border-radius: 40% 90% 60% 30% / 80% 50% 40% 70%;
}

@keyframes driftFog {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    10% {
        opacity: 0.9;
    }
    20% {
        transform: translateX(20%) translateY(-5px) scale(1.05);
        opacity: 0.8;
    }
    40% {
        transform: translateX(50%) translateY(-10px) scale(1.1);
        opacity: 0.7;
    }
    60% {
        transform: translateX(75%) translateY(-5px) scale(1.08);
        opacity: 0.6;
    }
    85% {
        transform: translateX(calc(100% + 300px)) translateY(-8px) scale(1.05);
        opacity: 0.4;
    }
    95% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(calc(100% + 350px)) translateY(-5px) scale(0.95);
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(26,26,26,0.6) 0%, rgba(26,26,26,0.9) 100%);
}

.bats-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bat {
    position: absolute;
    background-image: url('images/bat-frame1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: flyBat 20s linear infinite, flapWings 0.6s infinite;
    filter: brightness(0) invert(1);
}

.bat-1 { 
    top: 20%; 
    width: 80px; 
    height: 50px; 
    animation: flyBat 20s linear infinite, flapWings 0.5s infinite;
    animation-delay: 0s, 0.1s; 
    opacity: 0.6;
}
.bat-2 { 
    top: 40%; 
    width: 60px; 
    height: 38px; 
    animation: flyBat 20s linear infinite, flapWings 0.7s infinite;
    animation-delay: 4s, 0.2s; 
    opacity: 0.4;
}
.bat-3 { 
    top: 60%; 
    width: 100px; 
    height: 63px; 
    animation: flyBat 20s linear infinite, flapWings 0.6s infinite;
    animation-delay: 8s, 0s; 
    opacity: 0.5;
}
.bat-4 { 
    top: 30%; 
    width: 45px; 
    height: 28px; 
    animation: flyBat 20s linear infinite, flapWings 0.8s infinite;
    animation-delay: 12s, 0.3s; 
    opacity: 0.3;
}
.bat-5 { 
    top: 70%; 
    width: 90px; 
    height: 56px; 
    animation: flyBat 20s linear infinite, flapWings 0.45s infinite;
    animation-delay: 16s, 0.15s; 
    opacity: 0.7;
}

@keyframes flyBat {
    0% {
        left: -150px;
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-30px);
    }
    50% {
        transform: translateY(20px);
    }
    75% {
        transform: translateY(-25px);
    }
    100% {
        left: calc(100% + 150px);
        transform: translateY(10px);
    }
}

@keyframes flapWings {
    0% { background-image: url('images/bat-frame1.png'); }
    25% { background-image: url('images/bat-frame2.png'); }
    50% { background-image: url('images/bat-frame3.png'); }
    75% { background-image: url('images/bat-frame2.png'); }
    100% { background-image: url('images/bat-frame1.png'); }
}

@keyframes flapWingsBook {
    0% { background-image: url('images/bat-frame1.png'); }
    25% { background-image: url('images/bat-frame2.png'); }
    50% { background-image: url('images/bat-frame3.png'); }
    75% { background-image: url('images/bat-frame2.png'); }
    100% { background-image: url('images/bat-frame1.png'); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'TradeGothicInline', 'Oswald', sans-serif;
    font-size: 6rem;
    font-weight: normal;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.1;
    color: #FF0000;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #D4D4D4;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.2rem;
    color: #D4D4D4;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    background-color: #FF0000;
    color: #FFFFFF;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    animation: fadeInUp 1s ease-out 0.9s both;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

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

/* Books Section */
.books-section {
    padding: 100px 0;
    background-color: #1A1A1A;
}

.section-title {
    font-family: 'TradeGothicInline', 'Oswald', sans-serif;
    font-weight: normal;
    text-align: center;
    color: #FF0000;
    margin-bottom: 60px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.book-card {
    background-color: #282828;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
}

.book-image {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #282828 0%, #1A1A1A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover {
    max-width: 80%;
    max-height: 80%;
    object-fit: cover;
    border-radius: 5px;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26,26,26,0.8);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-bats {
    display: flex;
    gap: 20px;
}

.book-bat {
    width: 35px;
    height: 22px;
    background-image: url('images/bat-frame1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(7500%) hue-rotate(0deg) brightness(100%) contrast(100%);
    animation: flutter 2s ease-in-out infinite, flapWingsBook 0.6s infinite;
}

.book-bat:nth-child(1) {
    animation: flutter 2s ease-in-out infinite, flapWingsBook 0.6s infinite;
    animation-delay: 0s, 0.1s;
}

.book-bat:nth-child(2) {
    animation: flutter 2s ease-in-out infinite, flapWingsBook 0.7s infinite;
    animation-delay: 0.3s, 0.4s;
}

.book-bat:nth-child(3) {
    animation: flutter 2s ease-in-out infinite, flapWingsBook 0.5s infinite;
    animation-delay: 0.6s, 0.2s;
}

@keyframes flutter {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.book-info {
    padding: 30px;
}

.book-title {
    font-family: 'TradeGothicInline', 'Oswald', sans-serif;
    font-weight: normal;
    color: #FF0000;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-author {
    color: #D4D4D4;
    margin-bottom: 15px;
    font-size: 1rem;
}

.book-blurb {
    color: #D4D4D4;
    margin-bottom: 20px;
    line-height: 1.6;
}

.book-button {
    display: inline-block;
    background-color: #FF0000;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.book-button:hover {
    background-color: #CC0000;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: #282828;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.author-image {
    text-align: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #1A1A1A 0%, #FF0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #FF0000;
}

.image-placeholder i {
    font-size: 4rem;
    color: #FFFFFF;
}

.news-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 10px 10px 0 0;
    display: block;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background-color: #1A1A1A;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.news-card {
    background-color: #282828;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, #1A1A1A 0%, #282828 100%);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #282828 25%, transparent 25%), 
                linear-gradient(-45deg, #282828 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #282828 75%), 
                linear-gradient(-45deg, transparent 75%, #282828 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.news-content {
    padding: 30px;
}

.news-title {
    color: #FF0000;
    margin-bottom: 10px;
}

.news-date {
    color: #D4D4D4;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.news-excerpt {
    color: #D4D4D4;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.newspaper-placeholder {
    background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
    border: 2px solid #CCCCCC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.newspaper-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #999999;
}

.newspaper-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999999;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: #282828;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-form {
    background-color: #1A1A1A;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #282828;
    border: 2px solid #282828;
    border-radius: 5px;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF0000;
}

.submit-button {
    background-color: #FF0000;
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.submit-button:hover {
    background-color: #CC0000;
    transform: translateY(-2px);
}

.contact-info h3 {
    color: #FF0000;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.social-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link:hover {
    color: #FF0000;
}

/* Footer */
.footer {
    background-color: #1A1A1A;
    padding: 40px 0;
    border-top: 1px solid #282828;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-section h3 {
    color: #FF0000;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #D4D4D4;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #D4D4D4;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-links a:hover {
    color: #FF0000;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #282828;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .author-name {
        font-size: 1.4rem;
    }
    
    /* Mobile Hero Background Fix */
    .hero-background {
        background-attachment: scroll;
        background-position: center 30%;
        background-size: cover;
        min-height: 100vh;
    }
    
    .hero {
        min-height: 100vh;
    }
}

/* Mobile Landscape Orientation Fix */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding-top: 80px; /* Account for fixed navigation */
        min-height: calc(100vh - 80px);
    }
    
    .hero-background {
        background-position: center 25%; /* Move up to show more moon */
        background-size: 120% auto; /* Zoom in slightly more */
    }
    
    .hero-content {
        padding-top: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem; /* Slightly smaller for landscape */
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .books-grid {
        gap: 20px;
    }
    
    .book-card {
        margin: 0 10px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {
    .book-card,
    .news-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .book-card:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .book-card:nth-child(3) {
        animation-delay: 0.4s;
    }
    
    .news-card:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .news-card:nth-child(3) {
        animation-delay: 0.4s;
    }
}

/* Loading states */
.book-cover,
.news-placeholder,
.news-cover {
    background-color: #282828;
    background-image:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Form Message Styles */
.form-message {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* News Archive Section */
.news-archive-section {
    padding: 120px 0 100px;
    background-color: #1A1A1A;
    min-height: 60vh;
}

.archive-navigation {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #282828;
}

.back-to-news {
    color: #FF0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out;
}

.back-to-news:hover {
    color: #FFFFFF;
}

.news-archive-link {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #282828;
}

.archive-link {
    color: #FF0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}

.archive-link:hover {
    color: #FFFFFF;
}

/* Blog Section */
.blog-section {
    padding: 120px 0 100px;
    background-color: #1A1A1A;
    min-height: 60vh;
}

.blog-posts {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background-color: #282828;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #333;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #FF0000;
    padding-bottom: 20px;
}

.post-title {
    font-family: 'TradeGothicInline', 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #FF0000;
    margin-bottom: 15px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #999999;
    font-size: 0.9rem;
}

.post-date,
.post-author {
    color: #D4D4D4;
}

.post-content {
    line-height: 1.8;
    color: #D4D4D4;
}

.post-content p {
    margin-bottom: 20px;
}

.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #FF0000;
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}
