/* General Body and Typography */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light text */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styling */
.header {
    background-color: #0f0f1a; /* Even darker header */
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Step Section Styling */
.step {
    background-color: #22223b; /* Slightly lighter dark for steps */
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.step-content {
    text-align: center;
    margin-bottom: 20px;
}

.step-content h2 {
    color: #8d99ae; /* A subtle accent color */
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-content p {
    font-size: 1.1em;
    color: #c0c0c0;
    max-width: 700px;
}

.step-image {
    width: 100%;
    max-width: 800px; /* Max width for images */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #444;
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensures the whole image is visible */
}

/* Fullscreen Overlay Styling */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #ccc;
}

/* Footer Styling */
.footer {
    background-color: #0f0f1a;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Pushes footer to the bottom */
    border-top: 1px solid #333;
}

.footer p {
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsive Design */
@media (min-width: 768px) {
    .step {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .step:nth-child(even) {
        flex-direction: row-reverse; /* Alternate image and text */
    }

    .step-content {
        flex: 1;
        margin-right: 30px;
        text-align: left;
        margin-bottom: 0;
    }

    .step:nth-child(even) .step-content {
        margin-left: 30px;
        margin-right: 0;
    }

    .step-image {
        flex: 1;
        max-width: 50%; /* Adjust image width for larger screens */
    }
}

@media (max-width: 767px) {
    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1em;
    }

    .step {
        padding: 20px;
    }

    .step-content h2 {
        font-size: 1.5em;
    }

    .step-content p {
        font-size: 0.95em;
    }

    .close-button {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}