/* Section 1: Hero Section Styles */
:root {
    --primary-color: #f7a81b;
    --secondary-color: #ffffff;
    --text-color: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --bg-dark: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #1a0f0a; /* Fallback */
    overflow-x: hidden;
}

.hero-section {
    min-height: 100vh;
    background: url('images/bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 20px;
}

/* Add a subtle overlay to make text pop if needed, 
   but bg.png is already quite dark/rich */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

.logo-wrapper {
    margin-bottom: -10px; /* Adjust based on asset whitespace */
}

.main-logo {
    max-width: 500px;
    width: 100%;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
}

.tagline {
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    -webkit-text-stroke: 1px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-style: italic;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.icon-link {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.icon-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

.icon-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ensure black logos on dark backgrounds become white */
.icon-link:nth-child(1) img,
.icon-link:nth-child(2) img,
.icon-link:nth-child(4) img,
.icon-link:nth-child(5) img {
    filter: brightness(0) invert(1);
}

.ca-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
}

.ca-box {
    background: #fff;
    border: 3px solid #000;
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 0px rgba(0,0,0,0.2);
}

#ca-text {
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000;
    display: flex;
    align-items: center;
    padding: 5px;
    transition: transform 0.2s;
}

.copy-button:hover {
    transform: scale(1.1);
}

.cta-wrapper {
    margin-top: 10px;
}

.btn-buy {
    background: linear-gradient(to bottom, #f7a81b, #c98000);
    color: #1a0f0a;
    text-decoration: none;
    font-weight: 900;
    font-size: 2rem;
    padding: 15px 50px;
    border: 4px solid #000;
    border-radius: 15px;
    display: inline-block;
    transition: all 0.2s;
    box-shadow: 0 8px 0px #000, 0 15px 20px rgba(0,0,0,0.4);
    transform: rotate(-2deg);
}

.btn-buy:hover {
    transform: rotate(0deg) translateY(4px);
    box-shadow: 0 4px 0px #000, 0 10px 15px rgba(0,0,0,0.3);
}

.btn-buy:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0px #000;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

.character-wrapper {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.hero-character {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
    animation: float-alpha 6s ease-in-out infinite;
}

@keyframes float-alpha {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(2deg); }
    50% { transform: translate(-10px, 15px) rotate(-1deg); }
    75% { transform: translate(-15px, -10px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Section 2: About */
.about-section {
    background-color: #440a10;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.marquee-ticker {
    background: #f7a81b;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
    padding: 15px 0;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 40px;
    transform: rotate(-1deg);
    width: 110%;
    margin-left: -5%;
    margin-bottom: 80px;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 40px;
    min-width: 100%;
    animation: scroll 20s linear infinite;
}

.marquee-content span {
    font-size: 2rem;
    font-weight: 900;
    color: #3d2215;
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.marquee-content img {
    height: 40px;
    width: auto;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.about-container {
    text-align: center;
    max-width: 1000px !important;
}

.about-title {
    font-size: 5rem;
    font-weight: 900;
    color: #3d2215;
    -webkit-text-stroke: 3px #fff;
    margin-bottom: 40px;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.3);
}

.about-text-content {
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text-content p {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.about-footer {
    color: #f7a81b !important;
    font-style: italic;
    margin-top: 40px;
}

.about-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
    height: 450px;
    width: 100%;
    /* Allow images to overflow slightly for breathing room */
}

.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:not(.center-item) {
    background: #fff;
    border: 4px solid #000;
    border-radius: 20px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: absolute;
    width: 300px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.tilt-left {
    transform: rotate(-12deg);
    left: -80px;
    z-index: 5;
}

.tilt-right {
    transform: rotate(12deg);
    right: -80px;
    z-index: 5;
}

.center-item {
    width: 600px;
    z-index: 10;
    transform: scale(1);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
}

.center-item img {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.gallery-item:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 20;
}

/* Section 3: Why Choose */
.why-section {
    background-color: #440a10;
    padding-bottom: 0px;
    position: relative;
    overflow: hidden;
}

.marquee-red {
    background: #7A2323;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.marquee-red span {
    color: #fff;
    -webkit-text-stroke: 1px #000;
}

.why-container {
    text-align: center;
    max-width: 1000px !important;
    padding-top: 40px;
}

.why-title {
    font-size: 5rem;
    font-weight: 900;
    color: #e3d2bd;
    -webkit-text-stroke: 2px #000;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.why-subtitle {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.why-text-content {
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-text-content p:not(.why-subtitle) {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
}

.meme-collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 80px;
    padding: 0 20px;
}

.meme-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 4px solid #000;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.meme-img:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Section 4: Community Section */
.community-section {
    background-color: #440a10;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comm-container {
    max-width: 1000px !important;
    margin: 40px auto 0 auto;
    width: 100%;
}

.comm-banner {
    border: 4px solid #000;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    height: 420px;
}

.comm-bg-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.comm-overlay-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    z-index: 2;
}

.comm-title {
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    -webkit-text-stroke: 3px #000;
    margin-bottom: 40px;
    text-shadow: 6px 6px 0px rgba(0,0,0,1);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-align: center;
}

.comm-icons {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.comm-icon-link {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: #000;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

.comm-icon-link:hover {
    transform: scale(1.1) translateY(-5px);
}

.comm-icon-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Make the black logo images white so they are visible on dark backgrounds */
.comm-icon-link:nth-child(1) img,
.comm-icon-link:nth-child(2) img,
.comm-icon-link:nth-child(4) img,
.comm-icon-link:nth-child(5) img {
    filter: brightness(0) invert(1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-left {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
        width: 100%;
    }

    .main-logo {
        max-width: 400px;
    }
    
    .tagline {
        font-size: 1.5rem;
    }

    .about-title {
        font-size: 3.5rem;
    }
    
    .about-gallery {
        height: auto;
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }
    
    .gallery-item:not(.center-item) {
        position: relative;
        left: auto !important;
        right: auto !important;
        width: 80%;
        max-width: 400px;
        transform: rotate(0deg) !important;
    }
    
    .center-item {
        width: 90%;
        max-width: 500px;
        order: -1;
        transform: scale(1) !important;
    }

    .why-title {
        font-size: 3.5rem;
    }
    
    .meme-collage {
        position: static;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .meme-img {
        position: static;
        width: 45% !important;
        transform: rotate(0) !important;
    }
    
    .comm-title {
        font-size: 4rem;
    }
    .comm-icon-link {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .main-logo {
        max-width: 280px;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .ca-box {
        padding: 10px 15px;
    }

    #ca-text {
        font-size: 0.65rem;
    }
    
    .btn-buy {
        font-size: 1.3rem;
        padding: 12px 30px;
    }

    .about-title {
        font-size: 2.5rem;
    }
    
    .about-text-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .marquee-content span {
        font-size: 1.2rem;
    }
    
    .marquee-ticker {
        margin-bottom: 40px;
    }

    .why-title {
        font-size: 2.5rem;
    }
    
    .why-subtitle {
        font-size: 1.2rem;
    }
    
    .meme-img {
        width: 90% !important;
    }
    
    .comm-title {
        font-size: 2.8rem;
        -webkit-text-stroke: 2px #000;
        text-shadow: 4px 4px 0px #000;
    }
    .comm-icons {
        gap: 15px;
    }
    .comm-icon-link {
        width: 55px;
        height: 55px;
        border-radius: 12px;
        padding: 10px;
    }
    .comm-banner {
        border-radius: 12px;
    }
}
