/* Variables Sheet*/
@import "variables.css";

/* Define color and font variables */
:root {
    --font-family: 'Outfit', sans-serif;
    --font-size-header: 120px;
}

/* css reset */
body {
    margin: 0;
    padding: 0;
    background-color: var(--BackgroundColors__Light);
  }

  /* Reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-up,
  .theme-transition {
    transition: none;
    animation: none;
  }
}

/* header */
#header-text{
    color: var(--TextColors__Primary);
    font-size: var(--Heading__textsize__fontsizel);
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-weight: var(--Heading__textweight__fontweightdefault);
    letter-spacing: 10px;
    text-align: center;
    background-color: var(--BackgroundColors__Dark);
    margin: 0;
    padding:20px;
}

#header-img{
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}


/* nav */
#nav-bar{
    background-color: var(--BackgroundColors__Dark);
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 2000;
    
}

#nav-bar-ul{
    display: flex;
    flex-direction: row;
    list-style: none;
    justify-content: space-around;
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Heading__textsize__fontsizes);
    font-weight: var(--Heading__textweight__fontweightlight);
    letter-spacing: 2px;
    margin: 0;
    padding: 30px;
}

.nav-link a{
    text-decoration: none;
    cursor: pointer;
    color: var(--TextColors__Primary);
}

.nav-link a:hover{
    color: var(--TextColors__Hover);
    transition: color 0.3s ease-in-out;
}

/* about me */
#about-me {
    scroll-margin-top: 150px; 
}

#about-me h2{
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Heading__textsize__fontsizem);
    font-weight: var(--Heading__textweight__fontweightdefault);
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 12%;
    margin-right: 0;
}

#about-me p{
    font-family: var(--Body__fontfamily__bodyfontfamily);
    font-size: var(--Body__textsize__fontsizem);
    font-weight: var(--Body__textweight__fontweightlight);
    margin-left: 12%;
    margin-right: -9%;
    margin-bottom: 60px;
    line-height: 1.6;
    text-align: left;
}

#about-me-img{
    width: 500px;
    height: auto;
    margin-bottom: 40px;
}

#about-me-list{
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Body__textsize__fontsizem);
    font-weight: var(--Body__textweight__fontweightlight);
    padding: 0;
    margin: 0;
    margin-left: 12%;
    line-height: 1.8;
    list-style-position: inside;
}

#icon{
    font-size: 50px;
    margin-left: 10px;
}

#about-me-content{
     flex: 1;
}


#about-me {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding-top: 50px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 50px;
}

/* work */
#work-showcase h2{
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Heading__textsize__fontsizem);
    font-weight: var(--Heading__textweight__fontweightdefault);
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
    padding-top: 100px;
    color: var(--TextColors__Primary);
}

#work-showcase h2 img{
     animation: pulse 2.5s ease-in-out infinite;
}


#work-showcase{
    background-color:  var(--BackgroundColors__Dark);
    padding-bottom: 40px;
    scroll-margin-top: 120px; 
}

#website-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

#website-cards tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#website-cards td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 40px;
}

#website-cards p{
    color: var(--TextColors__Primary);
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Heading__textsize__fontsizes);
    font-weight: var(--Heading__textweight__fontweightlight);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
}

.website-card{
    position: relative;
    width: 90vw;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 5px;
    aspect-ratio: 16 / 9;
    background-color: var(--Whites__White00);
    overflow: hidden;
    cursor:pointer;
    margin-bottom: 20px;
}

.website-card:hover iframe{
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

.website-card iframe{
    position: absolute;
    inset:0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;
    overflow: hidden;
}

.website-card iframe::-webkit-scrollbar {
    display: none; 
}

.star-icon{
    padding:50px;
}

/* contact-section*/

#contact-section{
    background-color: var(--BackgroundColors__Light);
    display:flex;
    flex-direction: column;
    align-items:center;
    margin:0;
    padding:50px;
}

#contact-section h2{
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Heading__textsize__fontsizem);
    font-weight: var(--Heading__textweight__fontweightdefault);
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

