 /* CSS styles */
 :root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --theme-color: #6f6a6a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}

header {
    background-color: var(--secondary-color);
    padding: 0.5rem 0 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(44, 62, 80, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo h2 {
    color: #fff;
    font-size: 1.8rem;
}

.logo a{
    text-decoration: none;
}

#menulist {
    display: flex;
    list-style-type: none;
}

#menulist li {
    margin-left: 2rem;
}

#menulist a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

#menulist a:hover::after{
   content: "";
   display: block;
   width: 90%;
   height: 3px;
   background-color: #d0e8f3;
   margin: 0px auto;
}

#menulist a:hover {
    color: #d0e8f3;
}

.menu-icon {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.home {
    width: 98%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #dfe4dc 0%, #759466 100%);
}

.safal {
    flex: 1;
    padding-right: 2rem;
}

.name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 3s ease;
}

.frontend {
    color: #6f6a6a;
}

.p-1 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: forwards;
}

.talk-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 6s ease 1s;
    animation-fill-mode: forwards;
    border-radius: 8px;
}

.talk-button:hover {
    background-color: #2980b9;
}

.image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease;
}

.img-2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-2:hover {
    transform: scale(1.3) rotate(5deg);
}

/* Responsive Layout for Smaller Screens */
@media screen and (max-width: 768px) {
   .home {
       flex-direction: column;
       text-align: center;
       padding: 2rem 1rem;
   }

   .safal {
       padding-right: 0;
   }

   .name {
       font-size: 2rem; /* Smaller font size for mobile */
       margin-bottom: 1rem;
   }

   .p-1 {
       font-size: 1rem;
       margin-bottom: 1.5rem;
   }

   .talk-button {
       padding: 0.8rem 1.2rem;
       font-size: 0.9rem;
   }

   .image {
       margin-top: 2rem; /* Add space between text and image */
       order: -1;
   }

   .photo {
       width: 200px; /* Smaller image for mobile */
       height: 200px;
   }
}

@media screen and (max-width: 480px) {
   .name {
       font-size: 1.8rem;
   }

   .p-1 {
       font-size: 0.9rem;
   }

   .photo {
       width: 180px;
       height: 180px;
   }
}


/* About Section */
.about-section {
    padding: 50px 20px;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: navy;
    margin: 8px auto 20px;
}

.about-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    gap: 30px;
}

.about-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.about-content h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-btn {
    background-color: navy;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease;
}

.button-about {
    text-align: center;
}

.contact-btn:hover {
    background-color: darkblue;
}

/* Image Styling */
.about-image {
    flex: 1;
    max-width: 350px;
    text-align: center;
    margin: 0px auto;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.clients {
   display: flex;
   gap: 2rem;
   flex-wrap: wrap;
   justify-content: center;
   color: #fff;
 }
 
 .happy, .project {
   background: linear-gradient(145deg, #2c2c54, #40407a);
   padding: 2rem;
   border-radius: 15px;
   text-align: center;
   width: 200px;
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.);
 }

/*service*/
.service {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 50px 0;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-box {
    background: #e2e0e0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-15px);
}

.service-box img {
    width: 80px;
    border-radius: 30%;
    margin-bottom: 15px;
}

.service-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 14px;
    color: #201c1c;
}

/*BLOg*/
/* Section Styling */
.blog {
   padding: 50px 20px;
}


.blogs{
    margin: 2rem auto;
}


.page{
   margin: 3rem 0 3rem 0;
}

.service-card a{
    text-decoration: none;
    color: #000;
}

/* Services Container */
.services-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 20px;
   justify-content: center;
   max-width: 90%;
   margin: 0 auto;
}

/* Individual Service Card */
.service-card {
   /* background: #fff;
   border-radius: 10px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease-in-out;
    */
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 360px;
    text-align: left;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s ease-in-out forwards;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .blog-post {
        width: 45%;
        /* Adjust width for tablets */
    }
}

