*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

}

html {
    scroll-behavior: smooth;
    background-color: var(--beige);
    
}

body{
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal
    
}


:root {
    --beige: #ccccba;
    --beige-br: rgb(221, 168, 83);
    --navy: #27548A;
    --dark-navy:rgb(24, 59, 78);
    --smooth:all .3s ease-in; 
    
}

/* phần header */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4;
    display: none;
}
#overlay.show {
    display: initial;
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark-navy);
}

.banner  {
    display: flex;
    background-color: var(--dark-navy);
    padding: 2px 5px;
    align-items: center;
    text-align: left;
    color: var(--beige-br);
    justify-content: space-between; 
}


.banner__logo {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 40px;
    text-align: center;
    margin: 5px ;
    color: var(--beige-br);
}
.banner__menu {
    position: fixed;
    
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background-color: var(--dark-navy);
    z-index: 100;
    transition: var(--smooth);
    
    transform: translateX(-100%);
    opacity: 0;
}

.banner__menu__list {
    margin: 55px;
    list-style: none;
}
.banner__menu__lists a {
    text-decoration: none  ;
    color: var(--beige-br);
    font-weight: 300;
    transition: var(--smooth);
    font-size: 1.5rem;
    
}
.banner__menu__lists a:hover {
    color: var(--navy);
    transition: var(--smooth);
}
/* tạo nút menu đóng và mở */

.banner__menu.menu__active {
    transform: translateX(0);
    opacity: 1;
    transition: var(--smooth);
}

.banner__menu__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: var(--smooth);
    z-index: 101;
}

.banner__menu__button {
    width: 45px;
    height: 5px;
    background-color: var(--beige-br);
    border-radius: 5px;
    transition: var(--smooth);
    position: relative;

}
.banner__menu__button::before,
.banner__menu__button::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--beige-br);
    border-radius: 5px;
    transition: var(--smooth);
}
.banner__menu__button::before {
    transform: translateY(-12px);

}
.banner__menu__button::after {
    transform: translateY(12px);
}

/* Thêm vào cuối file */
/* laptop screen */
@media (min-width: 62em) {
    
    header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark-navy);
  }
  #overlay.show {
    display: none;
}

  .banner__menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    width: auto;
    height: auto;
    background: none;
    display: flex;
    align-items: center;
    transition: var(--smooth);
  }
  .banner__menu__lists {
    display: flex;
    gap: 0.2rem;
    
  }
  .banner__menu__buttons {
    display: none;
  }
  
  .banner {
    padding: 0 1rem;
    min-height: 48px;
    height: 56px;
  }
  .banner__logo {
    font-size: 1.1em;
    letter-spacing: 4px;
    margin: 0;
    line-height: 1;
  }
  
  .banner__menu__lists a {
    font-size: 1rem;
    padding: 5px 5px;
  }
}


/* Animation for banner__menu__buttons (hamburger to X) */
.banner__menu.menu__active ~ .banner__menu__buttons .banner__menu__button {
    background-color: transparent;
}
.banner__menu.menu__active ~ .banner__menu__buttons .banner__menu__button::before {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--navy);
}
.banner__menu.menu__active ~ .banner__menu__buttons .banner__menu__button::after {
    transform: rotate(-45deg) translate(-8px, 8px);
    background-color: var(--beige-br);
}

/* ===index.html/main=== */
@keyframes heroright {
    0% {
        opacity: 1;
        transform: translateY(0);
        transition: var(--smooth);
    }
    100% {
        transform: translateY(20px);
    }
}

.hero {
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-left: 10%;
}
.hero__main {
    font-size: 5.5rem;
    font-weight: bold;
    align-items: center;
    color: var(--dark-navy);
    opacity: 1;
    transform: translateY(40%);
    animation-name: heroright;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transition: var(--smooth);
    
}
.hero__sub {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-navy);
    opacity: .8;
    
}


.hero__mail {
    font-size: 2.5rem;
    font-weight: bold;
    align-items: center;
    color: var(--dark-navy);
    margin-top: 1rem;
}
.hero__mail :hover {
    color: var(--beige-br);
    transition: var(--smooth);
}


