* {
    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/1.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(248, 110, 51, 0.4)
 }

.playfair-display-body {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.playfair-display-body::selection {
     background: rgba(248, 110, 51, 0.4)
 }

.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(248, 110, 51, 0.4)
}

.horizontal-container {
    display: flex;
    flex-direction: row;
}

.vertical-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
@media (max-width: 425px) {
    .vertical-container {

    }
}

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: flex-start;
    justify-content: center;
    padding-top: 2rem;
    flex: 1;
}
@media (max-width: 425px) {
    main {
        padding-top: 5rem;
        padding-bottom: 2rem;
        align-items: center;
    }
}

footer {
    z-index: 999;
    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;
}

.about-container {
    width: 67%;
    height: 100%;
    padding: 5rem 2rem 2rem 2rem;
    gap: 2rem;
}
@media (max-width: 425px) {
    .about-container {
        width: 100%;
        padding: 1rem;
    }
}

.about-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
}
.about-image img {
    width: auto;
    height: 605px;
    object-fit: cover;
    border-radius: 10px;
}
@media (max-width: 425px) {
    .about-image {
        padding: 1rem;
    }
    .about-image img {
        width: 100%;
        height: 300px;
        object-position: 0 -40px;
    }
}

.about-text {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    background: #0000006b;
    padding: 1rem;
    border-radius: 10px;
    overflow: hidden;
}
.about-text p {
    font-size: 1.2rem;
    color: #f7f7f7;
    text-align: left;
    width: 100%;
    height: auto;
}

.cursor-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 110, 51, 0.7) 0%, rgba(255, 183, 76,0.15) 60%, rgba(255, 183, 76, 0) 75%);
    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 */
}

.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%);
}

.image-accordion {
    display: flex;
    height: 60vh;
    width: 100vh;
    overflow: hidden;
    border-radius: 10px;
}

.panel {
    flex: 1;
    transition: flex 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel:hover {
    flex: 4; /* Hover scale */
}

.panel img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(37, 37, 37, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-image {
    max-width: 90%;
    max-height: 80vh;
    margin-bottom: 1rem;
}

.modal-caption {
    color: #f7f7f7;
    font-size: 1.2rem;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    color: #f7f7f7;
    cursor: pointer;
}
