/* GENERAL STYLES */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* TRANSITIONS */
a,
.btn {
    transition: all 300ms ease-in-out;
}

/* DESKTOP NAVIGATION */
#desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 17vh;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

/* DROPDOWN NAVIGATION */
#dropdown-nav {
    display: none;
    padding: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
    height: 12vh;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.dropdown-toggle:hover {
    transform: scale(1.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 2rem;
    background-color: #4a4a4a; /* Gray theme */
    width: 180px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-menu.open {
    max-height: 200px; /* Adjusted to fit 4 items snugly */
}

.dropdown-menu li {
    border-bottom: 1px solid #5a5a5a;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #5a5a5a;
}

/* Media Queries (relevant portion) */
@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }
    #dropdown-nav {
        display: flex;
    }
}

@media screen and (min-width: 1201px) {
    #dropdown-nav {
        display: none;
    }
    #desktop-nav {
        display: flex;
    }
}

/* SECTIONS */
section {
    padding-top: 4vh;
    margin: 0 10rem;
    min-height: fit-content;
    position: relative;
}

.section-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

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

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-top: 0;
}

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

.title {
    font-size: 3rem;
    text-align: center;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

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

.icon {
    cursor: pointer;
    height: 2rem;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

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

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

.btn-color-1,
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: #fff;
}

.btn-color-1 {
    background: rgb(53, 53, 53);
    color: #fff;
}

.btn-color-1:hover {
    background: rgb(0, 0, 0);
}

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

.btn-color-2:hover {
    border-color: rgb(255, 255, 255);
}

/* ABOUT SECTION */
#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.about-details-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.about-pic {
    border-radius: 2rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
    height: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.arrow:hover {
    transform: translateY(5px);
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: #fff;
    border-radius: 2rem;
    border: 1px solid rgb(163, 163, 163);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* EXPERIENCE SECTION */
#experience {
    position: relative;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-details-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    align-items: center;
    width: 10rem;
    gap: 0.75rem;
}

article .icon {
    cursor: default;
    height: 1.5rem;
}

/* PROJECTS SECTION */
#projects {
    position: relative;
}

