/* -------------------------------------------------------
   GLOBAL RESET
-------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: #000;
    color: #87aadc;
    font-family: "Inter", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 32px; /* XL */
}

/* -------------------------------------------------------
   HEADER
-------------------------------------------------------- */
header {
    text-align: center;
    margin-bottom: 32px; /* XL */
}

h1 {
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.8px;
}

.divider {
    width: 100%;
    max-width: 480px;
    height: 1px;
    margin: 12px auto 20px;
    background: #1a2f47;
}

/* -------------------------------------------------------
   NAVIGATION
-------------------------------------------------------- */
nav {
    display: flex;
    justify-content: center;
    gap: 20px; /* L */
}

.nav-btn {
    cursor: pointer;
    padding: 4px 8px; /* XS + S */
    border-radius: 50px;
    font-size: 15px;
    transition: text-shadow 0.3s ease, transform 0.25s ease;
}

/* elegant text-glow hover */
.nav-btn:hover {
    text-shadow: 
        0 0 4px rgba(135, 170, 220, 0.9),
        0 0 10px rgba(135, 170, 220, 0.45);
    transform: translateY(-1px);
}

/* ACTIVE STATE */
#about:checked ~ header nav label[for="about"],
#projects:checked ~ header nav label[for="projects"],
#blog:checked ~ header nav label[for="blog"] {
    text-shadow:
        0 0 7px rgba(135, 170, 220, 0.8),
        0 0 14px rgba(135, 170, 220, 0.4);
}

/* HIDE RADIO BUTTONS COMPLETELY */
input[type="radio"] {
    position: absolute;  /* remove from flow */
    opacity: 0;          /* fully transparent */
    width: 0;
    height: 0;
    pointer-events: none; /* avoid accidental clicks */
}


/* -------------------------------------------------------
   CARD WRAPPER
-------------------------------------------------------- */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1;
}

/* -------------------------------------------------------
   PREMIUM CARD
-------------------------------------------------------- */

/* lift on hover */
.card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 10px rgba(0,0,0,0.4),
        0 0 18px rgba(135,170,220,0.20);
}

/* PREMIUM GRAIN TEXTURE */

.card {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;

    display: flex;
    flex-direction: column; /* stack elements vertically */
    justify-content: center; /* center vertically */
    align-items: center; /* align left or center if you prefer */

    box-shadow:
        0 2px 4px rgba(0,0,0,0.35),
        0 0 12px rgba(135,170,220,0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    z-index: 1; /* card itself */
}

/* Grain overlay on top of background but behind content */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0; /* behind content */

    /* stronger grain pattern visible on black */
    background-image:
        radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 2px 3px;

    /* no blend mode; make it clearly visible */
    opacity: 0.4;
}

/* -------------------------------------------------
footer
 -------------------------------------------------- */

footer {
    text-align: center;
    font-size: 0.85rem;
    color: #586b8a;
    margin-top: 16px;
    padding: 8px 0;
    border-top: 1px solid #1a2f47; /* subtle divider line */
}


/* -------------------------------------------------------
   CARD SIZE + TRUE RATIO 1.75
-------------------------------------------------------- */

/* large screens (premium business card) */
@media (min-width: 680px) {
    .card {
        width: 45vw;
        height: calc(45vw / 1.75); /* true 1.75 ratio */
    }
}

/* medium screens */
@media (min-width: 480px) and (max-width: 679px) {
    .card {
        height: 60vh;
        aspect-ratio: 1 / 1.75; 
        padding: 24px;
    }
}

/* small screens */
@media (max-width: 479px) {
    .card {
        height: 60vh;
        aspect-ratio: 1 / 1.75; 
        padding: 20px;
    }
}

/* -------------------------------------------------------
   CONTENT STACKING
-------------------------------------------------------- */
.content {
    position: absolute;
    inset: 0; /* fills the card */
    display: flex; /* enable vertical centering */
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center;     /* horizontal centering (change to flex-start for left-aligned) */
    padding: 24px;           /* spacing inside card */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.content > * + * {
    margin-top: 8px; /* spacing between h2 and p */
}

#about:checked ~ main .about { opacity: 1; pointer-events: auto; }
#projects:checked ~ main .projects { opacity: 1; pointer-events: auto; }
#blog:checked ~ main .blog { opacity: 1; pointer-events: auto; }

/* -------------------------------------------------------
   TYPOGRAPHY (premium scale)
-------------------------------------------------------- */
.content h2 {
    position: absolute;
    top: 24px;   /* same as card padding */
    text-align:center;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 550;
}

p {
    font-size: 1rem;
    font-weight: 380;
    line-height: 1.45;
    margin: 0;
    text-align: left;
}

/* slightly larger text on small screens */
@media (max-width: 480px) {
    h2 { font-size: 21px; }
    p  { font-size: 16.5px; }
}

