
/* ---------------------------
   GLOBAL STYLES
---------------------------- */
body {
    font-family: 'Montserrat', sans-serif;
    font-display: swap;
    color: #000000;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
}


.project-info{
    position:relative;
    width: 100vw;
    text-align: center;
    font-size: 2em;
    margin: 0;
}

.project-frame{
    margin-bottom: 7vh;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 6.25vw;
    top:-4vh;

}

.project{
    width: 87.5vw;
    height: 87.5vh;
    overflow: hidden;
    transform: scale(0.80);
}

/* Legacy iframe styles (kept for reference)
#resumeFrame{
    width: 120%;
    height: 120%;
    overflow: hidden;
    transform: translate(-10%, -7.5%) scale(0.80);
}
*/

.preloader {
    align-items: center;
    background-color: #F1FAEE;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    transition: opacity .5s linear;
    width: 100%;
    z-index: 9999;
}

.center {
    margin: auto;
    width: 50%;
    border: 1px solid black;
    padding: 10px;
}

/* ---------------------------
   HTML RESUME STYLES
---------------------------- */
.resume-container {
    max-width: 800px;
    margin: 6vh auto 4vh;
    padding: 0 20px;
}

.resume-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 48px 56px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.resume-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 3px solid #E63946;
}

.resume-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.15;
}

.resume-header .resume-contact {
    font-size: 14px;
    font-weight: 300;
    color: #444;
    margin-top: 8px;
}

.resume-header .resume-contact a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.resume-header .resume-contact a:hover {
    color: #E63946;
}

.resume-section {
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(29, 53, 87, 0.03) 0%, transparent 100%);
}

.resume-section:nth-child(odd) {
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.03) 0%, transparent 100%);
}

.resume-section-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #E63946;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #E63946, #457B9D) 1;
}

.resume-section p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
}

.resume-section p strong {
    color: #1D3557;
}

.resume-skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resume-skill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 8px 12px;
    background: rgba(69, 123, 157, 0.06);
    border-radius: 6px;
    border-left: 3px solid #457B9D;
    transition: all 0.2s;
}

.resume-skill-row:hover {
    border-left-color: #E63946;
    background: rgba(230, 57, 70, 0.06);
}

.resume-skill-label {
    font-size: 14px;
    font-weight: 700;
    color: #1D3557;
    min-width: 200px;
    margin-right: 12px;
}

.resume-skill-detail {
    font-size: 13px;
    font-weight: 300;
    color: #444;
    flex: 1;
}

@media (max-width: 600px) {
    .resume-skill-row {
        flex-direction: column;
        gap: 4px;
    }

    .resume-skill-label {
        min-width: unset;
    }
}

.resume-entry {
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 3px solid #457B9D;
    transition: border-color 0.2s;
}

.resume-entry:hover {
    border-left-color: #E63946;
}

.resume-entry:last-child {
    margin-bottom: 0;
}

.resume-entry-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #1D3557;
}

.resume-entry-org {
    font-size: 14px;
    font-weight: 600;
    margin: 2px 0;
    color: #457B9D;
}

.resume-entry-date {
    font-size: 13px;
    font-weight: 300;
    color: #666;
    margin: 2px 0 0;
}

.resume-entry-desc {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: #444;
    margin-top: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(69, 123, 157, 0.06) 0%, rgba(230, 57, 70, 0.04) 100%);
    border-radius: 6px;
}

.resume-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
    text-align: center;
}

.resume-links-grid a {
    color: #1D3557;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(69, 123, 157, 0.1);
}

.resume-links-grid a:hover {
    color: #E63946;
    background: rgba(230, 57, 70, 0.1);
}

.resume-links-grid .resume-link-url {
    font-weight: 300;
    font-size: 12px;
    color: #666;
    background: transparent;
    padding: 2px 0;
}

.resume-links-grid .resume-link-url:hover {
    color: #E63946;
    background: transparent;
}

@media (max-width: 600px) {
    .resume-card {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .resume-header h1 {
        font-size: 28px;
    }

    .resume-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .resume-container {
        padding: 0 8px;
        margin-top: 4vh;
    }

    .resume-card {
        padding: 24px 16px;
    }

    .resume-header h1 {
        font-size: 24px;
    }

    .resume-section-title {
        font-size: 13px;
    }

    .resume-section p,
    .resume-entry-title,
    .resume-entry-org {
        font-size: 13px;
    }
}

/* Legacy #resume ID styles (kept for compatibility) */
#resume {
    position: absolute;
    transform: translate(-50%, 0%);
    left: 50vw;
    text-align: center;
    width: 80vw;
    height: 80vh;
    top: 10vh;
}
#resume.w {
    position: absolute;
    transform: translate(-50%, 0%);
    left: 50vw;
    text-align: center;
    width: 80vw;
    height: 80vh;
    top: 10vh;
}
#resume.h {
    position: absolute;
    transform: translate(-50%, 0%);
    left: 50vw;
    text-align: center;
    width: 90vw;
    height: 80vh;
    top: 10vh;
}


