/* HERO SECTION */
.heroSect::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -200px;
    width: 700px;
    height: 500px;
    background:
        radial-gradient(circle, rgba(215, 185, 105, 0.25), transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.heroSect {
    background-image: 
        /*url('../img/heroSectIndex.png'),      /* hero PNG on top */
        radial-gradient(circle at 20% 30%, rgba(215, 185, 105, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 95, 0.25), transparent 50%),
        linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(11, 31, 58, 0.8)), 
        url('../img/bg.jpg');                 /* your background image at the bottom */
    
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* applies cover to all images */
    
    color: var(--light-color);
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    height: 100vh;
    align-content: center;
}

.heroSect * {
    position: relative;
    z-index: 1;
}

.heroSect .subtitle {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: "Oswald", sans-serif;
}

.heroSect .text {
    max-width: 600px;
    margin: 40px auto;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Gelasio", serif;
}

.heroSect .btn {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 10px 20px;
    border: 2px solid var(--accent-color1);
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.heroSect .btn:hover {
    background-color: var(--accent-color1);
    color: var(--dark-color);
    border-color: var(--accent-color);
}

/* MOBILE */
@media screen and (max-width: 768px) {

    .heroSect {
        height: auto;
        /* avoid 100vh issues on mobile */
        padding: 100px 20px 60px;
    }

    /* soften & resize glow */
    .heroSect::before {
        top: -100px;
        right: -100px;
        width: 400px;
        height: 300px;
        filter: blur(60px);
    }

    .heroSect .subtitle {
        font-size: 28px;
        line-height: 1.2;
    }

    .heroSect .text {
        font-size: 14px;
        margin: 10px 20px 40px;
        padding: 0 10px;
    }

    .heroSect .btn {
        font-size: 16px;
        padding: 10px 18px;
        border-radius: 18px;
    }

    .heroSect img {
        width: 100%;
        height: auto;
    }
}

/* SERVICES SECTION */
.servicesSect {
    background: linear-gradient(180deg, #e6edf7, var(--accent-color));
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.servicesSect .title {
    width: 300px;
}

.serviceCardCont {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.serviceCard {
    position: relative;
    background-color: #ffffff;
    color: #0b1f3a;
    border-radius: 5px 50px;
    padding: 20px 20px 5px;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    justify-items: center;
    overflow: hidden;
    transition: 0.3s ease;
}

.serviceCard:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.serviceCard>div {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.serviceCard>div>div:first-child {
    width: 60px;
}

.serviceCard>div>div {
    background-color: var(--accent-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(215, 185, 105, 0.6);
    transition: transform 0.3s ease;
}

.serviceCard:hover>div>div {
    transform: translateY(-5px) scale(1.03);
}

.serviceCard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;

    background:
        /* shimmer - horizontal (top line only) */
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent) top left / 200% 10px no-repeat,

        /* shimmer - vertical (side line only) */
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent) top left / 10px 200% no-repeat,

        /* base gold lines (static) */
        linear-gradient(90deg, #d7b969, transparent) top left / 100% 10px no-repeat,
        linear-gradient(180deg, #d7b969, transparent) top left / 10px 100% no-repeat;

}

.serviceCard::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;

    background:
        linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.7), transparent) bottom right / 200% 10px no-repeat,
        linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.7), transparent) bottom right / 10px 200% no-repeat,

        linear-gradient(270deg, #d7b969, transparent) bottom right / 100% 10px no-repeat,
        linear-gradient(0deg, #d7b969, transparent) bottom right / 10px 100% no-repeat;
}

.serviceCard::before,
.serviceCard::after {
    filter: drop-shadow(0 0 4px rgba(215, 185, 105, 0.4));
    position: absolute;
    content: "";
    pointer-events: none;
    animation: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.serviceCard:hover::before {
    animation: shimmerX 5s linear 1, shimmerY 5s linear 1;
}

.serviceCard:hover::after {
    animation: shimmerXBR 5s linear 1, shimmerYBR 5s linear 1;
}

.serviceCard:hover::before,
.serviceCard:hover::after {
    opacity: 1;
    transform: scale(1.05);
    transition: 0.3s ease;
}

@keyframes shimmerX {
    0% {
        background-position: -200% 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 200% 0, 0 0, 0 0, 0 0;
    }
}

@keyframes shimmerY {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 0 -200%, 0 0, 0 0, 0 0;
    }
}

@keyframes shimmerXBR {
    0% {
        background-position: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    }

    100% {
        background-position: -100% 100%, 100% 100%, 100% 100%, 100% 100%;
    }
}

@keyframes shimmerYBR {
    0% {
        background-position: 100% 100%, 100% 200%, 100% 100%, 100% 100%;
    }

    100% {
        background-position: 100% 100%, 100% -100%, 100% 100%, 100% 100%;
    }
}

.serviceCard i {
    color: var(--light-color);
    font-size: 24px;
}

.serviceCard p {
    color: var(--primary-color);
}

.serviceTitle {
    font-weight: 600;
    font-size: 28px;
    margin: 0;
}

.serviceText {
    text-align: justify;
}

/* MOBILE */
@media screen and (max-width: 768px) {

    .servicesSect {
        flex-direction: column;
        padding: 60px 20px;
        gap: 30px;
        text-align: center;
    }

    .servicesSect .title {
        width: 100%;
    }

    .serviceCardCont {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .serviceCard {
        width: 90%;
        max-width: 400px;
        padding: 20px 15px 10px;
        border-radius: 10px 30px;
    }

    .serviceCard>div {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .serviceCard>div>div {
        width: 50px;
        height: 50px;
    }

    .serviceCard i {
        font-size: 20px;
    }

    .serviceTitle {
        font-size: 20px;
    }

    .serviceText {
        font-size: 14px;
        text-align: left;
    }

    /* reduce heavy shimmer effect for mobile */
    .serviceCard::before,
    .serviceCard::after {
        width: 40px;
        height: 40px;
        opacity: 0.4;
        animation: none !important;
    }

    .serviceCard:hover::before,
    .serviceCard:hover::after {
        animation: none;
        transform: none;
    }
}

/* PROJECT SECTION */
.projectsSect {
    background-color: #cfd9e6;
    padding: 100px 50px;
}

.projectsSect>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 50px 20px;
}

.projectCard {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: calc(100% / 6 - 40px);
    height: 350px;
    box-shadow: 0 12px 20px rgba(112, 89, 13, 0.2);
}

.projectCard:nth-child(odd) {
    transform: translateY(20px);
}

.projectCard:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(185, 146, 17, 0.4);
    border-color: var(--accent-color1);
}

.projectCard::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);

    transform: skewX(-20deg);
    transition: 0.6s;
}

