/* GENERAL */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto Flex", sans-serif;
    background-color: #141619;
}

html {
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

/* TRANSITIONS */

a, 
.btn {
    transition: all 300ms ease;
}

/* DESKTOP NAVIGATION */

nav,
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
    
}

a {
    color: #B3B4BD;
    text-decoration: none;
    text-decoration-color: #0CAFFF;
}

a:hover {
    color: #0CAFFF;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: #0CAFFF;
}

.logo {
    font-size: 3rem;
    font-weight: 600;
    color: #0CAFFF;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    padding-bottom: .5rem;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: .5rem;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links a:hover {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    color: #0CAFFF;
    text-decoration-color: #0CAFFF;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* SECTIONS */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    height: 80vh;
    flex-wrap: wrap;
}

.profile-pic {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.section__pic-container {
    display: flex;
    height: min(400px, 50vw);
    width: min(400px, 50vw);
    margin: auto 0;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 30px #0CAFFF;
}

.section__text {
    align-self: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.section__text p {
    font-weight: 600;
    color: #B3B4BD;
}

.section__text__p1 {
    text-align: center;
    color: white;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
}

.title {
    font-size: 3rem;
    text-align: center;
    color: #0CAFFF;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
    color: #0CAFFF;
    padding-bottom: 0.5rem;
    padding-top: 1rem;
}

.icon:hover {
    transform: rotate(360deg);
    transition: all 0.5s ease-in-out;
}

/* Arrow specific styling */
.arrow {
    cursor: pointer;
    height: 2.5rem;
    width: 2.5rem;
    transition: all 0.3s ease-in-out;
}

#projects .arrow:hover,
#about .arrow:hover {
    transform: translateX(-50%) translateY(-5px);
}

/* Section arrows absolute positioning */
#projects .arrow,
#about .arrow {
    display: block;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    filter: brightness(0) saturate(100%) invert(48%) sepia(85%) saturate(3836%) hue-rotate(175deg) brightness(100%) contrast(103%);
}

#about, #projects {
    position: relative;
}

/* Social media icons */
.social-icon {
    fill: #0CAFFF;
    transition: fill 0.3s ease;
    height: 2rem;
    width: 2rem;
}

.social-icon:hover {
    fill: white;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
    background: #0CAFFF;
    color: white;
    border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-color-1,
.btn-color-2 {
    background: white;
    color: black;
}

.btn-color-2 {
    background: white;
}


.btn-conatiner {
    gap: 1rem;
}

/* ANIMATIONS */

@keyframes swipeInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes swipeInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-swipe-left {
    animation: swipeInLeft 0.8s ease forwards;
    opacity: 0;
}

.animate-swipe-right {
    animation: swipeInRight 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-up {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.animate-section {
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

#about {
    background: linear-gradient(to bottom, #141619 0%, black 5%, black 95%, #141619 100%);
    color: white;
    border-radius: 0;
    padding: 4rem 0 6rem 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#contact {
    background: linear-gradient(to bottom, #141619 0%, black 5%, black 100%);
    color: white;
    border-radius: 0;
    padding: 4rem 0 2rem 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 40vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-radius: 2rem;
    /* border: white 0.1rem solid; */
    /* border-color: #0CAFFF; */
    background: (250,250,250);
    margin: 2rem auto;
    padding: 2rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info-container p {
    font-size: larger;
    color: #0CAFFF;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

#about .section-container,
#about .about-details-container {
    max-width: calc(100% - 20rem);
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
}

/* About section columns layout */
.about-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.about-left-column {
    flex: 1;
    min-width: 300px;
}

.about-right-column {
    flex: 1;
    min-width: 300px;
}

.about-content {
    opacity: 0;
}

.details-container {
    /* background-color: rgba(255, 255, 255, 0.05); */
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.text-container {
    /* background-color: rgba(255, 255, 255, 0.05); */
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* height: 25%; */
}

#about .section__text__p1,
#about .title,
#about h3 {
    color: #0CAFFF;
}

#about h3 {
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
}

#about p {
    color: #B3B4BD;
    margin-bottom: 1rem;
}

#about p:last-child {
    margin-bottom: 0;
}

#about .icon {
    color: #0CAFFF !important;
    fill: #0CAFFF !important;
    filter: brightness(0) saturate(100%) invert(48%) sepia(85%) saturate(3836%) hue-rotate(175deg) brightness(100%) contrast(103%);
    padding: 0;
    margin-right: 0.5rem;
    height: 1.8rem;
    width: 1.8rem;
}

/* Handle specific PNG icons that need color transformation */
#about img.icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(85%) saturate(3836%) hue-rotate(175deg) brightness(100%) contrast(103%);
}

/* Special case for profile photo icon */
#about img.icon[src*="profile.jpg"] {
    filter: none;
}

/* Multi-column lists for skills and classes */
.multi-column-list {
    column-count: 2;
    column-gap: 2rem;
}

.multi-column-list p {
    break-inside: avoid-column;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.multi-column-list p::before {
    content: "•";
    color: #0CAFFF;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Single-column list for Relevant Courses */
.single-column-list p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.single-column-list p::before {
    content: "•";
    color: #0CAFFF;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Skills grid layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.skill-category h4 {
    color: white;
    margin-bottom: 0.75rem;
    padding-top: 0;
    border-bottom: 1px solid #0CAFFF;
    padding-bottom: 0.5rem;
}

h4 {
    padding-top: 0.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
    line-height: 1;
}

.section-header h3 {
    margin-bottom: 0 !important;
    line-height: 1;
}

.section-header .icon {
    margin-right: 0.5rem;
}

#about .section-header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Projects section */
#projects {
    background-color: transparent;
    color: white;
    padding: 4rem 0 6rem 0;
    position: relative;
}

.projects-container {
    max-width: calc(100% - 10rem);
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(12, 175, 255, 0.5);
}

.project-card h3 {
    color: #0A21C0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

.project-date {
    color: #B3B4BD;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.project-description p {
    color: #B3B4BD;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #0CAFFF;
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    display: inline-block;
    transition: background-color 0.3s ease;
    word-break: keep-all;
    white-space: nowrap;
}

.tag:hover {
    background-color: rgba(10, 33, 192, 0.5);
}

#projects .section-header {
    margin-bottom: 0.5rem;
}

#projects h3 {
    margin-bottom: 0.5rem;
    color: #0CAFFF;
    font-size: 1.3rem;
}

#projects .icon {
    height: 1.8rem;
    width: 1.8rem;
    padding: 0;
}

/* Footer */

footer {
    background-color: black;
    height: 26vh;
    margin: 0 0;
}

footer p {
    text-align: center;
}

#contact .icon,
#contact .contact-icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(85%) saturate(3836%) hue-rotate(175deg) brightness(100%) contrast(103%);
    color: #0CAFFF;
    fill: #0CAFFF;
}

#contact .email-icon {
    height: 2.5rem;
    filter: brightness(0) saturate(100%) invert(48%) sepia(85%) saturate(3836%) hue-rotate(175deg) brightness(100%) contrast(103%);
}
