*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #0F3343;
    color: #EAE6E0;    ;
}

#header{
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url(Assets/Images/SPG.jpg);
    background-size: cover;
}

.container{
    position: relative;
    z-index: 2;
    padding: 10px 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#header .container{
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #25282d;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #B22222;
    position: absolute;
    left: 0;
    bottom: -6px;
}

nav ul li a:hover::after{
    width: 100%;
}

.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(219, 228, 232, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: top 0.6s ease, opacity 0.6s ease;
}

.navbar.hide{
    top: -100px;
}

.header-text{
    margin-top: 20%;
    text-align: left;
    font-size: 30px;
    color: #B22222;
    position: relative;
    display: flex;
    justify-content: flex-start;
    padding-left: 10%;
}

.frosted-box{
    background: rgb(203, 219, 241, 0.05);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(187, 204, 230, 0.37);
    max-width: fit-content;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-clip: padding-box;
    color: #fff;
    z-index: 2;
    text-align: left;
}

.frosted-box:hover{
    background: rgba(183, 196, 216, 0.1);
}

.frosted-box span{
    color: #B22222;
}

.header-text h1{
    font-size: 60px;
    margin-top: 20px;
    color: #fff;
    z-index: 2;
    position: relative;
}

.header-text h1 span{
    color: #B22222;
}



/*--------------about------------*/
#about{
    padding: 80px 0px;
    color: #EAE6E0;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #EAE6E0;
}

.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: #BE430E;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span{
    color: #BE430E;
    font-size: 14px;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/*--------portfolio----------*/

#portfolio{
    padding: 50px 0;
}

.carousel-wrapper{
    position: relative;
    width: 100%;
    z-index: 0;
}

.carousel-wrapper::before,
.carousel-wrapper::after{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 10;
}

.carousel-wrapper::before{
    left: 0;
    background: linear-gradient(to right, #0F3343, transparent);
}

.carousel-wrapper::after{
    right: 0;
    background: linear-gradient(to left, #0F3343, transparent);
}

.carousel-track-container{
    overflow: hidden;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track{
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    scroll-snap-type: x mandatory;
}

.carousel-track-container::-webkit-scrollbar{
    display: none;
}

.project-card{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    flex: 0 0 33.3333%;
    padding: 20px;
    box-sizing: border-box; 
    scroll-snap-align: start;
    z-index: 1;
}

.project-card img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
    z-index: 1;
    position: relative;
}

.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #BE430E);
    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;
    z-index: 2;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a{
    margin-top: 20px;
    color: #BE430E;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #EAE6E0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.project-card:hover img{
    transform: scale(1.1);
}

.project-card:hover .layer{
    height: 100%;
}

.carousel-btn{
    width: 50px;
    height: 50px;

    background: rgba(15, 51, 67, 0.8);
    border: none;
    font-size: 24px;
    color: #EAE6E0;
    cursor: pointer;
    z-index: 15;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#prev-btn{
    top: 35%;
    left: 25px;
}

#next-btn{
    top: 35%;
    right: 25px;
}

.carousel-btn:hover{
    background: #BE430E;
}

#show-all-btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #BE430E;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #EAE6E0;
    background: #BE430E;
    transition: background 0.5s;
}

#show-all-btn:hover{
    background: #BE430E;
}
  
#portfolio.show-all .carousel-track-container {
    overflow: visible;
}

#portfolio.show-all .carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    transform: none !important;
}

#portfolio.show-all .project-card {
    flex: none; /* Reset flex behavior */
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding-top: 60px;
}

.modal-content {
  background-color: #0F3343;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  color: #EAE6E0;
  position: relative;
  text-align: center;
}

.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-view-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 30px;
  border: 1px solid #BE430E;
  border-radius: 6px;
  color: #EAE6E0;
  text-decoration: none;
  transition: background 0.3s;
}

.modal-view-btn:hover {
  background: #BE430E;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #EAE6E0;
}

/*------------contact------------*/

.contact-left{
    flex-basis: 35%;
    margin-left: 15px;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
    margin-left: 15px;
}

.contact-left p i{
    color: #4B683E;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons{
    margin-top: 30px;
    margin-left: 15px;
}

.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #4B683E;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: #BE430E;
    transform: translateY(-5px);
}

.btn.btn2{
    display: inline-block;
    background: #BE430E;
    margin-left: 15px;
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #4B683E;
    padding: 15px;
    margin: 15px 0;
    color: #EAE6E0;
    font-size: 18px;
    border-radius: 6px;
}

form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}
/*------------Landing Page--------------*/
#main-page {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: #0F3343;
    color: #EAE6E0;
}

.buttons {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 14px 40px;
    border-radius: 6px;
    text-decoration: none;
    color: #EAE6E0;
    border: 1px solid #BE430E;
    transition: background 0.5s;
}

.btn:hover {
    background: #BE430E;
}

/*----------Personal Site ------------*/
#under-construction {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: #0F3343;
    color: #EAE6E0;
}

#under-construction h1 {
    font-size: 50px;
    color: #BE430E;
}

#under-construction p {
    font-size: 20px;
    margin: 20px 0;
}

/*------- css for small screens ----------*/

nav .fa-solid{
    display: none;
}

@media only screen and (max-width: 600px){
    #header{
        background-image: url(Images/SPG.jpg);
    }

    .navbar {
        background: none;
        backdrop-filter: none;
        box-shadow: none;
    }

    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1{
        font-size: 30px;
    }

    nav .fa-solid{
        display: block;
        font-size: 25px;
    }

    nav ul{
        background: #BE430E;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li{
        display: block;
        margin: 25px;
    }

    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%;
    }


}

#msg{
    color: #EAE6E0;
    margin-top: -40px;
    display: block;
}