/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, #000000 0%, #0e1d2e 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#preloader .preloader-logo {
    width: 120px;
    animation: focusPulse 2.5s infinite;
}

@keyframes focusPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* --- Global Styles --- */
:root {
    --primary-font: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* --- Hero Section & IPHONE BUTTON FIX --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    /* IMPORTANT: Allows clicks on the section background to be caught by JS */
    pointer-events: auto;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(50%) contrast(150%);
    z-index: 0;
    /* IMPORTANT: Video ignores clicks so they don't block the button */
    pointer-events: none;
}

/* Hide iOS Play Button (Works in standard mode, not Low Power Mode) */
.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Must be higher than video */
    color: #FFFFFF;
    /* IMPORTANT: Content container ignores clicks... */
    pointer-events: none;
}

.hero-logo {
    max-width: 650px;
    width: 90%;
    height: auto;
}

.hero-subtitle {
    font-size: 1.5em;
    color: #E0E0E0;
    margin: 15px 0 30px 0;
}

/* --- Hero Section Updates --- */

/* ... Keep .hero-section, .hero-video, .hero-content, .hero-logo as they were ... */

.hero-subtitle {
    font-size: 1.5em;
    color: #E0E0E0;
    margin: 15px 0 40px 0;
    /* Increased bottom margin */
}

/* === NEW SCROLL INDICATOR STYLES === */
.scroll-indicator {
    margin-top: 20px;
    opacity: 0.8;
    animation: float 2s infinite ease-in-out;
    pointer-events: none;
    /* Allows clicks to pass through to video player */
}

.scroll-indicator p {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #FAD961;
    /* Gold accent color */
}

.arrow-down {
    font-size: 1.5em;
    color: #FFFFFF;
}

@keyframes float {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.4;
    }

    100% {
        transform: translateY(0);
        opacity: 0.8;
    }
}

/* =================================== */

/* --- Refraction Event Section --- */
.dark-container {
    background-color: #1a1a1a;
}

.refraction-event {
    background-color: #1a1a1a;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.refraction-title {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(120deg, #FAD961 0%, #F76B1C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shine 8s linear infinite;
}

.refraction-subtitle {
    font-size: 1.2em;
    color: #A0A0A0;
    margin-top: 10px;
}

.psds-logo {
    display: block;
    margin: 50px auto;
    width: 100px;
    border-radius: 50%;
}

/* --- Horizontal Filmstrip Gallery (iPhone Scroll & Loop Fixes) --- */
.filmstrip-gallery {
    display: flex;
    overflow-x: auto;
    padding: 40px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* Native smooth scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Tells browser to handle horizontal swipes natively */
    touch-action: pan-x;

    /* Snap points for manual scrolling */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Class added by JS to temporarily disable snapping for the seamless loop jump */
.filmstrip-gallery.no-snap {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.filmstrip-gallery::-webkit-scrollbar {
    display: none;
}

.filmstrip-gallery .gallery-item {
    flex: 0 0 300px;
    height: 450px;
    margin: 0 15px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.4;
    transform: scale(0.85);
    transition: transform 0.4s ease, opacity 0.4s ease;
    /* Snap alignment */
    scroll-snap-align: center;
}

/* Prevents image dragging issues on iPhone */
.filmstrip-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.filmstrip-gallery .gallery-item.is-active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 10;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}


/* Mobile */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 90%;
    }

    .refraction-title {
        font-size: 2.5em;
    }

    .filmstrip-gallery .gallery-item {
        flex: 0 0 260px;
        height: 380px;
    }
}

/* --- NEW AND UPDATED STYLES --- */

/* Footer Styles */
footer {
    background-color: #2c2c2c;
    color: #a0a0a0;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Social Media Icon Styles */
.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    /* Allows transform to work */
}

.footer-social a:hover {
    color: var(--primary-color);
    /* Uses the blue from your theme */
    transform: translateY(-3px);
}

/* Contact Info Styles */
.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    margin: 5px 0;
    line-height: 1.6;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

/* Copyright Text Style */
.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* --- Add this new code to the end of style.css --- */

/* =================================== */
/* === Sponsor Page "Coming Soon" === */
/* =================================== */

.sponsor-page-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 50px 20px;
    color: #E0E0E0;
    text-align: center;
}