@media (max-width: 768px) {
    .blog {
        font-size: 2.2rem;
    }

    .blog-post {
        width: 80%;
        /* Adjust width for smaller screens */
    }
}

@media (max-width: 480px) {
    .blog {
        font-size: 2rem;
    }

    .blog-container {
        flex-direction: column;
        align-items: center;
    }

    .blog-post {
        width: 100%;
        max-width: 90%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.service-card:hover {
   transform: translateY(-15px);
   background-color: #e0e0e0;
}

.service-card img {
   width: 100%;
   max-height: 150px;
   background-color: #00a5df;
   border-radius: 10px;
}

.service-card h3 {
   font-size: 18px;
   margin: 15px 9px 10px 9px;
}

.service-card p {
   font-size: 14px;
   margin: 0px 9px;
   color: #666;
}

.service-card button{
   margin: 15px 9px;
}

/* Responsive Design */
@media (max-width: 768px) {
   .services-container {
       grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   }
   .blog-page h1{
       margin-top: 1.5rem;
   }
}

@media (max-width: 480px) {
   .main-heading {
       font-size: 24px;
   }
}



/*Testomonial*/
.test {
    background-color: var(--bg-color);
    padding: 4rem 2rem;
}

.testmonial {
    text-align: center;
    margin-bottom: 3rem;
}

.client {
    color: var(--secondary-color);
}

.says {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.what {
    background-color: #e2e0e0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 2rem);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.what:hover {
    /* transform: translateY(-8px); */
    color: #3291d1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2),
        -10px -10px 25px rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(5deg);
}

.message {
    margin-bottom: 1.5rem;
}

.people {
    display: flex;
    align-items: center;
}

.person {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .services {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        max-width: 100%;
    }

    .about-content h3 {
        font-size: 20px;
    }

    .about-content p {
        font-size: 15px;
    }

    .contact-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .about-image {
        max-width: 250px;
    }
}

/*header responsive css*/
@media screen and (max-width: 768px) {
   #menulist {
       display: none;
       flex-direction: column;
       position: absolute;
       top: 60px;
       right: 0;
       width: 100%;
       background-color: var(--secondary-color);
       text-align: center;
       padding: 0.5rem 0;
   }

   #menulist li {
       margin: 0.1rem 0;
   }

   .menu-icon {
       display: block;
   }

   #menulist.active {
       display: flex;
   }

   #menulist a:hover::after{
       width: 10%;
   }
}


/*Responsive CSS*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        background: #c4bdbd;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 0;
        display: none;
    }

    nav ul li {
        display: block;
        padding: 15px;
    }

    /* Show menu when active */
    nav ul.active {
        display: flex;
    }
    .FooterContainer{
       display: inline;
    }
    .contact{
       width: 90%;
    }
    .about-image{
       text-align: center;
    }
}

/* for testimonial*/
/* Responsive Testimonial Section */
@media (max-width: 1024px) {
    .says {
       gap: 10px;
        justify-content: center;
    }

    .what {
        width: calc(50% - 2rem);
        /* Two testimonials per row */
    }
}

@media (max-width: 768px) {
    .what {
        width: 100%;
        /* Full width on smaller screens */
        margin-bottom: 1.5rem;
    }

    .test {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .test {
        padding: 2rem 1rem;
    }

    .person {
        width: 50px;
        height: 50px;
    }

    .message {
        font-size: 14px;
    }
}

/*For client-review*/
/* Responsive Client Section */
.client {
   display: flex;
   justify-content: center;
   gap: 1rem;
   flex-wrap: wrap;
}

.client > div {
   min-width: 280px; /* Ensures boxes don’t get too small */
   max-width: 400px; /* Limits max width for better appearance */
   border-radius: 10px;
   transition: transform 0.3s ease-in-out;
}

.client > div:hover {
   transform: scale(1.05);
}

@media (max-width: 768px) {
   .client {
       flex-direction: column;
       align-items: center;
   }
   
   .client > div {
       width: 90%; /* Takes up more space on smaller screens */
   }
}

@media (max-width: 480px) {
   .client > div {
       width: 100%;
       padding: 3rem 1.5rem; /* Adjust padding for better spacing */
   }
   
   .client i {
       font-size: 1.5rem; /* Reduce icon size for smaller screens */
   }

   .client h2 {
       font-size: 1.8rem; /* Adjust heading size */
   }

   .client p {
       font-size: 1rem; /* Improve readability */
   }
}


/* General Footer Styling */
.Footer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/back.jpg');
   color: #fff;
   padding: 30px 20px;
}

