@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: "Monument Extended", sans-serif;
    cursor: none !important;
}

a,
button,
input,
select,
textarea,
label {
    cursor: none !important;
}

/* Inverted Cursor */
#invert-spotlight {
    position: fixed;
    pointer-events: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    mix-blend-mode: difference;
    z-index: 999999;
    transition: width 0.2s, height 0.2s;
}

a,
a:hover {
    text-decoration: none;
    color: #212529;
}

nav {
    width: 90%;
    height: 100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    text-transform: uppercase;
    position: relative;
    z-index: 1000;
}

.menu-item {
    flex: 1;
}

.menu-left {
    display: flex;
    text-align: center;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.menu-center {
    text-align: center;
}

.menu-right {
    text-align: right;
}

.menu-link {
    padding: 7px 8px;
}

.dropdown-item {
    padding: 3px 7px;
}

.dropdown-menu {
    border-width: 0px;
    padding-top: 0;
}

.dropdown:hover>.dropdown-menu {
    display: block;
    border-radius: 0;
}

.dropdown-item:active {
    background-color: white;
    color: #212529;
}

.wrapper-img {
    overflow: hidden;
    position: relative;
    margin-top: 70px;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 75vh;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.box {
    background: white;
    opacity: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 2;
}

/* header  */

.header {
    position: absolute;
    top: 60%;
    left: 28%;
    transform: translate(-50%, -50%);
}

.header h1 {
    font-size: 90px;
    text-transform: uppercase;
    margin: 0;
    mix-blend-mode: overlay;
}

.header-1 .letter {
    display: inline-block;
    line-height: 1em;
}

.header-2 .letter {
    display: inline-block;
    line-height: 1em;
}

/* hero-container */

.sidebar-text {
    position: absolute;
    top: 20%;
    right: 7%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: transparent;
    -webkit-text-stroke: 2px rgb(165, 165, 165);
}

.projects {
    position: absolute;
    bottom: 10%;
    left: 15%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    text-decoration: underline;
}

.img-nav {
    position: absolute;
    right: 13%;
    bottom: 13%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    color: grey;
}

.next {
    position: relative;
    top: 40px;
    left: 80px;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    pointer-events: none;
    z-index: 1;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 50px;
    transform: translate(-50%, -50%);
    display: flex;
    background: rgba(80, 80, 80, 80);
}

.loader-1 {
    position: absolute;
    background-color: white;
    width: 200px;

}

.loader-2 {
    position: absolute;
    background-color: white;
    width: 200px;
}

.loader-3 {
    position: absolute;
    background-color: white;
    width: 150px;
}

.loader-4 {
    position: absolute;
    background-color: white;
    width: 145px;
}

.bar {
    height: 50px;
}

.sec1 {
    margin-top: 100px;
    margin-bottom: 200px;
    height: auto;
}

.headerText h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: 'Nunito', sans-serif;
    color: rgb(99, 94, 93);
}

.headerText h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    color: rgb(99, 94, 93);
}

.headerText h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    color: rgb(99, 94, 93);
}

/* About me section styling */
.about-header {
    font-size: 90px;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 30px;
    font-family: "Monument Extended", sans-serif;
    color: #212529;
}

.about-header .letter {
    display: inline-block;
    line-height: 1em;
}

.about-text {
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
    color: #212529 !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}


.headerText p {
    color: #212529 !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
}

.menu-link a[href="about.html"] {
    margin-left: 20px;
}

@media (max-width: 900px) {
    .wrapper-img {
        width: 90%;
    }

    .header {
        top: 81%;
        left: 50%;
        text-align: center;
    }

    .header h1 {
        font-size: 39px;
        color: white;
    }

    .header-1 {
        margin-right: 20px;
    }

    .projects,
    .img-nav {
        display: none;
    }

    .dropdown-menu {
        border-width: 0px;
        padding-top: 9px;
    }

    .about-header {
        font-size: 39px;
        text-align: center;
    }

    .about-text {
        font-size: 18px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .headerText h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .block.vertical {
        width: 70%;
    }

    .about-header {
        font-size: 32px;
    }

    .about-text {
        font-size: 16px;
    }
}

@media (max-width: 460px) {
    .menu-center {
        display: none;
    }

    .header h1 {
        font-size: 39px;
        color: #212529;
    }
}

nav.menu {
    width: 100%;
    margin: 0;
}

.menu-item {
    flex: 1;
    display: flex;
    align-items: center;
}

.menu-left {
    justify-content: flex-start;
}

.menu-center {
    justify-content: center;
}

.menu-right {
    justify-content: flex-end;
}

.menu-link {
    margin: 0;
    padding: 7px 8px;
}

/* Archive Page Specific Styles */

.archive-header {
    margin-top: 60px;
    text-align: center;
    margin-bottom: 80px;
}

.archive-header .title {
    font-size: 40px;
    font-family: "Monument Extended", sans-serif;
    color: #111;
    margin: 0;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    gap: 40px;
    padding: 0 10%;
    max-width: 1400px;
    margin: 0 auto 100px auto;
    justify-content: center;
}

.archive-item {
    background: transparent;
    padding: 0;
    text-align: left;
    /* Align text to left or center as per preference, reference looked centered-ish but let's stick to simple */
    cursor: none !important;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content */
    gap: 15px;
}

.archive-item:hover {
    box-shadow: none;
    /* Remove box shadow on hover for cleaner look with images */
    background: transparent;
}

.archive-item:hover .archive-cover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.archive-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-cover img,
.archive-cover canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-info {
    text-align: center;
    width: 100%;
}

.archive-info h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #111;
    font-weight: 400;
}

.archive-info p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* PDF Modal */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    /* White background */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-modal.active {
    opacity: 1;
}

.pdf-modal-content {
    position: relative;
    width: auto;
    height: 90vh;
    max-width: 90vw;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.pdf-container {
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 80vh;
    margin-bottom: 20px;
}

#pdf-render {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    /* Lighter shadow */
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #333;
    /* Gray text */
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    background: transparent;
    /* No background */
    padding: 10px 20px;
}

.nav-btn {
    display: none;
    /* Hide arrow buttons */
    background: transparent;
    border: none;
    color: #333;
    /* Gray arrows */
    font-size: 24px;
    cursor: none !important;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: scale(1.2);
    color: #000;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #333;
    /* Gray close button */
    font-size: 40px;
    font-weight: 300;
    /* Thinner weight like chairs page */
    cursor: none !important;
    transition: color 0.2s, transform 0.2s;
    z-index: 2001;
    line-height: 1;
}

.close-btn:hover {
    color: #000;
    transform: rotate(90deg);
}

/* PDF Navigation Cursors */
#pdf-render.cursor-left {
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M20 6 L10 16 L20 26" fill="none" stroke="%23333" stroke-width="2"/></svg>') 16 16, w-resize !important;
}

#pdf-render.cursor-right {
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M12 6 L22 16 L12 26" fill="none" stroke="%23333" stroke-width="2"/></svg>') 16 16, e-resize !important;
}

@media (max-width: 768px) {
    .archive-header .title {
        font-size: 40px;
    }

    .archive-grid {
        padding: 0 20px;
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .pdf-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
    }

    .close-btn {
        top: 10px;
        right: 10px;
    }
}