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

body {
    /* background: radial-gradient(ellipse at bottom, #0d0d14 0%, #07070d 100%); */
    color: #e6e6e6;
    background-color: black;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    margin: 0rem auto
}

.default-starfield {
    position: 'fixed';
    top: '0';
    left: '0';
    width: '100%';
    height: '100%';
    z-Index: '-1';
}

/* Faint nebula overlay */
#nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(72, 61, 139, 0.35), transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(184, 104, 238, 0.2), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

header,
main,
.main-feature,
.secondary-cards,
.footer {
    position: relative;
    z-index: 1;
}


header {
    background: radial-gradient(circle at center, rgba(60, 78, 122, 0.4), #0d0d14);
    padding: 2rem 2rem;
    text-align: center;
}

.site-title {
    font-size: 3.5rem;
    letter-spacing: 0.05em;
    color: #b4d9ff;
    margin-bottom: 1rem;
    word-wrap: normal;
    text-align: center;
    justify-self: center;
}
.site-subtitle {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #c4c4d0;
    font-size: 1.25rem;
    text-align: center;
    justify-self: center;
}

@media (max-width: 530px) {
    .site-title {
        font-size: 3.0rem;
    }
}
@media (max-width: 465px) {
    .site-title {
        font-size: 2.5rem;
    }
}
@media (max-width: 398px) {
    .site-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 350px) {
    .site-title {
        font-size: 1.8rem;
    }
    .site-subtitle {
        font-size: 1.0rem;
    }
}

@media (max-width: 250px) {
    * {
        font-size: 80%;
    }
}



/* ================================== */
/* Use these styles in site sub-pages */
/*                                    */

/* Page-specific header spacing */
.page-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    /* background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(1px); */
    border-bottom: 1px solid rgba(90, 140, 200, 0.25);
}

.page-title {
    font-size: 2.5rem;
    color: #d3e7ff;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.15rem;
    color: #c4c4d0;
    margin-bottom: 1.5rem;
}

/* SITE BRANDING (HEADER) */
.branding {
    font-size: 1.5rem;        /* smaller than main page title */
    font-weight: 500;
    color: #b4d9ff;
    letter-spacing: 0.05em;
    /* margin-bottom: 0.3rem; */
    text-shadow: 0 0 6px rgba(180, 217, 255, 0.4);
}

/*                                    */
/* ================================== */


nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

nav a {
    color: #b4d9ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #61b8fa;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.main-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.0rem 2rem 1.5rem 2rem;
    background: rgba(18, 18, 28, 0.85);
    margin: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(74, 168, 255, 0.15);
    backdrop-filter: blur(4px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    .main-feature {
        margin: 1.5rem 1rem;      /* smaller outer spacing */
        padding: 1rem 1.25rem;    /* tighten internal spacing */
        border-radius: 8px;       /* slightly less rounded for small screens */
    }
}

@media (max-width: 400px) {
    .main-feature {
        margin: 1rem 0.75rem;     /* tighter but still not edge-to-edge */
        padding: 0.85rem 1rem;
        border-radius: 6px;
    }
}

.featured-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ad4ff;
    margin-bottom: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
}

.main-feature h2 {
    font-size: 1.65rem;
    color: #d3e7ff;
    margin-bottom: 0.85rem;
    line-height: 1.3;
    max-width: 750px;
}

.main-feature p {
    color: #c0c0d0;
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.main-feature a {
    padding: 0.5rem 1.25rem;
    border: 1px solid #4aa8ff;
    border-radius: 4px;
    color: #b4d9ff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.main-feature a:hover {
    background: rgba(74, 168, 255, 0.2);
    box-shadow: 0 0 10px #4aa8ff;
}

.secondary-cards {
    display: grid;
    gap: 2rem;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 800px) {
    .secondary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
.card {
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    background: rgba(18, 18, 28, 0.85);
    border: 1px solid #1c1c28;
    padding: 2rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    backdrop-filter: blur(2px);
    position: relative;
}

@media (max-width: 799px) {
    .secondary-cards {
        grid-template-columns: 1fr; /* stack cards vertically */
        gap: 1rem;                  /* smaller gap on mobile */
        padding: 0 1rem;            /* side padding to prevent touching edges */
        margin: 1rem auto;           /* vertical breathing room */
    }

    .card {
        padding: 1.25rem;           /* reduce padding inside each card */
    }
}


.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #4aa8ff, #9ad4ff);
    opacity: 0.25;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #4aa8ff;
    box-shadow: 0 8px 20px rgba(74, 168, 255, 0.2);
}

.card-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #d3e7ff;
}

.card-content p {
    color: #c0c0d0;
    line-height: 1.6;
}


/* ====================== */
/* FOOTER                 */
/* ====================== */
footer {
    margin-bottom: 2rem;
}
footer p {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #888;
}
/* ====================== */
/* FOOTER SIGNATURE       */
/* ====================== */
footer .signature {
    font-size: 0.85rem;
    color: #8ea5bb;
    opacity: 0.85;
    margin-top: 0.2rem;
}


.ad-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    background-color: rgba(74, 168, 255, 0.15);
    border: 1px dashed #4aa8ff;
    color: #4aa8ff;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

/* Optional: different sizes */
.ad-leaderboard { width: 728px; height: 90px; }
.ad-large-rectangle { width: 336px; height: 280px; }
.ad-medium-rectangle { width: 300px; height: 250px; }
.ad-mobile-leaderboard { width: 320px; height: 50px; display: none;}

/* Make the AdSense <ins> scale on mobile */
.ad-container ins.adsbygoogle {
    display: inline-block !important;
    width: 100% !important;   /* scales with container */
    height: auto !important;  /* lets height adjust proportionally */
}

@media (max-width: 740px) {
    .ad-container.ad-leaderboard {
        width: 100% !important;
        max-width: 320px;
        height: auto;
        aspect-ratio: 6 / 1; /* roughly 320x50 mobile banner */
        display: none;
    }
    .ad-container.ad-mobile-leaderboard {
        display: block;
    }
}
