/* ==========================================
   HALFGAN MOVIE WEBSITE STYLES
   ========================================== */

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   BACKGROUND & BODY STYLES
   ========================================== */

/* Shared desert background gradient */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg,
        #1a1611 0%,           /* Dark desert brown */
        #2d2419 15%,          /* Deep sand */
        #1e1a14 30%,          /* Dark military olive */
        #332818 45%,          /* Desert shadow */
        #1f1c16 60%,          /* Midnight sand */
        #2a241a 75%,          /* Dusty earth */
        #1a1611 100%          /* Back to dark desert */
    );
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: desertShift 20s ease-in-out infinite;
    color: #fff;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Index page specific body styling */
body.page-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #E34307;
    font-style: italic;
    font-family: sans-serif;
    font-size: xx-large;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    height: 100vh;
    padding-top: 20px;
}

/* About page specific body styling */
body.page-about {
    animation: desertShift 25s ease-in-out infinite;
}

/* Animated background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Index page background overlay */
body.page-index::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(227, 67, 7, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 204, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(222, 184, 135, 0.02) 0%, transparent 50%);
}

/* About page background overlay */
body.page-about::before {
    background:
        radial-gradient(circle at 25% 25%, rgba(227, 67, 7, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 204, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(222, 184, 135, 0.04) 0%, transparent 60%);
    animation: atmosphericShift 15s ease-in-out infinite;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes desertShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

@keyframes atmosphericShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes heroShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes comingDatePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow:
            0 0 10px #ffcc00,
            0 0 20px #ff9900,
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.05);
        text-shadow:
            0 0 15px #ffcc00,
            0 0 30px #ff9900,
            0 0 40px #E34307,
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

@keyframes dateShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes releasePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 30px rgba(227, 67, 7, 0.5),
            inset 0 0 20px rgba(255, 204, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow:
            0 0 40px rgba(227, 67, 7, 0.7),
            inset 0 0 30px rgba(255, 204, 0, 0.15);
    }
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1 {
    color: #ffcc00;
    font-size: 4em;
    text-align: center;
    text-shadow:
        0 0 20px #ffcc00,
        0 0 40px #ff9900,
        3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

h2 {
    color: #ffcc00;
    font-size: 2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        0 0 10px #ffcc00,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #E34307, #ff9900);
    border-radius: 2px;
}

p {
    margin: 10px 0;
}

/* ==========================================
   INDEX PAGE SPECIFIC STYLES
   ========================================== */

/* Index page layout */
body.page-index header {
    text-align: center;
    margin-bottom: 2rem;
}

body.page-index main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

body.page-index section {
    text-align: center;
    width: 100%;
}

.nameThatMovie {
    color: white;
    font-style: normal;
    font-family: sans-serif;
    font-size: xxx-large;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.smaller {
    font-size: medium;
    text-transform: none;
    font-size: 1.5rem;
    text-align: center;
}

/* Tagline styling */
#taglinePhrase, #secondaryTagline {
    text-align: center !important;
    color: #ffcc00;
    font-style: italic;
    margin: 1rem 0;
}

#secondaryTagline {
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: center !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    width: 100%;
}

/* Release info section */
.release-info {
    text-align: center;
}

/* Center decorative lines in release-info section */
.release-info h2::after,
.release-info h3::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Center all h2 decorative lines on index page */
body.page-index h2::after,
body.page-index h3::after {
    left: 50%;
    transform: translateX(-50%);
}

#dateComing {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ffcc00;
    margin: 2rem 0;
}

.imgbox {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-fit {
    max-width: 90%;
    height: auto;
}

.flav {
    border-radius: 20%;
}

/* Quotes Section */
.quotes-container {
    max-width: 1200px;
    margin: 0 auto;
    border-left: 4px solid #ffcc00;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-top: 20px;
}

.quote {
    margin-bottom: 2rem;
}

.quote p {
    font-size: 1.0rem;
    line-height: 1.6;
    margin: 0;
    color: burlywood;
}

.quote .source {
    font-size: 1rem;
    color: #aaa;
    margin-top: 0.5rem;
}

.highlight {
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc00, 0 0 20px #ff9900;
}

/* ==========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================== */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(227, 67, 7, 0.2), rgba(255, 204, 0, 0.15));
    border: 3px solid #E34307;
    border-radius: 20px;

    margin-bottom: 40px;
    text-align: center;
    box-shadow:
        0 0 40px rgba(227, 67, 7, 0.3),
        inset 0 0 30px rgba(255, 204, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(255, 204, 0, 0.1) 50%,
        transparent 60%
    );
    animation: heroShine 6s linear infinite;
    pointer-events: none;
}