/* Navigation Menu */
#menu {
    position: absolute;
    right: 5vw;
    top: 30%;
    list-style-type: none;
    display: table;
    table-layout: auto;
    transition: 1s;
}

.other-page {
    width: 80px;
    display: block;
    color: #F1FAEE;
    padding: 20px 16px;
    text-decoration: none;
    background-color: #000000;
    font-weight: 300;
    transition: .3s;
}

#current-page {
    width: 80px;
    display: block;
    padding: 20px 16px;
    text-decoration: none;
    background-color: #000000;
    transition: .3s;
    color: #E63946;
    font-weight: 600;
}

li a:hover {
    font-weight: 600;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 5px;
}

/* Hamburger Menu Toggle */
#menuToggle {
    display: block;
    position: relative;
    top: 2vh;
    left: 2vh;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle a {
    text-decoration: none;
    transition: color 0.5s ease;
}

#menuToggle a:hover {
    color: #E63946;
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0; /* hide this */
    z-index: 2; /* place it over the hamburger */
    -webkit-touch-callout: none;
}

/* Hamburger lines */
#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: #000000;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

/* Transform hamburger into 'X' */
#menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #E63946;
}

#menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

/* Slide out menu */
#menu {
    position: absolute;
    width: 150px;
    border-radius: 3em;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;
    left: 0%;
    background: #000000;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

#menu li {
    padding: 0px 0;
    font-size: 22px;
}

#menuToggle input:checked ~ ul {
    transform: none;
}

/* ---------------------------
   ANIMATED BACKGROUND STYLES
---------------------------- */
:root {
    --color-bg1: rgb(255, 192, 210);
    --color-bg2: rgb(120, 223, 217);
    --color1: 255, 112, 156;
    --color2: 85, 214, 170;
    --color3: 255, 178, 54;
    --color4: 108, 137, 255;
    --color5: 181, 228, 87;
    --color-interactive: 255, 143, 90;
    --circle-size: 80%;
    --blending: hard-light;
}

/* Keyframes from background.html */
@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }
    50% {
        transform: translateX(50%) translateY(10%);
    }
    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}

.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
    top: 0;
    left: 0;
    z-index: 0; /* behind the page content */
}

/* The container that holds the moving circles */
.gradients-container {
    filter: url(#goo) blur(100px);
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Each circle */
.g1, .g2, .g3, .g4, .g5 {
    position: absolute;
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    mix-blend-mode: var(--blending);
}

/* Specific circle styles + animations */
.g1 {
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
}

.g2 {
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
}

.g3 {
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
}

.g4 {
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}

.g5 {
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));
    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;
}

/* The bubble that follows the mouse */
.interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    opacity: 0.7;
}

/* Wrapping actual site content so it appears above the background */
.page-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding-bottom: 50px;
}


/* ---------------------------
   HOME PAGE STYLES
   (from home.css)
---------------------------- */
.welcome {
    font-size: 36px;
    text-align: center;
    margin-top: 8vh;
    font-weight: 600;
}

.grid-container {
    margin-top: 5vh;
    display: grid;
    grid-row-gap: 30px;
    grid-template-columns: auto;
    text-align: center;
}

.link-container {
    margin-top: 4%;
    text-align: center;
}

#AboutLinks {
    position: relative;
    top: 3vh;
}

.link-item {
    display: inline-block;
    text-align: left;
    margin: 0 4%;
}

.social-link {
    color: #000000;
    transition: 0.3s;
}

.social-link:hover {
    color: #E63946;
}

.tagline {
    text-align: center;
    font-weight: 300;
    font-size: 24px;
    margin-top: 3%;
    max-width: 90vw;
}

#a:hover ~ #current-page {
    background-color: #000000;
}

#name {
    position: relative;
    border-bottom: 2px #E63946;
    width: auto;
    font-size: 7vw;
    left: 0vw;
    text-align: center;
}
#name.w {
    position: relative;
    border-bottom: 2px #E63946;
    width: auto;
    font-size: 7vh;
    left: 0vw;
    text-align: center;
}
#name.h {
    position: relative;
    border-bottom: 2px #E63946;
    width: auto;
    font-size: 7vw;
    left: 0vw;
    text-align: center;
}

#underline {
    width: 80vw;
}
#underline.w {
    width: 80vh;
}
#underline.h {
    width: 80vw;
}

hr {
    width: 0px;
    display: block;
    border-top: 3px solid #E63946;
    transition: all 1s ease;
}

