@keyframes textSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
* {
    box-sizing: border-box;
}

#panel {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    transition: flex .4s ease;
    position: relative;
}

.section .overlay {
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    position: absolute;
    transition: background-color .8s ease;
}

.section .content {
    z-index: 2;
}

.section:hover {
    flex: 2;
}

.section:hover .overlay {
    background-color: rgba(0, 0, 0, 0.95);
}

#panel-background1 {
    background-image: url("../images/panelBackground1.jpg");
}

#panel-background2 {
    background-image: url("../images/panelBackground2.jpg");
}

.private-section {
    background: linear-gradient(rgba(255, 152, 0, 0.8), rgba(255, 152, 0, 0.8)), 
                url('/static/hcode/images/private-bg.jpg');
}

.overlay {
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.content h1 {
    opacity: 0;
    transform: translateY(40px);
    animation: textSlideUp 1s cubic-bezier(0.4,0.2,0.2,1) 0.2s forwards;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-government {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-government:hover {
    background: white;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-private {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-private:hover {
    background: white;
    color: #FF9800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .section {
        min-height: 400px;
    }
    
    .content h2 {
        font-size: 2rem;
    }
    
    .content p {
        font-size: 1rem;
    }
}