.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}
.hero__animation {
    width: 220px;
    min-width: 120px;
    height: 220px;
    flex-shrink: 1;
    
}
.hero__content {
    flex: 1;
}



/* .container {
    display: flex;
    flex-direction: column;
    
} */
.about {
    padding: 1rem 2rem;
    
}
.about__me {
    font-size: 2em;
    font-weight: bold;
    color: var(--dark-navy);
    text-align: center;
}

p {
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--dark-navy);
    margin-top: 1rem;
    text-align: left;
    align-items: center;
}

/* work */
.work__experience {
    padding: 1rem 2rem;
    
}
.work__experience__title {
    font-size: 2em;
    font-weight: bold;
    color: var(--dark-navy);
    text-align: center;
    margin-bottom: 20px;
}

.work__experience__item h3 {
    font-size: 1.5em;
    font-weight: bold;
    
    color: var(--dark-navy);
}
.work__experience__item p {
    font-size: 1.5em;
    margin-top: 0;
    color: var(--dark-navy);
}
.work__experience__item a {
    display: flex;
    flex-direction: column;
    /* text-decoration: none; */
    /* font-weight: bold; */
    color: var(--dark-navy);
    font-size: 1.2em;
    
}
.work__experience__item a:hover {
    color: var(--beige-br);
    transition: var(--smooth);
}
.work-animation {
    height: 50vh;
    width: 80vw;
}

.education {
    padding: 1rem 2rem;
    
}
   
.education__title {
    font-size: 2em;
    font-weight: bold;
    color: var(--dark-navy);
    text-align: center;
    margin-bottom: 20px;
}
    
.education__item h3 {
    font-size: 1.5em;
    font-weight: bold;
     color: var(--dark-navy);
    
}
.education__item a {
    color: var(--dark-navy);
    text-decoration: none;
}
.education__item a:hover {
    color: var(--beige-br);
    transition: var(--smooth);
}

.edu-animation {
    height: 50vh;
    width: 80vw;
}
/* phần contact */
.contact {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 0 0;
}
.contact ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact li {
    display: flex;
    align-items: center;
    font-size: 30px;
    
}
.contact li :hover {
    color: var(--beige-br);
    transition: var(--smooth);
}

/* laptop screen */


@media (min-width: 62em) {
 p {
        font-size: 1.5rem;
 }

    
  

 main {
    padding-top: 2rem;
 }
  .hero {  
    padding-top: 20px;
    padding-bottom: 60px;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 4rem 0;
    
  }
  .contact a {
    list-style-type: none;
  }
  .hero__main {
    font-size: 3.5rem;
    font-weight: bold;
    align-items: center;
    color: var(--dark-navy);
    padding-bottom: .5rem;
}
 .hero__sub {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-navy);
    opacity: 0.5;
    align-items: center;
    text-align: center;
}
.hero__animation {
        margin-bottom: .1rem;
        margin-top: .001rem;
    }
.about {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    text-wrap: wrap;
    margin-left: 20%;
    margin-right: 15%;
    text-align: left;
    
}
.about__me {
    text-align: center;
}

.work__experience__title {
    text-align: left;
}
.work__experience {
    display: flex;
    flex-direction: row;
    text-wrap: wrap;
    gap: 4em;
    align-items: flex-start;
    justify-content: center;
    margin-left: 0 auto;
    margin-right: o auto;
    width: 100%;
    max-width: 55em;
    margin: 0 auto;
    text-align: left;
}

.work__experience__items {
    text-align: left;
    flex-direction: column;
    gap: 2rem;
}
.work__experience__item {
    margin-top: 20px;
}
.work__experience__item p {
    align-items: left;
    text-align: left;
}
.work-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    max-width: 350px;
    height: 300px;
}

.education__title {
    text-align: left;
}
.education {
    display: flex;
    flex-direction: row-reverse;
    text-wrap: wrap;
    gap: 4em;
    align-items: flex-start;
    justify-content: center;
    margin-left: 0 auto;
    margin-right: o auto;
    width: 100%;
    max-width: 55em;
    margin: 0 auto;
    text-align: left;
}

