.hero {
    position: relative;
}

.banner-image {
    width: 100%;
    height: 450px; /* or your desired height */
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 325px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text);
    font-size: 4rem;
    font-weight: 800;
}

.services {
    position: relative;
    margin-top: 2rem;
}

.section {
    background: #063972;
    padding: 3rem 0 5rem 0;
}

.service-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 80%;
    margin: 0 auto;
    max-width: 1600px;
    margin: 0 auto;
}

.service-card {
    background: var(--primary);
    color: var(--text);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    width: 22.5%;
    min-height: 420px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-align: center;
    min-height: 80px;
}

.book-now-btn {
    display: block;
    width: 100%;
    background: #f57c1f;
    color: var(--text);
    border: none;
    border-radius: 6px;
    padding: 0.7rem 0;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.book-now-btn:hover {
    background: #ff9800;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-arrow {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 3rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-arrow:hover {
    color: var(--text);
    transition: background 0.2s;
}

.gallery-images-wrapper {
    display: flex;
    gap: 0;
    align-items: center;
}

.gallery-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-image img {
    width: 600px;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero {
    position: relative;
    text-align: center;
    color: var(--text);
    margin-bottom: 20%;
}

.services {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
}

.hero-text {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.service-card {
    margin: 1rem 0;
    padding: 3rem 2rem 6rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(1) {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-card:nth-child(1):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card:nth-child(2) {
    border: 2px solid rgba(251, 191, 36, 0.3);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(251, 191, 36, 0.1) 100%
    );
}

.service-card:nth-child(2):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}

.service-card:nth-child(3) {
    border: 2px solid rgba(251, 191, 36, 0.5);
    background: linear-gradient(
        135deg,
        rgba(251, 191, 36, 0.15) 0%,
        rgba(245, 158, 11, 0.15) 100%
    );
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.2);
}

.service-card:nth-child(3)::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.service-card:nth-child(3):hover::before {
    left: 100%;
}

.service-card:nth-child(3):hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.4);
    border-color: rgba(251, 191, 36, 0.8);
}

.service-card:nth-child(4) {
    border: 3px solid transparent;
    background: linear-gradient(
        135deg,
        rgba(251, 191, 36, 0.2) 0%,
        rgba(245, 158, 11, 0.2) 50%,
        rgba(217, 119, 6, 0.2) 100%
    );
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.4);
    position: relative;
}

.service-card:nth-child(4)::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    border-radius: 12px;
    z-index: -1;
    background-size: 300% 300%;
    animation: gradient-border 3s ease infinite;
}

.service-card:nth-child(4):hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 60px rgba(251, 191, 36, 0.6);
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 12px 0;
}

.star {
    width: 64px;
    height: 64px;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.service-card:nth-child(3) .star,
.service-card:nth-child(4) .star {
    animation: pulse-glow 2s ease-in-out infinite;
}

.service-card:nth-child(4) .star {
    animation:
        pulse-glow 1.5s ease-in-out infinite,
        rotate-subtle 10s linear infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.6));
    }
}

@keyframes rotate-subtle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.service-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card p {
    margin: 1rem 0;
    opacity: 0.9;
    color: var(--text);
}

.book-now-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 32px;
    background: rgba(251, 191, 36, 0.9);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-now-btn:hover {
    background: rgba(251, 191, 36, 1);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.4);
}


.divider {
    color: var(--bg-dark);
    height: 160px;
}

.recent-successes {
    padding: 80px 40px;
}

.gallery-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-text-section {
    flex: 0 0 33.333%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.temp-gallery-text-section {
    display: flex;
    flex-direction: column;
}

.temp-gallery-text-section h2 {
    font-size: 3rem;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.temp-gallery-text-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-text-section h2 {
    font-size: 3rem;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 30px;
    text-align: left;
}

.gallery-controls {
    display: flex;
    gap: 20px;
}

.bottom-controls {
    display: none;
}

.gallery-images-wrapper {
    flex: 0 0 66.666%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.gallery-image {
    flex: 1;
    max-width: 450px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 25px rgba(0, 0, 0, 0.15),
        0 10px 10px rgba(0, 0, 0, 0.1);
}

.gallery-image h3 {
    padding: 16px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.gallery-arrow {
    background: linear-gradient(135deg, #1774a1, #28e);
    color: var(--text);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.gallery-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-arrow:active {
    transform: scale(0.95);
}

.gallery-arrow span {
    line-height: 1;
}

@media (max-width: 1530px) {
    .hero-text {
        height: 400px;
    }
    
    .services {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0 1rem;
    }
    
    .hero {
        margin-bottom: 5%;
    }

    .divider {
        height: 0;
    }
    
    .gallery-image img {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 1530px) and (min-width: 901px) {
    
    .hero-text {
        font-size: 3rem;
    }
    
    .service-cards-container {
        flex-direction: row;
        align-items: center;
    }

    .service-card {
        width: 45%;
    }

    .gallery-container {
        margin-left: 40px;
        margin-right: 40px;
    }
}

@media (max-width: 900px) {

    .hero-text {
        font-size: 2.5rem;
    }

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

    .service-card {
        width: 100%;
    }

    .gallery-container {
        flex-direction: column;
        gap: 40px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .gallery-text-section,
    .gallery-images-wrapper {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .gallery-images-wrapper {
        gap: 24px;
    }

    .gallery-image {
        max-width: 100%;
    }

    .gallery-controls {
        display: flex;
        gap: 20px;
        width: 100%;
        justify-content: flex-end;
    }

    .bottom-controls {
        display: none;
    }

    .recent-successes {
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .gallery-text-section h2 {
        font-size: 2rem;
    }

    .top-controls {
        display: none;
    }

    .bottom-controls {
        display: flex;
        gap: 20px;
        width: 100%;
        justify-content: center;
    }

    .gallery-image h3 {
        font-size: 1.2rem;
        padding: 3px;
    }

    .gallery-image img {
        height: 200px;
    }
}