@font-face 
{
    font-family: 'agile';
    src: url('/assets/fonts/agile.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root
{
    /* --background-color: white;
    --primary-color: #27282B;
    --accent-color: #ff401a; */

    /* --background-color: #e4e4e4; */
    /* --primary-color: #0D1015; */
    /* --accent-color: #ff401a; */

    --background-color: #f0f0f0;
    --primary-color: #0D1015;
    --accent-color: #ff5100;
}

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

html,
body
{
    scroll-behavior: unset;
    overscroll-behavior-y: none;
    overflow-x: hidden;
}

html.lenis,
html.lenis body
{
    height: auto;
}

.lenis.lenis-smooth
{
    scroll-behavior: auto;
}

.lenis.lenis-stopped
{
    overflow: hidden;
}



/* Hero Page */

.heroPage
{
    height: 100vh;
    width: 100%;
    background-color: var(--background-color);
}




/* Site logo */

.sitelogo
{
    position: absolute;
    top: 1em;
    left: 25px;
    outline: none;
    border: none;
    background-color: var(--background-color);
    cursor: pointer;
    color: var(--accent-color);
    display: inline-block;
}

.sitelogo h1
{
    font-family: 'agile', "Bebas Neue";
    font-size: 3.7rem;
    font-weight: 900;
    letter-spacing: 0.2rem;
}




/* Navigation bar */

.navBar 
{
    height: 3.7rem;
    width: 40%;
    max-width: 280px;
    position: fixed;
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: var(--primary-color);
    border-radius: 100px;
    padding: 0px 25px;
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2);
    z-index: 10;
}

.navBarLight
{
    background-color: var(--background-color);
}



/* Nav Button */
.navButton
{
    border: none;
    background: none;
    color: var(--background-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: gap 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2);
}

.navBarLight .navButton
{
    color: var(--primary-color);
}


/* Nav Icons for nav bar */
.navIcon
{
    height: 30px;
    width: 30px;
    min-height: 30px;
    min-width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: var(--primary-color);
    border: 0px solid var(--primary-color);
    transition: height 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2), width 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2), background-color 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2);
}

.navBarLight .navIcon
{
    background-color: var(--background-color);
}

.navText
{
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(-4px);
    transition: max-width 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2), opacity 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2), transform 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2);
}


/* Nav bar hover effect */
.navBar:hover
{
    height: 72px;
    width: 100%;
    max-width: 600px;
    transition: all 300ms cubic-bezier(0.1, 0.7, 0.22, 1.2);
    border-radius: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    .navIcon
    {
        height: 20px;
        width: 20px;
        min-height: 20px;
        min-width: 20px;
    }

    .navText
    {
        max-width: 110px;
        opacity: 1;
        transform: translateX(0);
    }

    .navButton
    {
        gap: 10px;
    }
}




/* Scroll Bar */

.scroll-container {
  height: 200px;
  width: 20px;
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-track {
  height: 100%;
  width: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tick {
  height: 3px;
  width: 100%;
  background-color: #555;
  margin: 1px 0;
  transition: background-color 0.3s ease;
}

.tick.active {
  background-color: #ff4d4d; /* Red highlight */
  width: 100%;
}






/* Hero Content */

.heroContent
{
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding-top: 5rem;
    background-color: var(--background-color);
}

.photo img
{
    height: 700px;
    width: 525px;
    border-radius: 20px;
}

.rightDiv
{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rightDivText
{
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.hi
{
    display: inline-block;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 70px;
    margin-left: 2px;
    color: var(--primary-color);
}
  
.im 
{
    display: inline-block;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 70px;
}
  
.apostrophe 
{
    color: var(--accent-color);
    font-family: 'Passion One', cursive;
    font-weight: 900;
    font-style: normal;
    font-size: 75px;
}

.nameLight
{
    color: var(--accent-color);
    font-family: "Bebas Neue", serif;
    font-weight: 900;
    font-style: normal;
    font-size: 200px;
}

.animatedText
{
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 33px;
    margin-left: 5px;
}

.animatedText span
{
    font-weight: 500;
}

.animatedText span
{
    position: relative;
}

.animatedText span::before
{
    content: "Front End Developer";
    color: var(--accent-color);
    animation: words 8s infinite;
}

.animatedText span::after
{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 80%;
    background-color: var(--background-color);
    border-left: 4px solid var(--accent-color);
    right: -8px;
    animation: cursor 0.9s infinite, typing 20s steps(17) infinite;
}

@keyframes cursor 
{
    to
    {
        border-left: 2px solid #ff7f5000;
    }
}

@keyframes words 
{
    0%,50%
    {
        content: "Front End Developer";
    }

    51%,100%
    {
        content: "Programmer";
    }
}

@media (max-width: 1024px)
{
    .heroContent
    {
        flex-direction: column;
        gap: 20px;
        padding: 110px 20px 40px;
    }

    .photo img
    {
        width: min(80vw, 420px);
        height: auto;
    }

    .nameLight
    {
        font-size: clamp(6rem, 20vw, 10rem);
    }

}

@keyframes typing 
{
    10%,15%,30%,35%,50%,55%,70%,75%,90%,95%{
        width: 0;
    }
    5%,20%,25%,40%,45%,60%,65%,80%,85%{
        width: calc(100% + 8px);
    }
}




/* Button Animation */
.rightDivButton
{
    padding-left: 5px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.animated-button 
{
    height: 45px;
    width: 120px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 6px;
    color: var(--background-color);
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-button .text-top 
{
    display: flex;
    overflow: hidden;
}
  
.animated-button:hover .text-top 
{
    position: absolute;
}
  
.animated-button:hover .text-top span 
{
    transform: translateY(1.2em);
}

.animated-button .text-bottom 
{
    display: flex;
    position: absolute;
    overflow: hidden;
}
  
.animated-button .text-bottom span 
{
    transform: translateY(-1.2em);
}
  
.animated-button:hover .text-bottom span 
{
    transform: translateY(0);
}

.animated-button .text-top span, 
.animated-button .text-bottom span {
    transition: 0.2s;
}
