/* GENERAL */

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

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    position: relative;
    z-index: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* TRANSITION UTILITY */
a,
.btn,
.icon,
.card-style,
.dropdown-card,
.project-btn,
.about-containers,
.about-details-container,
.details-container,
.work-article-container,
.experience-details-container .details-container,
.article-container,
.article-container-project,
.title-container-project,
.contact-info-upper-container {
    transition: all 300ms ease;
}

/* 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;
    font-weight: lighter;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

.nav-links a:hover,
.menu-links a:hover,
a:hover,
a.active {
    color: #b51010;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 16, 16);
    font-weight: bold;
}

.logo {
    font-size: 2rem;
    font-family: cursive;
    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;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: rgb(181, 16, 16);
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #e6e1e1;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

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

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

.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);
}

/* 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;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text_p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
    font-weight: bold;
}

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

#typing-text {
    border-right: 2px solid black;
    padding-right: 5px;
    white-space: nowrap;
}

.title_1,
.title {
    color: #b51010;
    text-align: center;
}

.title_1 {
    font-size: 2.5rem;
}

.title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

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

/* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: black;
}

.btn {
    font-weight: 600;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    cursor: pointer;
}

.btn:hover {
    background: rgb(181, 16, 16);
    color: black;
}

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

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

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

/* CARD COMMON STYLES */
.card-style,
.about-containers,
.about-details-container,
.details-container,
.work-article-container,
.article-container-project,
.contact-info-upper-container {
    background: #e5d8d8;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(120, 2, 14, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.title-container-project {
    background: linear-gradient(
      120deg,
      #b51010,
      #9aaca3,
      #b51010
    );
    background-size: 200% 200%;
    animation: gradientMove 6s ease infinite;
  
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(120, 2, 14, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
@keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
}
  
.card-style:hover,
.about-containers:hover,
.about-details-container:hover,
.details-container:hover,
.work-article-container:hover,
.article-container:hover,
.article-container-project:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(119, 5, 9, 0.12);
}

.article-container:hover {
    border-radius: 12px;
}

/* ABOUT SECTION */

#about {
    position: relative;
}

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

.about-containers {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    flex-direction: column;
}

.details-container {
    flex: 1;
    text-align: center;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    border-radius: 2rem;
}

.about-pic {
    border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.text-container {
    text-align: justify;
}

.summary-lines p {
    border-left: 3px solid #b51010;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* EXPERIENCE & SKILLS SECTION */

#experience, 
#profile,
#skills,
#education {
    position: relative;
}

.skills-containers {
    flex: 1;
    min-width: 300px;
    align-items: flex-start;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}
  
.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.55rem;
}

.experience-sub-title a {
    color: black;
    text-decoration: none;
}

.experience-sub-title a:hover {
    color: #b51010;
    text-decoration: underline;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.experience-left h3 {
    margin: 0;
    font-weight: bold;
    font-size: medium;
}

.experience-left a {
    color: inherit;
    text-decoration: none;
}

.experience-left a:hover {
    text-decoration: underline;
    color: #b51010;
}

.experience-right p {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.work-article-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.work-article-container article {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
}

.work-article-container article div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* EXPERIENCE SPECIFIC OVERRIDES */
.experience-details-container .about-containers {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid #555;
}

/* Timeline Nodes (Dots) */
.experience-timeline .details-container {
    position: relative;
    background: #e5d8d8;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
}

/* The animated node dot */
.experience-timeline .details-container::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 2rem;
    width: 1rem;
    height: 1rem;
    background: #b51010;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 1;
    animation: pulseNode 2s infinite;
}

@keyframes pulseNode {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(181, 16, 16, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(181, 16, 16, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(181, 16, 16, 0);
    }
}

.experience-details-container {
    text-align: left;
}

/* SKILLS CARD (FORMERLY DROPDOWN) */

.dropdown-card {
    cursor: default;
}

.dropdown-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.dropdown-header .experience-sub-title {
    margin-bottom: 0;
    color: black;
}

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

.project-details-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.project-details-container .about-containers {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}


.experience-details-container .about-containers {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 80%;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid #555;
}

/* Timeline Nodes (Dots) */
.experience-timeline .details-container {
    position: relative;
    background: #e5d8d8;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    margin-bottom: 2rem;
}

.project-details-container .details-container {
    padding: 2rem;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: #e5d8d8;
    width: 100%;
}

.experience-timeline .details-container::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 2rem;
    width: 1rem;
    height: 1rem;
    background: #b51010;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 1;
    animation: pulseNode 2s infinite;
}

.color-container {
    background: #e5d8d8;
    border-color: rgb(163, 163, 163);
}

.project-description {
    text-align: justify;
    margin-bottom: 1.5rem;
}

.project-bullets {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    text-align: justify;
}

.project-bullets li {
    margin-bottom: 0.50rem;
    color: #333;
    font-size: 0.9rem;
}

.highlight-label {
    font-weight: 700;
    color: #333
  }

.project-title {
    margin: 1rem 0;
    color: black;
    font-size: large;
    font-weight: 600;
    text-align: center;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}

/* ARTICLE / ICON GRID */
.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-around;
    padding: 0.5rem;
}

.project-details-container .article-container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

article {
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
    display: flex;
}

article .icon {
    cursor: default;
}

/* CONTACT SECTION */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    margin: 2rem auto;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(120, 2, 14, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-upper-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(52, 12, 155, 0.12);
}

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

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/* SKILL TAGS / BADGES */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content:center;
}

.skill-tag {
    background: none;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: default;
    border: 1px solid #333;
    animation: float 3s ease-in-out infinite;
}

.skill-tag:nth-child(even) {
    animation-delay: 1.5s;
}
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* BACKGROUND ANIMATION */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #e6e1e1;
}