.coming-soon-section {
    padding: 60px 20px;
    margin: 40px 0;
    text-align: center;
    background-color: #2c2c2c;
    /* Matching footer bg */
    border-radius: 12px;
    border: 1px dashed #3E4B55;
    /* Using --button-hover color */
}

.coming-soon-content i {
    font-size: 3em;
    color: #3E4B55;
    /* Using --button-hover color */
    margin-bottom: 20px;
}

.coming-soon-content h2 {
    font-size: 2.2em;
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
}

.coming-soon-content p {
    font-size: 1.1em;
    color: #A0A0A0;
    /* Matching footer text */
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Section (Styling from previous step) */
.sponsor-cta {
    background-color: #2c2c2c;
    /* Matching footer bg */
    padding: 40px 30px;
    border-radius: 12px;
    margin-top: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sponsor-cta h2 {
    font-size: 2.2em;
    color: #fff;
    margin-top: 0;
}

.sponsor-cta p {
    font-size: 1.1em;
    color: #A0A0A0;
    /* Matching footer text */
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Re-using your .hero-button style for consistency */
.sponsor-cta .hero-button {
    background-color: #3E4B55;
}

.sponsor-cta .hero-button:hover {
    background-color: var(--paynes-gray);
}


/* Responsive tweaks for sponsor page */
@media (max-width: 768px) {
    .sponsor-page-main {
        padding-top: 80px;
    }

    .coming-soon-content h2 {
        font-size: 1.8em;
    }

    .coming-soon-content p {
        font-size: 1em;
    }

    .sponsor-cta h2 {
        font-size: 1.8em;
    }

    .sponsor-cta p {
        font-size: 1em;
    }
}

.sponsor-page-main {
    flex-grow: 1;
}

/* --- Add this new code to the end of style.css --- */

/* =================================== */
/* === Album Page Styles === */
/* =================================== */

.album-page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fff;
    /* White background for the main content area */
    color: #333;
}

.album-title-container {
    text-align: center;
    margin-bottom: 40px;
}

.album-title-container h1 {
    font-family: 'Popins', sans-serif;
    font-size: 3rem;
    color: #c9a76d;
    /* Your gold accent color */
    margin: 0 0 10px 0;
}

.album-title-container p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

/* --- Filter Navigation --- */
.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #444;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #c9a76d;
    /* Gold accent */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(201, 167, 109, 0.3);
}

/* --- Album Grid --- */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.album-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.album-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.album-card-content {
    padding: 20px;
}



.album-card-title {
    font-family: 'Popins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
}

.album-card-button {
    display: inline-block;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 30px;
    background-color: #c9a76d;
    /* Gold accent */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.album-card-button:hover {
    background-color: #b5925a;
    /* Darker gold */
}

/* Responsive */
@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CRITICAL IOS FIX: Hide the Play Button in Low Power Mode --- */
.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0 !important;
}

/* === LIVE COMPETITION PAGE STYLES === */

/* --- 1. Hero Section --- */
.comp-hero {
    padding: 140px 20px 80px 20px;
    text-align: center;
    background: radial-gradient(circle at top, #2c2c2c 0%, #1a1a1a 70%);
}

.comp-tag {
    display: inline-block;
    background-color: #FAD961;
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.comp-title {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 20px 0;
}

.gradient-text {
    background: linear-gradient(120deg, #FAD961 0%, #F76B1C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.comp-subtitle {
    font-size: 1.2em;
    color: #A0A0A0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.comp-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E0E0E0;
    font-size: 1.05em;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
}

.meta-item i {
    color: #F76B1C;
}

.hero-cta-btn {
    display: inline-block;
    border: 2px solid #FAD961;
    color: #FAD961;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    background-color: #FAD961;
    color: #1a1a1a;
}

/* --- 2. Rules Section --- */
.rules-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 10px;
}

.section-header p {
    color: #888;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.rule-card {
    background-color: #252525;
    padding: 30px 25px;
    border-radius: 12px;
    border-top: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    border-top-color: #F76B1C;
    background-color: #2a2a2a;
}

.rule-icon {
    font-size: 2em;
    color: #FAD961;
    margin-bottom: 20px;
}

.rule-card h3 {
    color: #fff;
    font-size: 1.25em;
    margin-bottom: 10px;
}

.rule-card p {
    color: #bbb;
    font-size: 0.95em;
    line-height: 1.6;
}

.rules-list-container {
    background-color: #252525;
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #F76B1C;
}

.rules-list-container h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
}

.rules-list {
    padding-left: 20px;
    color: #ccc;
}

.rules-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* --- 3. Registration Section --- */
.submission-section {
    padding: 80px 20px 120px 20px;
    text-align: center;
}

.submission-box {
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2c2c2c, #202020);
    padding: 60px 30px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.submission-box h2 {
    color: #fff;
    font-size: 2.2em;
    margin: 20px 0 15px 0;
}

.submission-box p {
    color: #aaa;
    margin-bottom: 30px;
}

/* Steps Visualization */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.9em;
}

.step-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #333;
    color: #FAD961;
    border-radius: 50%;
    font-weight: 700;
    border: 1px solid #444;
}

/* Registration Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(120deg, #FAD961 0%, #F76B1C 100%);
    color: #1a1a1a;
    font-size: 1.2em;
    font-weight: 700;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* iPhone Fixes */
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(247, 107, 28, 0.3);
}