.education__items {
    text-align: left;
    flex-direction: column;
    gap: 2rem;
}
.education__item {
    margin-top: 20px;
}
.education__item p {
    align-items: left;
    text-align: left;
}
.edu-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    max-width: 350px;
    height: 300px;
}

  
}


/* ===project.html=== */
main {
    margin-left: 10px;
    margin-right: 10px;
}
.projects h1 {
    color: var(--dark-navy);
    text-align: center;
}
.projects p {
    text-align: center;
}


.projects__table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--beige);
    color: var(--dark-navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.projects__table th, .projects__table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.projects__table th {
    background: var(--beige-br);
    color: var(--dark-navy);
    font-size: 1.1rem;
    
}

.projects__table tr:last-child td {
    border-bottom: none;
}
.projects__table a {
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: bold;
}
.projects__table a:hover {
    color: var(--beige-br);
    transition: var(--smooth);
} 

@media (min-width: 62em) {
    .project__animation {
        width: 300px;
        height: 300px;
        
    }
    h1 {
        font-size: 3rem;
        text-align: center;
        margin-top: 1rem;
        color: var(--dark-navy);
    }
    p {
        font-size: 1.2rem;
        text-align: center;
    
        margin: 1rem auto;
        max-width: 800px;
    }
    .projects__table {
        width: 50%;
        align-content: center;
        flex-direction: column;
        margin: 2rem auto;
        font-size: 1.2rem;
        
    }
    .projects__table th, .projects__table td {
        padding: 1.5rem;
    }
    .projects__table th {
        font-size: 1.2rem;
    }
}

/* ===blog.html===*/
main {
    margin-left: 10px;
    margin-right: 10px;
}
.blog__animation {
    width: 220px;
    height: 220px;
    margin: 2rem auto 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.blog__content {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    color: var(--dark-navy);
    
}
.blog__title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.blog__text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--dark-navy);
    margin-bottom: 3rem;
}
.author {
    font-size: 1.2rem;
    color: var(--dark-navy);
    opacity: .5;
    text-align: left;
}

/* Table of contents for other__blogs */
.blog__toc {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--beige);
    color: var(--dark-navy);
    font-weight: normal;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    
}

.blog__toc th, .blog__toc td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--dark-navy);
    text-align: left;
}

.blog__toc th {
    background: var(--beige-br);
    color: var(--dark-navy);
    font-size: 1.5rem;
    font-weight: bold;
}

.blog__toc tr:last-child td {
    border-bottom: none;
}

.blog__toc a {
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.blog__toc a:hover {
    color: var(--beige-br);
    transition: var(--smooth);
}

/* Responsive for mobile */
@media (min-width: 62em) {
    .blog__toc th, .blog__toc td {
        padding: 0.5rem 0.5rem;
        font-size: 1.2rem;
    }
    .blog__toc {
        font-size: 0.95rem;
    }
    .another__blogs h2 {
        font-size: 1.2rem;
    }
    .blog__title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
}
/* tool */
#tools {
    margin: 0 auto;
    text-align: center;
    color: var(--dark-navy);
    padding: 30px 0;
}
#tools h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
#tools p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-navy);
    text-align: center;
}
#tools a {
    text-decoration: none;
    padding: 0;
    color: var(--dark-navy);
    font-weight: bold;
    font-size: 1.5rem;
}
#tools li {
    margin-bottom: 0.5rem;
}

#tools a:hover {
    color: var(--beige-br);
    transition: var(--smooth);
}
img {
    width: 250px;
    height: 300px;
    margin-right: 10px;
    vertical-align: middle;
}
@media (min-width: 62em) {
    #tools {
        margin: 0 auto;
        text-align: center;
        color: var(--dark-navy);
        padding: 30px 0;
    }
    /* #tools img {
        display: none;
    } */
    #tools h2 {
        font-size: 2.5rem;
    }
    #tools p {
        font-size: 1.5rem;
    }
    #tools a {
    text-decoration: none;
    padding: 0;
    color: var(--dark-navy);
    font-weight: bold;
    font-size: 2rem;
    }
   
    

}