/* General Reset */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background-color: #151B54;
    color: #333;
}

:root {
    --primary-color: #151B54;
    /* New Dominant Color */
    --secondary-color: #1e90ff;
    --accent-color: #ffcc00;
    --neutral-white: #ffffff;
    --light-gray: #f5f5f5;
    --text-color: #333;
    --highlight-color: #4a90e2;
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 10vh;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 0;
}

.hero-slideshow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s cubic-bezier(.7, 0, .3, 1), transform 1.1s cubic-bezier(.7, 0, .3, 1);
}

.slide.active img {
    opacity: 1;
    transform: scale(1);
}

/* Button Styling (shared for both desktop and mobile) */
.slide .read-more-btn {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    display: none;
}

.slide .read-more-btn:hover {
    padding: 12px 23px;

}

.slide.active .read-more-btn {
    display: inline-block;
    opacity: 1;
}
.slide.fade-out img {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s cubic-bezier(.7, 0, .3, 1), transform 0.8s cubic-bezier(.7, 0, .3, 1);
    z-index: 1;
}

/* Mobile button adjustments */
@media (max-width: 768px) {
    .slide .read-more-btn {
        padding: 6px 14px;
        font-size: 13px;
        bottom: 10%;
    }
}


/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 40vh;
        /* Adjusted height for mobile */
    }

    .hero-slideshow {
        display: none;
    }

    .hero-slideshow-mobile {
        display: block;
    }

    .hero-slideshow-mobile .slide img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

/* Button Styling */
/* .last-slide .read-more-btn {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 177;
}

.last-slide:hover .read-more-btn {
    display: inline-block;
} */

@media (max-width: 480px) {
    .hero {
        height: auto;
    }

    /* .last-slide .read-more-btn {
        padding: 6px 14px;
        font-size: 13px;
        bottom: 15px;
    } */
}

.hero-slideshow-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow-mobile .slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow-mobile .slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s cubic-bezier(.7, 0, .3, 1), transform 1.1s cubic-bezier(.7, 0, .3, 1);
}

.hero-slideshow-mobile .slide.active img {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .hero-slideshow-mobile {
        display: block;
    }

    .hero-slideshow {
        display: none;
    }
}



.about-preview,
.services,
.portfolio,
.testimonials,
.why-choose-us,
.blog,
.contact {
    padding: 2rem;
    text-align: center;
}

.why-choose-us {
    padding: 2rem;
    background-color: var(--primary-color);
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--neutral-white);
}

.usp-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.usp-icon {
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 1rem;
    flex: 1 1 21%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    max-width: 300px;

}

.usp-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;

}

.usp-icon h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.usp-icon p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0;
    text-align: justify;
    /* Justify text alignment */
}

.usp-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-us {
    background: var(--primary-color);
    padding: 60px 20px;
    text-align: center;
}

.about-us-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    /* changed from center */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-us-text {
    flex: 1;
    max-width: 820px;
    text-align: left;
    padding: 20px;
}

.about-us-text h2 {
    font-size: 2rem;
    color: var(--neutral-white);
    margin-bottom: 20px;
}

.about-us-text p {
    font-size: 1.1rem;
    color: var(--neutral-white);
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
    /* Justify text alignment */
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    color: var(--neutral-white);
}

.about-highlights li {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: normal;
    gap: 10px;
    text-align: left;
}

.about-highlights li::before {
    content: '✓ㅤ';
    color: var(--highlight-color);
    font-weight: bold;
}

.about-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--neutral-white);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.886);
    border: 1px solid rgb(255, 255, 255);
}

.about-cta:hover {

    border: 1px solid var(--primary-color);

    background: var(--light-gray);
    color: var(--text-color);
}

.about-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;

}

.about-highlights li strong {
    display: inline-block;
    min-width: 180px;
    /* Adjust based on your longest title */
}

.about-us-image {
    flex: 2;
    max-width: 420px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-us-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    scale: calc(1.2);
    transition: scale 0.3s ease-in;
}

.about-us-image img:hover {
    transform: scale(1.05);
    scale: calc(1.7);
}

@media (max-width: 768px) {
    .about-us-wrapper {
        flex-direction: column;
    }

    .about-us-text {
        text-align: center;
        padding: 0;
    }


}

@media (max-width: 768px) {
    .about-highlights li {

        gap: 2px;

    }

    .about-highlights li strong {

        min-width: 100px;
        /* Adjust based on your longest title */
    }


}



.services {
    padding: 40px;
    background-color: var(--primary-color);
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease;
    color: var(--neutral-white);
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 1rem;
}

.service-card {
    position: relative;
    width: calc(33% - 20px);
    /* Slightly smaller width for better compact feel */
    margin: 10px;
    padding: 0.7rem;
    /* Reduced padding for compactness */
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Use a cinematic ratio for more compact feel */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.service-card h3 {
    font-size: 1.2rem;
    /* Slightly smaller font size */
    margin-top: 0.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Adjust paragraph for better compact view */
.service-card p {
    font-size: 0.9rem;
    /* Smaller text size for readability */
    color: #666;
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    text-align: justify;
    /* Justify text alignment */
}

.service-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--secondary-color);
    color: var(--neutral-white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s, transform 0.3s ease;
}

.service-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px #151B54;
}

.service-card:hover h3 {
    color: var(--primary-color);

}

.service-card:hover p {
    color: #444;
}

/* Scroll Animation Styles */
.scroll-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Updated Responsive Layout for Mobile */
@media (max-width: 768px) {
    .service-card {
        width: calc(50% - 20px);
        /* Smaller width for mobile screens */
    }
}

