/* General Styles */
body {
    margin: 0;
    /* Replacing background-image with a linear gradient */
    background: linear-gradient(135deg, #030303, #080808); /* Customize colors as needed */
    font-family: 'Poppins', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #040404;
    text-align: center;
    padding: 20px;
    overflow-x: hidden;
    transition: background-color 0.3s ease-in-out;
}


/* Header */
header {
    width: 100%;
    padding: 15px;
    background-color: rgba(4, 4, 4, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s forwards; /* Add fade-in animation */
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 17px;
    position: relative;
}

/* Logo */
.logo-img {
    width: 42px;
    height: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none; /* Disable pointer events */
    /* Remove hover effect */
}

/* Adjusted Navigation Links */
nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    margin-top: 20px; /* Increased margin-top to push down the nav */
    padding-top: 10px; /* Added padding to create more space */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    opacity: 0;
    animation: fadeIn 1s forwards; /* Add fade-in for nav links */
}

nav::-webkit-scrollbar {
    display: none;
}

nav a {
    color: #d1d1d1;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #8B0000;
    transform: translateY(-3px);
}

/* Lazy Loading for Images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.lazy-load.loaded {
    opacity: 1;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B0000;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B0000;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content - Centered for Alignment */
main {
    width: 100%;
    max-width: 1400px; /* Set a max-width for larger screens to keep content centered */
    margin-top: 100px;
    opacity: 0;
    animation: fadeIn 1.2s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Blog Post/Announcement Card Hover and Animation */
.blog-post, .announcement {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.9), rgba(10, 10, 10, 0.8)); 
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; /* Add smooth transition */
    opacity: 0;
    animation: cardFadeIn 1.5s forwards;
}

/* Hover Effect for Blog and Announcement Cards */
.blog-post:hover, .announcement:hover {
    transform: translateY(-5px) scale(1.02); /* Slight lift and scaling */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7); /* Enhanced shadow for depth */
    opacity: 1;
}