.projectCard:hover::before {
    left: 120%;
}

.projectCard img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projectCard:hover img {
    transform: scale(1.05);
}

.projectCard .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;

    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.4),
            transparent);

    backdrop-filter: blur(4px);
    /* glass effect */
    color: var(--light-color);

    display: flex;
    align-items: flex-end;
    justify-content: center;

    border-top: 1px solid rgba(215, 185, 105, 0.4);
    /* gold line */
}

.projectCard .projectTitle {
    font-size: 16px;
    font-weight: 600;
    background: rgba(215, 185, 105, 0.9);
    color: #0b1f3a;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    text-align: center;
}

/* MOBILE */
@media screen and (max-width: 768px) {

    .projectsSect {
        padding: 60px 20px;
    }

    .projectsSect>div {
        justify-content: center;
        gap: 20px;
    }

    /* 2 columns on mobile */
    .projectCard {
        width: calc(50% - 10px);
        height: 220px;
        border-radius: 15px;
    }

    /* remove stagger (looks messy on mobile) */
    .projectCard:nth-child(odd) {
        transform: none;
    }

    .projectCard:hover {
        transform: translateY(-5px);
    }

    /* simplify shine effect */
    .projectCard::before {
        width: 40%;
        opacity: 0.5;
    }

    .projectCard img {
        object-fit: cover;
    }

    .projectCard .overlay {
        height: 50px;
        padding: 5px;
    }

    .projectCard .projectTitle {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* EXTRA SMALL (optional – cleaner 1 column) */
@media screen and (max-width: 480px) {
    .projectCard {
        width: 100%;
        height: 200px;
    }
}

/* WHY CHOOSE US SECTION */
.whyChooseUsSect {
    background: linear-gradient(135deg, #132a4a, #0b1f3a);
    color: var(--light-color);
    text-align: center;
    padding: 100px 50px;
    position: relative;
    overflow: hidden;
}

.whyChooseUsSect::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(215, 185, 105, 0.15);
    transform: rotate(45deg);
    border-radius: 20px;
    z-index: 0;
}

.whyChooseUsSect .title {
    margin-bottom: 20px;
}

.reasonList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.reasonList .reasonItem {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reasonList hr {
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), rgba(215, 185, 105, 0.6));
    border: none;
    margin: 20px 0;
    border-radius: 2px;
}

.reasonItem>.iCont {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: radial-gradient(circle, rgba(215, 185, 105, 0.2), transparent 70%);
    border: 2px solid rgba(215, 185, 105, 0.5);

    box-shadow: 0 0 20px rgba(215, 185, 105, 0.3);
    transition: 0.3s ease;
}

.reasonItem:hover .iCont {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(215, 185, 105, 0.6);
}

.reasonItem i {
    color: var(--accent-color);
    font-size: 48px;
}

.reasonTitle {
    font-size: 24px;
    font-weight: 600;
}

/* MOBILE */
@media screen and (max-width: 768px) {

    .whyChooseUsSect {
        padding: 60px 20px;
    }

    .whyChooseUsSect .title {
        margin-bottom: 20px;
    }

    /* reduce background shape */
    .whyChooseUsSect::before {
        width: 180px;
        height: 180px;
        top: -30px;
        left: -30px;
    }

    .reasonList {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }

    .reasonList hr {
        display: none;
    }

    .reasonList .reasonItem {
        width: 30%;
    }

    .reasonList hr {
        width: 40px;
        height: 4px;
        margin: 10px 0;
    }

    .reasonItem>.iCont {
        width: 70px;
        height: 70px;
    }

    .reasonItem i {
        font-size: 30px;
    }

    .reasonTitle {
        font-size: 18px;
    }

    /* tone down hover for mobile */
    .reasonItem:hover .iCont {
        transform: none;
        box-shadow: 0 0 15px rgba(215, 185, 105, 0.4);
    }
}