/* @import url("normalize.css"); */

* {
    box-sizing: border-box;
}

*,
html {
    cursor: none !important;
    scroll-behavior: smooth !important;

}

body {
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

#main_screen,
.slides,
header,
nav {
    max-width: 100vw;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Questrial', sans-serif;
    letter-spacing: 0.3rem;
}


h1 {
    /* Greeting container */
    font-size: clamp(1.6rem, 8vw, 3rem);
    line-height: 1.1;
    margin: 0px;
    text-shadow: 1px 1px 3px #000000;
}


h2 {
    font-size: clamp(1rem, 6vw, 2rem);

}

h1,
h2 {
    text-align: center;
}

h6 {
    font-family: 'Questrial', sans-serif;
}

p {
    font-size: 1em;
    font-family: 'Nunito', sans-serif;
}

li {
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
}

li strong {
    font-weight: 700;
}



a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    letter-spacing: 0.2rem;
}

header {
    position: fixed;
}

.nav-links {
    font-family: 'Questrial', sans-serif;
}



#main_screen {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.slides {
    width: 100%;
    min-height: 100vh;
    /* scroll-snap-align: start; */
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10%;
}

/* Desktop only: enable scroll snap */
@media (min-width: 992px) {
    #main_screen {
        scroll-snap-type: y proximity;
        /* smoother snap */
    }

    .slides {
        /* ensure full-viewport sections */
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }
}

/* Backgrounds for each page */

#home {
    background-size: cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url(images/homepage.jpg);
    gap: 3%;

}

/* #home {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url(images/homepage.jpg);
    gap: 3%;
    min-height: 100svh;
} */

#work {
    background: linear-gradient(180deg, #b5b88c, #4d4f38);
}


#projects {
    background: linear-gradient(180deg, rgb(161, 129, 103), rgb(245, 233, 223));
}

#about {
    background: linear-gradient(180deg, #bcb5b2, #453f3d);
}



#connect {
    background-color: black;

}

/* 
#logo {
    width: 100%;
    max-width: 60px;
    display: inline-block;
} */

/* Nav bar */

#mobile_nav {
    position: fixed;
    top: 2%;
    right: 5%;
    z-index: 100;
}

#nav_dropdown {
    margin-top: 3%;
}

/* Frosted, transparent background for the hamburger dropdown */
#navbarToggleExternalContent {
    right: 0px;
    top: 56px;
    width: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: backdrop-filter 0.2s ease, background-color 0.2s ease;
    z-index: 1000;
}

#navbarToggleExternalContent.show {
    background-color: rgba(0, 0, 0, 0.45);
}

.navbar {
    padding: 0px;
}

#large_screen_nav {
    display: none;
}

/* Home page */
.navbar-toggler {
    margin-top: 8px;
    scale: 0.85;
}

#resume_btn {
    font-family: 'Questrial', sans-serif;
    letter-spacing: 0.3rem;
    border-radius: 50px;
    border: white 2px solid;
    color: white;
}

/* Work page */

.work-card-title {
    margin-top: 10px;
    margin-bottom: 0px;
    font-size: 1.3rem;
}

.work-card-text {
    margin-top: 10px;
}

#work-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1100px;
}




.work-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 30px;
    display: flex;
    flex-direction: column;
    max-width: 75%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-logo {
    max-width: 200px;
    max-height: 70px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Mobile-responsive header: stack logo and button; keep button in-bounds */
@media (max-width: 575px) {
    .work-card {
        width: 100%;
        max-width: 400px;
        /* match project card width */
        margin-left: auto;
        margin-right: auto;
    }

    .work-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .work-card .website_btn,
    .work-card .github_btn,
    .work-card .youtube_btn {
        width: 100%;
        text-align: center;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 36px;
    }

    .work-logo {
        max-width: 100%;
        height: auto;
    }
}

#shopThisCityLogo {
    max-width: 250px;
    height: 90px;
    width: auto;
    object-fit: contain;
}

/* Card hover */
.work-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}


/* Projects page */

#cards {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1;
    flex-wrap: wrap;
}

.card {
    border: black;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    z-index: 1;
    width: 100px;
}

.card-img-top {
    border-radius: 30px 30px 0px 0px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    flex: 1;
    /* Takes remaining space */
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    text-align: center;
}

.card-title {
    letter-spacing: 0.3rem;

    margin: 0px;
}

.card-text {
    margin: 2%;
}

.github_btn,
.website_btn,
.youtube_btn {
    font-family: 'Questrial', sans-serif;
    border-radius: 50px;
    color: black;
    border: 1px black solid;
    padding: 2px 10px;
    transition: all .2s ease-in-out;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 40px;


    /* margin: 5%; */
}

