/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background-color: #0F0E2F;
    color: #FFF6EF;
    min-height: 100vh;
}

.border-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.4;
    padding: 0;
    position: relative;
}

/* Border system */
.border-container::before {
    content: '';
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    border: 2px solid #1E1C5E;
    pointer-events: none;
    z-index: 1000;
}

.border-container::after {
    content: '';
    position: absolute;
    top: calc(1.2rem + 0.5rem);
    left: calc(1.2rem + 0.5rem);
    right: calc(1.2rem + 0.5rem);
    bottom: calc(1.2rem + 0.5rem);
    border: 4px solid #1E1C5E;
    pointer-events: none;
    z-index: 1000;
}

/* Container */
.container {
    margin: 5rem auto;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    width: 100%;
}

/* Logo */
.logo {
    width: clamp(200px, 20vw, 300px);
    border-bottom: 2px solid #1E1C5E;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Content */
.content {
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Container video background */
.container-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

/* Container background for mobile GIFs */
.container-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    transition: all 0.6s ease;
}

/* Video background - controlled by JavaScript */

.description {
    font-size: clamp(0.8rem, 0.8rem, 1rem);
    font-weight: 100;
    line-height: 1.4;
    margin-bottom: 3rem;
    width: clamp(300px, 60vw, 600px);
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Apply button */
.apply-button {
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    background: transparent;
    color: #FFF6EF;
    border: 2px solid #FFF6EF;
    padding: 1rem 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.apply-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #FFF6EF;
    transition: left 0.3s ease;
    z-index: -1;
}

.apply-button:hover {
    color: #0E0D34;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 246, 239, 0.2);
}

.apply-button:hover::before {
    left: 0;
}

.apply-button:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    width: clamp(200px, 20vw, 300px);
    border: 1px solid #1E1C5E;
    margin: 1rem auto;
}

/* Amenities */
.amenities {
    padding: 2rem;
    margin-top: 2rem;
}

.amenities-title {
    font-family: 'Bellefair', serif;
    text-transform: uppercase;
    font-size: clamp(1.0rem, 2vw, 1.4rem);
    font-weight: 400;
    color: #B7B0B5;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 600px;
}

.amenities-list li {
    font-family: 'Fira Sans', sans-serif;
    text-align: left;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 300;
    color: #B7B0B5;
    padding: 0.75rem 1rem;
    background: rgba(30, 28, 94, 0.1);
    transition: all 0.5s ease;
}

.amenities-list li:hover {
    background: rgba(30, 28, 94, 0.2);
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    margin: 1rem 0 2rem 0;
}

.footer-text {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    font-weight: 300;
    color: #B7B0B5;
    margin: 0 0 .5rem 0;
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
    body::before {
        top: 1.2rem;
        left: 1.2rem;
        right: 1.2rem;
        bottom: 1.2rem;
    }
    
    body::after {
        top: calc(1.2rem + 0.5rem);
        left: calc(1.2rem + 0.5rem);
        right: calc(1.2rem + 0.5rem);
        bottom: calc(1.2rem + 0.5rem);
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .description {
        margin-bottom: 2.5rem;
        font-size: 1rem;
    }
    
    .apply-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .description {
        margin-bottom: 2rem;
    }
    
    .apply-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 2.5rem;
    }
        
    .description {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) { 
    .description {
        font-size: 1.2rem;
    }
    
    .apply-button {
        font-size: 1rem;
        padding: 1.2rem 3rem;
    }
}