.services-first-part {
    text-align: justify;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.overlay {
    position: absolute;
    inset: 0;
    bottom: 10px;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.services-text {
    position: relative;
    z-index: 2;
    width: 80%;
    margin: 0 auto 40px auto;
    padding: 40px;
    color: var(--color-text);
    
    background: var(--color-text-muted);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: var(--shadow-strong);

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-first-line {
    display: flex;
    align-items: center;
    gap: 15px;
}

.line {
    height: 40px;
    width: 5px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.services-first-line h1 {
    font-size: 40px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text);
}

.services-text p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: white;
}

/* ===============================
   SECOND PART — MAIN CONTAINER
================================*/
#second-part {
    padding: 100px 0;
    background: var(--color-bg-soft);
}

.second-service {
    width: 90%;
    max-width: 1500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ===============================
   SECTION TITLE
================================*/
.service-text {
    text-align: center;
}

.service-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.service-text p {
    font-size: 20px;
    color: var(--color-text-muted);
}

/* ===============================
   CARD GRID
================================*/
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 40px;
}

/* ===============================
   CARD STYLE
================================*/
.service-card1 {
    background: var(--color-bg-alt);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.service-card1:hover {
    transform: translateY(-12px);
    box-shadow: 0 22px 40px rgba(0,0,0,0.18);
}

/* ===============================
   IMAGE
================================*/
.image-service-section {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.image-service-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card1:hover img {
    transform: scale(1.08);
}


.line-image {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 40%;
    background: var(--color-primary);
    border-radius: 5px;
    opacity: 0.9;
}

/* ===============================
   TEXT CONTENT
================================*/
.service-card-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card-text h1 {
    font-size: 26px;
    margin: 0;
    color: var(--color-text);
}

.service-card-text p {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===============================
   VIEW MORE BUTTON
================================*/
.view-more {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.view-more a {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-primary);
    transition: color .3s;
}

.view-more div {
    font-size: 22px;
    color: var(--color-primary);
    transition: transform .3s, color .3s;
}


.service-card1:hover .view-more a,
.service-card1:hover .view-more div {
    color: var(--color-primary);
}

.service-card1:hover .view-more div {
    transform: translateX(6px);
}

/* =============================
   THIRD PART — Theme Matching 
============================= */

#third-part {
    width: 100%;
    padding: 120px 0;
    background: var(--color-bg); 
    display: flex;
    justify-content: center;
    align-items: center;
}


.third-part-header {
    width: 90%;
    max-width: 1100px;

    background: var(--color-bg-alt); 
    padding: 60px 45px;
    border-radius: 20px;

    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;

    box-shadow: var(--shadow-strong); 
    border: 1px solid rgba(255,255,255,0.06);

    
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: var(--animation-smooth);
}


.third-part-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text); 
    margin: 0;
    letter-spacing: 0.5px;
}


.third-part-header h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 10px;
}


.third-part-header p {
    font-size: 20px;
    line-height: 1.75;
    max-width: 850px;
    text-align:justify ;
    margin: auto;
    color: var(--color-text-muted); 
}




section#fourth-part,
.fourth-container {
    display: flex;
    flex-wrap: wrap;
     background: var(--color-bg-soft);
    color: var(--color-text);
}

.mobile-theme-toggle {
  display: flex;
  justify-content: center;
  padding: 15px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.2);
}


.fourth-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 5%;
}


.cad-text-container {
    flex: 1;
}

.cadd-text-one h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
}

.cadd-text-one p {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}


.cad-text-two {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    align-items: flex-start;
    text-align: start;
    justify-content: flex-start;
    color: var(--color-text);
}

.cad-text-two > * {
    flex: 0 0 calc(50% - 30px);
}


.circle {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* ================================
   2D IMAGE — NO MOVEMENT
   ================================ */
.cadd-image img {
    width: 420px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);

    
    transform-style: flat;
    transform: translateY(0);
    animation: none;

    transition: transform 0.4s ease;
}


.cadd-image img:hover {
    transform: scale(1.03);
    box-shadow: var(--glow-primary);
}


@keyframes floating {}
@keyframes subtle-tilt {}

/* ===================================
   QA SECTION — DIAGONAL TRIANGLE SPLIT
   =================================== */

.qa-section {
    position: relative;
    padding: 130px 10%;
    overflow: hidden;
    z-index: 1;
    color: var(--color-text);

    
    animation: none;
}

/* ===========================
   TRIANGLE #1 – TOP LEFT
   =========================== */
.qa-section::before {
    content: "";
    position: absolute;
    width: 101%;
    height: 101%;
    top: 0;
    left: 0;
    z-index: -1;

    background: #000000; 
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transition: background 0.6s ease;
}

/* ===========================
   TRIANGLE #2 – BOTTOM RIGHT
   =========================== */
.qa-section::after {
    content: "";
    position: absolute;
    width: 101%;
    height: 101%;
    bottom: 0;
    right: 0;
    z-index: -1;

    background: #1c1c1c; 
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
    transition: background 0.6s ease;
}

/* ===========================
   LIGHT MODE COLORS
   =========================== */
.light-theme .qa-section::before {
    background: var(--color-bg-2); 
}

.light-theme .qa-section::after {
    background: #ffffff; 
}

/* ===================================
   CENTER TEXT BLOCK (ADDED)
   =================================== */
.qa-wrapper {
    display: flex;
    justify-content: center;   
    align-items: center;       
    text-align: center;        
    min-height: 400px;         
}

.qa-header {
    max-width: 800px;
}

/* ===========================
   TEXT STYLING
   =========================== */
.qa-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.qa-header p {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 100%;
    opacity: 0.9;
}


/* ===========================
   📌 RESPONSIVE DESIGN
=========================== */
@media (max-width: 1035px){
      .cad-text-two > * {
        flex: 0 0 100%;
    }
}


@media (max-width: 768px) {

    .services-first-part {
        align-items: center;
        text-align: center;
    }
.services-text {
    position: absolute;  
    bottom: 0;           
    width: 92%;
    margin-bottom: 30px;
    padding: 25px;
}


    .services-first-line {
        justify-content: center;
    }

    .line {
        height: 30px;
        width: 4px;
    }

    .services-first-line h1 {
        font-size: 30px;
    }

    .services-text p {
        font-size: 16px;
    }

    
    .service-cards {
        gap: 30px;
        padding: 0 10px;
    }

    .service-card-text h1 {
        font-size: 22px;
    }

    .service-card-text p {
        font-size: 15px;
    }

    
    .third-part-header {
        padding: 45px 25px;
    }

    .third-part-header h1 {
        font-size: 32px;
    }

    
    .fourth-container {
        flex-direction: column;
        text-align: center;
    }

    .cadd-image img {
        width: 90%;
        max-width: 370px;
    }
 
    
    
    .qa-section {
        padding: 100px 8%;
    }

    .qa-header h2 {
        font-size: 2.1rem;
    }

    .qa-header p {
        font-size: 1rem;
    }
}



@media (max-width: 480px) {

    .services-text {
        padding: 20px;
        width: 95%;
    }

    .services-first-line h1 {
        font-size: 26px;
    }

    .services-text p {
        font-size: 14px;
    }

    .service-card-text h1 {
        font-size: 20px;
    }

    .service-card-text p {
        font-size: 14px;
    }

    .third-part-header h1 {
        font-size: 26px;
    }

    .third-part-header p {
        font-size: 16px;
    }

    .cadd-image img {
        max-width: 300px;
    }

    .qa-header h2 {
        font-size: 1.8rem;
    }

    .qa-header p {
        font-size: 0.95rem;
    }
}
