/* Reset Default Margins and Padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: "Roboto", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    background: linear-gradient(135deg, #216fff, #00b4d8);
    color: white;
    padding: 80px 20px;
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 700;
    color: #216fff;
    background-color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: #216fff;
    color: white;
}

/* Main Container */
.demo-container {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Titles */
.demo-title {
    text-align: center;
    font-size: 2.5em;
    color: #216fff;
    margin-bottom: 10px;
}

.demo-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

/* Flex Layout */
.demo-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

/* Toggle Column */
.toggle-column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Toggle Container */
.toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-label input:checked + .toggle-slider {
    transform: translateX(26px);
}

.toggle-label input:checked {
    background-color: #4caf50;
}

.toggle-description {
    font-size: 1.1em;
    color: #555;
}

/* Video Column */
.video-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.video-state {
    display: none;
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    text-align: center;
}

.video-state.active {
    display: block;
}

.video-placeholder {
    width: 100%;
    max-width: 1280px;
    border-radius: 10px;
    background-color: #ddd;
    object-fit: cover;
}

.video-caption {
    margin-top: 10px;
    font-size: 1.1em;
    color: #555;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .demo-content {
        flex-direction: column; /* Stack elements vertically */
        gap: 20px;
        align-items: center; /* Center-align items */
    }

    .toggle-column, .video-column {
        width: 100%; /* Full width on mobile */
        max-width: 500px; /* Optional: Limit max width for better readability */
    }

    .video-placeholder {
        max-width: 100%; /* Ensure video scales to container width */
    }
}
