* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Poppins";
}

:root {
    --bg-color: #080808;
    --second-bg-color: #101010;
    --text-color: white;
    --main-color: #ea580c;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    width: 100%;
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

#menu-icon {
    display: none;
    font-size: 3rem;
    color: var(--main-color);
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3 ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    color: #077e3d;
    text-shadow: #077e3d;
}

.navbar a {
    font-size: 1.9rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3 ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    color: #077e3d;
}

#theme-togle {
    font-size: 1.8rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: #0440493b;
    letter-spacing: 1px;
    cursor: pointer;
    color: bisque;
    transition: 0.3 ease-in-out;
    border: none;
}

.gradient-button:hover {
    transform: scale(1.06);
}


/*home section*/

section {
    min-height: 100vh;
    width: 100%;
    max-width: 1280px;
    padding: 10rem 15%;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: Bold;
    margin-top: 1.5rem;
    margin-bottom: 20px;
    line-height: 2rem;
    line-height: 1;
}

.home-content p {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    text-align: left;
}

.home-img img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 0 25px #077e3d;
    transition: 0.4 ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px #077e3d, 0 0 50px #ea580c, 0 0 100px #077e3d;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: left;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid orange;
    border-radius: 50%;
    color: #077e3d;
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: white;
    background-color: orange;
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 25px #077e3d;
}

.btn-group {
    display: flex;
    gap: 1.3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    font-weight: 600;
    box-shadow: 0 0 25px transparent;
    background-color: var(--main-color);
    border-radius: 3rem;
    color: black;
    border: 2px solid transparent;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #077e3d;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: orangered;
    border: 2px solid orange;
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px #077e3d;
    background-color: black;
    color: orangered;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--main-color);
    transition: 0.4s ease-in-out;
}

.about-img img:hover {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}

.about-content h2 {
    font-size: 6rem;
    text-align: left;
}

.about-content p {
    margin-top: 5px;
    line-height: 20px;
    font-size: 1.8rem;
}

.about-content .btn {
    margin: 3rem 0;
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}


/*Services section*/

.heading {
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

.services {
    background-color: var(--bg-color);
    color: black;
}

.services h2 {
    color: var(--text-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2rem;
}

.service-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 400px;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.service-box:hover {
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}

.service-info h4 {
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}

.service-info p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7rem;
}

.service-info i {
    font-size: 8rem;
}


/*projects section*/

.heading {
    text-align: center;
    font-size: 7rem;
   margin: 4rem 0;
}

.projects {
    background: var(--second-bg-color);
    padding-top: 80px;
    
}

.projects-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    place-items: center;
    gap: 3rem;
    row-gap: 5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: o.3s ease;
}

.project-card:hover {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
    transform: scale(1.02);
}

.project-card img {
    max-width: 300px;
    border-radius: 2rem;
    object-fit: cover;
}

.project-card h3 {
    font-size: 3rem;
}

.project-card p {
    font-size: 1.6rem;
}


/*Contact Section*/

.contact {
    background-color: var(--bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}

.footer {
    background-color: var(--second-bg-color);
    padding: 50px 0;
}

.footer .social-icons {
    text-align: center;
}

.footer ul {
    text-align: center;
    font-size: 1.8rem;
}

.footer ul li {
    display: inline-block;
    margin-left: 20px;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

@media (max-width: 1285px) {
    html {
        font-size: 55%;
    }
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background: rgba(0, 0, 0, 0.9);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
        flex-direction: column;
        z-index: 999;
    }
    .navbar a {
        display: block;
        font-size: 2.2rem;
        margin: 2rem 0;
        text-align: center;
    }
    .navbar.active {
        display: flex;
    }
    .gradient-button {
        display: none;
    }
    section {
        padding: 10rem 8%;
    }
    .home {
        flex-direction: column-reverse;
        text-align: center;
        margin: 6rem 0;
        gap: 5rem;
    }
    .home-content {
        align-items: center;
        text-align: center;
    }
    .home-content h1 {
        font-size: 3.5rem;
    }
    .home-img {
        width: 60vw;
    }
    .home-img img {
        width: 100%;
        height: auto;
    }
    .about {
        flex-direction: column-reverse;
        text-align: center;
        gap: 5rem;
    }
    .about h2 {
        text-align: center;
        font-size: 4rem;
    }
    .about-img {
        width: 60vw;
    }
    .about-img img {
        width: 100%;
        height: auto;
    }
    .contact form {
        flex-direction: column;
        gap: 2rem;
    }
    .services-container,
    .projects-box {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .heading {
        font-size: 4.5rem;
    }
    .service-info h4 {
        font-size: 2.8rem;
    }
    .project-card h3 {
        font-size: 2.5rem;
    }
    .project-card p,
    .service-info p {
        font-size: 1.4rem;
    }
    
#typewriter {
    font-size: 1.5rem;
}

    .typewriter-text {
   font-size: 2rem;
}

    .btn {
        padding: 1rem 2rem;
        font-size: 1.6rem;
    }
    .btn-group {
        
        gap: 2rem;
    }
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    font-weight: 600;
    box-shadow: 0 0 25px transparent;
    background-color: var(--main-color);
    border-radius: 3rem;
    color: black;
    border: 2px solid transparent;
    transition: 0.3s ease-in-out;
}

}


/*typewriter*/

#typewriter {
    font-size: 3rem;
    margin-bottom: 20px;
    overflow: hidden;
    color: yellow;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3s steps(30, end), blink-caret .75s step-end infinite;
}

.typewriter-text {
    display: inline;
    color: yellow;
    font-weight: bold;
    border-right: 1px solid;
    white-space: nowrap;
    overflow: hidden;
    animation: blinkCursor 0.7s steps(40) infinite normal;
}

@keyframes blinkCursor {
    0% {
        border-color: transparent;
    }
    50% {
        border-color: black;
    }
    100% {
        border-color: transparent;
    }
}

#responsemsg {
    color: #00ff00;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    font-family: Arial, sans-serif;
}



/* Chatbot Styles */
#chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  z-index: 1000;
}

#chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  display: none;
  border: 1px solid #ccc;
  z-index: 999;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#chatbot-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 600px) {
  #chatbot-container {
    width: 90%;
    height: 70%;
    right: 5%;
    bottom: 100px;
  }
}