.FooterContainer {
   display: flex;
   flex-wrap: wrap; /* Ensures responsiveness */
   justify-content: space-between;
   align-items: center;
   max-width: 1100px;
   margin: 0 auto;
}

/* Contact Info Styling */
.contact {
   flex: 1;
   min-width: 250px; /* Prevents breaking on small screens */
   padding: 20px;
}

.contact-info h3 {
   font-size: 20px;
   margin-bottom: 15px;
}

.contact-info p {
   font-size: 14px;
   margin: 8px 0;
}

.contact-info i {
   margin-right: 8px;
   color: #00a5df;
}

/* Social Media Icons */
.socialicons {
   flex: 1;
   min-width: 250px;
   display: flex;
   justify-content: center;
   gap: 15px;
   padding: 20px;
}

.socialicons a {
   color: white;
   font-size: 22px;
   transition: 0.3s;
}

.socialicons a:hover {
   color: #00a5df;
}

/* Footer Bottom Section */
.FooterBottom {
   border-top: 1px solid rgba(255, 255, 255, 0.2);
   margin-top: 20px;
   padding-top: 10px;
   font-size: 14px;
   text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
   .FooterContainer {
       flex-direction: column;
   }

   .contact, .socialicons {
       width: 100%;
   }
}

@media (max-width: 480px) {
   .contact-info p {
       font-size: 12px;
   }

   .socialicons a {
       font-size: 20px;
   }
}



/*Contact-CSS*/
.get-in-touch{
   background: linear-gradient(135deg, #dfe4dc 0%, #759466 100%);
   min-height: 100vh;
   margin: 0px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.contacts {
   background-color: var(--card-background);
   border-radius: 10px;
   box-shadow: 0 4px 6px rgba(3, 3, 3, 0.1);
   padding: 2rem;
   width: 100%;
   width: 100%;
   margin: 6rem auto;
   max-width: 400px;
   transition: transform 0.3s ease;
}

.contacts:hover {
   transform: translateY(-5px);
}

.cont {
   color: var(--text-color);
   text-align: center;
   margin-bottom: 1rem;
}

.p1 {
   color: #6b7280;
   text-align: center;
   margin-bottom: 2rem;
}

form {
   display: flex;
   flex-direction: column;
}

.form-group {
   margin-bottom: 1rem;
}

label {
   display: block;
   margin-bottom: 0.5rem;
   color: var(--text-color);
}

input,
textarea {
   width: 95%;
   padding: 0.75rem;
   border: 1px solid var(--input-border);
   border-radius: 4px;
   font-size: 1rem;
   transition: border-color 0.3s ease;
}

#message{
   resize: vertical;
}

input:focus,
textarea:focus {
   outline: none;
   border-color: var(--primary-color);
}

button {
   background-color: #3498db;
   color: white;
   border: none;
   padding: 0.75rem;
   border-radius: 4px;
   font-size: 1rem;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

button:hover {
   background-color: #367099;
}

button:disabled {
   background-color: #9ca3af;
   cursor: not-allowed;
}

.success-message,
.error-message {
   text-align: center;
   padding: 1rem;
   border-radius: 4px;
   margin-top: 1rem;
}

.success-message {
   background-color: #10b981;
   color: white;
}

.error-message {
   background-color: #ef4444;
   color: white;
}