.color-container {
    border: 1px solid rgb(163, 163, 163);
    background: rgb(250, 250, 250);
    padding: 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-title {
    margin: 1rem 0;
    color: #000;
    font-size: 1.75rem;
    font-weight: 600;
}

.project-btn {
    color: #000;
    border: 1px solid rgb(163, 163, 163);
}

/* EDUCATION SECTION */
.new-section-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.new-text-container {
    margin-top: 0;
    padding-top: 0;
}

.new-text-container p {
    margin: 0.5rem 0;
}

.new-text-container b {
    font-weight: 600;
    color: #000;
}

/* COURSES LINK STYLING */
.link {
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.click-text {
    color: #2980B9;
}

.explore-text {
    color: #F1C40F;
}

.link:hover .click-text,
.link:hover .explore-text {
    transform: scale(1.03);
    display: inline-block;
}

.link:hover {
    text-decoration: none;
}

/* EXPERIENCE LINK TYPING TEXT */
.experience-link {
    display: block;
    text-align: center;
    margin: 2rem auto 3rem;
    padding: 0.8rem 2rem;
    text-decoration: none;
    max-width: 90%;
    background: #fff;
    border: 3px solid #000;
    border-radius: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#experience-typing-text span {
    font-size: 2rem;
    font-weight: 700;
    white-space: normal;
    overflow: hidden;
    border-right: 4px solid #212529;
    background: linear-gradient(90deg, #ff00ff, #ffcc00, #00ffcc, #007bff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: colorShift 5s infinite alternate, blink 0.75s step-end infinite;
    line-height: 1.3;
}

.experience-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    background: #000;
}

.experience-link:hover span {
    -webkit-text-fill-color: #fff;
}

/* FOOTER SECTION */
.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.footer-line {
    width: 100%;
    height: 5px;
    position: fixed;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #ff00ff, #ffcc00, #00ffcc, #ff00ff);
    background-size: 300% 100%;
    animation: colorShift 5s infinite alternate;
}

/* ANIMATIONS */
@keyframes colorShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    /* Navigation */
    #desktop-nav { display: none; }
    #dropdown-nav { 
        display: flex;
        padding: 0 1rem;
    }
    .logo { font-size: 1.5rem; }
    .dropdown-toggle svg { width: 25px; height: 25px; }
    .dropdown-menu { width: 150px; }
    .dropdown-menu a { font-size: 0.9rem; padding: 10px 15px; }

    /* Sections */
    section { 
        margin: 0 5%; 
        padding: 3vh 5%; 
    }
    .section-container { 
        flex-direction: column; 
        gap: 2rem; 
        align-items: center; 
    }

    /* Profile Section */
    #profile { 
        flex-direction: column; 
        height: auto; 
        gap: 2rem; 
        padding: 3vh 5% 0;
        margin-bottom: -4rem;
    }
    .section__pic-container { 
        width: 250px; 
        height: 250px; 
        margin: 0 auto; 
    }
    .section__text { 
        max-width: 100%; 
        padding: 0; 
    }
    .title { font-size: 2rem; }
    .section__text__p2 { font-size: 1.25rem; }
    .btn-container { 
        flex-direction: row; 
        gap: 0.75rem; 
        flex-wrap: nowrap; 
        justify-content: center;
    }
    .btn { 
        width: auto; 
        min-width: 100px; 
        padding: 0.6rem 0.8rem; 
        font-size: 0.9rem; 
    }
    #socials-container { 
        gap: 0.5rem; 
    }
    .icon { height: 1.8rem; }

    /* About Section */
    #about {
        padding-top: 0vh;
    }
    .about-containers { 
        flex-direction: column; 
        gap: 2.5rem; 
        margin: 1.5rem 0; 
    }
    #about .about-containers .details-container:not(:last-child) {
        margin-bottom: 2.5rem;
    }
    .about-pic { max-width: 250px; margin: 0 auto; }
    .details-container { 
        width: 100%; 
        max-width: 100%; 
        padding: 1rem; 
    }
    .arrow { 
        right: 1rem; 
        bottom: 1rem; 
        height: 1.5rem; 
    }

    /* Experience Section */
    .experience-sub-title { font-size: 1.5rem; }
    .article-container { 
        gap: 1.5rem; 
        justify-content: center; 
    }
    article { 
        width: 100%; 
        max-width: 200px; 
        justify-content: center; 
    }
    .experience-link { 
        padding: 0.7rem 1.5rem; 
        margin: 1.5rem auto; 
    }
    #experience-typing-text span { font-size: 1.5rem; }
    #experience .about-containers .details-container:not(:last-child) {
        margin-bottom: 2.5rem;
    }

    /* Education Section */
    .new-section-container { 
        flex-direction: column; 
        gap: 1rem; 
        align-items: center; 
    }
    .new-text-container p { font-size: 0.9rem; }

    /* Projects Section */
    .color-container { padding: 1rem; }
    .project-title { font-size: 1.5rem; }
    #projects .about-containers .color-container:not(:last-child) {
        margin-bottom: 2.5rem;
    }

    /* Footer */
    .footer { padding: 15px 0; font-size: 12px; }
}

@media (max-width: 480px) {
    /* Navigation */
    #dropdown-nav { height: 10vh; padding: 0 1rem; }
    .logo { font-size: 1.2rem; }
    .dropdown-toggle svg { width: 20px; height: 20px; }
    .dropdown-menu { width: 120px; }
    .dropdown-menu a { font-size: 0.8rem; padding: 8px 12px; }

    /* Sections */
    section { margin: 0 3%; padding: 2vh 3%; }
    .section-container { gap: 1.5rem; }

    /* Profile Section */
    .section__pic-container { width: 180px; height: 180px; }
    .title { font-size: 1.75rem; }
    .section__text__p2 { font-size: 1rem; }
    .btn { 
        min-width: 90px; 
        padding: 0.5rem 0.6rem; 
        font-size: 0.85rem; 
    }
    .icon { height: 1.5rem; }
    #socials-container { 
        gap: 0.4rem; 
    }

    /* About Section */
    #about {
        padding-top: 0vh;
    }
    .about-pic { max-width: 200px; }
    .details-container { padding: 0.8rem; }
    #about .about-containers .details-container:not(:last-child) {
        margin-bottom: 2rem;
    }

    /* Experience Section */
    .experience-sub-title { font-size: 1.25rem; }
    article { max-width: 150px; }
    #experience-typing-text span { font-size: 1.2rem; }
    #experience .about-containers .details-container:not(:last-child) {
        margin-bottom: 2rem;
    }

    /* Projects Section */
    .project-title { font-size: 1.25rem; }
    #projects .about-containers .color-container:not(:last-child) {
        margin-bottom: 2rem;
    }

    /* Footer */
    .footer { font-size: 10px; }
}