.main-slider {
    height: 70vh;
    min-height: 500px;
    max-height: 950px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slider-blurred-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px) brightness(0.7);
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.slider-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
}

.slider-image-container {
    width: 100%;
    max-width: 40%; 
    height: 70%;
    max-height: 75%; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2%;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
    color: #6c757d;
    font-weight: bold;
}

.swiper-button-prev {
    left: 20px;
}

.swiper-button-next {
    right: 20px;
}

.swiper-pagination {
    bottom: 30px !important;
    z-index: 5;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: #ffffff;
    opacity: 1;
    transform: scale(1.3);
    border-color: #ffffff;
}

.slider-portfolio-btn-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    text-align: center;
    width: auto;
    transition: all 0.3s ease;
    bottom: 8%;
}

.mobile-portfolio-btn-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
    width: auto;
    transition: all 0.3s ease;
    bottom: 20px;
}

.mobile-portfolio-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-pill);
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: var(--shadow-burgundy);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}

.mobile-portfolio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.mobile-portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: white;
}

.mobile-portfolio-btn:hover::before {
    left: 100%;
}

@media (max-width: 625px) {
    .mobile-portfolio-btn-container {
        display: block !important;
    }
    
    @media (max-height: 700px) {
        .mobile-portfolio-btn-container {
            bottom: 15px;
        }
    }
    
    @media (max-height: 500px) {
        .mobile-portfolio-btn-container {
            bottom: 10px;
        }
        
        .mobile-portfolio-btn {
            padding: 10px 20px;
            font-size: 0.85rem;
        }
    }
}

@media (min-width: 626px) {
    .mobile-portfolio-btn-container {
        display: none !important;
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mobile-portfolio-btn-container {
    animation: slideUpFadeIn 0.5s ease-out;
}

@media (max-width: 375px) {
    .mobile-portfolio-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .mobile-portfolio-btn-container {
        bottom: 15px;
    }
}

@media (max-width: 625px) and (orientation: landscape) {
    .mobile-portfolio-btn-container {
        bottom: 10px;
    }
    
    .mobile-portfolio-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 625px) and (max-height: 400px) {
    .mobile-portfolio-btn-container {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .slider-portfolio-btn-container {
        bottom: 9%;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .main-slider {
        height: 65vh;
        min-height: 450px;
        max-height: 800px;
    }
    
    .slider-image-container {
        max-width: 50%;
        height: 65%;
        margin-bottom: 3%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 55px;
        height: 55px;
    }
    
    .slider-portfolio-btn-container {
        bottom: 6%;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .main-slider {
        height: 60vh;
        min-height: 400px;
        max-height: 700px;
    }
    
    .slider-image-container {
        max-width: 60%;
        height: 65%;
        margin-bottom: 3%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 50px;
        height: 50px;
    }
    
    .slider-portfolio-btn-container {
        bottom: 6%;
    }
}

@media (max-width: 767px) and (min-width: 626px) {
    .main-slider {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
    }
    
    .slider-content-wrapper {
        padding: 15px;
    }
    
    .slider-image-container {
        max-width: 70%;
        height: 60%;
        border-radius: 15px;
        backdrop-filter: blur(15px);
        margin-bottom: 4%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-prev {
        left: 10px;
    }
    
    .swiper-button-next {
        right: 10px;
    }
    
    .slider-portfolio-btn-container {
        bottom: 6%;
        width: 70%;
    }
    
    .swiper-pagination {
        bottom: 25px !important;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 625px) {
    .slider-portfolio-btn-container {
        display: none !important;
    }
    
    .main-slider {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
    }
    
    .slider-content-wrapper {
        padding: 15px;
    }
    
    .slider-image-container {
        max-width: 80%;
        height: 70%;
        border-radius: 15px;
        backdrop-filter: blur(15px);
        margin-bottom: 2%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-prev {
        left: 8px;
    }
    
    .swiper-button-next {
        right: 8px;
    }
    
    .swiper-pagination {
        bottom: 20px !important;
    }
    
    .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 575px) and (min-width: 480px) {
    .main-slider {
        height: 45vh;
        min-height: 300px;
        max-height: 400px;
    }
    
    .slider-content-wrapper {
        padding: 10px;
    }
    
    .slider-image-container {
        max-width: 85%;
        height: 65%;
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 3%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 38px;
        height: 38px;
    }
    
    .swiper-pagination {
        bottom: 18px !important;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 479px) and (min-width: 375px) {
    .main-slider {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }
    
    .slider-image-container {
        max-width: 90%;
        height: 60%;
        border-radius: 10px;
        backdrop-filter: blur(8px);
        margin-bottom: 4%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .swiper-pagination {
        bottom: 15px !important;
    }
}

@media (max-width: 374px) {
    .main-slider {
        height: 35vh;
        min-height: 220px;
        max-height: 300px;
    }
    
    .slider-image-container {
        max-width: 92%;
        height: 55%;
        border-radius: 8px;
        margin-bottom: 5%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
        display: none;
    }
    
    .swiper-pagination {
        bottom: 10px !important;
    }
    
    .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
}

@media (min-height: 900px) and (min-width: 992px) {
    .slider-portfolio-btn-container {
        bottom: 12%;
    }
    
    .slider-image-container {
        height: 65%;
        margin-bottom: 3%;
    }
}

@media (min-height: 700px) and (max-height: 899px) and (min-width: 768px) {
    .slider-portfolio-btn-container {
        bottom: 10%;
    }
    
    .slider-image-container {
        height: 68%;
        margin-bottom: 2%;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .main-slider {
        height: 80vh;
        min-height: 400px;
    }
    
    .slider-portfolio-btn-container {
        bottom: 8%;
    }
    
    .slider-image-container {
        max-width: 50%;
        height: 80%;
        margin-bottom: 1%;
    }
}

@media (max-height: 400px) {
    .slider-portfolio-btn-container {
        display: none;
    }
    
    .swiper-pagination {
        bottom: 5px !important;
    }
    
    .slider-image-container {
        margin-bottom: 1%;
        height: 85%;
    }
}

@media (max-width: 768px) {
    .advantage-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .advantage-item i {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .advantage-item {
        padding: 1.25rem 0.75rem;
    }
    
    .advantage-item i {
        font-size: 2rem !important;
    }
    
    .advantage-item h5 {
        font-size: 1.1rem;
    }
    
    .advantage-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .service-card .card-img-top {
        height: 160px;
    }
    
    .service-card .card-body {
        padding: 1.25rem;
    }
    
    .service-card h5 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .review-card {
        padding: 2rem;
    }
    
    .review-card p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .review-card {
        padding: 1.5rem;
    }
    
    .review-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .contact-btn {
        width: 80%;
        font-size: 1rem;
        padding: 12px 16px;
    }
}

@media (max-width: 576px) {
    .contact-btn {
        width: 90%; 
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    #services .container h2,
    #advantages .container h2,
    .contact-form .container h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    #services .container h2,
    #advantages .container h2,
    .contact-form .container h2 {
        font-size: 1.5rem;
    }
}

#advantages {
    background: var(--gradient-light);
}