@font-face {
    font-family: 'geminiFont';
    src: url('/fonts/Gemini-Regular.woff2') format('woff2'),
        url('/fonts/Gemini-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: rgb(255, 255, 255);
    font-family: 'Nunito', sans-serif;
    margin:0;
    min-height: 100vh;
    padding-top: 3%;
    padding-left: 30%;
    padding-right: 30%;
    text-align: left;
    position: relative;
    transition: background-color 0.1s ease, color 0.1s ease;
}

/************************************************/
/* Fade in and slide up animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/************************************************/
h1, h1 > a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    text-align: left;
    font-weight: lighter;
    display: inline-block;
    font-size: 2rem;
    margin: 0;
}

body.dark-mode h1,
body.dark-mode h1 > a {
    color: #ffffff;
}

/************************************************/

nav{
    /*display:flex;*/
    justify-content: left;
    align-items:left;
    gap: 15pc;
    margin-top: 2px;
    margin-bottom: 20px;
}

nav > a{
    color:#000000;
    text-decoration: none;
    text-align: left;
    font-style: normal;
    margin-top: 0;
    margin-bottom: 20px;
}

nav a:hover {
    transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease;

}
/************************************************/
.intro-text a,
main > a,
main p > a,
main strong,
main p,
.nav-section a {
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

main > a:hover,
main p > a:hover,
.nav-section a:hover {
    font-weight: bolder;
}

/************************************************/
.lora-regular {
    font-family: "Lora", serif;
    font-weight: 400;
    font-style: normal;
}

footer {
    color: rgb(255, 255, 255);
    font-size: smaller;
    animation: fadeUp 1s ease-in;
    padding-top: 0%;
}

footer p {
    margin: 0;
    line-height: 1.1;
}

footer >a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease;
}
footer a:hover {
    transform: scale(1.05);
}

main p {
    text-align: left;
}
/************************************************/
.name-hover {
    position: relative;
    display: inline-block;
    cursor: default;
}

.peeking-kitty {
    position: absolute;
    width: 60px;
    height: auto;
    bottom: 85%;
    left: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.1s ease;
    pointer-events: none;
}

.name-hover:hover .peeking-kitty {
    opacity: 1;
    transform: translateY(0px);
}

/************************************************/
/* Photo grid layout */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 100%;
}

/* Images in the grid */
.photo-grid a {
    display: flex;
    justify-content: left;
    align-items: left;
}

.photo-grid img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 15px;
    transition: transform 0.4s ease, filter 0.4s ease; /* smooth animation */
    object-fit: contain;
}

@media (max-width: 768px) {
    .photo-grid img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .photo-grid img {
        max-width: 120px;
    }
}

/* Hover effect on images */
.photo-grid img:hover {
    transform: scale(1.1) rotate(-2deg) translateY(-12px); /* zoom, slight tilt, and float up */
}

.makeSmaller{
    width: 20%;        /* adjust size as needed */
    height: auto;      /* keeps aspect ratio */
    display: block;    /* for centering */
    margin: 0 auto;    /* centers the image in its grid cell */
}

/************************************************/
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* responsive grid */
    gap: 30px; /* space between images */
    padding: 20px 0;
    width: 120vw;
    max-width: 1100px;
    margin: 40px auto;   /* center the grid */
    position:relative;
    left:50%;
    transform:translateX(-50%)
}

.gallery img {
    width: 100%;         /* fills the grid cell */
    height: auto;        /* keeps aspect ratio */
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.05);  /* slight zoom on hover */
}

/************************************/
.magic:hover{
    filter: brightness(1.1) drop-shadow(0 0 5px #eb9010);
    transform: scale(1.05);
    transition: filter 1s ease, transform 0.2s ease;
}

/************************************/
.profile-pic {
    margin-right: 15px;    /* space between image and text */
    margin-bottom: 10px;   /* space below image when text wraps */
    width: 250px;          /* image size */
    height: 250px;
    object-fit: cover;
    display: block;
}

.intro-text {
    text-align: left;      /* text aligned left */
    padding-left: 0px;
}

/* Clear floats after the container */
.intro-container::after {
    content: "";
    display: block;
    clear: both;
}
.intro-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
}

/************************************/
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode a {
    color: #ffffff;
}

body.dark-mode nav > a{
    color: #ffffff;
}

body.dark-mode footer {
    color: #ffffff;
}

body.dark-mode .nav-section {
    border-left: 2px solid #ffffff;
}

#theme-toggle {
    position: relative;
    top: 75px;
    left: 83%;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.1s ease, text-shadow 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(235, 208, 5, 0.8);
}

#theme-toggle img {
    width:60px;
    height : 90px;
    display: block;
    transition: transform 0.7s ease, opacity 0.2s ease;
    transform-style: preserve-3d;
    }

/* Flip class */
#theme-toggle img.flip {
    transform: rotateY(180deg);
    }

/*********************************************/
.cursor-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;

    background: radial-gradient(
        circle,
        rgba(235, 208, 5, 0.8) 0%,
        rgba(235, 208, 5, 0.4) 30%,
        rgba(235, 208, 5, 0.1) 60%,
        rgba(235, 208, 5, 0) 80%
    );
}

/**************************************************/

*, *::before, *::after {
    box-sizing: border-box;
}

.profile-flip {
    float: left;           /* image on the left */
    margin-right: 15px;    /* space between image and text */
    margin-bottom: 10px;   /* space below image when text wraps */
    width: 250px;          /* image size */
    height: 250px;
    perspective: 1000px; /* important for 3D flip */
    margin-right: 25px; /* space from text */
    object-fit: cover;

}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d; /* enables 3D rotation */
}

