*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

.mea-culpa-regular {
    font-family: "Mea Culpa", cursive;
    font-weight: 400;
    font-style: normal;
}

.cal-sans-regular {
    font-family: "Cal Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}
  
  
:root {
    --primary-background-color: #06402b;
    --secondary-background-color: #1e4d2b;
    --text-color: #fffdd1;
    --main-color: #efbf04;
}
html{
    font-size: 60%;
    overflow: auto;
}
body {
    background: var(--primary-background-color);
    color: var(--text-color);
    font-family: "Cal Sans", sans-serif"
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    text-decoration: none;
}
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in;
    font-family: "Mea Culpa", cursive;
}
.logo:hover{
    transform: scale(1.1);
}
.logo span{
    text-shadow: 0 0 25px var(--main-color);
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar a:hover, .navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

/* ham menu */
.ham-menu {
    display: none;
  }
  
  .ham-menu {
    height: 50px;
    width: 50px;
    margin-left: auto;
    position: relative;
  }
  
  .ham-menu span {
    width: 100%;
    height: 5px;
    background: var(--main-color);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
  }
  
  .ham-menu span:nth-child(1) {
    top: 25%;
  }
  
  .ham-menu span:nth-child(2) {
    top: 75%;
  }
  
  .ham-menu.active span:nth-child(2) {
    top: 50%;
    transform: translate(-50%,-50%) rotate(45deg); 
  }
  
  .ham-menu.active span:nth-child(3) {
      opacity: 0;
  }
  
  .ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%,-50%) rotate(-45deg); 
  }
.off-screen-menu.active {
    right: 0;
  }

.off-screen-menu {
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}


/* resume */
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}
.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}
span {
    color: var(--main-color);
}
.logo span{
    color: var(--main-color);
}
.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}
.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-img{
    border-radius: 50%;
}
.home-img img{
    position: relative;
    top: 3rem;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}
.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}
.home-content p{
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: white;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.btn-group{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.btn-group a:nth-of-type(2){
    background-color: var(--primary-background-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: white;
}
.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.text-animation span{
    position: relative;
}
.text-animation span::before{
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}
.text-animation span::after{
    content: "";
    background-color: var(--primary-background-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--primary-background-color);
    right: -8px;
    animation: cursors 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to{
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words{
    0%,
    20%{
        content: "Frontend Developer";
    }
    21%,
    40%{
        content: "Full-Stack Developer";

    }
    41%,
    60%{
        content: "Game Developer";
    }
    61%,
    80%{
        content: "Web Developer";
    }
    81%,
    100%{
        content: "Software Engineer";
    }
}
@keyframes typing{
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    85%{
        width: calc(100% + 8px);
    }
}


/* Skills*/
.skills-section {
    background-color: #1e4d2b;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .skills-section h2 {
    text-align: center;
    font-size: 5rem;
    margin-top: 50px;
    margin-bottom: 70px;
    color: var(--main-color);
  }
  
  .table-container {
    width: 100%;
    max-width: 900px; 
    display: flex;
    justify-content: center; 
    overflow-x: auto;
  }
  
  .skills-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: large;
  }
  .table-container {
    overflow-x: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .skills-table th,
  .skills-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--text-color);
  }
  
  .skills-table tr:hover {
    background-color: var(--main-color);
  }
  
  .skills-table th {
    font-weight: bold;
    color:var(--text-color);
  }
  
  @media (max-width: 600px) {
    .skills-table th,
    .skills-table td {
      padding: 10px;
      font-size: 14px;
    }
  
    .skills-section h2 {
      font-size: 2em;
    }
  }

  /* Footer */
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: var(--secondary-background-color);
    padding: 40px 0;
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    margin-right: 20px;
    font-size: 25px;
    color: var(--main-color);
    border: 2-x solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a{
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}

.footer p{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}
.footer p a{
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer p a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer .video-credit {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 5px;
}

/* Education */
.heading{
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}
.education{
    padding: 100px 15px;
    background-color: var(--primary-background-color);
}
.education h2{
    margin-bottom: 5rem;
}
.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}
.timeline-item{
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}
.timeline-item:last-child{
    margin-bottom: 0;
}
.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
}
.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}
.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    margin: 6px 0 15px;
}
.timeline-content{
    background-color: var(--primary-background-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3{
    font-size: 20px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 500;
}
.timeline-content p{
    font-size: 16px;
    color: var(--text-color);
    font-weight: 300;
    line-height: 22px;
}

::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--primary-background-color);
    width: 50px;
}

.date {
    color: #efbf04;
    font-weight: bolder;
    margin-top: 30px;
}

hr {
    background-color: #efbf04;
    height: 2px;
}

/* Cover Letter */
.cover-letter-article {
    padding: 20px;
    max-width: 800px; 
    margin: 20px auto; 
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}
.cover-letter-section {
    max-width: 900px;
    margin: 100px auto;
    background-color: var(--secondary-background-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

.cover-letter-section h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 2em;
}

.cover-letter-section p {
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 2rem;
  }

  .cover-letter-section mark {
    background-color: var(--text-color);
    color: #efbf04;
    padding: 0 3px;
  }

.cover-letter-buttons {
    text-align: center;
    margin-top: 40px;
  }

  .cover-letter-buttons a {
    display: inline-block;
    margin: 12px;
    padding: 16px 36px;
    text-decoration: none;
    background-color: var(--main-color);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.5rem;
    transition: background-color 0.3s;
  }

  .cover-letter-buttons a:hover {
    background-color: var(--text-color);
  }

/* Career Goals */
  .career-goals-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 2rem;
    min-height: 20vh;
  }
  
  .section-title {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--text-color);
  }
  
  .content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap; 
  }
  
  .video-container {
    flex: 1 1 40%;
    min-width: 200px;
  }
  
  .video-container video {
    width: 100%;
    height: 50rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  .video-container audio {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  
  .text-container {
    flex: 1 1 55%;
    min-width: 280px;
    font-size: 2.5rem;
    line-height: 2;
    color: var(--text-color);
    margin-top: 10rem;
  }
  
  /* Responsive: Stack on small screens */
  @media (max-width: 768px) {
    .content-wrapper {
      flex-direction: column;
    }
  
    .video-container, .text-container {
      flex: 1 1 100%;
    }
  
    .section-title {
      font-size: 2rem;
    }
  }
  
  /* Contact */
  .contact {
    background-color: var(--primary-background-color);
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;    
    height: 100vh;           
    padding: 2rem;
    text-align: center;
    margin-bottom: 70px;
  }
  
  .contact-info {
    border-radius: 2rem;
    border: 0.1rem solid var(--main-color);
    background-color: var(--primary-background-color);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
  }
  
  .contact-info form {
    width: 100%;
  }
  
  .contact-info label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
  }
  
  .contact-info input,
  .contact-info textarea,
  .contact-info select {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--main-color);
    border-radius: 0.5rem;
    font-size: 1.1rem;
    background-color: white;
    color: #333;
  }
  
  .contact-info input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
  }
  
  .contact-info button {
    background-color: var(--main-color);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-info button:hover {
    background-color: darken(var(--main-color), 10%);
  }
  

  /* about me */
  .about {
    padding: 4rem 2rem;
    background-color: var(--primary-background-color);
    color: var(--text-color);
    text-align: center;
  }

  .about-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .about .heading {
    margin-bottom: 2rem;
  }
  
  .about-text-container {
    flex: 1;
    min-width: 300px;
     max-width: 500px;  
    font-size: 2rem;
    text-align: left;
    line-height: 1.6;
  }
  
  .about-image-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  