.deadline-warning {
    margin-top: 30px;
    font-size: 0.9em;
    color: #ff6b6b;
    opacity: 0.9;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .comp-hero {
        padding-top: 120px;
    }

    .comp-title {
        font-size: 2.5em;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .steps-container {
        gap: 15px;
    }
}

/* === LIVE COMPETITION PAGE STYLES === */

/* --- 1. Hero Section --- */
.comp-hero {
    padding: 140px 20px 80px 20px;
    text-align: center;
    background: radial-gradient(circle at top, #2c2c2c 0%, #1a1a1a 70%);
}

.comp-tag {
    display: inline-block;
    background-color: #FAD961;
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.comp-title {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 20px 0;
}

.gradient-text {
    background: linear-gradient(120deg, #FAD961 0%, #F76B1C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.comp-subtitle {
    font-size: 1.2em;
    color: #A0A0A0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.comp-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E0E0E0;
    font-size: 1.05em;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
}

.meta-item i {
    color: #F76B1C;
}

.hero-cta-btn {
    display: inline-block;
    border: 2px solid #FAD961;
    color: #FAD961;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    background-color: #FAD961;
    color: #1a1a1a;
}

/* --- 2. Rules Section --- */
.rules-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 10px;
}

.section-header p {
    color: #888;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.rule-card {
    background-color: #252525;
    padding: 30px 25px;
    border-radius: 12px;
    border-top: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    border-top-color: #F76B1C;
    background-color: #2a2a2a;
}

.rule-icon {
    font-size: 2em;
    color: #FAD961;
    margin-bottom: 20px;
}

.rule-card h3 {
    color: #fff;
    font-size: 1.25em;
    margin-bottom: 10px;
}

.rule-card p {
    color: #bbb;
    font-size: 0.95em;
    line-height: 1.6;
}

.rules-list-container {
    background-color: #252525;
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #F76B1C;
}

.rules-list-container h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
}

.rules-list {
    padding-left: 20px;
    color: #ccc;
}

.rules-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* --- 3. Registration Section --- */
.submission-section {
    padding: 80px 20px 120px 20px;
    text-align: center;
}

.submission-box {
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2c2c2c, #202020);
    padding: 60px 30px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.submission-box h2 {
    color: #fff;
    font-size: 2.2em;
    margin: 20px 0 15px 0;
}

.submission-box p {
    color: #aaa;
    margin-bottom: 30px;
}

/* Steps Visualization */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.9em;
}

.step-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #333;
    color: #FAD961;
    border-radius: 50%;
    font-weight: 700;
    border: 1px solid #444;
}

/* Registration Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(120deg, #FAD961 0%, #F76B1C 100%);
    color: #1a1a1a;
    font-size: 1.2em;
    font-weight: 700;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* iPhone Fixes */
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(247, 107, 28, 0.3);
}

