html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: "Playwrite NZ Basic", cursive;
    font-optical-sizing: auto;
    font-weight: 400; 
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Playwrite NZ Basic", cursive;
    font-optical-sizing: auto;
    font-weight: 400; 
    font-style: normal;
}

body {
    cursor: none;
}

.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    z-index: 99999 !important;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    transition: all 0.15s ease-out;
}

.navbar {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5vh;
}

.navbar-button {
    align-items: center;
    background-color: black;
    border: 2px solid #2b221c;
    color: antiquewhite;
    display: inline;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.navbar-button:hover {
    color: rgb(154, 139, 139);
}

.navbar-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar-main {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-right a {
    align-items: center;
    background-color: black;
    border: 2px solid black;
    color: white;
    display: inline;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.about-content {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    padding-left: 150px;
    padding-top: 100px;
    background-color: white;
}

.about-text {
    max-width: 50%;
    text-align: justify;
    font-size: larger;
}

.about-text h2::after {
    animation: blink 1s step-start infinite;
    color: black;
    content: "|";
    margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.about-image {
    padding: 0;
    padding-right: 100px;
    padding-bottom: 70px;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 4px 8px #0000001a;
    max-width: 100%;
    height: auto;
    max-height: 500px;
}

.separator {
    border-top: 5px solid black;
}

.extracurriculars h1 {
    text-align: center;
}

.extracurriculars-cards {
    flex-direction: row;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.extracurriculars-card {
    background-color: rgba(193, 191, 191, 0.829);
    border-radius: 8px;
    box-shadow: 0 4px 6px #0000001a;
    padding: 1.5rem;
    text-align: justify;
    width: 300px;
    border: 2px solid black;
}

.extracurriculars {
    background-color: rgb(255, 255, 255);
}

.extracurriculars-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 12px black;
}

.experience h1 {
    text-align: center;
}

.experience-cards {
    flex-direction: row;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.experience-card {
    background-color: rgba(193, 191, 191, 0.829);
    border-radius: 8px;
    box-shadow: 0 4px 6px #0000001a;
    padding: 1.5rem;
    text-align: justify;
    width: 300px;
    border: 2px solid black;
}

.experience {
    background-color: rgb(255, 255, 255);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 12px black;
}

.projects h1 {
    text-align: center;
}

.projects-cards {
    flex-direction: row;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.projects-card {
    background-color: rgba(193, 191, 191, 0.829);
    border-radius: 8px;
    box-shadow: 0 4px 6px #0000001a;
    padding: 2rem;
    text-align: justify;
    width: 300px;
    border: 2px solid black;
}

.projects-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 12px black;
}

.projects {
    background-color: white;
}

.email-button {
    background-color: white;
    border: 2px solid #000;
    border-radius: 25px;
    box-sizing: border-box;
    color: black;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
    max-width: 200px;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease;
    width: 100%;
}

.email-button:hover {
    background-color: black;
    color: #fff;
}

.contact {
    background-color: white;
    text-align: center;
    padding: 50px 20px;
}

.project-button {
    background-color: white;
    border: 2px solid black;
    border-radius: 25px;
    box-sizing: border-box;
    color: black;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
    transition: background-color .3s ease, color .3s ease;
    width: 100%;
}

.project-button:hover {
    background-color: black;
    color: #fff;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.project-tag {
    background-color: rgba(189, 186, 186, 0.829);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.8rem;
    border: 1.5px solid black;
}

.project-tag:hover {
    background-color: black;
    color: #fff;
}

.tech-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.tech-stack-tag {
    background-color: rgba(237, 235, 235, 0.829);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.8rem;
    border: 1.5px solid black;
}

.tech-stack-tag:hover {
    background-color: black;
    color: #fff;
}

.project-filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #000;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: "Playwrite NZ Basic", cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #000;
    color: #fff;
}

.mode-toggle-container {
    position: fixed;
    bottom: 30px;
    right: -70px;
    transform: translateX(-50%);
    z-index: 99998;
    animation: floaty 4s ease-in-out infinite;
}

@keyframes corner-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); } /* gentle vertical bob */
}

@keyframes floaty {
    0% { transform: translate(-50%, 0px); }
    50% { transform: translate(-50%, -10px); } /* bobs up 10px */
    100% { transform: translate(-50%, 0px); }
}

.toggle-track {
    background: rgba(255, 255, 255, 0.8); /* slight transparency for that watery look */
    backdrop-filter: blur(8px); /* blurs the content behind it */
    border: 2px solid black;
    border-radius: 30px;
    display: flex;
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-family: "Playwrite NZ Basic", cursive;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.toggle-btn.active {
    color: white;
}

.toggle-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: black;
    border-radius: 25px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.non-tech-active .toggle-thumb {
    transform: translateX(100%);
}

@media (max-width: 1024px) {
    .about-content {
        padding-left: 40px;
        padding-top: 60px;
        gap: 20px;
    }
    .about-text {
        max-width: 60%;
        font-size: 1rem;
    }
    .about-image img {
        max-height: 400px;
    }
    .navbar {
        padding: 10px 4vh;
    }
    .navbar-left h2 {
        font-size: 1.2rem;
    }
    .project-filter-container {
        margin-bottom: 30px;
        gap: 12px;
        justify-content: center;
    }
    .projects-cards, .experience-cards, .extracurriculars-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        padding: 0 20px;
    }
    .projects-card, .experience-card, .extracurriculars-card {
        width: 40%; 
        min-width: 320px; 
    }
    .project-button {
        padding: 12px;
        font-size: 0.95rem;
    }
    .filter-btn {
        color: #000;
        text-decoration: none;
        border: 2px solid #000;
        background-color: #fff;
    }
    .filter-btn.active {
        background-color: #000;
        color: #fff;
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    .tech-stack-tags {
        gap: 10px; 
        justify-content: flex-start; 
    }
    .tech-stack-tag {
        padding: 8px 14px; 
        font-size: 0.85rem;
        border-width: 2px; 
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 4vw;
    }
    .navbar-left, .navbar-main, .navbar-right {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .navbar-button, .navbar-right a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    .about-content {
        flex-direction: column;
        padding: 20px;
        align-items: center;
        text-align: center;
    }
    .about-text {
        max-width: 100%;
        font-size: 0.95rem;
        text-align: center;
    }
    .about-image {
        padding-right: 0;
        padding-bottom: 20px;
    }
    .about-image img {
        width: 80%;
        height: auto;
        max-width: 320px;
        max-height: 360px;
    }
    .experience-card, .projects-card, .extracurriculars-card {
        width: 90%;
        max-width: 480px;
        margin: 0 auto;
    }
    .email-button, .project-button {
        max-width: 320px;
        width: 90%;
        margin: 12px auto;
    }
    .project-filter-container {
        gap: 8px; 
        margin-bottom: 25px; 
        padding: 0 10px;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-width: 1.5px; 
        color: #000; 
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .filter-btn.active {
        color: #fff; 
        background-color: #000;
    }
    .projects-cards {
        gap: 1rem; 
    }
    .projects-card {
        width: 100%; 
        padding: 1.2rem; 
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    .tech-stack-tags {
        gap: 6px;
        margin-top: 15px;
        justify-content: center; 
    }
    .tech-stack-tag {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-width: 1px;
        white-space: nowrap; 
    }
}