.image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.gallery-item img {
    width: 100%;
}

.gallery-item .link-arrow {
    position: absolute;
    z-index: 2;
    color: var(--color-text-white);
    inset-inline-start: 3rem;
    bottom: 2.3rem;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
}

.gallery-overlay {
    position: absolute;
    z-index: 2;
    inset-inline-start: 0;
    top: 0;
    width: 100.1%;
    height: 100%;
    padding: 4.85rem 3rem;
}

.gallery-title {
    color: var(--color-text-white) !important;
    margin: 0;
    position: absolute;
    bottom: 5.5rem;
}

.hero-slider {
    width: 100%;
    height: 80vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Background Image */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.swiper-slide-active .slide-bg img {
    transform: scale(1.1);
}

/* Animated Frame */
.slide-frame {
    position: absolute;
    top: 100px;
    left: 100px;
    right: 100px;
    bottom: 100px;
    pointer-events: none;
    z-index: 2;
}

.slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.frame-line {
    position: absolute;
    background-color: var(--color-accent, #ff6b6b);
    opacity: 0;
}

.frame-top,
.frame-bottom {
    height: 5px;
    width: 0;
}

.frame-top {
    top: 0;
    right: 0;
}

.frame-bottom {
    bottom: 0;
    left: 0;
}

.frame-left,
.frame-right {
    width: 5px;
    height: 0;
}

.frame-left {
    left: 0;
    bottom: 0;
}

.frame-right {
    right: 0;
    top: 0;
}

/* Frame Animations */
.swiper-slide-active .frame-top {
    animation: expandWidth 1s ease-out forwards;
}

.swiper-slide-active .frame-right {
    animation: expandHeight 1s 0.6s ease-out forwards;
}

.swiper-slide-active .frame-bottom {
    animation: expandWidth 1s 1.2s ease-out forwards;
}

.swiper-slide-active .frame-left {
    animation: expandHeight 1s 1.8s ease-out forwards;
}

@keyframes expandWidth {
    to {
        width: 270px;
        opacity: 1;
    }
}

@keyframes expandHeight {
    to {
        height: 544px;
        opacity: 1;
    }
}

/* Content Overlay */
.slide-text-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.slide-text {
    padding: 0 56px;
    opacity: 0;
    transform: translateX(-100px);
}

.swiper-slide-active .slide-text {
    animation: slideInText 1s 0.5s ease-out forwards;
}

@keyframes slideInText {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-title {
    font-size: 72px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #fff !important;
    margin-bottom: 30px;
    text-shadow: 3px 3px 25px rgba(0, 0, 0, 0.8), 1px 1px 5px rgba(0, 0, 0, 0.9);
}

.btn-view-project,
.btn-view-packages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    transition: all 0.3s ease;
    opacity: 0;
    border-radius: 4px;
}

.btn-view-project {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-view-packages {
    background: rgba(232, 184, 106, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 184, 106, 0.3);
}

.swiper-slide-active .btn-view-project {
    animation: fadeInBtn 0.6s 1.5s ease-out forwards;
}

.swiper-slide-active .btn-view-packages {
    animation: fadeInBtn 0.6s 1.7s ease-out forwards;
}

.btn-view-project:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-accent);
    text-decoration: none;
    gap: 12px;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-view-packages:hover {
    background: rgba(232, 184, 106, 0.35);
    border-color: rgba(232, 184, 106, 0.5);
    color: var(--color-accent);
    text-decoration: none;
    gap: 12px;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 184, 106, 0.3);
}



@keyframes fadeInBtn {
    to {
        opacity: 1;
    }
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--color-primary, #ff6b6b);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary, #ff6b6b);
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slide-title {
        font-size: 63px;
        line-height: 68px;
    }

    .slide-frame {
        top: 80px;
        left: 80px;
        right: 80px;
        bottom: 80px;
    }
}

@media (max-width: 992px) {
    .slide-title {
        font-size: 57px;
        line-height: 62px;
    }

    .slide-frame {
        top: 60px;
        left: 60px;
        right: 60px;
        bottom: 60px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
    }

    .slide-title {
        font-size: 50px;
        line-height: 54px;
    }

    .slide-text {
        padding: 0 30px;
    }

    .slide-frame {
        display: none;
    }

    .btn-view-project,
    .btn-view-packages {
        font-size: 16px;
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-box {
    background: #fff;
    color: var(--color-text);
    padding: 3rem 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    direction: rtl;
}

.modal-title {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-text {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modal-number {
    color: var(--color-accent);
    font-size: 1.3rem;
    font-weight: bold;
}

.questions-list {
    margin-bottom: 5rem;
}

.panel-default {
    background-color: #fff !important;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.panel-default:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.panel-heading {
    background-color: #fff !important;
    border-bottom: none;
    padding: 20px 25px;
    border-radius: 8px 8px 0 0;
}

.panel-title a {
    color: var(--color-title);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
}

.panel-title a:hover {
    color: var(--color-primary);
}

.panel-title a:not(.collapsed) {
    color: var(--color-primary);
}

.panel-collapse {
    border-top: 1px solid #e1e7ec;
}

.panel-body {
    padding: 25px;
    color: #333;
}

.question-content {
    margin-bottom: 20px;
}

.answer-content {
    margin-top: 20px;
}

/* Form Styles */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-form label {
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control {
    border-radius: 4px;
    border: 1px solid #d1d1d1;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(85, 114, 136, 0.1);
    outline: none;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .panel-heading {
        padding: 15px;
    }

    .panel-body {
        padding: 15px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .panel-title a {
        font-size: 1rem;
    }
}

.myGallerySwiper .swiper-slide {
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.myGallerySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.icon-medium {
    font-size: 48px;
    /* Adjust size as needed */
    color: var(--color-primary);
    /* Example color */
}

.swiper-slide .w-full.h-64 {
    height: 300px;
    /* fixed height for all slides */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps image aspect ratio and covers container */
}

.mySwiper2 {
    height: 100%;
    width: 100%;
}

.mySwiper {
    height: 40%;
    box-sizing: border-box;
    padding: 10px 0;
}

.mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
}

.gallery-container {
    width: 100%;
    height: 500px;
    margin-top: 20px;
    margin-bottom: 200px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
}

/* Card hover effect */
.card {
    transition: transform 0.3s ease;
}

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