/* RESET AND GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #282c33;
    font-family: Fira Code;
}

button:hover {
    cursor: pointer;
}

.body-image {
    display: flex;
    justify-content: end;
}

.body1-image {
    display: flex;
    justify-content: end;
}

.contact-image {
    align-items: center;
    margin-top: 10px;
}

.project-image {
    display: flex;
    justify-content: flex-end;
}



/* ============================
   NEW ANIMATIONS
   ============================ */

/* Fade elements in from 0 → 1 opacity */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Slide in from left */
@keyframes slideInLeft {
  from { transform: translateX(-60%); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}

/* Slide in from right */
@keyframes slideInRight {
  from { transform: translateX(50%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* Simple bounce */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40%                    { transform: translateY(-15px); }
  60%                    { transform: translateY(-7px); }
}

/* Pulse (scale up/down) */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ========================================
   NAV-BAR
   Positions and styles the top navigation.
   ======================================== */
.nav-bar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
}

.nav-bar span {
    color: #C778DD;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 30px;
    line-height: 20.99px;
}

.logo a {
    text-decoration: none;
    color: white;
    animation: slideInLeft 1s ease-in forwards;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

nav a {
    text-decoration: none;
    color: #ABB2BF;
    margin-left: 20px;
    padding: 32px 8px;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}
.nav-bar a:nth-child(1) { animation-delay: 0.3s; }
.nav-bar a:nth-child(2) { animation-delay: 0.5s; }
.nav-bar a:nth-child(3) { animation-delay: 0.7s; }
.nav-bar a:nth-child(4) { animation-delay: 0.9s; }

.nav-bar a:hover {
    color: white;
}

.active {
    color: white;
}

/* ========================================
   BANNER
   Styles the main banner area and its text.
   ======================================== */
.banner {
    display: flex;
    margin-top: 123px;
    justify-content: space-between;
}

.banner-header {
    color: white;
    margin-top: 100px;
    font-family: Fira Code;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.banner-header h4 {
    font-weight: 600;
    font-size: 32px;
    line-height: 41.98px;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.2s;
}

.banner-header span {
    color: #C778DD;
    font-weight: 600;
    font-size: 32px;
    line-height: 41.98px;
}

.banner-header p {
    color: grey;
    font-weight: 400;
    font-size: 16px;
    line-height: 41.98px;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.4s;
}

.btn1 {
    padding: 10px 25px;
    background-color: #282c33;
    border: 1px solid #C778DD;
    color: white;
    margin-top: 20px;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.6s;
}

.banner-image {
    display: flex;
}

.banner img {
    width: 469px;
    height: 366px;
    opacity: 0;
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 1s;
}

.banner1-image {
    display: flex;
    position: absolute;
    left: 85%;
    bottom: 210px;
}

.banner-end {
    border: 1px solid #ABB2BF;
    width: 50%;
    justify-content: center;
    padding: 5px 20px;
    margin-left: 23%;
    text-align: center;
    margin-top: 40px;
}

.banner-header1 {
    color: #fff;
}

.banner-header1 h2 {
    margin-top: 10px;
    font-weight: 500;
    font-size: 24px;
    line-height: 31.49px;
    margin-bottom: 10px;
}

.banner-header1 p {
    color: #fff;
    text-align: end;
    margin-right: 20px;
    padding: 16px;
    gap: 10px;
}

.wrapper {
    margin-left: 15%;
    margin-right: 15%;
}

/* ========================================
   PROJECTS
   Styles for project previews/sections.
   ======================================== */
.project-header {
    display: flex;
    justify-content: space-between;
    color: white;
    margin-bottom: 50px;
    margin-top: 20px;
}

.project-header a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    line-height: 20.99px;
}

.project-header h2 {
    font-weight: 500;
    font-size: 32px;
    line-height: 41.98px;
}

.project-header span {
    color: #C778DD;
    font-weight: 500;
    font-size: 32px;
    line-height: 41.98px;
}

.projects {
    display: flex;
    justify-content: space-between;
}

.projects img {
    width: 330.58px;
    height: 201px;
    object-fit: contain;
}

.work {
    gap: 2rem;
    text-align: center;
    line-height: 2;
    border: 1px solid #ABB2BF;
    transition: transform 0.3s ease;
}

.work:hover {
    animation: bounce 1s;
}

.work span {
    color: #ABB2BF;
    font-weight: 400;
    font-size: 16px;
    line-height: 20.99px;
}

.work h2 {
    color: white;
    font-weight: 500;
    font-size: 24px;
    line-height: 31.49px;
    margin-top: 10px;
}

.btn2 {
    border: 1px solid #C778DD;
    color: white;
    background-color: #282c33;
    padding: 5px 40px;
    margin-bottom: 20px;
}

.btn3 {
    border: 1px solid grey;
    color: #ABB2BF;
    padding: 5px 20px;
    background-color: #282c33;
    margin-left: 20px;
    margin-bottom: 20px;
}

button a {
    text-decoration: none;
    color: white;
}

/* ========================================
   SKILLS
   Styles for the skills/technologies section.
   ======================================== */
.skills {
    justify-content: space-between;
    display: flex;
}

.skills img {
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}
.skills img:nth-child(1) { animation-delay: 0.4s; }
.skills img:nth-child(2) { animation-delay: 0.6s; }
.skills img:nth-child(3) { animation-delay: 0.8s; }

.mobile {
    display: flex;
    justify-content: space-between;
}

.languages {
    margin-top: 50px;
    margin-right: 80px;
    justify-content: center;
    color: white;
    line-height: 2;
}

.language1 {
    display: grid;
    margin-left: 80px;
    justify-content: center;
    align-items: end;
    color: white;
    line-height: 2;
}

.language2 {
    display: grid;
    margin-left: 20px;
    justify-content: center;
    align-items: end;
    color: white;
    line-height: 2;
}

.language1 p,
.language2 p,
.languages p {
    color: #ABB2BF;
}

.skill-border {
    border: 1px solid grey;
    height: 150px;
    width: 150px;
    text-align: center;
}

.skill-border h2 {
    border-bottom: 1px solid #ABB2BF;
    font-weight: 600;
    font-size: 16px;
    line-height: 20.99px;
    height: 30px;
    margin-top: 10px;
}

.skill-border p {
    font-weight: 400;
    font-size: 16px;
    margin-top: 20px;
    line-height: 20.99px;
}

.skill-end {
    display: flex;
    margin-top: 20px;
}

.skills-header {
    margin-top: 20px;
    color: white;
}

.skills-header h2 {
    font-weight: 500;
    font-size: 32px;
    line-height: 41.98px;
}

.skills-header span {
    color: #C778DD;
    font-weight: 500;
    font-size: 32px;
    line-height: 41.98px;
}

/* ========================================
   ABOUT-ME
   Styles the "About Me" section/content.
   ======================================== */
.about {
    display: flex;
    align-items: center;
    color: white;
    margin-top: 100px;
}

.about img {
    margin-left: 20px;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 0.6s;
}

.about-header h3 {
    margin-top: 50px;
    font-weight: 400;
    font-size: 16px;
    color: #ABB2BF;
    line-height: 26px;
}

.about-header p {
    color: #ABB2BF;
    font-weight: 400;
    font-size: 16px;
    line-height: 40px;
}

.about h2 {
    font-weight: 500;
    font-size: 32px;
    line-height: 41.98px;
}

.about-header span {
    color: #C778DD;
    font-weight: 500;
    font-size: 32px;
    line-height: 41.98px;
}

.btn4 {
    padding: 10px 30px;
    border: 1px solid #C778DD;
    color: white;
    background-color: #282c33;
    margin-top: 20px;
}

/* ========================================
   CONTACT
   Styles the contact section and its elements.
   ======================================== */
.contacts {
    display: flex;
    color: white;
    margin-bottom: 50px;
    justify-content: space-between;
}

.contacts-header h2 {
    font-weight: 500;
    font-size: 32px;
    line-height: 41.98px;
}

.contacts-header span {
    color: #C778DD;
    font-weight: 500;
    font-size: 32px;
    line-height: 41.98px;
}

.contacts-header p {
    color: #ABB2BF;
    font-weight: 400;
    font-size: 16px;
    line-height: 20.99px;
    margin-top: 20px;
}

.media {
    border: 1px solid gray;
    display: grid;
    align-items: start;
    text-align: center;
    width: 30%;
    color: #ABB2BF;
    margin-top: 20px;
}

.media h4 {
    color: white;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
}

/* ========================================
   FOOTER
   Styles for the footer area and text.
   ======================================== */
.footer {
    color: white;
    margin-top: 20px;
    line-height: 2;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards, slideInLeft 1s ease forwards;
    animation-delay: 1.2s;
}

footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #ABB2BF;
    font-weight: 400;
    font-size: 16px;
    line-height: 20.99px;
}

.media1 {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.media1 h3 {
    font-weight: 500;
    font-size: 24px;
    line-height: 31.49px;
}

.footer-header p {
    font-weight: 400;
    font-size: 16px;
    line-height: 20.99px;
    color: #fff;
}

.discord {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.discord-p {
    margin-top: 8px;
}

/* RESPONSIVE STYLES (max-width: 768px) */
@media only screen and (max-width: 768px) {
    .banner,
    .skills,
    .project,
    .about,
    .contacts {
        margin-top: 10px;
    }

    .container {
        margin-left: 15px;
        margin-right: 15px;
    }

    .nav-bar {
        flex-direction: column;
    }

    #navLinks {
        display: none;
        flex-direction: column;
    }

    .menu-icon {
        display: grid;
        place-items: center;    /* center the character */
        width: 2.5rem;          /* fixed box */
        height: 2.5rem;
        font-size: 2rem;        /* same size for ☰ and ✕ */
        line-height: 1;
        cursor: pointer;
        user-select: none;
        cursor: pointer;
        transition: transform 0.5s ease-in-out;
    }
    
    .menu-icon.rotate {
        transform: rotate(180deg);
    }

    nav a {
        display: flex;
        justify-content: center;
        line-height: 5px;
        flex-direction: row;
        text-align: center;
        margin: 10px 0;
    }

    .banner {
        display: grid;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .banner-header {
        margin-top: 0px;
    }

    .banner img {
        width: 99%;
    }

    .projects img {
        width: 100%;
    }

    .wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .banner h4 {
        font-size: 2.4rem;
        margin-top: 40px;
    }

    .project {
        display: grid;
    }

    .project-header {
        justify-content: center;
        text-align: center;
        align-items: center;
        display: flex;
        justify-content: space-evenly;
        margin-top: 40px;
    }

    .project-header a {
        margin-left: 0;
        margin-right: 0;
    }

    .projects {
        display: flex;            /* row of items */
        overflow-x: auto;         /* horizontal scroll if overflow */
        gap: 1rem;                /* space between cards */
        padding-bottom: 0.5rem;   /* room for scrollbar */
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
      }
      
      /* Style the scrollbar (WebKit browsers) */
      .projects::-webkit-scrollbar {
        height: 6px;
      }
      .projects::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
      }
      
      /* Ensure each work card is fixed-width and won’t shrink */
      .work {
        flex: 0 0 auto; /* don’t grow or shrink */
        width: 300px;   /* or whatever fixed width you prefer */
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-bottom: 25px;
      }
    

    .skills {
        display: grid;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .skills-header {
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-left: 20px;
    }

    .skills-header h2 {
        display: grid;
        text-align: center;
        position: relative;
        align-items: center;
        justify-content: center;
        margin-top: 40px;
    }

    .skills-header span {
        position: absolute;
        left: 124px;
        bottom: 40px;
    }

    .about {
        display: grid;
        text-align: center;
    }

    .mobile {
        display: flex;
        justify-content: space-around;
        overflow: auto;
    }

    .languages {
        margin-bottom: 30px;
    }

    .skill-border {
        margin-left: 20px;
        margin-top: 20px;
    }

    .project1-image {
        display: none;
    }

    .contacts {
        display: grid;
        text-align: center;
        align-items: center;
        justify-content: center;
        margin-top: 40px;
    }

    .media {
        display: grid;
        width: 100%;
    }

    .footer {
        display: grid;
        text-align: start;
        margin-left: 20px;
    }

    .random {
        display: none;
    }
    
}

.btn1:hover,
.btn2:hover,
.btn4:hover {
    animation: pulse 1s ease-in-out infinite;
}
