/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0b0b0b; /* Dark background */
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header Styles */
header {
    background: #1e1e1e; /* Darker header */
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #1dbf8c; /* Accent color on hover */
}

/* Hero Section */
.hero {
    background: url('images/hero-image.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0 20px; /* Padding for smaller screens */
}

.cta-button {
    background: linear-gradient(90deg, #ff4b1f, #ff9068);
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background 0.3s, transform 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    background: linear-gradient(90deg, #ff9068, #ff4b1f);
    transform: scale(1.05);
}

/* Main Section Styles */
main {
    padding: 20px 0;
}

/* Downloads Section */
.downloads {
    text-align: center; /* Center the heading and cards */
}

.downloads h2 {
    margin-bottom: 20px; /* Space below the heading */
}

.card-container {
    display: flex; /* Flexbox container for cards */
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    justify-content: center; /* Center the cards */
    gap: 20px; /* Space between cards */
}

.download-card {
    background: #2c2c2c; /* Card background color */
    padding: 15px; /* Padding inside the card */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    max-width: 250px; /* Set a max width for the card */
    flex: 1 1 200px; /* Allow flexibility with a minimum width */
    text-align: center; /* Center text inside */
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.download-card h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.download-card p {
    margin: 10px 0;
}

.download-card button {
    background: #1dbf8c; /* Button color */
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.download-card button:hover {
    background: #17a67e; /* Darker shade on hover */
}

/* Popup Styles */
.popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.popup-content {
    background: #2c2c2c; /* Dark card background */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.popup-content h2 {
    margin: 0 0 15px;
}

.popup-content .close {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 1.5em;
    color: #ffffff;
}

/* Footer Styles */
footer {
    background: #1e1e1e;
    text-align: center;
    padding: 20px 0;
    position: relative;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
}

footer p {
    margin: 0;
}

/* Links Section */
.links {
    padding: 40px 0;
    text-align: center;
}

.links h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.links ul {
    list-style: none;
    padding: 0;
}

.links ul li {
    margin: 10px 0;
}

.links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    color: #000000;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2em; /* Adjust font size for smaller screens */
    }

    .cta-button {
        font-size: 1em; /* Smaller button font */
        padding: 10px 20px; /* Smaller button padding */
    }

    .downloads h2, .links h2 {
        font-size: 2em; /* Adjust heading size */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em; /* Adjust header font size */
    }

    nav ul li {
        margin: 0 10px; /* Less margin for mobile */
    }

    .download-card {
        padding: 15px; /* Smaller card padding */
    }
}

/* Footer Styles */
footer {
    background: #1e1e1e;
    text-align: center;
    padding: 20px 0;
    position: relative;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
}

footer p {
    margin: 0;
}

/* Ensure footer stays at the bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Make sure footer is at the bottom */
}

main {
    flex: 1; /* Allow main to expand and push footer down */
}

/* Links Button Styles */
.link-button {
    display: inline-block;
    background: #118601; /* Base color */
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background 0.3s, transform 0.3s;
    margin: 10px 0; /* Spacing between buttons */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.link-button:hover {
    background: #2cff02; /* Darker shade on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
}

.link-button:active {
    transform: translateY(0); /* Return to normal when clicked */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Reset shadow */
}

/* Download Button Styles */
.download-button {
    display: inline-block;
    background: #1dbf8c; /* Base color */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background 0.3s, transform 0.3s;
    margin: 10px 0; /* Spacing between buttons */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.download-button:hover {
    background: #17a67e; /* Darker shade on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
}

.download-button:active {
    transform: translateY(0); /* Return to normal when clicked */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Reset shadow */
}