#contact-section h2 img{
   animation: pulse 2.5s ease-in-out infinite;
}

#contact-section p{
    font-family: var(--Body__fontfamily__bodyfontfamily);
    font-size: var(--Body__textsize__fontsizem);
    font-weight: var(--Body__textweight__fontweightlight);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
}

#contact-list{
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Body__textsize__fontsizem);
    font-weight: var(--Body__textweight__fontweightdefault);
    margin-top:40px;
    margin-left: 0;
    margin-right: 0;
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items:center;
    gap:120px;
}

#email-button{
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

#email-button:hover{
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

#email-button img{
    width: 100px;
    height: auto;
}


#linkedin-button{
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

#linkedin-button:hover{
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

#linkedin-button img{
    width: 100px;
    height: auto;
}

#github-button{
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

#github-button:hover{
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

#github-button img{
    width: 100px;
    height: auto;
}

#contact-list button{
        margin-right: 40px;
    }


/*footer*/
#footer-section{
    background-color: var(--BackgroundColors__Dark);
    display:flex;
    flex-direction: column;
    align-items:center;
    margin:0;
    padding: 20px;
}

#footer-section p{
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Body__textsize__fontsizes);
    font-weight: var(--Body__textweight__fontweightlight);
    color: var(--TextColors__Primary);
    text-align:center;
}

#footer-links{
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    gap: 40px;
    justify-content: center;
}

#footer-links a{
    font-family: var(--Heading__fontfamily__headingfontfamily);
    font-size: var(--Body__textsize__fontsizes);
    font-weight: var(--Body__textweight__fontweightlight);
    color: var(--TextColors__Primary);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

#footer-links a:hover{
    color: var(--TextColors__Primary);
}

#credit-tag img{
    width:40px;
    height:auto;
    margin-left:10px;
    margin-right:5px;
    margin-bottom: -10px;
    text-align: center;
}

.theme-toggle{
        width:100px;
        height:auto;
        border-radius: 5px;
        background-color: var(--BackgroundColors__Light);
        border-style: none;
    }

/*responsive styles*/
@media (max-width: 768px) {
    #header-text{
        font-size: 60px;
        letter-spacing: 5px;
        padding: 10px;
    }

@media (max-width: 768px) {
    #header-img{
        width: 100%;
        height: auto;
    }

@media (max-width: 768px) {
    #nav-bar-ul{
        display:flex;
        flex-direction: row;
        justify-content: space-around;
        gap:33px;
        text-align:center;
        font-size: 15px;
        padding: 20px;
        width:15px;
    }

    #nav-bar-ul img{
        width:15px;
        height:auto;
    }

@media (max-width: 768px){
    #about-me {
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin:0;
    }
  
    #about-me h2 {
      font-size: 60px;
      margin: 0 0 20px 0;

    }
  
    #about-me p {
      margin: 0 20px 40px 20px;
      text-align: center;
      font-size:20px;
    }

     #about-me-list{
        margin: 0 20px 40px 20px;
        font-size:20px;
        line-height: 1.8;
     }
  
    #about-me-img {
      width: 80%;
      height: auto;
      margin-bottom: 20px;
    }
  }
  
    #work-showcase h2{
        font-size: 60px;
        margin-top: 40px;
        margin-bottom: 20px;
        padding-top: 50px;
        display:flex;
        flex-direction:row;
    }

    #website-cards p{
        font-size: 28px;
        margin-bottom: 20px;
    }

    #contact-section h2{
        font-size: 60px;
        margin-bottom: 20px;
        display:flex;
        flex-direction:row;
    }

     #contact-section h2 img{
        width:20px;
        height:auto;
        margin:0;
        padding:0;
        display:flex;
        flex-direction:row;
    }

    #contact-section p{
        font-size: 20px;
        margin-bottom: 20px;
    }

    #contact-list{
        flex-direction: row;
        gap:40px;
    }

    #contact-list button img{
        width:50px;
        height:auto;
        margin-right: 20px;
    }
}