.profile-flip:hover .flip-inner {
    transform: rotateY(180deg); /* flips horizontally */
}

/* Front side (the image) */
.flip-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* hide back when facing front */
    overflow: hidden;
}
/************************************/
/*flip for projects*/
body > .flip-card {
  display: inline-block; /* cards in a row */
    margin: 10px;
    align-items: center;
}

/* Flip card container */
.flip-card {
    background-color: transparent;
    width: 400px;
    height: 300px;
    perspective: 1000px; /* 3D effect */
    align-items: center;
    text-align: center;
    margin: 0 auto;        /* ← centers it */
    margin-bottom: 20px;   /* ← space between cards */
}
/* Flip on hover */
.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

/* Front and back sides */
.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
}

/* Front: the image */
.flip-front img {
    width: 100%;
    height: 100%;
    object-fit:cover;
}

/* Back (content) */
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(208, 191, 228);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backface-visibility: hidden; /* hide front when facing back */
    transform: rotateY(180deg);
    padding: 10px;
    font-size: 14px;
}

.flip-back div {
    text-align: center;
}

/*********************************/
/* Background image layer */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    /*background: url("icons/background.png") bottom / cover no-repeat;
    opacity: 0.1;          /* adjust this (0.1 – 0.4 usually looks good) */
    z-index: -1;            /* keeps it behind everything */
    filter: blur(1px);
}

/**************************************************/
.transform{
    position:relative;
}
.transform-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.transform-front,
.transform-back{
    position:absolute;
    inset:0;
}

.transform-front {
    z-index: 1;
}

.transform-back{
    overflow: hidden;
    z-index:2;
}
.transform-back img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 100% 0 0 );
    transition: clip-path 0.8s steps(20);
}

.transform:hover .transform-back img {
    clip-path: inset(0 0 0 0);
}

.transform-front img {
    transition: opacity 0.2s steps(15);
}
.transform:hover .transform-front img {
    opacity: 0;
}


.transform-profile{
    width: 250px;
    height:250px;
    float: left;           /* image on the left */
    margin-right: 15px;    /* space between image and text */
    margin-bottom: 10px;   /* space below image when text wraps */
    object-fit: cover;
    display: block;
}

.transform-bird {
    width: 200px;
    height: 200px;
    position: relative;
    padding: 0;
    margin-top: -60px;
    overflow: hidden;
}
.transform-bird img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/****************************/
.nav-section {
    border-left: 2px solid #000000;
    margin: 0;
    padding-left: 16px;
    margin-top: 4px;
}
.nav-section a{
    text-decoration: none;
    color: 50, 50, 100;
}

.nav-section a:hover {
    font-weight: bolder;
}

.side-panel {
    position: fixed;
    top: 15%;
    left: 23%;
    width: 350px;
    max-height: 30vh;
    background: rgba(206, 192, 220, 0);
    overflow-y: auto;
    padding: 24px;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transform-origin: left;
    transition: opacity 0.5s ease, transform 0.5s ease;
}



.side-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

#close-panel {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left:auto;
    display:block;
}

/* Side panel scrollbar */
.side-panel::-webkit-scrollbar {
    width: 4px;
    border-radius: 10px;
}

.side-panel::-webkit-scrollbar-track {
    background: transparent;
}

.side-panel::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.345);
    border-radius: 10px;
}

.side-panel::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.59);
}

body.dark-mode #close-panel {
    color: #ffffff;
}

body.dark-mode .side-panel::-webkit-scrollbar-thumb {
    background-color: rgba(244, 244, 244, 0.345);
}

body.dark-mode .side-panel::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.675);
}

/*************music************/
#play-btn {
    display: block;
    margin-top: -20px;
    background: none;
    border: none;
    width: 75px;
    height: 75px;
    cursor: pointer;
    padding: 0;
    margin-left: 80px;
}

#play-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#play-btn:hover img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

#play-btn img.spinning {
    transform: rotate(90deg);
}

body.dark-mode #play-btn {
    opacity: 0.85;
}
/*//////////////////////////////////////*/

#loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* dark mode loader bg */
body.dark-mode #loader {
    background: #121212;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#content.visible {
    opacity: 1;
    transform: translateY(0);
}

.loader-animals {
    display: flex;
    gap: -20px;
    align-items: flex-end;
}

.loader-animal {
    width: 200px;
    opacity: 0;
    animation: popIn 0.4s ease forwards;
    margin-left: -50px; /* negative = overlap, adjust to taste */
}

.loader-animal:first-child {
    margin-left: 0; /* don't offset the first one */
}

.loader-animal:nth-child(3) { animation-delay: 0s; }
.loader-animal:nth-child(2) { animation-delay: 0.2s; }
.loader-animal:nth-child(1) { animation-delay: 0.4s; }

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*//////////////////////////////////////*/
@media (max-width: 768px) {

    body {
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 8%;
    }

    /* 1 column gallery */
    .gallery {
        grid-template-columns: 1fr;
        width: 90vw;
        left: 0;
        transform: none;
        margin: 20px auto;
    }

    /* photo grid smaller */
    .photo-grid img {
        max-width: 130px;
    }

    /* cat toggle reposition */
    #theme-toggle {
        top: 10px;
        left: auto;
        right: 5%;
        position: fixed;
    }

    /* bird + music row */
    .transform-bird {
        width: 120px;
        height: 120px;
        margin-top: 0;
    }

    #play-btn {
        width: 50px;
        height: 50px;
        margin-left: 20px;
        margin-top: 0;
    }

    /* side panel full width */
    .side-panel {
        left: 5%;
        width: 90%;
        top: 20%;
    }

    /* nav back button */
    nav > a {
        font-size: 0.9rem;
    }
}