/* work.css */

/* Import base styles */
@import url('sstyle.css');

/* Work Hero Section */
.work-hero {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') center/cover no-repeat;
    padding: 2rem;
}

.work-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.work-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Work Destinations Section */
.work-destinations {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.destination-card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-text {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Animation Classes */
.slide-from-left {
    animation: slideFromLeft 1s ease-out forwards;
}

.slide-from-right {
    animation: slideFromRight 1s ease-out forwards;
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ensure animations only play once */
.slide-from-left, .slide-from-right {
    animation-fill-mode: forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .work-hero {
        height: 450px;
        padding: 1.5rem;
    }

    .work-hero h1 {
        font-size: 3rem;
    }

    .work-hero p {
        font-size: 1.2rem;
    }

    .destination-card {
        height: 350px;
    }

    .overlay h3 {
        font-size: 1.4rem;
    }

    .info-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .work-hero {
        height: 400px;
        padding: 1.25rem;
    }

    .work-hero h1 {
        font-size: 2.5rem;
    }

    .work-hero p {
        font-size: 1.1rem;
    }

    .destination-card {
        height: 300px;
    }

    .overlay h3 {
        font-size: 1.25rem;
    }

    .info-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .work-hero {
        height: 350px;
        padding: 1rem;
    }

    .work-hero h1 {
        font-size: 2rem;
    }

    .work-hero p {
        font-size: 1rem;
    }

    .destination-card {
        height: 250px;
    }

    .overlay h3 {
        font-size: 1.125rem;
    }

    .info-text {
        font-size: 0.85rem;
    }
    
    .overlay {
        padding: 1.5rem;
    }
}

@media (max-width: 320px) {
    .work-hero {
        height: 300px;
        padding: 0.75rem;
    }

    .work-hero h1 {
        font-size: 1.75rem;
    }

    .work-hero p {
        font-size: 0.9rem;
    }

    .destination-card {
        height: 200px;
    }

    .overlay h3 {
        font-size: 1rem;
    }

    .info-text {
        font-size: 0.8rem;
    }
    
    .overlay {
        padding: 1.25rem;
    }
} 