/* ===== FONTS ===== */
@font-face {
    font-family: 'Basteleur';
    src: url('fonts/Basteleur-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Brockmann';
    src: url('fonts/brockmann-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-feature-settings: "ss02" 1, "ss03" 1;
    overflow-x: hidden;
    width: 100%;
}

/* ===== TRANSITION OVERLAY ===== */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

.transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== TEXT SELECTION STYLES ===== */
::selection {
    background-color: rgba(253, 253, 253, 0.2); /* Light version of #fdfdfd */
    color: #fdfdfd; /* Same as the highlighted span text color */
}

::-moz-selection {
    background-color: rgba(253, 253, 253, 0.2);
    color: #fdfdfd;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-family: 'Basteleur', serif;
    font-size: 40px;
    width: fit-content;
    margin-top: 0;
    margin-bottom: 16px;
    color: #fdfdfd;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Nudge animation keyframes for h1 */
@keyframes headingNudge {
    0% { transform: translateX(0); }
    15% { transform: translateX(8px); }
    30% { transform: translateX(-4px); }
    45% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    75% { transform: translateX(0.5px); }
    100% { transform: translateX(0); }
}

p {
    font-family: 'Brockmann', sans-serif;
    font-size: 1rem;
    color: #6D7077;
    line-height: 2;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 100%;
    text-align: justify;
}

p span {
    color: #fdfdfd;
}

.content-container a {
    color: inherit;
    text-decoration: none;
}

.content-container a:hover {
    text-decoration: none;
}


/* ===== LAYOUT CONTAINERS ===== */
.content-container {
    margin-left: 72px;
    margin-top: 40px;
    max-width: 25.8vw;
    min-width: 412px;
    box-sizing: border-box;
}

.easter-egg-icon {
    z-index: 300;
    position: fixed;
    width: 56px;
    height: 56px;
    display: none;
    cursor: pointer;
}

/* Desktop styles for easter egg icon (default) */
@media screen and (min-width: 901px) {
    .easter-egg-icon {
        top: 40px;
        right: 72px;
        left: auto;
        bottom: auto;
        transform: translateX(100vw) rotate(0deg);
    }
}

/* ===== EASTER EGG STYLES ===== */
#rps-game {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Mobile easter egg positioning (applied globally and then overridden for larger screens) */
@media screen and (max-width: 900px) {
    /* Hide hover tag on mobile and tablets */
    .hover-tag {
        display: none;
    }
    
    /* Easter egg icon - positioned at bottom center */
    .easter-egg-icon {
        position: fixed !important;
        width: 56px !important;
        height: 56px !important;
        top: auto !important;
        right: auto !important;
        left: 50% !important;
        bottom: 32px !important;
        z-index: 300 !important;
        transform: translate(-50%, 150%) !important;
        /* Default transition for exit animation - smooth with no bounce */
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    }
    
    /* Class to add when easter egg active - entrance animation with bounce */
    .easter-egg-visible {
        transform: translate(-50%, 0%) !important;
        /* Override transition for entrance animation only - add bounce */
        transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) !important;
    }
    
    /* Game container - centered at bottom */
    #rps-game {
        position: fixed !important;
        width: 78% !important;
        max-width: 444px !important;
        left: 50% !important;
        right: auto !important;
        bottom: 112px !important;
        transform: translateX(-50%) scale(0) !important;
        transform-origin: center bottom !important;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out !important;
    }
    
    /* When game is open */
    #rps-game.open {
        transform: translateX(-50%) scale(1) !important;
    }
}

/* ===== PROJECT COMPONENTS ===== */
/* Common project styles */
.parent-lumonote,
.parent-lumenduel,
.parent-lensart,
.parent-audioviz,
.parent-odyssey,
.parent-weathermate,
.parent-polls,
.parent-medicab,
.parent-pitchpls,
.parent-arkade,
.parent-circles {
    align-self: stretch;
    min-width: 444px;
    width: 28.04vw;
    position: relative;
}

.parent-lumonote a,
.parent-lumenduel a,
.parent-lensart a,
.parent-audioviz a,
.parent-odyssey a,
.parent-weathermate a,
.parent-polls a,
.parent-medicab a,
.parent-pitchpls a,
.parent-arkade a,
.parent-circles a {
    color: inherit;
}


