/* google Fonts */
/* title */
@import url('https://fonts.googleapis.com/css2?family=Oleo+Script:wght@400;700&display=swap');
/*second */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Oleo+Script:wght@400;700&display=swap');
/* third */
@import url('https://fonts.googleapis.com/css2?family=Anaheim:wght@400..800&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Oleo+Script:wght@400;700&display=swap');

/*Logo */
@import url('https://fonts.googleapis.com/css2?family=Akaya+Kanadaka&display=swap');
/* Main */
*{
  font-family: "Anaheim", "Oleo Script", "Fira Sans", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-padding-top: 2rem;
  scroll-behavior: smooth;
}
:root{
    --background-color: #3d244c;
    --light-color:#fbf8f5;
    --pink-color:#e9598d;
}
section {
    padding: 50px 10%;
}
img {
    width: 100%;
}

body {
    color: var(--text-color);
}
*::selection {
    color: #fff;
    background: var(--background-color);
}
html::-webkit-scrollbar {
    width: 0.5rem;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background: var(--background-color);
    border-radius: 5rem;
}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-color);
    padding: 18px 10%;
    transition: 0.2s;
}
header.shadow {
    box-shadow: 0 0 4px rgb(14 55 54 / 15%);
}
.logo {
    font-family: "Oleo Script";
    font-style: normal;
    font-size: 2rem;
    font-weight: 600;
    color: var(--light-color);
}
.navbar {
    display: flex;
}
.navbar a {
    font-size: 1rem;
    padding: 10px 20px;
    color: var(--light-color);
    font-weight: 500;
}
.navbar a:hover {
    background: var(--light-color);
    color: var(--pink-color);
}
#menu-icon {
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: none;
}
.home {
    background-color: var(--background-color);
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    align-items: center;
    gap: 1.5rem;
}
.home-text span {
    color: var(--pink-color);
    font-size: 1.4rem;
    font-weight: 600;
}
.home-text h1 {
    color: var(--light-color);
    font-size: 3.4rem;

}

