body {
    background-color: #0d0d0d;
    color:            #ffffff;
    font-family:      'Segoe UI', sans-serif;

}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/*Stories*/
.story-frame {
    position:      relative;
    border-radius: 40px;
    overflow:      hidden;
    background:    #000000;
    box-shadow:    0 0 10px rgba(0, 0, 0, 0.4);
    aspect-ratio:  9/16;
    width:         100%;
    max-width:     220px; /* optional */
}

.story-phone {
    position: relative;
    height:   100%;
    width:    100%;
}

.story-image {
    width:      100%;
    height:     100%;
    object-fit: cover;
}

/* Top bar like in Instagram stories */
.story-wrapper {
    position:         relative;
    border-radius:    30px;
    overflow:         hidden;
    aspect-ratio:     9 / 16;
    width:            100%;
    background-color: #000000;
    box-shadow:       0 0 10px rgba(0, 0, 0, 0.5);
}

.story-img {
    width:      100%;
    height:     100%;
    object-fit: cover;
}

/* Верхняя панель */
.story-header {
    position:    absolute;
    top:         10px;
    left:        12px;
    right:       12px;
    display:     flex;
    align-items: center;
    gap:         3%;
    z-index:     2;
    flex-wrap:   wrap;
}

.story-circle {
    width:            12px;
    height:           12px;
    background-color: #349eff;
    border-radius:    50%;
    margin-top:       5px;
}

.story-progress {
    display:       inline-block;
    width:         30%;
    height:        3px;
    background:    rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

/* Нижняя панель */
.story-footer {
    position:        absolute;
    bottom:          12px;
    left:            12px;
    right:           12px;
    display:         flex;
    z-index:         2;
    justify-content: space-between;
    align-items:     center;
}

.story-bar {
    width:         78%;
    height:        20px;
    border:        2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
}

.story-icon {
    opacity: 0.8;
    width:   8%;
}

.story-icon img {
    position: relative;
    width:    100%;
}

/*End.Stories*/

.navbar {
    background-color: #000000;
}

.navbar-nav .nav-link {
    color: white;
}

.hero img {
    border:              10px solid;
    border-image-slice:  1;
    border-image-source: linear-gradient(to right, #9333ea, #14b8a6);
}

.section-title {
    text-align:  center;
    margin:      4rem auto;
    font-weight: bold;
}

.custom-video {
    position:      relative;
    cursor:        pointer;
    max-width:     100%;
    width:         300px;
    object-fit:    cover;
    height:        350px;
    border-radius: 5px;
}

.custom-video:fullscreen {
    object-fit: contain;
}

.video-container {
    cursor: pointer;
}

.video-overlay {
    position:         absolute;
    inset:            0;
    background-color: rgba(0, 0, 0, 0.3);
    display:          flex;
    align-items:      center;
    justify-content:  center;
    transition:       opacity 0.3s ease;
    pointer-events:   none;
    z-index:          2;
}

.video-container.playing .video-overlay {
    opacity:        0;
    pointer-events: none;
}

.play-icon {
    width:      60px;
    height:     60px;
    transition: transform 0.2s ease;
}

.video-container:hover .play-icon {
    transform: scale(1.1);
}

.about-section-title {
    color:         #9ea1f8;
    margin-bottom: 1.5rem;
    font-weight:   bold;
    text-align:    center;
}

.info-box {
    background-color: #1a1a1a;
    padding:          20px;
    height:           100%;
    border:           1px solid #333333;
}

.info-box p {
    text-transform: uppercase;
    text-align:     center;
    font-size:      1.3rem;
}

.service-card {
    background-color: #1a1a1a;
    padding:          20px;
    border:           1px solid #333333;
    min-height:       490px;
}

.service-card ul {
    font-size:      1.5rem;
    text-transform: uppercase;
}

.portfolio-section h5 {
    margin:      2rem 0 1rem;
    color:       #9cc1ff;
    font-weight: bold;
}

.portfolio-img {
    width:         100%;
    height:        auto;
    margin-bottom: 1rem;
}

.services-bottom {
    background-color: #a5b4fc;
    color:            #000000;
    padding:          3rem 1rem;
}

.services-bottom .btn {
    margin:      0.5rem;
    font-weight: bold;
}

.case-menu-link {
    text-decoration: none;
    color:           #ffffff;
    font-size:       1.5rem;
}

.case-image {
    width:           100%;
    height:          250px;
    object-fit:      cover;
    object-position: top;
}

.case-description {
    font-size: 1.5rem;
}

.case-title {
    color:       #93a9ff;
    font-weight: bold;
}
.sidebar {
    position: fixed;
    top: 50px;
    bottom: 0;
    left: 0;
    width: 250px;
    background-color: #343a40;
    padding-top: 1rem;
    z-index: 100;
}
.sidebar a{
    color: #93a9ff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
}
.sidebar a:hover {
    color: #93a9ff;
    font-weight: bold;
}
.sidebar a:focus, .sidebar a:active {
    color: #93a9ff;
}

.main-content {
    margin-left: 250px; /* Must match sidebar width */
    padding: 2rem;
}

.cases-cooking-visual-img{
    position: relative;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.bordered-image{
        border: 15px solid;
        border-image-slice: 1;
        border-image-source: linear-gradient(to right, #9333ea, #14b8a6);
}

@media screen and (max-width: 768px) {
    .custom-video {
        width: 100%;
    }
}