.github_btn:hover,
.website_btn:hover,
.youtube_btn:hover {
    background-color: black;
    color: white;
}

#btn_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10%;
    width: 100%;
}

/* About me page */

#about_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

#headshot {
    border-radius: 10px;
    max-width: 300px;
    height: auto;
    margin: 0px;
    display: flex;
    width: 80%;
    align-items: center;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.2);
    justify-content: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#icon_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10%;
    margin-top: 2%;
}

#connect {
    gap: 0px;
}

#connect h2 {
    margin: 0px;
}

#github_icon,
#linkedin_icon,
#email_icon {
    width: 30px;
}

.icons:hover {
    transform: scale(1.2);
}

.skill_icon {
    width: 50px;
    height: 50px;
}

#skills {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;

}

.skill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Ensure all icons fit in one row without side scroll */
#skills .skill {
    flex: 0 1 auto;
    min-width: 0;
}

#skills .skill img {
    height: clamp(28px, 4vw, 44px) !important;
    /* slightly more responsive */
    width: auto;
}

.skill p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20%;
    font-size: 15px;
}

#skill_wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10%;
}

#skill_wrapper h3 {
    margin-top: 5%;
}

/* Responsive layout */

@media (min-width: 768px) {

    /* Hide mobile toggle navigation bar */
    .navbar-toggler,
    #nav_dropdown,
    #navbarToggleExternalContent {
        display: none;
    }

    #about {
        padding: 3%
    }


    #mobile_nav_dropdown_wrapper {
        display: none;
    }

    /* Display large screen navigation bar */
    #large_screen_nav {
        display: block;
    }


    /* Animate a white underline to appearwhen hovering */
    li a::after {
        content: "";
        width: 0;
        height: 2px;
        background: white;
        display: block;
        margin: auto;
    }

    li a:hover::after {
        width: 100%;
        transition: 0.3s linear width;
    }

    #lg_nav_container {
        font-family: Questrial, sans-serif;
        display: flex;
        flex-direction: column;
        text-align: right;
        padding-top: 50px;
        position: fixed;
        right: 8vw;
        list-style: none;
        z-index: 100;
    }


    /* Projects page */


    #cards {
        flex-direction: row;
    }

    .card {
        width: calc(50% - 20px);
    }

    #about_wrapper {
        flex-direction: column;
    }

    #headshot {
        min-width: 250px;
        height: auto;
    }


    #about p {
        margin: 5% 5%;
    }

    #skills {
        width: 80%;
    }

    #skill_wrapper {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }



}

@media (min-width: 915px) {
    h2 {
        margin-top: 0px;
    }

    #about p {
        max-width: 550px;
    }

    #about_wrapper {
        display: flex;
        justify-content: space-around;
    }

    #headshot {
        /* min-width: 50%; */
        max-width: 368px;
        ;
    }

    .container {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
}

@media (min-width: 1280px) {


    .card {
        width: calc(33.33% - 20px);
    }

    .work-card {

        max-width: 75%;

    }

    *,
    html {
        cursor: none !important;
    }

    /* Cursor */
    .cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-4px, -4px);
    }

    .cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        border: 5px solid white;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-16px, -16px);
        opacity: 0.7;
        transition: border-color 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    }

    .cursor-dot.hover {
        background: #f97316 !important;
        transform: translate(-4px, -4px) scale(1.5);
    }

    .cursor-ring.hover {
        width: 50px;
        height: 50px;
        transform: translate(-25px, -25px);
        border-color: #f97316 !important;
        opacity: 1;
    }
}

@media (min-width: 1280px) {



    .card {
        width: calc(33.33% - 20px);
    }

    .work-card {

        max-width: 85%;

    }
}

#greetingContainer {
    margin-bottom: 10px;
}

#greetingContainer .letter {
    display: inline-block;
    font: inherit;
    margin-right: 0.20rem;
    opacity: 0;
    transform: translateY(50px);
    display: inline-block;
}

#greetingContainer .space {
    display: inline-block;
    font: inherit;
    width: 0.4rem;
}

#cards {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1;
}

.card {
    width: 100%;
    max-width: 400px;
    height: 600px;
    border: black;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.card-img-top {
    border-radius: 30px 30px 0px 0px;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.card-title {
    letter-spacing: 0.3rem;
    font-size: 2rem;
}

.card-text {
    margin: 2%;
}

.github_btn,
.website_btn {
    font-family: 'Questrial', sans-serif;
    border-radius: 50px;
    color: black;
    border: 1px black solid;
    padding: 2px 10px;
    transition: all .2s ease-in-out;
    /* margin: 5%; */
}

.github_btn:hover,
.website_btn:hover {
    background-color: black;
    color: white;
}

#btn_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10%;
    width: 100%;
}