/* Base Styling */
html {
    /* for firefox */
    scrollbar-width: none;
    /* For Internet Explorer and Edge */
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-timeline: auto;
}

_::-webkit-full-page-media, _:future, :root {
    scroll-behavior: smooth;
}

_::-webkit-full-page-media, _:future, :root .typewriter-container {
    font-family: Georgia, serif;
}

/* chrome, safari, opera, etc. */
html::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* sections and layout */
.section {
    scroll-margin-top: 80px;
}

.container {
    padding: 0 20px;
}

.home-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-margin-top: 0;
}

#projects, #contact {
    /* margin-left: 20px; */
    margin-right: 20px;
}

#contact-heading {
    margin-top: 100px;
}

/* ABOUT */
.about-content-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 60px;
}

.about-image {
    order: -1;
}

#about-heading, .about-image img, .about-text {
    text-align: center;
}

.about-image img {
    width: 95%;
    max-width: 400px;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

.about-text {
    padding-left: 10%;
    padding-right: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.prompt {
    font-weight: bold;
    margin-right: 8px;
    color: rgb(98, 95, 95);
}

/* SKILLS */
.skills-section {
    text-align: center;
    margin-top: 40px;
}

.skills-list {
    display: inline-block;
    text-align: left;
    list-style-type: none;
    padding: 0;
}

.skills-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.star {
    color: rgb(106, 80, 14);
    margin-right: 8px;
    font-size: 1.2rem;
    text-shadow: 0 5px 10px rgba(255, 215, 0, 0.5);
}

/* PROJECTS */
.project1-card, .project2-card, .project3-card {
    background: rgb(255, 227, 232);
    padding: 10px;
    border: 10px groove pink;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform-origin: center;
}

.project1-image video {
    border-radius: 20px;
    overflow: hidden;
}

.project2-image img {
    border-radius: 10px;
}

#project3-heading {
    margin-top: 0;
}

/* CONTACT */
.contact-form {
    border: 4px dashed lightblue;
    border-radius: 5px;
    padding: 0 20px;
    display: inline-block;
}

.contact-info {
    margin-bottom: 50px;
}

.form-group {
    padding: 5px;
}

.submit-button {
    margin: 20px 0;
}

/* NAVIGATION */
.side-nav {
    position: fixed;
    top: 10px;
    left: 0;
    z-index: 1000;
}

.nav-toggle {
    position: absolute;
    left: 10px;
    top: 10px;
    transform: none;
    background: lightblue;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
}

.nav-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 10px 10px 0;
    padding: 20px 15px 20px 60px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    width: 200px;
    position: absolute;
    top: 0;
    left: 0;
}

.side-nav.open .nav-panel {
    transform: translateX(0);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-links a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    background: lightblue;
    color: #333;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: pink;
    transform: translateX(5px);
}

/* INTERESTS GALLERY */
.interests-gallery {
    border: 8px double pink;
    border-radius: 40px;
    padding: 30px;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5% 10% 20% 10%;
    text-align: center;
}

.interest-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    justify-items: center;
}

.interest-item img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid lightblue;
    transition: border-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.interest-item:hover img {
    border-color: pink;
}

.interest-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

.interest-item span {
    display: block;
    margin-top: 8px;
    font-weight: 500;
}

/* SOCIAL LINKS */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

div.social-links a, 
div.home-text a,
div.project-links a {
    color: rgba(35, 81, 120, 0.95);
}

div.social-links a {
    margin: 5px;
}

/* FOOTER */
.main-footer {
    text-align: center;
    padding-top: 150px;
}

/* TABLET VIEW */
@media (min-width: 550px) {
    .interest-items {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: none;
        gap: 0px;
        max-width: 100%;
        justify-items: center;
    }

    .about-content-row {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    #about-heading, .about-text {
        text-align: left;
        /* margin-left: 5%; */
    }

    .about-image img {
        text-align: center;
        /* margin-left: 5%; */
        max-width: 600px;
    }
}

/* LARGE SCREEN VIEW */
@media (min-width: 850px) {
    #about-heading,
    #projects-heading,
    #contact-heading {
        font-size: 30px;
    }

    .about-text {
        font-size: 20px;
    }

    .skills-section h3 {
        font-size: 25px;
    }

    #projects {
        min-height: 100vh;
    }

    #contact-heading {
        margin-top: 100px;
    }

    #project1-heading,
    #project2-heading,
    #project3-heading {
        font-size: 20px;
    }

    .project1-content p,
    .project2-content p,
    .project3-content p,
    .contact-info p {
        font-size: 17px;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }

    /* Interests hover */
    .interest-item:hover {
        transform: scale(1.1);
    }

    .project1-card:hover,
    .project2-card:hover,
    .project3-card:hover {
        transform: translateY(-2px) scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .typewriter-container {
        animation: none;
    }

    #typewriter-text {
        animation: none;
    }

    #typewriter-cursor {
        display: none;
    }

    div.scroll-indicator,
    .scroll-arrow {
        animation: none;
    }

    .interest-item {
        transition: none;
        transform: none;
    }

    .interest-items .interest-item:hover {
        transform: none;
    }

    .floating-interest {
        animation: none;
        display: none;
    }

    .project1-card:hover,
    .project2-card:hover,
    .project3-card:hover {
        transform: none;
        transition: none;
    }

    .nav-panel {
        display: none;
    }
    
    .side-nav.open .nav-panel {
        display: block;
    }

    .nav-links a:hover {
        transform: none;
    }

    button.theme-toggle:hover,
    button.back-to-top:hover {
        transform: none;
        transition: none;
    }
}