.deadline-warning {
    margin-top: 30px;
    font-size: 0.9em;
    color: #ff6b6b;
    opacity: 0.9;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .comp-hero {
        padding-top: 120px;
    }

    .comp-title {
        font-size: 2.5em;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .steps-container {
        gap: 15px;
    }
}

/* === MOBILE RESPONSIVE FIXES === */
@media (max-width: 600px) {

    /* 1. Fix the Registration Box Spacing */
    .submission-section {
        padding: 40px 15px;
        /* Less space on sides */
    }

    .submission-box {
        padding: 30px 15px;
        /* Reduce internal padding so content fits */
        width: 100%;
        box-sizing: border-box;
        /* IMPORTANT: Keeps padding inside the width */
    }

    /* 2. Fix the Overflowing Button */
    .submit-btn {
        width: 100%;
        /* Forces button to fit inside the box */
        box-sizing: border-box;
        /* Ensures padding doesn't make it wider than 100% */
        padding: 15px 10px;
        /* Reduce side padding significantly */
        font-size: 1rem;
        /* Make text slightly smaller to fit */
        justify-content: center;
        /* Centers the icon and text */
        display: flex;
        /* Ensures proper alignment */
    }

    /* 3. Adjust the "1-2-3" Steps to fit better */
    .steps-container {
        gap: 10px;
    }

    .step {
        font-size: 0.8em;
        /* Smaller text for steps */
    }

    .step-num {
        width: 30px;
        /* Smaller circles */
        height: 30px;
    }

    /* 4. Fix Footer Email breaking layout */
    .footer-contact p {
        font-size: 0.85rem;
        word-break: break-all;
        /* Forces long emails to wrap to the next line */
    }
}

.hero-top-bar {
    position: absolute;
    /* Sits on top of the hero section */
    top: 100px;
    /* Adjust based on your header height */
    left: 40px;
    z-index: 10;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #888;
    /* Subtle gray initially */
    font-weight: 500;
    font-size: 0.95em;
    padding: 10px 15px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dark background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.back-link i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.back-link:hover {
    color: #FAD961;
    /* Gold accent color */
    background: rgba(250, 217, 97, 0.1);
    /* Subtle gold tint */
    border-color: rgba(250, 217, 97, 0.3);
    padding-right: 20px;
    /* Expands slightly */
}

.back-link:hover i {
    transform: translateX(-3px);
    /* Arrow moves slightly left */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .hero-top-bar {
        position: relative;
        /* On mobile, let it sit in the flow */
        top: auto;
        left: auto;
        text-align: left;
        margin-bottom: 20px;
        display: flex;
        justify-content: flex-start;
        /* Align left */
    }

    .comp-hero {
        /* Add relative positioning to container so absolute works if needed */
        display: flex;
        flex-direction: column;
    }
}

/* === AVATAR MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
    /* Show when active */
}

.avatar-box {
    background: #252525;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #FAD961;
    box-shadow: 0 0 30px rgba(250, 217, 97, 0.2);
    width: 90%;
    max-width: 400px;
}

.avatar-box h2 {
    color: #fff;
    margin-top: 0;
}

.avatar-box p {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.avatar-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: #fff;
}

/* Highlight selected avatar */
.avatar-option.selected {
    border-color: #FAD961;
    box-shadow: 0 0 10px #FAD961;
}

.avatar-actions {
    display: flex;
    justify-content: space-between;
}

.cancel-btn,
.logout-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cancel-btn {
    background: #333;
    color: #fff;
}

.logout-btn {
    background: #d9534f;
    color: #fff;
}

/* --- Live Voting Photo Card Styles --- */
.voting-photo-card {
    position: relative;
    max-width: 450px;
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background-color: #1a1a1a;
}

.comp-photo {
    width: 100%;
    height: auto;
    display: block;
}

.voting-interface {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

/* The Heart Button */
.like-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5em;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.1s ease;
    touch-action: manipulation;
    /* Improves mobile responsiveness */
}

/* Visual feedback when liked */
.like-button.liked {
    color: #FF0050;
    /* TikTok red/pink */
    animation: heart-pulse 0.3s ease-in-out;
}

@keyframes heart-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Vote Counter Display */
.vote-count-display {
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 10px;
}

.vote-count {
    font-size: 1.5em;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: #FAD961;
    /* Your accent color */
}

.vote-count-display p {
    font-size: 0.7em;
    margin: 0;
    color: #ccc;
}

/* Floating Heart Effect Container */
.like-effect-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Individual Floating Heart */
.floating-heart {
    position: absolute;
    bottom: 15px;
    right: 25px;
    color: #FF0050;
    /* Red/Pink */
    font-size: 1.5em;
    opacity: 0;
    animation: float-up 2s forwards;
    pointer-events: none;
}

/* Keyframes for the Floating Effect */
@keyframes float-up {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0.8;
    }

    50% {
        transform: translate(15px, -50px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(0, -200px) scale(1.2);
        opacity: 0;
    }
}