:root {
    --bg1: #0b1020;
    --bg2: #0f1730;
    --bg4: #1d2642;
    --highlight1: #3d549e;
    --highlight2: #30306b;
    --text1: rgb(240, 246, 252);
    --text2: #969ba1;
    --card:#0f1a35cc;
    --shadow1: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow2: 0 12px 30px rgba(110,168,255,.22)
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
.placeholder {
    display:none;
}
body{
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    height: 100vh;
}
body::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 600px at 20% 15%, rgba(55, 119, 215, 0.22), transparent 60%),
        radial-gradient(900px 600px at 80% 25%, rgba(111, 92, 255, 0.18), transparent 60%),
        radial-gradient(1000px 800px at 55% 110%, rgba(62, 119, 205, 0.1), transparent 60%),
        linear-gradient(180deg, var(--bg1), var(--bg2));
}
.btn {
    display: block;
    width: fit-content;
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.4s;
}
.btn:hover{
    transform: translateY(-5px);
}
.container {
    background: linear-gradient(135deg, var(--bg3), var(--bg4));
    border: 1px ridge rgba(34,51,95,.9);
    border-radius: 18px;
    box-shadow: var(--shadow1);
    backdrop-filter: blur(10px);
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
/* scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.90);
    transition: opacity 800ms ease, transform 800ms ease;
    will-change: opacity, transform;
}
.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* navigation bar */
nav{
    height: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo1{
    width: 26%;
}
.logo2{
    width: 14%;
}
#top-bar{
    padding: 0px 7%;
}
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 24px;
}
nav ul li a{
    color: var(--text1);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0%;
    height: 4px;
    background: linear-gradient(135deg, var(--highlight2), var(--highlight1));
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.3s
}
nav ul li a:hover::after{
    width: 100%;
}
.btn.upbtn{
    margin: 50px 12%;
    position: fixed;
    padding: 20px 26px;
    bottom: 2%;
    right: -8%;
    border: 1px solid;
    border-radius: 150px;
    font-size: 30px;
    font-weight: 600;
    color: var(--highlight1);
    background: linear-gradient(135deg, var(--bg2), var(--bg1));
    box-shadow: var(--shadow1);
}
.btn.upbtn:hover{
    color: var(--text1);
    border: 0px;
    background: linear-gradient(135deg, var(--highlight1), var(--highlight2));
    box-shadow: 0 12px 30px rgba(110,168,255,.22);
}

/* contact */
#contact{
    margin-top: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.contact-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text1);
    gap: 33px;
    font-size: 18px;
    margin-bottom: 50px;
}
.contact-info h2{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40% 10% 20%;
    width: 230%;
    font-size: 40px;
    color: var(--highlight1);
}
.contact-info h2::before{
    content: "";
    flex: 1;
    height: 1px;
    background: var(--highlight1)
}
.contact-info h2::after{
    content: "";
    flex: 1;
    height: 1px;
    background: var(--highlight1)
}
.last-comment{
    color: var(--text2);
}
.social-icons{
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    margin-bottom: 20%;
}
.social-icons a{
    color: var(--text1);
    text-decoration: none;
}
.btn.social-btn:hover{
    box-shadow: 0 12px 30px rgba(110,168,255,.22);
}

.fa-brands{
    border-radius: 100px;
}
.end{
    color: var(--highlight1);
}

nav .fa-solid{
    display: none;
}

/*----- css for small screen -----*/
@media only screen and (max-width: 900px){
    /* background */
    body::before{
        content: "";
        position: fixed;
        inset: 0;
        background:
        radial-gradient(60% 40% at 10% 15%, rgba(55, 119, 215, 0.22), transparent 60%),
        radial-gradient(70% 40% at 90% 35%, rgba(111, 92, 255, 0.18), transparent 60%),
        radial-gradient(90% 60% at 55% 95%, rgba(62, 119, 205, 0.1), transparent 60%),
        linear-gradient(180deg, var(--bg1), var(--bg2));
        z-index: -1;
    }
    /* nav bar */
    #top-bar{
        padding-top: 10px;
    }
    .logo1{
        width: 50%;
        margin-left: -10px;
    }
    .logo2{
        width: 30%;
        margin-left: -20px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
        color: var(--text1);
    }
    nav ul{
        background: linear-gradient(280deg, var(--bg2), var(--highlight2));
        position: fixed;
        top: 0;
        right: -170px;
        width: 170px;
        height: 100%;
        padding-top: 60px;
        z-index: 20000;
        transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 23px;
    }
    nav ul li a{
        color: var(--text1);
        font-size: 18px;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    /* upbtn */
    .btn.upbtn{
        margin: 50px 12%;
        padding: 18px 22px;
        bottom: 3%;
        right: -5%;
        border-radius: 150px;
        font-size: 20px;
        font-weight: 600;
    }
    /* contact */
    .contact-info h2{
        width: 100%;
        font-size: 30px;
    }
    .contact-info p{
        font-size: 16px;
    }
    .contact-info a{
        font-size: 32px;
    }
    .contact-info{
        gap: 40px;
    }
}