h1 {
    color: #ccd6f6;
    font-family: NTR, sans-serif;
    font-size: 48px;
    font-weight: 3000;
}

p {
  color: #ccd6f6;
  font-family: NTR, sans-serif;
  font-size: 18px;
  font-weight: 100;

  line-height: 1.8;
  letter-spacing: 0.7px;
  word-spacing: 3px;

  text-align: justify;
  
}

body {
  background-color: #090617;
}

button{
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    color: #ccd6f6;
    font-family: NTR, sans-serif;
    font-size: 16px;
    font-weight: 200;
    background-color: transparent;
    border-width: 1px;
    border-color: #FF00FF;
    padding: 6px 18px;
}

button:hover{
    transform: translateY(-3px);
    color: #df77df;
    font-weight: 300;
}

button:hover svg{
    fill:white;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 205x;
}

.section-title::after {
    content: "";
    width: 300px;
    height: 0.5px;
    background-color: #8e44ad;
}

header{
    padding-left: 120px;
    padding-right: 120px;
    display: flex;
    justify-content: space-between;
}

.menu-button {
    display: none;
}

nav,
.home-name {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav a,
.home-name {
    color:#ccd6f6;
    font-family: NTR, sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
}

nav a:visited,
.home-name a:visited{
    color: #ccd6f6;
    text-decoration:none;
}

nav a:hover {
    color: #ff4fd8;
    text-decoration:none;
    transform: translateY(-3px);
}

.home-name{
    font-size: 22px;
    font-weight: 500;
}

/* Modern Gradient Line */
hr.gradient-line {
  height: 3px;
  border: none;
  background: linear-gradient(to right, transparent, #8e44ad, transparent);
}


                                    /* Icon Container */
.social-container {
  display: flex;
  gap: 15px;
}

/* Base style for the icon */
.social-icon {
  width: 32px;
  height: 32px;
  fill: #ccd6f6; /* Default gray color */
  transition: fill 0.3s ease, transform 0.3s ease;
}
/* Hover effects targeting specific brands */
.social-link.github:hover .social-icon{
  fill: #9d7bff;
  transform: translateY(-3px);
}

.social-link.linkedin:hover .social-icon{
    fill: #5ba8ff;
    transform: translateY(-3px);
}

.social-link.email:hover .social-icon{
    fill: #ff4fd8;
    transform: translateY(-3px);
}


/* =========================
   A B O U T
   ========================= */
#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 180px;
    padding-right: 180px;
    padding-top: 120px;
    gap: 30px;
}

#home > div {
  flex: 1; /* Automatically forces an exact 50/50 split */
}

.image-container{
    align-items:right;
}

.image-container img{
    width: 420px;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

#Mago {
    color:#FF00FF;
    font-family: NTR, sans-serif;
    font-size: 48px;
    font-weight: 700;
}

#cursor{
    color:#FF00FF;
    font-family: NTR, sans-serif;
    font-size: 70px;
    font-weight: 500;
    animation: theAnimation 1s steps(1) infinite;
}

/* The animation code for cursor*/
@keyframes theAnimation {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

/* =========================
   ABOUT
   ========================= */
#about {
    padding-left: 180px;
    padding-right: 180px;
    padding-top: 120px;
    gap: 20px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-container p {
    flex: 1;
}

.about-photo {
    flex: 1;
    margin-top: 50px;
}

.about-photo img {
    width: 420px;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.say-hi-button {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 8px;

    border-radius: 8px;
    border: 1px solid #FF00FF;
    padding: 6px 18px;

    color: #ccd6f6;
    font-family: NTR, sans-serif;
    font-size: 16px;
    font-weight: 200;
    text-decoration: none;

    background-color: transparent;
}

.say-hi-button:hover {
    transform: translateY(-3px);
    color: #df77df;
    font-weight: 300;
}

.say-hi-button:hover svg {
    fill: white;
}


/* =========================
   EXPERIENCE
   ========================= */
#experience{
    padding-left: 180px;
    padding-right: 180px;
    padding-top: 120px;
    gap: 20px;
}

.experience_container {
    display: flex;
}

.experience_names {
    border-right: 1px solid #8e44ad;
}

.experience_names button{
    padding-top: 10px;
    border: none;
    align-items: center;     /* Centers vertically */
    height: 50px;  
    font-size: 12px;
    width: 150px;
    text-align: center;
    border-radius: 0px;
    font-weight: 60px;
}

.experience_names button:hover{
    background-color: #fa67da62;
    color:#ccd6f6;
}

.experience_names button.active{
    color: #FF00FF;
    font-size: 14px;
    font-weight: 160px;
    border-right: 2px solid #FF00FF;
}


.experience_details{
    padding-left: 12px;
    padding-right: 12px;
    gap: 4px;
}

.experience_details h3{
    color:#ccd6f6;
    font-size: 30px;
    font-weight: 150px;
    font-family: NTR, sans-serif;
    padding-left: 10px;
}

.experience_details h4{
    color:#ccd6f6;
    font-size: 15px;
    font-weight: 100;
    font-family: NTR, sans-serif;
    padding-left: 10px;
}

.popup {
    color:#FF00FF;
    font-size: 30px;
}

.experience_details p{
    font-size: 16px;
    font-weight: 100;
    padding-left: 45px;
    text-align: justify;
}

.slide {
    animation: experienceSlide 1.5s ease;
}

@keyframes experienceSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* =========================
   Projects
   ========================= */

.projects-heading {
    display: flex;
    align-items: center;
    gap: 290px;
}

#projects {
    padding-left: 180px;
    padding-right: 200px;
    padding-top: 120px;
    gap: 20px;
}