/* Keyframes for Card Fade-in Animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Blog Post/Announcement Titles - Smaller Size with Linear Gradient */
.blog-section h2, .announcements-section h2 {
    font-size: 1.6rem; /* Reduced from 2rem */
    margin-bottom: 15px; /* Slightly reduced margin for better spacing */
    font-weight: 700; /* Bold for emphasis */
    text-transform: uppercase;
    letter-spacing: 1.2px; /* Slightly less spacing */
    background: linear-gradient(90deg, #007BFF, #00FFDD); /* Gradient colors */
    -webkit-background-clip: text; /* For Webkit-based browsers */
    background-clip: text; /* Standard property */
    -webkit-text-fill-color: transparent; /* Transparent text for Webkit browsers */
    color: transparent; /* Ensures compatibility for gradient text */
}

/* Blog Post/Announcement Card Titles - Smaller Size with Linear Gradient */
.blog-post h3, .announcement h3 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin: 0 0 8px 0; /* Reduced bottom margin */
    font-weight: 700; /* Bold for emphasis */
    text-transform: uppercase; /* Modern and bold look */
    letter-spacing: 0.8px; /* Slight spacing for readability */
    background: linear-gradient(90deg, #730505, #2a2a2a); /* Gradient colors */
    -webkit-background-clip: text; /* For Webkit-based browsers */
    background-clip: text; /* Standard property */
    -webkit-text-fill-color: transparent; /* Transparent text for Webkit browsers */
    color: transparent; /* Ensures compatibility for gradient text */
}

/* Card Text Animation */
@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Post/Announcement Content */
.blog-post p, .announcement p {
    font-size: 1rem;
    line-height: 1.6;
    color: #D3D3D3;
    opacity: 0;
    animation: fadeInText 1s forwards ease-in-out;
    animation-delay: 0.3s; /* Delay for sequential text fade */
}

/* Fade-In for Text */
@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loader */
.skeleton {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    min-height: 20px;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Pulse Animation for Loader */
@keyframes pulse {
    0% {
        background-color: rgba(114, 114, 114, 0.1);
    }
    50% {
        background-color: rgba(135, 135, 135, 0.2);
    }
    100% {
        background-color: rgba(198, 198, 198, 0.1);
    }
}


/* Footer */
footer {
    margin-top: 50px;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.store-icons img {
    width: 150px;
    margin: 10px 15px;
    transition: transform 0.3s ease;
}

.store-icons img:hover {
    transform: scale(1.1);
}


/* Adjust spacing on larger screens */
@media (min-width: 1024px) {
}

/* Styles for the Welcome Section */
.welcome-section {
    padding: 60px 20px; /* Reduced padding */
    background: linear-gradient(
        rgba(0, 0, 0, 0.5), 
        rgba(0, 0, 0, 0.5)
    ), url('https://your-image-url.com/welcome-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #ffffff;
}

/* Styles for the Welcome Section */
.welcome-section h1 {
    font-size: 2em; /* Reduced font size */
    margin-bottom: 10px; /* Reduced margin */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    animation: fadeInDown 1s ease-in-out;
    background: linear-gradient(90deg, #007BFF, #00FFDD); /* Gradient color */
    -webkit-background-clip: text; /* WebKit-based browsers */
    background-clip: text; /* Standard property for future compatibility */
    -webkit-text-fill-color: transparent; /* Transparent text for WebKit browsers */
    color: #ffffff; /* Fallback solid color for unsupported browsers */
}

.welcome-section p {
    font-size: 1em; /* Reduced font size */
    margin-bottom: 20px; /* Reduced margin */
    font-weight: 300;
    animation: fadeInUp 1s ease-in-out;
}

.welcome-section .cta-button {
    display: inline-block;
    padding: 10px 24px; /* Reduced padding */
    background-color: #790a0a;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em; /* Reduced font size */
    border-radius: 50px;
    transition: background-color 0.3s ease;
    animation: fadeInUp 1.2s ease-in-out;
}

.welcome-section .cta-button:hover {
    background-color: #900c0c;
}

/* Callout Text Styling */
.welcome-section .callout {
    font-size: 0.9em; /* Smaller than the subheadline */
    margin-top: 10px; /* Space above the callout */
    color: #ddd; /* Soft gray color */
    font-weight: 300;
    text-transform: uppercase; /* Modern, bold look */
    letter-spacing: 0.5px; /* Slightly spaced letters */
    animation: fadeInUp 1.4s ease-in-out; /* Subtle animation */
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Styles for the About Croseus Section */
.about-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #000000, #080808); /* Enhanced dark gradient background */
    color: #ffffff; /* Light text for dark background */
    position: relative;
    overflow: hidden;
}

.about-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section .text-content {
    flex: 1 1 500px;
    padding: 20px;
    animation: fadeInLeft 1s ease-in-out; /* Add fade-in animation */
}

/* About Croseus Section Titles */
.about-section .text-content h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    animation: fadeInDown 1s ease-in-out;
    background: linear-gradient(90deg, #8b0808, #2d2d2d); /* Gradient color */
    -webkit-background-clip: text; /* WebKit-based browsers */
    background-clip: text; /* Standard property for future compatibility */
    -webkit-text-fill-color: transparent; /* Transparent text for WebKit browsers */
    color: #ffffff; /* Fallback solid color for unsupported browsers */
}

.about-section .text-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #dcdcdc;
    margin-bottom: 20px;
    animation: fadeInUp 1.2s ease-in-out; /* Add paragraph animation */
}

.about-section .image-content {
    flex: 1 1 500px;
    padding: 20px;
    display: flex;
    justify-content: center; /* Center the icon */
    align-items: center;
    animation: fadeInRight 1s ease-in-out; /* Add fade-in animation */
}

.about-section .image-content img {
    width: 150px; /* Adjusted size to match app icon dimensions */
    height: 150px; /* Ensure a square aspect ratio */
    border-radius: 20%; /* Slight rounding for a polished look */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section .image-content img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.7); /* Enhance shadow on hover */
}


.about-section .features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.about-section .feature {
    flex: 1 1 250px;
    max-width: 300px;
    margin: 20px;
    text-align: center;
    background: linear-gradient(135deg, #0b0b0b, #1e1e1e); /* Gradient for feature cards */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-in-out;
}

.about-section .feature:hover {
    transform: translateY(-10px);
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
}

.about-section .feature img {
    width: 60px;
    margin-bottom: 15px;
    animation: fadeInDown 0.8s ease-in-out;
}

/* Feature Titles */
.about-section .feature h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00FFDD, #007BFF); /* Gradient color */
    -webkit-background-clip: text; /* WebKit-based browsers */
    background-clip: text; /* Standard property for future compatibility */
    -webkit-text-fill-color: transparent; /* Transparent text for WebKit browsers */
    color: #ffffff; /* Fallback solid color for unsupported browsers */
    text-transform: uppercase;
}

.about-section .feature p {
    font-size: 0.9em;
    color: #dcdcdc;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Store Icons */
.store-iconsx {
    display: flex; /* Flexbox layout for horizontal alignment */
    justify-content: center; /* Center icons horizontally */
    align-items: center; /* Align icons vertically */
    gap: 15px; /* Add spacing between the icons */
    margin-top: 20px; /* Space above the icons */
}

.store-iconsx img {
    height: 40px; /* Uniform size for icons */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.store-iconsx img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}


/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Darker overlay for contrast */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease-in-out; /* Smooth fade-in */
    backdrop-filter: blur(8px); /* Add a blur effect for a futuristic feel */
}

.modal-content {
    background: linear-gradient(145deg, #1e1e1e, #252525); /* Dark gradient background */
    border-radius: 15px; /* Sleeker, rounder corners */
    max-width: 500px; /* Compact width */
    width: 90%;
    padding: 20px; /* Adjusted padding */
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.8); /* Dramatic shadow for depth */
    position: relative;
    text-align: center;
    animation: slideIn 0.5s ease-in-out; /* Sliding effect for modal */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle glowing border */
    max-height: 90vh; /* Prevent modal from exceeding viewport */
    overflow: auto; /* Add scroll only if absolutely necessary */
}

.modal-content iframe {
    width: 100%;
    height: 200px; /* Reduced height */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1); /* Subtle glow around iframe */
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #aaa; /* Subtle gray */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.modal-content .close:hover {
    color: #fff; /* Bright white on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-section .container {
        flex-direction: column;
        text-align: center;
    }

    .about-section .image-content,
    .about-section .text-content {
        flex: 1 1 100%;
    }
}

/* Animation keyframes for seamless scrolling */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);  /* Start immediately */
    }
    100% {
        transform: translateX(-50%);  /* Loop smoothly */
    }
}