#typewriter {
    overflow: hidden;
    border-right: .15em solid #E63946;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .1em;
    animation: typing 2.5s steps(40, end),
    blink-caret .75s step-end infinite;
    display: inline-block;
    font-size: 3vw;
}
#typewriter.w {
    overflow: hidden;
    border-right: .15em solid #E63946;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .1em;
    animation: typing 2.5s steps(40, end),
    blink-caret .75s step-end infinite;
    display: inline-block;
    font-size: 3vh;
}
#typewriter.h {
    overflow: hidden;
    border-right: .15em solid #E63946;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .1em;
    animation: typing 2.5s steps(40, end),
    blink-caret .75s step-end infinite;
    display: inline-block;
    font-size: 3vw;
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }
    50% {
        border-color: #E63946;
    }
}

img {
}

.photo {
    width: 40vh;
    max-width: 80vw;
    height: auto;
    border-radius: 25px;
}

#LQ{
    position: relative;
    z-index: 99;
}

#LQ.w{
    position: relative;
    transform: translate(-50%);
    z-index: 99;
}

#LQ.h{
    position: relative;
    z-index: 99;
}

#HQ{
    position: relative;
    z-index: 100;
    opacity: 0;
    transition: opacity 2s ease;
}

#HQ.w{
    position: relative;
    transform: translate(50%);
    z-index: 100;
}

#HQ.h{
    position: relative;
    transform: translate(0%, 100%);
    z-index: 100;
    top: -40vw;
    margin-bottom: -40%;
    margin-top: -40%;
}

#headshotGrid{
    font-size: 0;
}

#aboutPic {
    width: 30vw;
    height: auto;
    border-radius: 25px;
    z-index: 100;
    opacity: 0;
    transition: opacity 2s ease;
}

#aboutPic.w {
    width: 30vw;
    height: auto;
    border-radius: 25px;
    transform: translate(100%);
    position: relative;
}

#aboutPic.h {
    width: 60vw;
    height: auto;
    border-radius: 25px;
    z-index: 100;
    transform: translate(0%, 101%);
    position: relative;
    top: -60vw;
}
#aboutPicLQ {
    width: 30vw;
    height: auto;
    border-radius: 25px;
    z-index: 9;
}

#aboutPicLQ.w {
    width: 30vw;
    height: auto;
    border-radius: 25px;
}

#aboutPicLQ.h {
    width: 60vw;
    height: auto;
    border-radius: 25px;
    z-index: 9;
    position: relative;
    top: -60vw;
    margin-bottom: -50%;
}

#about {
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s, right 0.3s, bottom 0.3s;
    position: absolute;
    top: 20vh;
    width: 55vw;
    left: 5vw;
    height: 70vh;
}

#about.w {
    position: absolute;
    top: 20vh;
    width: 55vw;
    left: 5vw;
    height: 70vh;
    font-size: 2.25vh;
}

#about.h {
    position: relative;
    top: 12vh;
    width: 90vw;
    left: 5vw;
    height: 70vh;
    margin-bottom: 5vh;
    font-size: 3vw;
}

#imageBlock {
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s, right 0.3s, bottom 0.3s;
    position: absolute;
    right: 5vw;
    top: 25vh;
    font-size:0;
}

#imageBlock.w {
    position: absolute;
    right: 5vw;
    top: 25vh;
}

#imageBlock.h {
    position: relative;
    left: 18vw;
    margin-top: 1vh;
    top: 16vh;
    font-size: 0;
}

#aboutMe {
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s, right 0.3s, bottom 0.3s;
    position: absolute;
    transform: translate(-50%, 0%);
    left: 50vw;
    top: 8vh;
    font-size: 36px;
    text-align: center;
    font-weight: 600;
}

#aboutMe.w {
    position: absolute;
    top: 8vh;
    transform: translate(-50%, 0%);
    left: 50vw;
}

#aboutMe.h {
    position: absolute;
    width: 100vw;
    top: 8vh;
    left: 47vw;
    margin-bottom: 0;
}


/* ---------------------------
   CONTACT & PROJECTS STYLES
   (from contact.css)
---------------------------- */
.contact-grid{
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 10px;
    background-color: transparent;
    padding: 10px;
    margin: 0 auto;
    width: 80vw;
    font-size: 20px;
    grid-row-gap: 5vh;
}
.contact-info{
    margin: auto 0;
}

.contact-icon{
    margin-left:auto;
    margin-right:2vw;

}

a.left-underline {
    position: relative;
    text-decoration: none;
    color: #000000;
}

a.left-underline:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -.5vh;
    left: 0;
    background-color: #E63946;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

a.left-underline:hover:before {
    visibility: visible;
    width: 100%;
}


/* ---------------------------
   DOWNLOAD BUTTON (Resume)
---------------------------- */
.download-btn {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #E63946;
}
