*{
    margin: 0;
    padding: 0;
    font-family: 'Inter';
    box-sizing: border-box;
}
p {
    margin-bottom: 1em;  /* Adjusts the space between paragraphs */
}
html{
    scroll-behavior: smooth;
}
body{
    background: #E5DAD5;
    color: #fff;
    padding-top: 80px;
}
.divider {
    border: none;           
    border-top: 10px solid #614B4B;
    margin: 20px 0;           
}
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size:100% auto;
    
}
.container{
    padding: 10px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    position: fixed; 
    z-index: 1000;
    top: 0;
    left: 0; 
    background-color: #ffffff;
    padding: 10px 15px; /* Make sure the rest of the nav items are aligned properly */
}
 
.logo{
    width: 60px;
    position: fixed;
    top: 0;
    left: 10px;
    transform: translateY(0%);
    z-index: 1001;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
    position: relative;
}

nav ul li a{
    color: #614B4B;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Inter'
}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #86bc99;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
nav ul li a:hover::after{
    width: 100%;
}
.header-text{
    margin-top: 20%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}
.header-text h1 span{
    color: #86bc99
}
/* -----about------ */
#about{
    padding: 80px 0;
    color: #614B4B;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1{
    flex-basis: 40%;
    
}
.about-col-1 img{
    width: 120%;

}
.about-col-2{
    flex-basis: 50%;

}
.sub-title{
    font-size: 45px;
    font-weight: 600;
    color: #614B4B
}
.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: #86bc99;
    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:#b54769;
    font-size: 14px;;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;

}

/* ------services----- */
#services{
    padding: 30px 0;

}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
/* -----portfolio-----  */
#portfolio{
    padding: 50px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 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.563), #db98ae);
    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: #db98ae;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}
.work .layer h3{
    font-size: 2.2rem;
    color: #614B4B;
}
.work .layer p{
    font-size: 1.2rem;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #614B4B;
    background-color: #db98ae;
    transition: background 0.2s;
}
.btn:hover{
    background: #f9ccdb;
}
/* -----contact----- */
.contact-left{
    flex-basis: 50%;
}
.contact-right{
    flex-basis: 30%;
}
.contact-left p{
    margin-top: 30px;
    font-size: large;
}
.contact-left p i {
    color: #db98ae;
    margin-right: 15px;
    font-size: 25p;
}
.social-icons{
    margin-top: 10px;
}
.social-icons a{
    text-decoration: none;
    font-size: 40px;
    margin-right: 15px;
    color: #a8a09a;
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons a:hover{
    color: #db98ae;
    transform: translateY(-5px);
}


.contact-right form{
    width: 100%;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px;
    background: #ffffff;
    color: #614B4B;
    margin-top: 20px;
}
/* ------css for small screen----- */
nav .fa-solid{
    display: none;

}
@media only screen and (max-width: 768px) {
    #header {
        background-position: center top; 
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #ffffff;
        flex-direction: column;
        position: fixed;
        top: 0px;
        right: 0px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        left: auto; 
        
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;

    }
    nav .fa-bars{
        position: fixed;
        top: 20px;  /* Adjusts how far from the top of the nav the icon is */
        right: 20px; /* Adjusts how far from the right of the nav the icon is */
        font-size: 30px; /* Optional: Controls the size of the hamburger icon */
        cursor: pointer; /* Optional: Makes it more clickable */
        z-index: 1000;
    }
}
.container h1{
    color: #614B4B;
    margin-bottom: 10px;
    margin-top: 0px;
}
.container p{
    color: #614B4B;
}

#design-archive {
    padding: 40px 0;
}

.design-archive h1 {
    font-size: 36px;
    color: #614B4B;
    margin-bottom: 10px;
    margin-top: 36px;
}

.design-archive p {
    font-size: 16px;
    margin-bottom: 40px;
    color: #614B4B;
}
body, #code-archive {
    color: #614B4B;
    font-size: 17px; 
}

.design-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.design-projects .project {
    background-color: #ffffff;
    flex: 1 1 calc(50% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    text-align: center;
    margin-top: 5px;
}

.design-projects .project img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.design-projects .project p {
    color: #614B4B; 
    font-size: 20px; 
    margin-top: 8px; 
    font-family: 'Inter';
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #ffffff;
    color: #614B4B;
}

/* ---slideshow---- */
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  margin-bottom: 40px;
  margin-top: 45px;
}

/* Hide the images by default */
.mySlides {
  display: none;
  margin-bottom: 20px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}


.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #614B4B;
  font-size: 20px;
  padding: 8px 12px;
  
  bottom: 0px;
  width: 100%;
  text-align: center;
  padding: 10px 0; 
  margin-top: 10px;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Scoll indicator */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  position: relative;
  top: -50px;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* ----code archive-------  */


/* Code Archive Page Styling */
#code-archive {
    padding: 40px 0;
}

#code-archive h1 {
    font-size: 36px;
    color: #614B4B;
    margin-bottom: 10px;
}

#code-archive p {
    font-size: 16px;
    margin-bottom: 40px;
    color: #614B4B;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
    justify-items: center;
    margin: 0 auto;
}

.project {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
    padding-bottom: 100px;
}

.project-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}
.project h4 {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.project-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}


/* Hover effect on project */
.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);  
}

body, #code-archive {
    color: #614B4B; 
}

/* Heading Font Color */
#code-archive h1,
.project-info h3 {
    color: #614B4B; 
}