
/* -------------body ----------------- */
body {
    margin: 0 auto;
    background-color: var(--background-hero-color);
    justify-content: center;
    font-family: "roboto" !important;
    height: auto;

}

main>section:not(#hero):not(#why-us-section){
    max-width: 1440px;
    /* margin: 0 auto; */
    flex-direction: row;
    justify-content: space-between;

}


h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

p {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    font-size: 18px;
}

/* ----------------Hero section--------------------- */
#hero {
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: 70px auto 0 auto;
    padding: 40px;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    height: 65vh;
    padding-left: 10%;
    border-radius: 50px;
    background: url("../imgs/innovation-card.jpg") center/cover;
}

.hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    gap: 20px;
    color: var(--hero-logo-color);
}

.hero-content h1 {
    margin: 0;
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
}

.hero-content span {
    color: var(--call-to-action);
}


.btn-container {
    display: flex;
    justify-content: flex-end;
    width: auto;
}

.btn-container a {
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    background-color: var(--call-to-action);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-container a:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

/* ----------services-cards-section------------------- */
#services-section {
    padding: 60px 0 40px 0;
}

#services-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-link-text);
    margin: 0 0 10px 0;
}

.services-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

#services-section span {
    display: block;
    width: 240px;
    height: 4px;
    background-color: var(--call-to-action);
    border-radius: 10px;
}

.services-cards-section {
    position: relative;
    display: flex;
    flex-direction: row;
    padding: 10px;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 10%;
    scrollbar-width: none;
    font-family: "Roboto Light";
}
.service-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(56, 130, 246, 0.2);
}
.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.service-card div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--secondary-link-text);
}

.colored-div {
    background: rgba(56, 130, 246, 0.08);
    border-radius: 12px;
    padding: 10px;
}

.service-card h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--hero-logo-color);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
    display: block;
    text-align: center;
}

/* ----------------projects-section-------------------------- */
#projects-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 20px 0 40px 0;
    gap: 24px;
    font-family: "Roboto", sans-serif;
    background-color: var(--background-hero-color);
    color: var(--secondary-link-text);
    margin-bottom: 30px ;
}


.projects-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-link-text);
    padding-bottom: 10px;
}
.projects-header h1 { margin: 0; padding: 0; }

.projects-header span {
    display: block;
    width: 240px;
    height: 4px;
    background-color: var(--call-to-action);
    border-radius: 10px;
}

.projects-grid {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 25px;
    gap: 30px;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.projects-grid:hover {
    border-color: rgba(56, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 40px rgba(56, 130, 246, 0.15);
}

.projects-grid:nth-child(even) { flex-direction: row-reverse; }


.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 20px;
    text-align: left;
}

.project-content h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--hero-logo-color);
    line-height: 1.2;
}

.project-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
}

.project-image {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ------------refactor done ------------------ */

/* --------------------Wwwwwwhy to choose our company -------------------- */
#Why-us-section {
    width: 97.4%;
    padding: 60px 5%;
    display: flex;
    flex-direction: row;
    gap: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 30px ! important;
    flex-wrap: wrap;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    align-items: center;
    box-sizing: border-box;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
}

.why-grid {
    flex: 1; 
    display: flex;
    flex-direction: column; 
    gap: 20px;
}

.why-grid div {
    display: flex;
    align-items: center;
    gap: 15px; 
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: var(--secondary-link-text);
}

.why-grid span {
    color: var(--call-to-action);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.content {
    flex: 1; 
    color: var(--secondary-link-text);
    padding-left: 20px;
}

/* ------------------Q------------------------- */
#faq-section {
  max-width: 800px !important;
  margin: 30px auto;
  padding: 20px;
  color: var(--secondary-link-text);
}

.faq-item {
  border-bottom: 3px solid var(--secondary-link-text);
  border-radius: 10px;
  padding: 20px 0;
  cursor: pointer;
}

.faq-item summary {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  list-style: none; 
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item summary span {
  transition: 0.3s;
}

.faq-item p {
  padding-top: 15px;
  color: var(--call-to-action);
  line-height: 1.6;
}

/* --------------------responsive---------------------- */
@media (max-width: 768px) {

    header {
        height: auto;
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        
    }

    .logo {
        font-size: 1.1rem;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        padding: 0;
    }

    nav a {
        font-size: 0.9rem;
    }

    #hero {
        padding: 20px;
        width: 100%;
        margin-top: 100px;
        box-sizing: border-box;
    }

    .hero-image {
        height: 50vh;
        padding-left: 5%;
        border-radius: 30px;
    }

    .hero-image::before {
        border-radius: 30px;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .btn-container {
        width: 100%;
        justify-content: flex-start;
    }

    .projects-grid {
        flex-direction: column !important;
        text-align: center;
    }

    .projects-grid:nth-child(even) {
        flex-direction: column !important;
    }
     #Why-us-section {
        flex-direction: column;
        text-align: center;
    }

    .why-grid, .content {
        width: 100%;

    }
    .why-grid p{
        font-size: 0.80rem;
    }

 

    #faq-section {
        width: 90%;
        padding: 10px;
    }
}

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .btn-container a {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    #services-section h1,
    .projects-header h1 {
        font-size: 2rem;
    }

    .service-card {
        flex: 0 0 260px;
    }

    .project-content h1 {
        font-size: 1.5rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}