.tagline {
    font-size: 1.4em;
    color: #E34307;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

/* Content Sections */
.content-section {
    background: rgba(0, 0, 0, 0.4);
    border-left: 5px solid #ffcc00;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    backdrop-filter: blur(3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(227, 67, 7, 0.3);
}

.quote-highlight {
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.2), rgba(227, 67, 7, 0.1));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffcc00;
    margin: 20px 0;
    font-style: italic;
    font-size: 1.1em;
    color: #ffcc00;
}

/* Production Details Grid */
.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.production-item {
    background: rgba(227, 67, 7, 0.1);
    border: 1px solid #E34307;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.production-item:hover {
    background: rgba(227, 67, 7, 0.2);
    transform: scale(1.05);
}

.production-item strong {
    color: #ffcc00;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Back Link */
.back-link {
    text-align: center;
    margin: 40px 0 20px 0;
}

.back-link a {
    background: linear-gradient(45deg, #E34307, #ff9900);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(227, 67, 7, 0.4);
    transition: all 0.3s ease;
}

.back-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 67, 7, 0.6);
}

/* ==========================================
   RELEASE DATE SECTIONS
   ========================================== */

/* Index page coming date */
#dateComing {
    background: linear-gradient(45deg,
        rgba(227, 67, 7, 0.2) 0%,
        rgba(255, 204, 0, 0.15) 50%,
        rgba(227, 67, 7, 0.2) 100%
    );
    border: 3px solid #E34307;
    border-radius: 15px;
    padding: 25px 20px;
    margin: 30px auto;
    max-width: 1200px;
    width: 90%;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffcc00;
    text-shadow:
        0 0 10px #ffcc00,
        0 0 20px #ff9900,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow:
        0 0 30px rgba(227, 67, 7, 0.5),
        inset 0 0 20px rgba(255, 204, 0, 0.1);
    animation: comingDatePulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

#dateComing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(255, 204, 0, 0.1) 50%,
        transparent 60%
    );
    animation: dateShine 4s linear infinite;
    pointer-events: none;
}

#dateComing span {
    display: block;
    font-size: 0.4em !important;
    font-style: italic;
    color: #aaa;
    text-transform: none;
    letter-spacing: 1px;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* About page release section */
.release-section {
    background: linear-gradient(45deg,
        rgba(227, 67, 7, 0.25) 0%,
        rgba(255, 204, 0, 0.15) 50%,
        rgba(227, 67, 7, 0.25) 100%
    );
    border: 3px solid #E34307;
    border-radius: 15px;
    padding: 5px;
    margin: 20px 0;
    text-align: center;
    box-shadow:
        0 0 30px rgba(227, 67, 7, 0.5),
        inset 0 0 20px rgba(255, 204, 0, 0.1);
    animation: releasePulse 4s ease-in-out infinite;
}

.release-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#releaseDate {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        0 0 15px #ffcc00,
        0 0 30px #ff9900,
        3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

/* ==========================================
   FOOTER STYLES
   ========================================== */

.footer {
    font-size: medium;
    font-style: normal;
    font-weight: normal;
    text-transform: none;
    color: white;
    max-width: 1200px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px 0;
    border-top: 2px solid #E34307;
    margin-top: 20px;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    color: #ffcc00;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p, .footer-section a {
    margin: 8px 0;
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    padding: 5px;
    border-top: 1px solid #333;
    margin-top: 20px;
    font-size: 0.9em;
    color: #cbb499;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    /* Index page mobile */
    #dateComing {
        font-size: 1.8em;
        padding: 20px 15px;
        margin: 20px 10px;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }

    /* About page mobile */
    .container { padding: 15px; }
    h1 { font-size: 2.2em; }
    .hero { padding: 25px; }
    .content-section { padding: 20px; }
    #releaseDate { font-size: 1.8em; }
}