#projects svg{
    text-align: right;
    
}

.featured-project {
    border: 1px solid #8d44ad3c;
    width: 700px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    padding-bottom: 20px;
}

.project-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: fit-content;
    margin: 0 auto;
}

.project-carousel p,
.project-carousel h3,
.project-carousel h4{
    text-align: center;
    margin: 0 auto;
    margin-bottom: 20px;
}

.project-carousel a{
    margin-top: auto;
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}


.featured-project img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    overflow: hidden;
    margin: 0 auto;
    padding-top: 20px;
}

.featured-project video {
    width: 100%;
    height: 350px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding-top: 20px;
}

.featured-project-info {
    padding: 30px;
    text-align: justify;
}

.project_container{
    padding-top: 150px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project_card img {
    width: calc(100% - 20px);
    height: 200px;
    object-fit: contain;
    margin: 10px auto 0;
    border-radius: 12px;
}

.project_card video {
    width: calc(100% - 20px);
    height: 200px;
    object-fit: contain;
    margin: 10px auto 0;
}

.project_card .pink-button{
    align-self: center;
    margin-top: 20px;
}

.demo-link {
    color: #ccd6f6;
    font-family: NTR, sans-serif;
    font-size: 14px;
    font-weight: 150;
    line-height: 1.8;
    letter-spacing: 0.7px;
    word-spacing: 3px;
    text-decoration: none;
}

.project_card {
    text-align: center;
    font-size: 10px;
    border: 1px solid #9d7bff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;

    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.project_card a{
    margin-top: auto;
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.project_card h3,
.project_card p,
.project_card a{
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
}

#projects h3{
    color:#ccd6f6;
    font-size: 20px;
    font-weight: 100;
    padding-top: 15px;
}

#projects h4{
    color:#FF00FF;
    font-size: 25px;
    font-weight: lighter;
}

.project-links {
    margin-top: auto;
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Base style for the icon */
.project-links social-icon {
  width: 32px;
  height: 32px;
  fill: #ccd6f6; /* Default gray color */
  transition: fill 0.3s ease, transform 0.3s ease;
}
/* Hover effects targeting specific brands */
.project-links.github:hover .social-icon{
  fill: #9d7bff;
  transform: translateY(-3px);
}

/* Hover effects targeting specific brands */
.social-link.colab:hover .social-icon{
  fill: #ee6e3b;
  transform: translateY(-3px);
}
/* =========================
   Resume
   ========================= */

#resume{
    padding-left: 180px;
    padding-right: 180px;
    padding-top: 120px;
    gap: 20px;

}

.resume-content {
    text-align: center;
    padding: 40px 0 80px;
}

.resume-content p {
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 30px;
}


.resume-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    padding-top: 40px;
}

.resume-button {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.pink-button {
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    color: #ccd6f6;
    font-family: NTR, sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-decoration: solid;

    background-color: transparent;
    border: 1px solid #FF00FF;
    padding: 6px 18px;

    display: block;
    width: fit-content;
    margin: 0 auto;
}

.pink-button:hover{
    transform: translateY(-3px);
    background-color: #df77df;
    font-weight: 300;
}

#download-resume {
    display: block;
    margin: 0 auto 16px auto;
}

/* =========================
   FOOTER
   ========================= */

footer{
    padding-top: 60px;
}

footer p{
   text-align: center;
   font-size: xx-small;
   font-weight: lighter;
}


/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {

    #home,
    #about,
    #experience,
    #projects,
    #resume {
        padding-left: 25px;
        padding-right: 25px;
        box-sizing: border-box;
        width: 100%;
    }

    .section-title::after {
        display: none;
    }

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

    .project_container {
        grid-template-columns: 1fr;
    }

    header {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .home-name {
        display: block;
    }

    .menu-button {
        display: block;
    }

    header nav,
    header .social-container {
        display: none;
    }

    header.menu-open nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    header.menu-open .social-container {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 20px;
        padding-top: 20px;
    }

    /*.     HOME    */
    #home {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .image-container img {
        width: 70%;
        max-width: 300px;
        height: auto;
    }

    .welcome-container {
        width: 90%;
        text-align: center;
        margin-top: 30px;
    }

    .welcome-container .say-hi-button {
        margin-left: auto;
        margin-right: auto;
    }

        /*.     A B O U T    */
    .about-photo {
        display: none;
    }

    .about-container {
        width: 100%;
        align-items: center;
    }

    .about-container p {
        width: 90%;
        max-width: 600px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

            /*.     E X P E R I E N C E   */

    .experience_container {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .experience_names {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between
    }

    .experience_details {
        width: 100%;
    }

    #experience {
        padding-left: 25px;
        padding-right: 25px;
    }

            /*.     P R O J E C T S     */

    #projects {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .project-carousel {
        width: 100%;
        max-width: 100%;
    }

    .featured-project {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .featured-project img,
    .featured-project video {
        max-width: 100%;
        height: auto;
    }
        
    .project_container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        width: 100%;
    }

    #projects {
        padding-left: 25px;
        padding-right: 25px;
    }
}