body {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

::selection {
    background-color: #000;
    color: #fff;
}

::-moz-selection {
    background-color: #000;
    color: #fff;
}

.text-container {
    font-size: 38px;
    /* Ensure it can be placed above the overlay */
    position: relative;
    transition: color 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.wes {
    font-family: 'Lora', serif;
}

.wei {
    font-family: 'Montserrat', sans-serif;
}

.nav-dots {
    position: fixed;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #888;
    transform: scale(1.2);
}

.dot.active {
    background-color: #333;
}

.page {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page.active {
    display: flex;
}

.contact-container {
    display: flex;
    flex-direction: row;
    gap: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

.contact-container a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-container a:hover {
    color: #666;
    text-decoration: underline;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    color: #333;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 750px;
    max-height: 80vh;
    padding: 20px;
    margin-left: 50px;
    overflow-y: auto;
}

.projects-wrapper::-webkit-scrollbar {
    width: 8px;
}

.projects-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.projects-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.projects-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.projects-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    color: #333;
    align-self: center;
    position: relative;
    left: -20px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title:hover {
    color: #666;
    text-decoration: underline;
}

.project-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Easter Egg Styles */
#easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

body.easter-egg-active #easter-egg-overlay {
    opacity: 1;
    transition: none;
    pointer-events: auto;
}

#easter-egg-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 2002;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
    pointer-events: none;
}

body.easter-egg-active #easter-egg-close {
    opacity: 1;
    pointer-events: auto;
}

body.easter-egg-active .text-container {
    color: #fff;
    z-index: 2001;
}

body.easter-egg-active .nav-dots {
    opacity: 0;
    pointer-events: none;
}

#easter-egg-pattern {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 2001; /* Same as text, above overlay */
    transform: rotate(-45deg);
    pointer-events: none;
    opacity: 0;
}

#easter-egg-pattern.active {
    opacity: 0.55;
    pointer-events: auto;
    cursor: grab;
    cursor: -webkit-grab;
}

#easter-egg-pattern.active:active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

#easter-egg-pattern .text-container {
    position: absolute;
    color: #fff;
    cursor: inherit;
    white-space: nowrap;
    /* Reset any specific styles if needed */
}

@media (max-width: 1024px) {
    .nav-dots {
        left: 40px;
    }

    .projects-wrapper {
        max-width: calc(100% - 120px);
        margin-left: 80px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .text-container {
        font-size: 32px;
    }

    .nav-dots {
        left: 50%;
        top: 40px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .contact-container {
        flex-direction: column;
        gap: 25px;
        font-size: 16px;
        align-items: flex-start;
    }

    .contact-wrapper {
        gap: 30px;
        align-items: flex-start;
    }

    .contact-title {
        font-size: 16px;
        align-self: flex-start;
    }

    .projects-wrapper {
        max-width: calc(100% - 80px);
        max-height: 75vh;
        padding: 15px;
        padding-top: 60px;
        gap: 30px;
        margin-left: 40px;
        margin-right: 15px;
    }

    .projects-wrapper::-webkit-scrollbar {
        display: none;
    }

    .projects-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .projects-title {
        font-size: 16px;
        align-self: flex-start;
        left: 0;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-title {
        font-size: 15px;
    }

    .project-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .text-container {
        font-size: 28px;
    }

    .nav-dots {
        left: 50%;
        top: 30px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 12px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .contact-container {
        gap: 20px;
        font-size: 14px;
    }

    .projects-wrapper {
        max-width: calc(100% - 60px);
        padding: 10px;
        padding-top: 50px;
        margin-left: 40px;
        margin-right: 15px;
    }

    .projects-container {
        gap: 20px;
    }

    .project-title {
        font-size: 14px;
    }

    .project-description {
        font-size: 12px;
    }
}
