@font-face {
    font-family: "outfit";
    src: url("./Outfit.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.main-container {
    
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px;
    font-family: 'outfit', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.demo-sections-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 25px;
}

.main-title {
    font-size: 28pt;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.demo-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 25px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.demo-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.demo-section-explanation {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    gap: 12px;
}

.demo-section-title {
    font-size: 22pt;
    font-weight: 600;
    color: #4a5568;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-section-explanation span:last-child {
    font-size: 14pt !important;
    color: #718096;
    line-height: 1.6;
}

.demo-section-image {
    width: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.demo-section-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-container {
        padding: 25px;
        gap: 20px;
    }

    .main-title {
        font-size: 20pt;
    }

    .demo-sections-wrapper {
        flex-direction: column;
    }

    .demo-section {
        flex-direction: column;
        padding: 20px;
    }

    .demo-section-explanation,
    .demo-section-image {
        width: 100%;
    }

    .demo-section-title {
        font-size: 18pt;
    }

    .demo-section-explanation span:last-child {
        font-size: 12pt !important;
    }
}