/* --- Global Styles & Background --- */
body {
    /* Your existing background styles */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('backdrop.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    height: 100vh;
    
    /* Layout for centering content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    
    /* Font and general cleanup */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow-y: auto; /* Allows scrolling if content is too tall */
}

/* Main Container to keep content clean */
.container {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for readability */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
    border-color: transparent;
    border-style: solid;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
}

p {
    margin-bottom: 30px;
    font-size: 1.1em;
    opacity: 0.8;
}

/* --- Services Grid Layout --- */
.services-grid {
    display: flex;
    gap: 20px; /* Space between cards */
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
}

/* Individual Service Card Styling */
.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none; /* Remove underline from links */
    color: white;
    flex: 1 1 250px; /* Flex-grow, flex-shrink, flex-basis for responsive sizing */
    min-width: 250px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block; /* Makes the whole card clickable */
}

.service-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.service-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

.service-card h2 {
    margin: 5px 0;
    font-size: 1.5em;
}

.service-card p {
    font-size: 0.9em;
    margin-bottom: 0;
    opacity: 0.7;
}

/* --- Bonus Collapsible Section (CSS-only) --- */
.bonus-links-section {
    max-width: 400px; /* Keep the collapsed section contained */
    margin: 0 auto;
    text-align: left;
    margin-top: 20px;
}

.bonus-links-section summary {
    cursor: pointer;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    list-style: none; /* Removes default arrow/marker */
    text-align: center;
    transition: background-color 0.2s ease;
    font-weight: bold;
    color: #aaa; /* Less prominent color */
}

.bonus-links-section summary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Re-adding a custom arrow for the details element */
.bonus-links-section summary::marker {
    content: ''; /* Remove default marker again, if necessary */
}

.bonus-links-section summary::before {
    content: '▶';
    margin-right: 10px;
    display: inline-block;
    transition: transform 0.2s;
}

/* Rotate the arrow when the details element is open */
.bonus-links-section[open] summary::before {
    transform: rotate(90deg);
}

.bonus-links {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 5px 5px;
    text-align: center;
}

.bonus-link {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #ccc;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bonus-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Media Queries for small screens --- */
@media (max-width: 600px) {
    .services-grid {
        flex-direction: column;
    }

    .service-card {
        min-width: unset;
    }
}



/* --- Status Alert Styling --- */
.status-alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-weight: bold;
    color: #333; /* Dark text for contrast */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.status-alert p {
    margin: 0;
    font-size: 1.1em;
    opacity: 1; /* Ensure text is fully visible */
}

.status-alert small {
    display: block;
    margin-top: 5px;
    font-weight: normal;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Success State (IPv6 works) */
.status-alert.success {
    background-color: #28a745; /* Green */
    color: white;
}

/* Failure State (IPv6 does not work) */
.status-alert.failure {
    background-color: #dc3545; /* Red */
    color: white;
}

/* Initial State (While checking) */
.status-alert.initial {
    background-color: #ffc107; /* Yellow/Warning */
    color: #333;
}

.container.success {
    border-color: #28a745; /* Green */
}
.container.failure {
    border-color: #dc3545; /* Red */
}
.container.initial {
    border-color: #ffc107; /* Yellow/Warning */
}