
*{
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    background-color: rgb(0, 0, 44);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}
nav img {
    height: 50px;
    
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
    
}

nav ul li ul {
  
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(0, 0, 65);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    min-width: 200px;
}
nav ul li a::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 5px;
    left: 0;
    bottom: -6px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
  }
  nav ul li a:hover::after{
    transform: scaleX(1);
    transform-origin: left;
  }
  
  nav ul lo000ui a:hover {
      background-color: #555;
  } 
nav ul li:hover>ul {
    display: flex;
}

.cta-button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}




.hero {
    background-image:linear-gradient(rgba(0, 0, 0, 0.459), rgba(0, 0, 0, 0.356), rgba(0, 0, 0, 0.452)), url(web.img/istockphoto-2054515915-612x612.jpg);
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
    padding: 6rem 2rem;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    animation-name: change;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-direction: reverse;
}
@keyframes change{
    20%{
        background-image:linear-gradient(rgba(0, 0, 0, 0.459), rgba(0, 0, 0, 0.356), rgba(0, 0, 0, 0.452)), url(web.img/istockphoto-971011444-612x612.jpg);
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
    }
    40%{
        background-image:linear-gradient(rgba(0, 0, 0, 0.459), rgba(0, 0, 0, 0.356), rgba(0, 0, 0, 0.452)), url(web.img/istockphoto-1499120842-612x612.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    60%{
        background-image:linear-gradient(rgba(0, 0, 0, 0.459), rgba(0, 0, 0, 0.356), rgba(0, 0, 0, 0.452)), url(web.img/istockphoto-1498653184-612x612.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    80%{
        background-image:linear-gradient(rgba(0, 0, 0, 0.459), rgba(0, 0, 0, 0.356), rgba(0, 0, 0, 0.452)), url(web.img/istockphoto-1297151834-612x612.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    100%{
        background-image:linear-gradient(rgba(0, 0, 0, 0.459), rgba(0, 0, 0, 0.356), rgba(0, 0, 0, 0.452)), url(web.img/istockphoto-1140010001-612x612.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}
.hero-content {
    flex: 1;
    margin-right: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2rem;
}


.services {
    padding: 4rem 2rem;
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);

}

.service i {
    font-size: 2rem;
    color: orangered;
    margin-bottom: 1rem;
}
.service a{
    color: orangered;
    text-decoration: none;
    font-size: 17px;
}
.service h3 {
    color: #333;
    margin-bottom: 1rem;
}

.service p {
    color: #555;
}

.portfolio-preview {
    width: 90%;
    background: linear-gradient(to top, black, rgb(211, 78, 1));
    padding: 3rem 2rem;
    margin-left: 50px;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.project-topic {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.view-project-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.view-project-btn:hover {
    background-color: #0056b3;
}


.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 1rem;
}

.project-card:hover .card-overlay {
    opacity: 1;
}



.overlay-content h5 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.tech-stack {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.overlay-content .view-project-btn {
    background-color: #fff;
    color: #007bff;
}

.overlay-content .view-project-btn:hover {
    background-color: #eee;
}


@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}



.testimonials {
    width: 90%;
    background: linear-gradient(to top, black, rgb(255, 60, 0));
    padding: 4rem 2rem;
    margin-left: 50px;
    margin-top: 60px;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.testimonial-content {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1.5rem;
    object-fit: cover;
}

.client-details h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.client-details p {
    font-size: 1rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.star-rating {
    color: #ffc107;
   
    font-size: 1rem;
}


@media (min-width: 768px) {
    .testimonial-cards {
        grid-template-columns: repeat(3, 1fr); 
    }
}
.call-to-action {
margin-top: 20px;
    background: linear-gradient(to right, rgb(0, 98, 131), rgb(0, 0, 61) );
    padding: 90px 0;
    text-align: center;
}

.call-to-action h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color:white;
}

.call-to-action p {
    font-size: 1.1em;
    color: white;
    max-width: 700px;
    margin: 0 auto 30px;
}
.button{
    width: 180px;
    height: 55px;
    background-color: #007bff;
    border-radius: 30px;
}
.button a{
    color: white;
    font-size: 1.5em;
}
.button:hover{
    background-color: #0056b3;
    
}

footer {
    background-color: rgb(0, 0, 61);
    color: #fff;
    padding-top: 3rem;
    padding-bottom: 1rem;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}


.about-us img {
    height: 50px;
    margin-bottom: 1rem;
}

.about-us p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.contact-details {
    margin-bottom: 1rem;
}

.contact-details .detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.contact-details i {
    margin-right: 0.5rem;
    width: 1.2rem;
    text-align: center;
}

.social-links {
    display: flex;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}


.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #fff;
}


.newsletter p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #0056b3;
}

.newsletter-success {
    color: #4caf50;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}


.contact-form p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.ajax-contact-form input,
.ajax-contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

.ajax-contact-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ajax-contact-form button:hover {
    background-color: #0056b3;
}

.contact-success,
.contact-error {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.contact-success {
    color: #4caf50;
}

.contact-error {
    color: #f44336;
}


.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #444;
    margin-top: 2rem;
   
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #888;
}

.back-to-top {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #007bff;
}

.back-to-top i {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; 
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .about-us,
    .quick-links,
    .newsletter,
    .contact-form {
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column; 
    }

    .newsletter-form input,
    .newsletter-form button {
        margin-bottom: 0.5rem;
        border-radius: 5px;
    }
}
@media screen and(max-width:400px) {
    body{
        display:grid;
     grid-template-areas: 'header'
     'nav' 
     'section'
     'footer'
     ;
     
    }
    header{
        grid-area: header;
        width: 50%;
    }
    nav{
        grid-area: nav;
        width: 50%;
    }
    section{
        grid-area: section;
        width: 50%;
        display: flex;
        flex-direction: row;
    }
    
    
    
} 


 @media (max-width: 786px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 0.5em;
        flex-direction: column;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5em;
    }
 }