.lumonote-home-img,
.lumenduel-home-img {
    position: absolute;
    right: -24px;
    bottom: -48px;
    width: 180px;
    height: 180px;
    object-fit: contain;
    transform: rotate(-15deg);
}

.circles-home-img {
    position: absolute;
    right: -50%;
    bottom: -45%;
    width: 120%;
    height: 120%;
    object-fit: contain;
    transform: rotate(-15deg);
}

.lensart-home-img {
    position: absolute;
    right: -24px;
    bottom: -48px;
    width: 200px;
    height: 200px;
    object-fit: contain;
    transform: rotate(-15deg);
}

.audioviz-home-img {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
    width: 100%;
}

.odyssey-home-img {
    position: absolute;
    right: -15%;
    bottom: 0;
    top: 0;
    width: auto;
    height: 100%;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
}

.weathermate-home-img {
    position: absolute;
    right: -20%;
    bottom: -10%;
    width: 60%;
    height: 60%;
    object-fit: contain;
    transform: rotate(-15deg);
}

.pitchpls-home-img {
    position: absolute;
    right: -5%;
    bottom: -22%;
    width: 240px;
    height: 240px;
    object-fit: contain;
}

.polls-home-img,
.medicab-home-img {
    position: absolute;
    bottom: -10%;
    width: 70%;
    height: 70%;
    object-fit: contain;
    transform: rotate(-15deg);
}

.polls-home-img {
    right: -20%;
}

.medicab-home-img {
    right: -22%;
    
}

.arkade-home-img {
    position: absolute;
    right: 2%;
    bottom: -18%;
    width: 70%;
    height: 70%;
    object-fit: contain;
    /* transform: rotate(-10deg); */
}

.polls-unacademy {
    position: absolute;
    top: 8%;
    right: 4%;
    width: 24%;
    height: auto;
    object-fit: contain;
}

.thumb-lumonote,
.thumb-lumenduel,
.thumb-lensart,
.thumb-audioviz,
.thumb-odyssey,
.thumb-weathermate,
.thumb-polls,
.thumb-medicab,
.thumb-pitchpls,
.thumb-arkade,
.thumb-circles {
    position: absolute;
    top: 0;
    left: 32px;
    width: 93%;
    height: 100%;
    overflow: hidden;
}

/* Project-specific styles */
.thumb-circles {
    background-color: #292929;
}

.thumb-arkade {
    background-color: #FF653F;
}

.thumb-lumonote {
    background-color: #3939AF;
}

.thumb-lumenduel {
    background-color: #27232D;
}

.thumb-lensart {
    background-color: #484F48;
}

.thumb-audioviz {
    background-color: #232323;
}

.thumb-odyssey {
    background-color: #D7883E;
}

.thumb-weathermate {
    background-color: #E15B2A;
}

.thumb-polls {
    background-color: #2D81F7;
}

.thumb-medicab {
    background-color: #7145B9;
}

.thumb-pitchpls {
    background-color: #119A6D;
}

/* Keep .title untouched as required */
.title {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    line-height: 120%;
}

/* ===== PROJECT LAYOUT ===== */
.ciid-projects {
    align-self: stretch;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    opacity: 0;
    animation: fadeIn 0.7s cubic-bezier(0.50, 0, 0.50, 1) 0.9s forwards;
}



.tab-button:hover {
    color: #fdfdfd;
}

.tab-button.active {
    color: #fdfdfd;
}


.all-projects {
    padding-left: 40px;
    padding-right: 72px; /* value was 38vw before */
    margin-top: 28vh;
    width: auto;
    position: relative;
    min-height: 232px;
    height: 24vh;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    font-size: 40px;
    color: #fdfdfd;
    font-family: Basteleur;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    display: none;
}

/* Custom scrollbar styles */
.custom-scrollbar-container {
    position: relative;
    width: auto;
    height: 0.125rem;
    margin-left: 72px;
    margin-right: 72px;
    margin-top: 8vh;
    background-color: #272727;
    overflow: visible;
    opacity: 0;
    animation: fadeIn 0.7s cubic-bezier(0.50, 0, 0.50, 1) 0.9s forwards;
}

