/* Base Styles */
body {
    min-width: 1000px; /* Note: This fixed min-width can cause issues on smaller screens */
    font-family: 'AvertaStd', sans-serif;
    padding: 0 20px;
    margin: 0 auto; /* Centers the body within the viewport if it has a max-width */
    background-color: #F3F5F9;
    max-width: 1200px; /* Constrains content width */
}

a{ text-decoration:none; color:black; }

@font-face {
    font-family: 'AvertaStd';
    src: url('/public/assets/fonts/AvertaStd-Regular.otf') format('opentype');
    font-weight: 400;
}

.h1         { font-size: 56px; }
.h2         { font-size:40px;  }
.h3         { font-size: 26px; }
.h4         { font-size: 22px; }
.rounded    { border-radius: 30px; }
.text-purple{ color: #A835F7; }
.blue-text  { color: #616EFF; } /* Keep existing blue-text */
.hidden     { display:none; }
.bold       {font-weight: 700;}

/* Info card */

.infoCard{
    padding:10% 5%;
    background-color:white;
    margin-top:5%;
}

.infoCard--dark{
    color:white;
}

.infoCardContent{
    display:flex;
    align-items: center;
    flex-direction:row
}

.infoCardImage{
    box-shadow:0px 0px 30px rgba(0,0,0,.1);
    background-size:cover;
    background-position:center;
    border-radius:30px; 
    height:380px; 
    background-color: white;

}

.infoCardContent--reverse{
    flex-direction: row-reverse;
}





/* Header section */ 
.header {
    margin: 20px 0 5% 0;
    display: flex;
}

.header-item {
    background-color: white;
    padding: 16px 20px;
    margin-right: 10px;
    border-radius: 30px;
    font-size: 14px;
}

.header-mobile-action{
    display:none;
}

.header-logo {
    height:16px;
    width: 100px;
    background-image: url('/assets/solving-ai-logo.png');
    background-position: center;
    background-size: 100px;
    background-repeat: no-repeat;
}

.header-actions {
    display: flex;
    float:right; /* Aligns actions to the right */
}

 /* Header actions */
.primary-action { background-color: #7444E2; color: white; cursor: pointer; }
.secondary-action { cursor: pointer; }
.primary-action:hover, .secondary-action:hover { outline: 3px solid #eee; }
.primary-action:active, .secondary-action:active { filter: brightness(95%); }



/* Footer Styles */
.footer-section {
    margin-top:5%;
    margin-bottom:10%;
    background-color: #151515;
    min-height: 200px;
    border-radius: 30px;
    padding: 10% 5%;
}

.footer-heading {
    color: white;
    text-align: center;

}

.footer-btn-wrapper {
    padding: 10px 0;
    text-align: center;
}

#get-started {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 30px;
}

.footer-icon { width: 28px; }


/* Main Hero Section */
.hero-section {
    background-color: white;
    background-image: url('/assets/mask-bg.png');
    background-position: bottom center;
    background-size: 150%;
    background-repeat: no-repeat;
    text-align: center;
    padding: 5%;
    box-sizing: border-box;
}


.glass {
    /* Existing class */
    border-radius: 30px;
    background-color: #FDF9F9;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 0 1px hsl(293deg 100% 7% / 0.11);
}

.video-container {
    margin-top: 50px;
    padding: 10px;
    width: 960px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.video-frame {
    border-radius: 20px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, .1);
    background-color: white;
}

#video-player {
    width: 960px;
    height: 540px;
    border-radius: 20px;
    border: none;
}


/* Video Switcher */
.video-switch-container {
    padding: 10px;
    background-color: #EBEBEB;
    width: 50%;
    margin: 30px auto 0 auto;
    /* Simplified margin */
    border-radius: 30px;
    border: 1px solid #ABABAB4D;
    font-size: 14px;
}

.video-switch-buttons {
    /* Wrapper for buttons */
    display: flex;
    text-align: center;
}

.video-switch-button {
    flex: 1;
    padding: 12px 10px;
    border-radius: 30px;
    cursor: pointer;
    margin: 0 10px;
}

.video-switch-button:hover {
    background-color: #ddd;
}

.video-switch-button.active {
    background-color: #616EFF;
    color: white;
    cursor: default;
}


.unmute {
    position: absolute;
    left: 0px;
    top: 0px;
    background-color: rgba(0, 0, 0, .1);
    padding: 10px 20px;
    margin: 20px;
    cursor: pointer;
    display: flex;

}

.unmute:hover {
    background-color: rgba(0, 0, 0, .2)
}


@media screen and (max-width: 768px) {
    #video-player {
        width: 100%;
        height: calc(100% * 9 / 16);
    }
}




/* Mobile Styles */
/* Applied when screen width is 768px or less */

@media screen and (max-width: 768px) {
    /* Commons */
    body { width: 100%; min-width: 100%; padding:10px; box-sizing: border-box; }
    .h1{ font-size:36px; }
    .h2{ font-size:28px;}
    .h3{ font-size: 18px; }
    .h4{ font-size: 15px; }


    /* Header/ Menu */
    .header-desktop-action{ display: none; }
    .mobile-menu-item{margin:1em 0px}
    .header-mobile-action{display:block; }
    .header-mobile-action.hidden{display:none;}

    /* Info Card */ 
    .infoCardContent{ display:block; }
    .infoCardImage{height:200px;margin-top:30px;}

    /* Hero page */
    .video-container{ width:100% !important; box-sizing: border-box; }
    .video-switch-container{width:100% !important; box-sizing: border-box; font-size:12px !important;}
    .video-switch-buttons{flex-direction: column !important;}

    /* About us page */
    .management-item-container{flex-direction: column;}
    .section-why-built-content{columns: 1 !important;}
    .section-why-built{background-size: cover !important;}

    /* Contact us page */
    .form-holder{flex-direction: column;}
}