/* LANDING PAGE ~ index.html */

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

body {
    background-color: #0000FF; 
    color: white;
    font-family: "Times New Roman", Times, serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container {
    width: 90%;
}

.name {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 5rem;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

a {
    color:white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
}

a:hover {
    font-style: italic;
}

.home-page .cursor-pixel {
  position: fixed;
  width: 4px;
  height: 4px;
  pointer-events: none;
  z-index: 9999;
  animation: vanish 5s forwards;
}

@keyframes vanish {
  0% { opacity: 1; }
  100% { opacity: 0; }
}


/* Mobile responsive */
@media (max-width: 600px) {
    .name { font-size: 1.8rem; }
    .nav-row { gap: 1rem; }
    a { font-size: 1.2rem; }
}


/* WORKS ~ works.html */

.works-page {
    background-color: white !important;
    color: #0000FF !important;
    display: block; 
    padding: 3rem;
}

.works-page a {
    color: #0000FF;
}

.header-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: fit-content;
    margin-bottom: 4rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    letter-spacing: 0.05em;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

.top-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.star {
    font-size: 1.2rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.project-card {
    text-align: center;
}

.image-placeholder {
    background-color: #e0e0e0; 
    aspect-ratio: 1 / 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    border: 1px solid #000;
    margin-bottom: 1rem;
}

.project-title, .project-year {
    font-size: 1.1rem;
    margin: 0.2rem 0;
}

/* Mobile responsive: 1 column on small screens */
@media (max-width: 800px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* ABOUT PAGE ~ about.html */
.white-page {
    background-color: white !important;
    color: #0000FF !important;
    display: block;
    padding: 3rem;
    text-align: left;
    height: auto;
    overflow: hidden;
}

.white-page a { color: #0000FF; }

/* Split layout */
.split-content {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.left-col { flex: 0.5; }
.right-col { flex: 1.5; }

.picture img { 
    width: 100%; 
    height: auto;
    display: block;
 }

 .pic-cred {
    width: 100%; 
    height: auto;
    display: block;
 }

.downloads {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
}

.bio{
    margin-top: 1rem;
}

.statement{
    margin-top: 1rem;
}

.education{
    margin-top: 1rem;
}

.exhibits {
    margin-top: 1rem;
}

.exhibits p a {
    font-weight: inherit;
    font-size: inherit;
}

/* CONTACT ~ contact.html */

.snoopy-img {
    width: 150px; 
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
 }

.contact-info {
    display: block;
    text-align: left;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto; 
    line-height: 1.6;
}

.contact-info p a {
    font-weight: inherit;
    font-size: inherit;
    color:navy;
}

/* PROJECT PAGE */
.back-nav { margin-bottom: 2rem; }

.large-hero {
    width: 100%;
    height: 500px;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.project-title-large { font-size: 3rem; font-weight: 400; margin-bottom: 0.5rem; }
.project-year-large { font-size: 1.5rem; margin-bottom: 2rem; }
.project-description { max-width: 600px; line-height: 1.6; }

/* ACTIVE LINK STATE */
.active { font-style: italic; }

/* --- LOGIN PAGE --- */

.login-page {
    background-color: #0000FF;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.login-container input {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.login-container button {
    background-color: white;
    color: #0000FF;
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    font-family: inherit;
    transition: opacity 0.2s;
}

.login-container button:hover {
    opacity: 0.9;
}

/* --- ADMIN PANEL (EXISTING WORKS) --- */

.admin-panel input {
    width: 100%;
    background-color: #0000FF;
    color: white;
    border: none;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-family: inherit;
}

.admin-panel input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.admin-panel button {
    background-color: #0000FF;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

/* --- EDIT MODAL (POP-UP) --- */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 50, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    color: #0000FF;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal-content input {
    width: 100%;
    background-color: #0000FF;
    color: white;
    border: none;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0000FF;
}

.modal-content button[type="submit"] {
    background-color: #0000FF;
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
}

.delete-btn {
    background-color: #0000FF !important;
    border: 1px solid white;
}

/* WEB PAGE ~ web.html */

.web-page {
    background-color: #0000FF;
    color: white;
    display: block;
    min-height: 100vh;
    height: auto;
    padding: 3rem;
}

.web-page a { color: white; }
.web-page .logo a { color: white; }

.scatter-field {
    position: relative;
    width: 100%;
    min-height: 80vh;
}

.scatter-loading {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.web-card {
    position: absolute;
    display: block;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

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

.web-card-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: block;
}

.web-card-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 255, 0.55);
    color: white;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.1rem;
    text-align: center;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.web-card:hover .web-card-label { opacity: 1; }

/* WORKS PAGE — dynamic cards */

.works-loading {
    color: #0000FF;
    font-style: italic;
    font-size: 1rem;
    opacity: 0.5;
}

a.project-card {
    text-decoration: none;
    color: #0000FF;
    display: block;
}

.project-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #000;
    transition: opacity 0.2s;
}

a.project-card:hover .project-cover { opacity: 0.8; }