/* Invisible hit target overlay */
.custom-scrollbar-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    bottom: -20px;
    background: transparent;
    z-index: 1;
    pointer-events: auto;
}

.custom-scrollbar-thumb {
    position: relative;
    height: 100%;
    width: 28%;
    background-color: #565656;
    left: 0;
    top: 0;
    max-width: 100%;
    z-index: 2;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media screen and (min-height: 798px) and (max-height: 959px) {

    .all-projects {
        margin-top: 8%;
    }

    .custom-scrollbar-container {
        margin-top: 6vh;
        margin-bottom: 16vh;
    }
}

@media screen and (max-height: 797px) {

    .all-projects {
        margin-top: 8%;
    }

    .custom-scrollbar-container {
        display: none;
    }
}

@media screen and (min-height: 800px) and (max-height: 899px) {

    .all-projects {
        margin-top: 8%;
    }

    .custom-scrollbar-container {
        margin-top: 6vh;
        margin-bottom: 16vh;
    }
}

/* JavaScript will control the position of the thumb based on scroll position */

/* Hover tag styles */
.hover-tag {
    position: absolute;
    background-color: inherit;
    color: #fdfdfd;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Brockmann', sans-serif;
    font-size: 1rem;
    letter-spacing: -0.02em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s linear;
    z-index: 10;
    white-space: nowrap;
}

.project-card {
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.meta-value.team,
.meta-value.mentors,
.meta-value.team a,
.meta-value.mentors a,
.meta-value.team .letter-swap-container,
.meta-value.mentors .letter-swap-container {
    color: #000000 !important;
}

.footer {
    width: auto;
    position: fixed;
    left: 72px;
    right: 72px;
    bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fdfdfd;
    font-family: 'Brockmann', sans-serif;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: #fdfdfd;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0;
    animation: fadeInBlur 0.5s ease-out forwards;
}

.footer-link:nth-child(1) {
    animation-delay: 1.7s;
}

.footer-link:nth-child(2) {
    animation-delay: 1.8s;
}

.footer-link:nth-child(3) {
    animation-delay: 1.9s;
}

.footer-link:nth-child(4) {
    animation-delay: 2.0s;
}

/* .footer-link:hover {
    text-decoration: underline;
} */

.footer-time {
    color: #6D7077;
    font-size: 1rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInBlur 0.5s ease-out 1.5s forwards;
}

/* Initial load animations */
@keyframes fadeInBlur {
    0% {
        opacity: 0;
        filter: blur(1rem);
        transform: translateY(32px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

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

h1 {
    opacity: 0;
    filter: blur(1rem);
    animation: fadeInBlur 0.3s ease-out 0.5s forwards;
}

.content-container p {
    opacity: 0;
    animation: fadeInBlur 0.5s ease-out 0.5s forwards;
}

/* ===== RESPONSIVE STYLES ===== */
/* Mobile styles (390px) */
@media screen and (max-width: 390px) {
    /* Hide hover tag on mobile */
    .hover-tag {
        display: none;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 24px;
    }
    
    p {
        font-size: 0.925rem;
        letter-spacing: -0.01em;
        line-height: 2;
        text-align: justify;
    }
    
    /* Layout adjustments */
    .content-container {
        margin-left: 32px;
        margin-right: 32px;
        margin-top: 32px;
        max-width: 90%;
        min-width: auto;
    }
    
    /* Tab adjustments */
    .project-tabs {
        padding-left: 32px;
        padding-right: 32px;
        margin-top: 64px;
        margin-bottom: 32px;
        gap: 24px;
    }
    
    .tab-button {
        font-size: 0.925rem;
    }
    
    /* Project layout adjustments */
    .all-projects {
        padding-left: 8px;
        padding-right: 32px;
        margin-top: 48px;
        margin-bottom: 80px;
        height: auto;
        flex-direction: column;
        gap: 40px;
        overflow-y: visible;
    }
    
    .ciid-projects {
        flex-direction: column;
        gap: 64px;
    }
    
    /* Project components adjustments */
    .parent-lumonote,
    .parent-lumenduel,
    .parent-lensart,
    .parent-audioviz,
    .parent-odyssey,
    .parent-weathermate,
    .parent-pitchpls,
    .parent-polls,
    .parent-medicab,
    .parent-arkade,
    .parent-circles {
        min-width: auto;
        width: 100%;
        height: 200px;
    }
    
    .thumb-lumonote,
    .thumb-lumenduel,
    .thumb-lensart,
    .thumb-audioviz,
    .thumb-odyssey,
    .thumb-weathermate,
    .thumb-pitchpls,
    .thumb-polls,
    .thumb-medicab,
    .thumb-arkade,
    .thumb-circles {
        left: 24px;
        width: 94%;
    }
    
    .title {
        font-size: 24px;
    }
    
    /* Image adjustments */
    .lumonote-home-img,
    .lumenduel-home-img,
    .lensart-home-img,
    .weathermate-home-img,
    .polls-home-img,
    .medicab-home-img {
        width: 160px;
        height: 160px;
        right: -10%;
        bottom: -15%;
    }

    .arkade-home-img {
        width: 70%;
        right: 5%;
        bottom: -20%;
    }

    .circles-home-img {
        width: 120%;
        right: -48%;
        bottom: -42%;
    }

    .pitchpls-home-img {
        width: 180px;
        height: 180px;
        right: -8%;
        bottom: -25%;
    }
    
    /* Scrollbar adjustments */
    .custom-scrollbar-container {
        display: none;
    }
    
    /* Footer adjustments */
    .footer {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 32px;
        margin-bottom: 5em;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .footer-time {
        font-size: 0.925rem;
        letter-spacing: -0.01em;
        line-height: 2;
    }

    .footer-links {
        font-size: 0.925rem;
        letter-spacing: -0.01em;
        line-height: 2;
        gap: 24px;
        flex-direction: column;
        flex-wrap: wrap;
    }
}

/* Small tablet styles (391px - 490px) */
@media screen and (min-width: 391px) and (max-width: 490px) {
    /* Hide hover tag on small tablets */
    .hover-tag {
        display: none;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 28px;
    }
    
    p {
        font-size: 0.925rem;
        letter-spacing: -0.015em;
        line-height: 2;
        text-align: justify;
    }
    
    /* Layout adjustments */
    .content-container {
        margin-left: 32px;
        margin-right: 32px;
        margin-top: 32px;
        max-width: 90%;
        min-width: auto;
    }
    
    /* Tab adjustments */
    .project-tabs {
        padding-left: 32px;
        padding-right: 32px;
        margin-top: 64px;
        margin-bottom: 32px;
        gap: 24px;
    }
    
    .tab-button {
        font-size: 0.925rem;
    }
    
    /* Project layout adjustments */
    .all-projects {
        padding-left: 8px;
        padding-right: 32px;
        margin-top: 48px;
        margin-bottom: 80px;
        height: auto;
        flex-direction: column;
        gap: 40px;
        overflow-y: visible;
    }
    
    .ciid-projects {
        flex-direction: column;
        gap: 64px;
    }

    .title {
        font-size: 28px;
    }
    
    /* Project components adjustments */
    .parent-lumonote,
    .parent-lumenduel,
    .parent-lensart,
    .parent-audioviz,
    .parent-odyssey,
    .parent-weathermate,
    .parent-pitchpls,
    .parent-polls,
    .parent-medicab,
    .parent-arkade,
    .parent-circles {
        min-width: auto;
        width: 100%;
        height: 200px;
    }
    
    .thumb-lumonote,
    .thumb-lumenduel,
    .thumb-lensart,
    .thumb-audioviz,
    .thumb-odyssey,
    .thumb-weathermate,
    .thumb-pitchpls,
    .thumb-polls,
    .thumb-medicab,
    .thumb-arkade,
    .thumb-circles {
        left: 24px;
        width: 94%;
    }

     /* Image adjustments */
     .lumonote-home-img,
     .lumenduel-home-img,
     .lensart-home-img,
     .weathermate-home-img,
     .polls-home-img,
     .medicab-home-img {
         width: 160px;
         height: 160px;
         right: -10%;
         bottom: -15%;
     }

     .arkade-home-img {
        width: 70%;
        right: 5%;
        bottom: -20%;
    }

    .circles-home-img {
        width: 200%;
        right: -90%;
        bottom: -45%;
    }

     .pitchpls-home-img {
        width: 180px;
        height: 180px;
        right: -8%;
        bottom: -25%;
    }
    
    /* Scrollbar adjustments */
    .custom-scrollbar-container {
        display: none;
    }
    
    /* Footer adjustments */
    .footer {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 32px;
        margin-bottom: 5em;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-time {
        font-size: 0.925rem;
        letter-spacing: -0.01em;
        line-height: 2;
    }
    
    .footer-links {
    font-size: 0.925rem;
    letter-spacing: -0.01em;
    line-height: 2;
    gap: 24px;
    flex-direction: column;
    flex-wrap: wrap;
    }
}

/* Medium tablet styles (457px - 900px) */
@media screen and (min-width: 491px) and (max-width: 900px) {
   /* Hide hover tag on medium tablets */
    .hover-tag {
        display: none;
    }
    
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 28px;
    }

    p {
        font-size: 0.925rem;
        letter-spacing: -0.01em;
        line-height: 2;
        text-align: justify;
    }

    /* Layout adjustments */
    .content-container {
        margin-left: auto;
        margin-right: auto;
        margin-top: 32px;
        max-width: 444px;
        min-width: auto;
        display: flex;
        flex-direction: column;
    }

    /* Tab adjustments */
    .project-tabs {
        margin-left: auto;
        margin-right: auto;
        max-width: 444px;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-top: 64px;
        margin-bottom: 32px;
        gap: 24px;
        justify-content: left;
    }
    
    .tab-button {
        font-size: 0.925rem;
    }

    /* Game container adjustments for medium tablets */
    #rps-game {
        width: 90% !important;
        max-width: 320px !important;
        left: 50% !important;
        right: auto !important;
        transform-origin: center bottom !important;
    }

    /* Project layout adjustments */
    .all-projects {
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        max-width: 444px;
        width: 100%;
        margin-top: 48px;
        margin-bottom: 80px;
        height: auto;
        flex-direction: column;
        gap: 40px;
        overflow: visible;
        align-items: center;
        justify-content: center;
    }

    .ciid-projects {
        flex-direction: column;
        gap: 64px;
        width: 100%;
        align-items: center;
    }

    .title {
        font-size: 28px;
        left: -24px;
    }

    /* Project components adjustments */
    .parent-lumonote,
    .parent-lumenduel,
    .parent-lensart,
    .parent-audioviz,
    .parent-odyssey,
    .parent-weathermate,
    .parent-polls,
    .parent-medicab,
    .parent-pitchpls,
    .parent-arkade,
    .parent-circles {
        min-width: auto;
        width: 100%;
        height: 232px;
        max-width: 444px;
    }

    .thumb-lumonote,
    .thumb-lumenduel,
    .thumb-lensart,
    .thumb-audioviz,
    .thumb-odyssey,
    .thumb-weathermate,
    .thumb-polls,
    .thumb-medicab,
    .thumb-pitchpls,
    .thumb-arkade,
    .thumb-circles {
        left: 0px;
        width: 100%;
    }

     /* Image adjustments */
     .lumonote-home-img,
     .lumenduel-home-img,
     .lensart-home-img,
     .weathermate-home-img,
     .polls-home-img,
     .medicab-home-img {
         width: 160px;
         height: 160px;
         right: -6%;
         bottom: -12%;
     }

     .arkade-home-img {
        width: 70%;
        right: 5%;
        bottom: -20%;
    }

    .circles-home-img {
        width: 200%;
        right: -90%;
        bottom: -45%;
    }

     .pitchpls-home-img {
        width: 200px;
        height: 200px;
        right: -10%;
        bottom: -25%;
    }

    /* Scrollbar adjustments */
    .custom-scrollbar-container {
        display: none;
    }

    /* Footer adjustments */
    .footer {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 32px auto;
        margin-bottom: 5em;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        max-width: 444px;
        width: 100%;
    }

    .footer-time {
        font-size: 0.925rem;
        letter-spacing: -0.01em;
        line-height: 2;
    }

    .footer-links {
        font-size: 0.925rem;
        letter-spacing: -0.01em;
        line-height: 2;
        gap: 24px;
        flex-direction: column;
        flex-wrap: wrap;
    }
}