@import url('https://fonts.googleapis.com/css2?family=Tourney:ital,wght@0,100..900;1,100..900&display=swap');

html, body{
    height: 100%;
    font-family: 'Courier New', Courier, monospace, 'MyFont', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body{
    background-color: rgb(41, 42, 49);
    display: flex;
    width: 100%;
}

.gif{
  transform: scaleX(-1) rotate(-14deg);
  margin-left:2rem;
  margin-top: 1rem;
  width: 25%; height: auto;
}

a{
    text-decoration: none;
    color: rgb(235, 233, 229);
}

a:hover{
    color: rgb(224, 197, 121);
    background-color: black;
}

p {
    color: rgb(235, 233, 229);
    text-align: justify;
    overflow-wrap:inherit;
}

h1 {
    font-size: 5rem;
    font-family: 'Tourney', thin;
    margin-left: 5%;
    stroke: rgb(255, 207, 74) 1px;
    line-height: -50px;
}

h3{
  margin-top: 5rem;
}

.L1, .L2{
  margin: 0;
  line-height: -0.5rem;
}

.L1{
  text-align: start;
  margin: -2rem 5% -1rem 0;
  max-width: 25vw;
}

.L2{
  text-align: end;
  margin: 0 5% 2rem 0;
}

.contact {
  position: fixed;
  bottom: 20px;
  margin-top: 3rem;
  display: flex;
  justify-content: space-around;
  max-width: 50%;
  align-self: center;
  column-gap: 3rem;
  row-gap: 0.5rem;
  margin-top: 0.5rem;
}

.email, .number{
    padding: 0;
    max-width: 40%;
    margin: 0;
}

nav{
    z-index: 501;
    position: fixed;
    display: flex;
    flex-direction: row;
    top: 0;
    left: 0;
    width: 50%;
    height: 60px;
    background-color: transparent;
    justify-content: space-between;
    align-items: start;
    margin: 2rem 45vw 0 5vw;
}

.nav {
    text-decoration: none;
    color: rgb(224, 197, 121);
    font-size: clamp(0.6rem, 1vw, 0.8rem);
    margin-right: clamp(1rem, 2vw, 2rem);
    transition: color 0.3s ease;
}

.nav > a {
    list-style: none !important;
    text-decoration: underline 1.5px;
    text-underline-offset: 4px;
    gap: 2rem;
    margin: 0;
    padding: 0;
    font-size: 0.6rem;
    display: inline-block;
    margin-right: 2rem;
}

.nav:hover{
    color: rgb(255, 207, 74);
}

.left{
    z-index: 500;
    display: flex;
    flex-direction: column;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    color: rgb(224, 197, 121);
    display: flex;
    justify-content: center;
    align-items: left;
    width: 45%;
    height: 100%;
    padding: 1rem;
    gap: 0.5rem;
}

.right{
    color: rgb(255, 207, 74);
    margin: 0  5% 0 55%;
    width: 55%;
    box-sizing: border-box;
}

.right > p {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: left;
    line-height: 1.5rem;
    letter-spacing: 0.1rem;
}

.crosshatch-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 400vh;
  z-index: -1;
  background-color: rgba(17, 17, 17, 0.863);
  background-image:
    linear-gradient(45deg, rgba(185, 138, 50, 0.8) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(160, 89, 8, 0.8) 1px, transparent 1px);
  background-size: 30px 30px;
  background-repeat: repeat;
}


footer{
    bottom: 0;
}

#email, #number{
    animation: slideUp 1s ease forwards;
    margin: 0;
}

.header-content {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    gap: 2rem;
}

.sliding-text {
    font-size: 2rem;
    font-weight: bold;
    color: #bdbdbd;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp{
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.visible {
    display: block;
    opacity: 1;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
  .contact {
    flex-direction: column;
    align-items: center;
  }
  
  .email, .number{
    max-width: 20vw;
  }  
  .gif{
    margin-left: 8%;
  }

  .L1{
    margin: -1rem 0 0 5%;
  }

  H1{
    font-size: 2rem;
    margin-left: 2%;
  }

  nav{
    margin: 0;
  }

  .nav{
    font-size: xx-small;
    margin: 0 1.2rem 0 0;
    font-size: 0.5rem;
    text-decoration: underline 1px;
  }

  .left {
    width:50%;
    padding: 0;
  }

  .right {
    width: 50%;
    padding: 0;
  }

  .sliding-text{
    font-size: 1rem;
  }

  p{
    padding: 1rem;
    line-height: 1.5rem;
  }
  .contact{
    width: 30%;  }
}

/* Fix anchor positioning */
#about, #projects {
    scroll-margin-top: 2rem;
}

/* Remove default list styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
}