*{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background: #fff; /*bg color of the website*/
    color: #080808; /*color of the font*/
}

#header{
    width: 100%;
    height: 60vh;
    background-image: url(images/bgimg.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#header .container{
    height: 100%;
    display: flex;
    flex-direction: column;
}
 .container{
    padding: 10px 10%;
}

nav{
    display: flex; 
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
 .logo{
    width: 140px;
 }
 nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
 }
  nav ul li a{
    color: #080808;
    text-decoration: none;
    font-size: 30px;
    position: relative;
  }
  nav ul li a::after{
    content: ''; /*not sure if i like the underline*/
    width: 0;
    height: 3px;
    background: #341d05;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
  }
nav ul li a:hover:after{
    width: 100%;
}
.header-text{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}
.header-text h1 span{
    color: #341d05;
}
.header-contact{
    margin-top: 10px;
    font-size: 20px;
    color: #341d05;
    letter-spacing: 0.02em;
}
.resume-header-text {
    justify-content: center;
    padding-top: 0;
    margin-top: 0;
    gap: 0;
}
.resume-header-text p {
    margin-bottom: 0;
    font-size: 30px;
}
.resume-header-text h1 {
    margin-top: 0;
    line-height: 1;
    font-size: 60px;
}
.resume-content {
    padding-top: 30px;
    padding-bottom: 40px;
}
.pdf-container {
    width: 100%;
    height: 800px;
    background: #f7f3ee;
    border: 1px solid #e7dcc7;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}
.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}
.pdf-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #341d05;
    font-size: 22px;
    font-weight: 600;
    background: rgba(247, 243, 238, 0.9);
    margin: 0;
}
/*---------------about---------------*/
#about{
    padding: 80px 0;
    color: #341d05;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-col-1 img{
    width: 70%;
    border-radius: 15px;
    display: block;
}
.resume-btn{
    display: block;
    margin: 20px auto 0;
    width: fit-content;
    border: 1px solid #341d05;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #341d05;
    background: transparent;
    transition: 0.5s;
    text-align: center;
}
.resume-btn:hover{
    background: #341d05;
    color: #fff;
}
.about-col-2{
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #341d05;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #341d05;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 15px 0;
}
.experience-item {
    display: block;
}
.experience-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.experience-copy {
    flex: 1;
}
.company-logo {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    display: inline-block;
    flex-shrink: 0;
    background: #f5f0ea;
    border: 1px solid rgba(52, 29, 5, 0.08);
}
.tab-contents ul li span{
    color: #341d05;
    font-size: 18px;
}
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.hobby-card {
    display: block;
    background: #f7f3ee;
    border: 1px solid rgba(52, 29, 5, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(52, 29, 5, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hobby-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(52, 29, 5, 0.1);
}
.hobby-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.hobby-info {
    padding: 16px 18px 20px;
}
.hobby-info span {
    display: block;
    color: #341d05;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.hobby-info p {
    margin: 0;
    line-height: 1.5;
    color: #341d05;
}
.hobby-click-text {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #341d05;
    text-align: center;
}
.gallery-page {
    background: #fffaf4;
    min-height: 100vh;
    color: #341d05;
}
.gallery-page .container {
    padding-top: 50px;
    padding-bottom: 60px;
}
.gallery-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #341d05;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #341d05;
    border-radius: 6px;
    padding: 10px 16px;
    transition: 0.3s ease;
}
.gallery-back:hover {
    background: #341d05;
    color: #fff;
    text-decoration: none;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 30px;
}
.gallery-card {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: #f7f3ee;
}
.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s;
}
.gallery-card .layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), #fff);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.gallery-card .layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
    color: #341d05;
}
.gallery-card .layer p {
    color: #341d05;
    line-height: 1.5;
}
.gallery-card:hover img {
    transform: scale(1.1);
}
.gallery-card:hover .layer {
    height: 100%;
}
.tab-contents{
    display:none; 
}
.tab-contents.active-tab{
    display: block;
}
/*---------------portfolio---------------*/
#portfolio{
    padding: 80px 0;
    color: #341d05;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), #fff);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom:20px;
}
.layer a{
    margin-top: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    line-height:60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}   
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #341d05;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #341d05;
    background: transparent;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn:hover {
    background: #341d05;
    color: #fff;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/*---------------contact---------------*/
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px
}
.contact-left p{
    color: #341d05;
    margin-right: 15px;
    font-size: 25px;
}
.social-icon {
    margin-top: 30px;
}
.social-icon a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #341d05;
    display: inline-block;
}
.social-icons a:hover{
    color: #341d05;
    transform: translateY(-5px);
}
.btn.btn2{
    display: incline-block;
    background: #341d05;
}
.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #f2f2f2;
    padding: 15px;
    margin: 15px 0;
    color: #080808;
    font-size: 18px;
    border-radius: 6px;
}
form button[type="submit"]{
    display: block;
    margin: 20px 0;
    width: fit-content;
    border: 1px solid #341d05;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #341d05;
    background: transparent;
    cursor: pointer;
    transition: 0.5s;
}
form button[type="submit"]:hover{
    background: #341d05;
    color: #fff;
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: #f2f2f2;
    font-weight: 200;
    margin-top: 20px;
}
.copyright i{
    color: #341d05
}
/*---------------css small screen---------------*/
nav .fa-solid{
    display: none;
}
@media only screen and (max-width: 900px){
    .work-list{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 600px){
    #header{
        background-image: url(images/bgimg.png);
    }
   .header-text{
        margin-top: 40%;
        font-size: 16px;
    }
    .work-list{
        grid-template-columns: 1fr;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background-color: #f2f2f2; 
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top:50px;
        padding-left:20px;
        z-index: 2;
        transition: right 0.5s;

    }
    nav ul li{
        display: block;
        margin: 25px 0;
    }
    nav ul li a{
        font-size: 20px;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer; 
    }
    .sub-title{
    font-size: 40px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
     .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
     .copyright{
        font-size: 14px;
    }
}