.home-text h3 {
    color: var(--light-color);
    font-size: 1.6rem;
    font-weight: bolder;
}
.home-text p {
    color: var(--pink-color);
    font-weight: 400;
    margin: 0.7rem 0 1rem;
}
.home-img {
    padding: 40px;
}
.btn{
    display: inline-block;
    background: var(--pink-color);
    padding: 0.8rem 2rem;
    color: var(--light-color);
    font-weight: 500;
}
.btn:hover{
    background: var(--light-color);
    color: var(--pink-color);
    letter-spacing: 2px;
    transition: 0.10s;
}
.about{
    width: 100%;
    min-height: 95vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.5rem;
}
.about-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.about-title h1 {
    color: var(--pink-color);
    font-size: 2.2rem;
}
.about-title span{
    border-bottom: 3px solid var(--pink-color);
}
.about-title h2 {
    font-size: 2rem;
    font-weight: 500;
}
.about-img {
    width: 150px;
    height: 150px;
    margin-top: 2rem;
}
.about-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: var(--pink-color);
}
.socials {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}
.socials a .bx {
    margin-right: 1rem;
    font-size: 24px;
    color: var(--light-color);
    padding: 10px;
    border-radius: 4px;
    background: var(--pink-color);
}
.socials a .bx:hover {
    background: var(--light-color);
    color: var(--pink-color);
}
.about-text p {
    text-align: justify;
    margin-bottom: 1rem;
}
.services {
    width: 100%;
    min-height: 97vh;
    background-color: var(--background-color);
}
.heading {
    text-align: center;
}
.heading span{
    border-bottom: 3px solid var(--light-color);
}
.heading h1 {
    font-size: 1.7rem;
    font-weight: bolder;
    color: var(--light-color);
}
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(17rem,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}
.services-container .box {
    text-align: center;
    border: 2px solid var(--pink-color);
    padding: 20px;
    border-radius: 0 2rem 0 0;
    box-shadow: 10px 11px 11px rgb(14 55 54 / 15%);
}
.services-container .box:hover {
    background: var(--light-color);
    color: var(--pink-color);
    transition: 0.2s;
}
.services-container .box .bx {
    padding: 10px;
    color: var(--light-color);
    font-size: 24px;
    background: var(--pink-color);
    border-radius: 4px;
}
.services-container .box:hover .bx{
    color: var(--light-color);
    background: var(--pink-color);
}
.services-container .box h2{
    color: var(--light-color);
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
}
.services-container .box:hover h2{
    color: var(--pink-color);
}
.services-container .box p{
    color: var(--pink-color);
}
.services-container .box:hover p{
    color: var(--pink-color);
}
.services-container .box i{
    color: var(--light-color);
}
.portfolio {
    width: 100%;
    min-height: 97vh;
    background-color: var(--light-color);
}
.heading-portfolio {
    text-align: center;
    color: var(--background-color);
}
.heading-portfolio span{
    border-bottom: 3px solid var(--background-color);
}
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(17rem,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.portfolio-container .box {
    position: relative;
    height: 220px;
    box-shadow: 10px 11px 11px rgb(14 55 54 / 15%);
    overflow: hidden;
    border-radius: 0.5rem;
}
.portfolio-container .box .box-img {
    width: 100%;
    height: 100%;
}
.portfolio-container .box .box-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-container .box .content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgb(28, 40, 68, 0.8);
}
.portfolio-container .box .content .bx {
    padding: 10px;
    font-size: 24px;
    border-radius: 4px;
    background: var(--pink-color);
    color: var(--light-color);
}
.portfolio-container .box .content h3 {
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px;
}
.portfolio-container .box:hover .content {
    top: 0;
    transition: 0.2s;
}
.contact {
    background-color: var(--background-color);
    min-height: 85vh;

}
.heading-contact{
    text-align: center;
    color: var(--pink-color);
}
.heading-contact span{
    border-bottom: 3px solid var(--pink-color);
}
.contact-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}
.contact-form form {
    position: relative;
    width: 400px;
}
form input, 
form textarea {
    width: 100%;
    padding: 14px;
    border: none;
    outline: none;
    background: var(--light-color);
    margin-bottom:  0.5rem;
    border-radius: 4px;
    color: var(--background-color);
}
form input::placeholder,
form textarea::placeholder {
    color: var(--pink-color);
}
textarea {
    resize: none;
    height: 200px;
}
form .sent-btn {
    max-width: 110px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--pink-color);
}   
form .sent-btn:hover {
    background: var(--pink-color);
    color: var(--light-color);
}
.copyright {
    padding: 20px;
    text-align: center;
    color: var(--light-color);
    background: var(--pink-color);
}
/* Making Responsive*/
/* For tablets*/
@media (max-width:786px) {
    .home {
        grid-template-columns: 1fr; /* Stack items vertically */
        text-align: center;
    }
    
    .home-img {
        order: -1; /* Place image above the text */
        margin-bottom: 15px;
    }
    header{
        padding: 11px 4%;
    }
    #menu-icon {
        display: initial;
        color: var(--light-color);
    }
    .navbar {
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--background-color);
        box-shadow: 0 4px 4 rgba(0, 0, 0, 0.1);
        transition: top 0.3s ease; /* Smooth transition */
        text-align: left;
    }
    /* Add this for when menu is open */
    .navbar.active {
        top: 45px; /* Adjusted to header height */
    }
    .navbar a {
        padding: 1rem;
        border-left: 2px solid var(--light-color);
        margin: 1rem;
        display: block;
    }
    .navbar a:hover {
        color: var(--pink-color);
        background: var(--light-color);
        border: none;
    }
    #menu-icon.bx-x {
        color:var(--light-color);
    }
}
/* For phones*/
@media (max-width: 480px) {
    .home {
        grid-template-columns: 1fr; /* Stack items vertically */
        text-align: center;
    }
    .home-img {
        order: -1; /* Place image above the text */
        margin-bottom: 15px;
    }
    #menu-icon {
        display: initial;
    }
}