@media (max-width: 480px) {
    .service-card {
        width: 100%;
        /* Full width on smaller devices */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}




.portfolio {
    text-align: center;
    background-color: var(--primary-color);
}

.portfolio h1 {
    color: var(--neutral-white);
    font-size: 2rem;
}

.project-category {
    margin-bottom: 2rem;
    color: var(--neutral-white);
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 1rem;
}

.portfolio-item {
    position: relative;
    flex: 1 1 25%;
    margin: 1rem;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.portfolio-item img {
    /* margin-top: 10px; */
    width: 100%;
    height: auto;
    transition: transform 0.3s;
    background-color: #fff;
}

.portfolio-content {
    padding: 1rem;
    background-color: var(--neutral-white);
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.portfolio-content h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.portfolio-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 1rem;
    text-align: justify;
    /* Justify text alignment */
}

.portfolio-item:hover {
    transform: scale(1.01);
    border-radius: 0;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); */
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio .btn {
    background-color: var(--neutral-white);
    color: var(--text-color);
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.portfolio .btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgb(255, 255, 255);

}

.portfolio-image .read-more {
    position: absolute;
    /* top: 0%;
     */
    bottom: 0%;
    ;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: none;
    transition: all 0.3s ease;
}

.portfolio-item:hover .read-more {
    display: block;
    opacity: 1;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-item {
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1rem;
    background-color: var(--neutral-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.portfolio-content .motto {
    font-size: 0.95rem;
    font-weight: 700;
    color: #444;
    font-style: italic;
}

.portfolio-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 1rem;
    text-align: justify;
    line-height: 1.5;
}

/* Read More button (clickable redirect) */
.read-more {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.read-more:hover {
    /* display:block; */
    background-color: #0056b3;
    /* or your preferred hover color */
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .portfolio-item {
        width: 90%;
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.portfolio-item:hover .read-more {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .portfolio-item {
        flex: 1 1 100%;
    }
}



.usp-icons {
    display: flex;
    justify-content: space-around;
}

.usp-icon {
    width: 20%;
}

section.ecosystem {
    /* padding: 80px 0; */
    background: var(--primary-color);
    font-family: 'Segoe UI', sans-serif;
}

/* Container */
.ecosystem .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

/* Animation */
@keyframes fadeInUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Heading */
.ecosystem h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
}

.container h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #000000;
    text-align: center;
    font-weight: 700;
}

/* Paragraphs */
.ecosystem p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

/* List Styling */
.ecosystem ul {
    padding-left: 1.5rem;
    margin-bottom: 20px;
}

.ecosystem ul li {
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.ecosystem ul li::before {
    content: "✔";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .ecosystem .container {
        padding: 1.5rem;
    }

    .ecosystem h2 {
        font-size: 2rem;
    }

    .ecosystem p,
    .ecosystem ul li {
        font-size: 1rem;
    }
}

.contact p,
.social-media a {
    margin: 0.5rem 0;
    text-align: justify;
    /* Justify text alignment */
}

.cta {
    background-color: var(--primary-color);
    padding: 4rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.cta-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    /* Justify text alignment */
}

.portfolio a {
    text-decoration: none;
}

.cta-content a {

    text-decoration: none;
    ;
}

.cta-btn {
    padding: 1rem 2.5rem;
    background-color: #ffffff;
    color: #151B54;

    font-size: 1.2rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    border: 1px solid rgb(0, 0, 0);
}

.cta-btn:hover {
    background-color: #151B54;
    transform: translateY(-3px);
    color: white !important;
    border: 1px solid rgb(255, 255, 255);
}

.cta-btn:focus {
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta {
        padding: 3rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-btn {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cta {
        padding: 2.5rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 10vh;
        height: 60vh;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 5px 15px;
        font-size: 1rem;
    }

    .about-us-wrapper {
        flex-direction: column;
    }

    .about-us-text {
        text-align: center;
        padding: 0;
    }

    .service-card {
        width: calc(50% - 20px);
    }

    .portfolio-item {
        flex: 1 1 100%;
    }

    .contact {
        padding: 1rem;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact p,
    .contact .operating-hours h3,
    .contact .real-estate-info h3 {
        font-size: 1rem;
    }

    .contact .btn {
        width: 100%;
        padding: 0.75rem;
        margin-top: 1rem;
    }

    .contact .social-media {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact .social-media a {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .cta-button {
        margin-top: 1rem;
    }

    .service-card {
        width: 100%;
    }

    .portfolio-item {
        width: 100%;
    }

    .testimonial-card {
        margin: 1rem 0;
    }

    .usp-icons {
        flex-direction: column;
    }

    .usp-icon {
        width: 90%;
        margin-bottom: 1rem;
    }

    .blog-cards {
        flex-direction: column;
        align-items: center;
    }

    .blog-card {
        width: 90%;
        margin-bottom: 1rem;
    }

    .social-media a {
        display: inline-block;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 10vh;
        height: 50vh;
        border-radius: 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btnn {
        padding: 3px 15px;
        font-size: 0.9rem;
    }

    .service-card {
        width: 100%;
    }

    .portfolio-item {
        width: 100%;
    }

    .testimonial-card {
        margin: 1rem 0;
    }

    .usp-icons {
        flex-direction: column;
    }

    .usp-icon {
        width: 90%;
        margin-bottom: 1rem;
    }

    .blog-cards {
        flex-direction: column;
        align-items: center;
    }

    .blog-card {
        width: 90%;
        margin-bottom: 1rem;
    }

    .social-media a {
        display: inline-block;
        margin-right: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btnn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .btnn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}