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

html, body {
    height: 100%;
    margin: 0;
    background: #1c1c1c;
}

.page-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url('../images/portfolio/all the conversations/4.webp');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center 0; /* will be changed by JS */
    z-index: 1;
}

.page-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px); /* modern & performant */
    /* or use filter: blur(5px); background-color: rgba(0,0,0,0.3); if you want fallback */
    z-index: -1;
    pointer-events: none;
}

/* 400 to 900 */
.playfair-display-header {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
.playfair-display-header::selection {
    background: rgba(229, 239, 255, 0.6)
}

.playfair-display-body {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.playfair-display-body::selection {
    background: rgba(229, 239, 255, 0.6)
}

.desktop-hide {
    display: none !important;
}
@media (max-width: 425px) {
    .mobile-hide {
        display: none !important;
    }
    .desktop-hide {
        display: inherit !important;
    }
}

.courier-new {
    font-family: 'Courier New', monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.courier-new::selection {
    background: rgba(229, 239, 255, 0.6)
}

.horizontal-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0.1rem;
}

.vertical-container {
    display: flex;
    flex-direction: column;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998; /* ensure it's above other elements */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #f7f7f7;
    text-align: center;
    background: #0000006b;
    width: auto;
    height: 3rem;
    border-radius: 10px 10px 10px 10px;
    margin: 2rem 2rem 2rem 2rem;
    overflow: hidden;
}
@media (max-width: 425px) {
    header {
        margin: 1.5rem 0.5rem 0.5rem 0.5rem;
        left: auto;
    }
    header a {
        font-size: 1rem !important;
        padding: 0.2rem 0.35rem 0.2rem 0.35rem !important;
    }
    header img {
        height: 2rem;
    }
}
header a {
    color: #f7f7f7;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.2rem 1rem 0.2rem 1rem;
}
header img {
    height: 2.5rem;
    position: relative;
    top: 3px;
}

nav {
    position: relative; /* <-- containment context */
    overflow: hidden;   /* <-- clip cursor */
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    font-size: 1.2rem;
    color: #f7f7f7;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*gap: 5rem;*/
    padding-top: 10rem;
    flex: 1;
}
@media (max-width: 425px) {
    main {
        padding-top: 7rem;
        margin-bottom: 2rem;
    }
}

footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 1rem;
    color: #f7f7f7;
    text-align: center;
    background-color: #000000;
}

.cursor-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 239, 255, 0.8) 0%, rgba(229, 239, 255, 0.4) 60%, rgba(255, 183, 76, 0) 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.05s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
    mix-blend-mode: screen; /* optional: helps the "light" blend nicely */
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 40vw;
    height: auto;
    margin-bottom: 5rem;
    padding: 1rem 1rem 2rem 1rem;
    background: #00000083;
    border-radius: 10px;
}
@media (max-width: 425px) {
    .contact-form-container {
        width: 90%;
        margin-bottom: 0;
    }
}
.contact-form-container form {
    display: inherit;
    width: 100%;
    flex-direction: inherit;
    align-items: inherit;
    justify-content: inherit;
    gap: 0.1rem;
}
.contact-form-container h2 {
    font-size: 2rem;
    padding-bottom: 1rem;
}
.contact-form-container textarea {
    width: 100%;
    height: 20rem;
    color: #f7f7f7;
    background-color: #00000083;
    border: none;
}
@media (max-width: 425px) {
    .contact-form-container textarea {
        height: 35vh;
    }
}
.contact-form-container input {
    height: 2rem;
    width: 100%;
    color: #f7f7f7;
    background-color: #00000083;
    border: none;
}
.contact-form-container button {
    height: 2rem;
    width: 100%;
    color: #f7f7f7;
    background-color: #00000083;
    border: none;
}

.contact-form-container button:hover {
    background-color: #15151583;
}
.contact-form-container button:active {
    background-color: #1c1c1c83;
}

.gradient-rounded-box {
    border-radius: 20px;
    background: radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0) 70%
    );
    background-color: #222;
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.0) 100%);
}