@media (min-width: 1200px) {
    .blog-section, .announcements-section {
        max-width: none; /* Remove max-width to fully extend on larger screens */
    }
}

/* Adjustments for small screen sizes and orientation changes */
@media (max-width: 768px), (orientation: landscape) {
    .blog-section, .announcements-section {
        flex: 1 1 48%; /* Take up half width on larger screens for two columns */
        max-width: 550px; /* Slightly larger max-width for more content */
    }

    .cookie-banner {
        font-size: 0.8rem; /* Reduce text size on small screens or landscape mode */
        padding: 8px 15px; /* Adjust padding for smaller viewports */
    }
    
    .cookie-banner button {
        padding: 4px 15px; /* Reduced vertical padding further for small screens */
        font-size: 0.9rem;
    }

    .welcome-section h1 {
        font-size: 1.7em;
    }

    .welcome-section p {
        font-size: 1.2em;
    }

    .about-section .text-content h2 {
        font-size: 1.8em;
    }

    .about-section .text-content p {
        font-size: 1em;
    }

    .about-section .feature {
        margin: 10px 0;
        padding: 15px;
    }

    .about-section .image-content img {
        width: 100px;
        height: 100px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .step {
        max-width: 90%;
    }

    .mission-vision-section h2,
    .how-it-works-section h2 {
        font-size: 2em;
    }
}

/* Desktop-only styles (optional, in case you want a fallback for larger screens) */
@media (min-width: 481px) {
    .cookie-banner {
        font-size: 0.75rem; /* Further reduce text size on very small screens */
    }
    
    .cookie-banner button {
        padding: 3px 10px; /* Minimized vertical padding for very small screens */
        font-size: 0.85rem;
    }
}

/* Cookie consent banner styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw; /* Ensure the banner doesn't exceed the viewport width */
    background-color: rgba(9, 9, 9, 0.8);
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    box-sizing: border-box;
    overflow: hidden;
}

.cookie-banner p {
    margin: 0;
    padding-right: 10px;
    flex: 1 1 auto;
    text-align: left;
}

.cookie-banner .button-container {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-banner button {
    padding: 5px 20px; /* Reduced vertical padding (5px) and kept horizontal padding (20px) */
    border-radius: 5px;
    border: none;
    cursor: pointer;
    background-color: #760808;
    color: white;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.cookie-banner button:hover {
    background-color: #7c0808;
}


.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.step {
    background: linear-gradient(145deg, #151515, #161616); /* Elevated card effect */
    padding: 30px;
    border-radius: 15px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.7); /* Deep shadow for floating effect */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.step:hover {
    transform: translateY(-10px) scale(1.05); /* Enhanced hover lift and scale */
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.9); /* Stronger shadow */
    background: linear-gradient(145deg, #292929, #3a3a3a); /* Slightly brighter on hover */
}

.step img {
    width: 90px;
    margin-bottom: 20px;
    filter: drop-shadow(0px 4px 6px rgba(0, 255, 221, 0.6)); /* Futuristic glow */
    transition: transform 0.4s ease, filter 0.4s ease;
}

.step:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0px 6px 10px rgba(0, 255, 221, 0.9)); /* Brighter glow */
}

/* Step Titles in How It Works Section */
.step h3 {
    font-size: 1.8em; /* Adjusted size */
    margin-bottom: 15px;
    background: linear-gradient(90deg, #007BFF, #00FFDD); /* Gradient for text */
    -webkit-background-clip: text; /* For Webkit-based browsers */
    background-clip: text; /* Standard property */
    -webkit-text-fill-color: transparent; /* Transparent text for gradient */
    text-transform: uppercase;
    color: transparent; /* Ensures fallback to transparent */
}

.step p {
    font-size: 1.1em;
    color: #dcdcdc;
    line-height: 1.6;
}

/* Add Animation */
@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0px 4px 6px rgba(0, 255, 221, 0.6));
    }
    50% {
        filter: drop-shadow(0px 6px 10px rgba(0, 255, 221, 0.9));
    }
}

.step img {
    animation: glowPulse 2s infinite; /* Subtle glowing animation */
}
