* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}
body{
    background-color: rgb(21, 21, 21);
}

/* Navbar Section */
nav {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-around;
    top: 0;
    width: 100%;
    color: white;
    font-size: larger;
    overflow: hidden;
    padding: 10px;
    position: fixed;
    z-index: 1000;
}

.nav_head {
    font-size: 35px;
    letter-spacing: 1px;
}

li {
    display: flex;
    float: inline-start;
    overflow: hidden;
}

li a {
    padding: 15px;
    display: block;
    color: white;
}

li a:hover {
    color: #ff004f;
}

.contact_btn {
    padding: 10px 30px;
    color: black;
    background-color: #ff004f;
    border-radius: 30px;
    font-size: large;
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

.contact_btn:hover {
    color: white;
    border: 3px solid #ff004f;
    background: transparent;
}

/* Responsive Navbar */
.checkbtn {
    font-size: 30px;
    float: right;
    margin-right: 30px;
    cursor: pointer;
    display: none;
}

.checkbox {
    display: none;
}

/* Media Query for 952px and Below */
@media screen and (max-width: 952px) {
    .nav_head {
        font-size: 30px;
    }
    nav li a {
        font-size: 18px;
    }
    nav .contact_btn {
        margin-left: 20px;
    }
}

/* Media Query for 820px and Below */
@media screen and (max-width: 820px) {
    .checkbtn {
        display: block;
        margin-left: 150px;
    }

    .nav_head {
        padding-left: 10px;
    }

    nav ul {
        z-index: 1000;
        position: fixed;
        width: 60%;
        height: 60vh; /* Increased height to include the button */
        background-color: black;
        top: 50px;
        right: -100%;
        padding: 20px;
        transition: all 0.5s;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items */
        justify-content: space-between; /* Space out links and button */
    }

    nav li {
        text-align: center;
        display: block;
        width: 100%;
    }

    nav .contact_btn {
        margin: 10px 0; /* Retain original size and align with links */
    }

    nav li a {
        font-size: 20px;
        color: white;
    }

    .checkbox:checked ~ ul {
        right: 0;
    }
}
/* home section */
.home{
    padding: 220px 100px;
    color:white;
    display: flex;
    justify-content: space-around;
    gap: 5rem;
}

.description{
    padding-top: 20px;
}
.description h1{
    font-size: 30px;
    font-weight: 700px;
}
.description h1 span{
    color:#ff004f;
    font-size: 55px;
    font-weight: 900;
}
.description h2 span{
    color:#ff004f;
    position: relative;
}
.description h2 span:after{
    content:"";
    position: absolute;
    left:0;
    right:0px;
    height:100%;
    border-left: 4px solid #ff004f;
    background-color: rgb(21, 21, 21);
    animation: text 3s  infinite backwards steps(10);
}
@keyframes text{
    0%{
        left: 0;
    }
    50%{
        left: 100%;
    }
    100%{
        left:0;
    }
}
.description p{
    width: 500px;
    margin-top: 20px;
}
.font i{
    margin: 25px 8px;
    border: 2.5px solid #ff004f;
    border-radius: 50%;
    padding: 13px;
    font-size: 20px;
    cursor: pointer;
    transform: .4s ease-in-out;
}
.font i:hover{
    background-color:#ff004f;
    transform: translateY(-2.5px);
    box-shadow: 0px 0px 15px #ff004f;
}
.description button{
    padding: 13px 20px;
    font-size: 20px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ff004f, rgb(231,201,35));
    cursor: pointer;
    border:none;
}
.home img{
    background-color: #ff004f;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0px 0px 30px #ff004f;
    filter: brightness(1.2);
    transition: .4s ease-in-out;
    animation: animate 2.5s ease-in-out forwards infinite;
}
.home img:hover{
    box-shadow: 0px 0px 50px #ff004f;
}
@keyframes animate{
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-15px);
    }
    100%{
        transform: translateY(0px);
    }
}
 /* Responsive home section */
 @media screen and (max-width:820px){
    .home img{
        margin-top: -7rem;
        margin-left: -1rem;
        margin-bottom: 5rem;
        width: 390px;
        height: 340px;
    }
    .home{
        grid-template-columns: 1fr;
        flex-wrap: wrap;
    }
 .description{
   margin-left: -4rem;
 }
 .description h1{
    font-size: 25px;
 }
 .description h1 span{
    font-size: 40px;
 }
 .description h2{
    font-size: 25px;
 }
 .description p{
    font-size: 15px;
 }
}

/* about section */
.about{
    display: flex;
    justify-content: space-around;
    margin: 100px 150px;
    gap: 60px;
    padding-top: 100px;
    color: white;

}
.about_photo img{
    background-color: #ff004f;
    padding:10px;
    border-radius: 50%;
    box-shadow: 0px 0px 30px #ff004f;
    filter: brightness(1.1);
    animation: animate1 2.5s ease-in-out forwards infinite;

}
@keyframes animate1{
    0%{
        transform:translateY(0px);}
    50% { transform:translateY(-15px);
    }
    100%{
        transform: translateY(0px);}
}
.about_section{
    margin-bottom: 30px;
}
.about_section h1 {
    font-size: 50px;
}
.about_section h2{
    margin-top: 10px;

}
.about_section span{
    color: #ff004f;

}
.about_section p{
    margin-top: 15px;

}
.about_btn{
    padding: 13px 25px;
    background-color: #ff004f;
    margin-top: 25px;
    border-radius: 20px;
    box-shadow: 0px 0px 15px #ff004f;
    border: none;
    cursor: pointer;
}
/* responsive about section */
@media screen and (max-width:820px){
    .about{
        display: block;
        margin-top: -13rem;
    }
    .about_section{
        margin-left: -6rem;
        width:470px;
    }
    .about_section h1{
        font-size: 35px;
    }
    .about_photo{
        width: 200px;
        height: 250px;
        margin:50px -70px;
    }
    .about_btn{
        padding: 10px 20px;
        font-size:18px;
}
}

