
.content1 {
    display: flex;
    margin-top: 5rem;
    justify-content: space-between;
    padding: 1rem 1rem;
}

.section1 {
    width: 48%;
}

.section2 {
    width: 48%;
}

.image1 {
    width: 100%;
    border-radius: 40px;
    height: 100%;
}

.image2 {
    width: 100%;
    border-radius: 40px;
    object-fit: cover;
}

.contain {
    width: 100%;
    height: 300px;
    border-radius: 20px;
}

.content2 {
    display: flex;
    padding: 3rem 1rem;
    justify-content: space-between;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.image3 {
    width: 40%;
}

.image4 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

.con2 {
    width: 57%;
    padding-left: 2rem;
}

.text1 {
    color: #AB2138;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.text2 {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444444;
    transition: color 0.3s ease;
}

.contain5 {
    margin-top: 5rem;
    text-align: center;
    padding: 0 1rem;
}

.partainer {
    display: flex;
    align-items: center;
    align-content: center;
    margin-bottom: 10px;
}

.project {
    font-size: 2.5rem;
    color: #AB2138;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.text5 {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

.prjectgrid1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.prjectgrid1 > div {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.prjectgrid1 > div:hover {
    transform: translateY(-5px);
}

.prjectgrid1 h3 {
    color: #AB2138;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.prjectgrid1 > div > p:first-of-type {
    color: #666;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.prjectgrid1 > div > p:nth-of-type(2) {
    color: #444;
    transition: color 0.3s ease;
}

.image6 {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.button3 {
    border: 2px solid #AB2138;
    background: none;
    color: #AB2138;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.button3:hover {
    background: #AB2138;
    color: white;
}

.contain3 {
    background: #f8f9fa;
    padding: 4rem 1rem;
    margin-top: 5rem;
    transition: background-color 0.3s ease;
}

.contain4 {
    max-width: 1200px;
    margin: 0 auto;
}

.content8 {
    display: flex;
    flex-direction: row;
}

.content4 {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.image7 {
    width: 80px;
    height: 80px;
    margin-right: 2rem;
}

.text3 {
    width: 100%;
    font-size: 2.5rem;
    color: #AB2138;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.text4 {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    transition: color 0.3s ease;
}

.content5 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.logo1 {
    width: 100%;
    height: 100px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo1:hover {
    filter: grayscale(0);
    opacity: 1;
}


.dark-mode .text1,
.dark-mode .project,
.dark-mode .text3,
.dark-mode .prjectgrid1 h3 {
    color: #e63946; 
}

.dark-mode .text2,
.dark-mode .text4,
.dark-mode .prjectgrid1 > div > p,
.dark-mode .prjectgrid1 > div > p:nth-of-type(2) {
    color: #e0e0e0;
}

.dark-mode .text5,
.dark-mode .prjectgrid1 > div > p:first-of-type {
    color: #b0b0b0;
}

.dark-mode .prjectgrid1 > div {
    background: #2d3748;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .prjectgrid1 > div:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dark-mode .button3 {
    border-color: #e63946;
    color: #e63946;
}

.dark-mode .button3:hover {
    background: #e63946;
    color: #1a202c;
}

.dark-mode .contain3 {
    background: #1a202c;
}

.dark-mode .content5 {
    border-top-color: #4a5568;
    border-bottom-color: #4a5568;
}

.dark-mode .logo1 {
    filter: brightness(0.8);
}

.dark-mode .logo1:hover {
    filter: brightness(1);
}


@media (max-width: 992px) {
    .content2 {
        flex-direction: column;
    }
    
    .image3, .con2 {
        width: 100%;
    }
    
    .con2 {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .prjectgrid1 {
        grid-template-columns: 1fr;
    }
    
    .content4 {
        flex-direction: column;
        text-align: center;
    }
    
    .image7 {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .content5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .text3 {
        font-size: 2rem;
    }
    
    .project {
        font-size: 2rem;
    }
    
    .text1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .content5 {
        grid-template-columns: 1fr;
    }
    
    .content8 {
        display: flex;
        flex-direction: column;
    }
    
    .text1 {
        font-size: 1.8rem;
    }
    
    .text3 {
        font-size: 1.8rem;
    }
    
    .project {
        font-size: 1.8rem;
    }
    
    .content2 {
        padding: 2rem 1rem;
    }
    
    .prjectgrid1 {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .prjectgrid1 > div {
        padding: 1.5rem;
    }
}


* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}