* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Lora', serif;
    list-style: none;
    text-decoration: none;
}

:root{
    --bg-color: #fff;
    --text-color: #141411;
    --main-color: #39b6ff;
    --big-font: 7rem;
    --p-font:1.1rem;
    --swiper-pagination-color: var(--main-color);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 15%;
    background: transparent;
    transition: all ease .45s;
}

.navbar {
    display: flex;
}

.navbar a {
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--text-color);
    margin: 0 25px;
    transition: all ease;
}

.navbar a.active {
    color: var(--main-color);
    font-weight: bolder;
}

.navbar a:hover {
    color: var(--main-color);
}

.menu-btn {
    background: linear-gradient(130.08deg, #2e2e2e 0%, #000000 100%);
    box-shadow: 0px 20px 40px #1f1f1f70;
    border: 1px solid #252525;
    padding: 10px 20px;
    border-radius: 100px;
    display: none;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

#menu-icon {
    font-size: 28px;
    margin-left: 0px;
    z-index: 0;
}

section {
    padding: 0 15%;
}

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.portfolio-page .home {
    flex-direction: column;
    padding-top: 2vh;
}

.home-img {
    width: 730px;
    height: 730px;
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-text span {
    padding: 5px 10px;
    background: linear-gradient(130.08deg, var(--main-color) 0%, #ffffff 100%);
    box-shadow: 0px 10px 40px #1f1f1f70;
    border: px solid #252525;
    border-radius: 100px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 15px;
}

.home-text h1{
    font-size: 56px;
    margin: 10px 0;
}

.home-text h2{
    font-size: 30px;
    margin: 23px 0;
    margin-bottom: 5px;
    color: var(--main-color);
}

.home-text p{
    font-size: var(--p-font);
    font-weight: 400;
    color: #343434;
    line-height: 30px;
    margin-bottom: 5px;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--main-color);
    color: var(--text-color);
    border: 2px solid var(--main-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.6s ease-in-out;
}

.btn:hover {
    transform: translateY(-3px);
    background: transparent;
    color: var(--main-color);
}

.share {
    position: absolute;
    bottom: 3rem;
    left: 15%;
    display: flex;
    align-items: center;
}

.social i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    background: linear-gradient(130.08deg, var(--main-color) 0%, #ffffff 100%);
    box-shadow: 0px 20px 40px #1f1f1f70;
    border: 0px solid #252525;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 20px;
    margin: 0 7px;
    transition: all 0.6s ease-in-out;
}

.social i:hover {
    transform: translateY(-5px);
    background: transparent;
    color: var(--main-color);
}

.logo {
    display: block;
    width: 40%;          /* default for large screens */
    height: auto;
    object-fit: contain;
    transition: width 0.3s ease;
}

@media (max-width: 1850px) {
    header {
        padding: 15px 8%;
        transition: .2s;
    }
    section {
        padding: 0 8%;
        transition: .2s;
    }
    .share {
        left: 8%;
        transition: .2s;
    }
}

@media (max-width: 1370px) {
    header {
        padding: 15px 4%;
        transition: .2s;
    }
    section {
        padding: 0 4%;
        transition: .2s;
    }
    .share {
        left: 4%;
        transition: .2s;
    }
    :root {
        --big-font: 5.5rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width: 1370px) {
    .navbar a{
        margin: 0 15px;
    }
    :root {
        --big-font: 5rem;
        --p-font: 1rem;
        transition: .2s;
    }
    .logo {
        width: 50%;
        max-width: 70%;
    }
}

@media (max-width: 950px) {
    .share {
        display: none;
    }
    section {
        padding: 70px 4%;
    }
    header {
        padding: 11px 4%;
        background: var(--bg-color);
    }
    .home {
        height: auto;
        display: flex;
        flex-wrap: wrap;
    }
    .home-text {
        order: 2;
    }
    .home-img {
        margin: auto;
        margin-top: 25px;
        height: auto;
        width: auto;
    }
    .home-img img {
        max-width: 350px;
        width: 100%;
        height: auto;
    }
    .logo {
        width: 55%;
        max-width: 70%;
    }

}

@media (max-width: 850px) {
    header {
        background: transparent;
    }
    .navbar {
        position: absolute;
        width: 50%;
        height: 100vh;
        padding: 40px 50px;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        transform: translateX(100%);
        display: flex;
        flex-direction: column;
        background: rgb(255, 255, 255);
        transition: transform 0.4s ease-in-out;
        box-shadow: -2px 0 20px rgba(0,0,0,0.1);

    }
    .navbar a {
        display: block;
        color: #c2c2c2;
        padding: 0px;
        margin: 0px 0px 40px 0px;
        font-size: 2rem;
        font-weight: 400;
    }
    .navbar.open {
        transform: translateX(0);
    }
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;            /* make it square */
        height: 50px;
        border-radius: 50%;     /* optional — makes it circular */
        cursor: pointer;
        color: #000;
        background: linear-gradient(130.08deg, var(--main-color) 0%, #ffffff 100%);
        box-shadow: 0px 20px 40px #1f1f1f70;
        border: none;
        position: relative;
        z-index: 1001;          
    }
    .logo {
        width: 70%;
        max-width: 90%;
    }
}

@media (max-width: 200px) {
    :root {
        --big-font: 4rem;
        --p-font: 15rem;
        transition: .2s;
    }
    .btn {
        padding: 9px 28px;
    }
}

.swiper {
    width: 100%;
    height: 85%;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
    .swiper-button-next,
    .swiper-button-prev {
        color: rgba(0, 0, 0, 0.3);
    }
}

.swiper-slide{
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.swiper-slide img {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.cpage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.contacts {
    text-align: center;
}

.contacts h1{
    margin: 10px;
    font-size: 56px;
    color: var(--main-color);
}

.contacts h2 {
    margin: 10px;
    font-size: 30px;
}

.contacts.social {
    margin: 10px;
}

.contacts a {
    color: var(--text-color);
}

.contacts a:hover {
    color: var(--main-color);
}

ul li ul.dropdown li {
    display: block;
    padding-top: 10px;
}

ul li ul.dropdown {
    display: none;
    width: 100%;
    background: var(--bg-color);
    position: absolute;
    z-index: 999;
}

ul li a:hover {
    background: var(--bg-color);
} 

ul li:hover ul.dropdown {
    display: block;
    padding-top: 5px;
}

.cpage .contacts h1 {
    color: var(--text-color);
    font-size: 73px; 
    font-weight: bold; 
    background: linear-gradient(45deg, var(--main-color), #0014a8);
    -webkit-background-clip: text;
    background-clip: text;  
    color: transparent;
}