h1.service_section{
    margin-top: 15rem;
    color: white;
    font-size: 50px;
    padding-top: 100px;
    text-align: center;
}
h1.service_section span{
    color:#ff004f;

}
div.card{
    display: flex;
    justify-content:space-around;
    gap: 20px;
    text-align: justify;
    margin:70px;
    color:white;

}
.service_card{
    background-color: rgb(48, 48, 48);
    padding: 30px;
    border-radius: 10px;
    transition: .5s ease-in-out;

}
.service_card:hover{
    border:2px solid #ff004f;
    background-color: #ab1757;
    transform: translateY(-10px);
}

.service_card i{
    font-size: 40px;
    color: #ff004f;
}
.service_card h2{
    font-size: 30px;
    margin-top: 10px;
}
.service_card p{
    margin-top: 10px;
    margin-bottom: 10px;
}
.service_card  a{
    font-size: large;
   color: #ff004f;
}
/* reponsive service section */
@media screen and (max-width:820px) {
    h1.service_section{
        font-size: 35px;
        margin-bottom: -40px;

    }
    .card{
        grid-template-columns: 1fr;
        flex-wrap: wrap;
    }
    .service_card{
        margin-top: 20px;
    }
    .service_card h2{
        font-size: 25px;

    }

}

/* portfolio section */
h1.port_section{
    margin-top: 200px;
    text-align: center;
    color: white;
    font-size: 45px;
    padding-top: 80px;
}
h1.port_section span{
    color:#ff004f;
}
div.project{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}
.port_card img{
    transition: .4s ease-in-out;
}
.port_card img:hover{
    transform: translateY(-20px) scale(1.1);
}
.port_card{
    object-fit: cover;
    overflow: hidden;
    box-sizing: border-box;
}
.port_card .content{
    border-image: fill 0 linear-gradient(#0001, #ff004f);
    position: relative;
    bottom: 185px;
    height: 200px;
    text-align: center;
    color: white;
    padding-top: 50px;
}
.content h1{
    font-size: 25px;
    margin-bottom: 20px;
}
.content p{
    width: 250px;
}


/* responsive portfolio section */
@media screen and (max-width:820px){
    h1.port_section{
        font-size: 35px;
    }
    .project{
        grid-template-columns: 1fr;
        margin-bottom: 200px;
        flex-wrap: wrap;
    }
    .port_card{
        margin-bottom: -170px;
    }
}


/* Contact Section */
.form {
    text-align: center;
    padding: 100px 50px;
    background-color: rgb(30, 30, 30);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 50px auto;
    max-width: 800px;
}
.form h1 span {
    color: #ff004f;
}
.form input,
.form textarea {
    width: 80%;
    margin: 10px 0;
    padding: 12px 15px;
    background-color: rgb(50, 50, 50);
    border: 1px solid #ff004f;
    border-radius: 5px;
    font-size: 16px;
    color: white;
    outline: none;
    transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.form input:focus,
.form textarea:focus {
    border-color: #ff004f;
    box-shadow: 0 0 10px #ff004f;
}
textarea {
    resize: none;
    height: 150px;
}
.form_btn {
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #ff004f;
    color: black;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}
.form_btn:hover {
    background: transparent;
    color: white;
    border: 2px solid #ff004f;
}

/* Responsive Contact Form */
@media screen and (max-width: 820px) {
    .form input,
    .form textarea {
        width: 90%;
    }
}

/* Responsive Contact Section */
@media screen and (max-width: 1024px) {
    .form h1 {
        font-size: 32px;
    }
    .form input,
    .form textarea {
        width: 90%; /* Adjust input width for larger tablets */
        margin-left: auto;
        margin-right: auto;
    }
    .form .form_btn {
        margin-left: auto;
        margin-right: auto;
        display: block;
        padding: 12px 30px;
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .form h1 {
        font-size: 28px;
    }
    .form input,
    .form textarea {
        width: 90%; /* Reduce width for smaller devices */
        margin-left: auto;
        margin-right: auto;
    }
    .form .form_btn {
        margin-left: auto;
        margin-right: auto;
        display: block;
        padding: 10px 25px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .form h1 {
        font-size: 24px;
    }
    .form input,
    .form textarea {
        width: 100%; /* Full-width for mobile devices */
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
    }
    .form .form_btn {
        margin-left: auto;
        margin-right: auto;
        display: block;
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* Footer Section */
.footer {
    font-size: large;
    color: white;
    text-align: center; /* Align content to center */
    margin: 20px auto;
    padding: 20px;
}

/* Responsive Footer Section */
@media screen and (max-width: 1024px) {
    .footer {
        font-size: medium;
        padding: 15px;
        margin: 10px auto;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        font-size: small;
        padding: 10px;
        margin: 5px auto;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        font-size: smaller;
        padding: 8px;
        margin: 2px auto;
    }
}
