@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lekton&family=Manrope:wght@400;700,800&family=Manrope&family=Space+Mono:wght@400;700&family=Ubuntu&display=swap');

/* To make show browser doesn't mess up the layout */
*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: Consolas;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #001011;
    /*Horizontal Scrollbar Because of animation overflow*/
    overflow-x: hidden;
}

.header-content{
    padding-top: 160px;
    color: white;
    display: block;
    text-align: left;
    margin-right: 15px;
    margin-bottom: 30%;
}

.elements-sep {
    margin-top: 90%;
}

.h1-inline {
    display: inline;
    margin-left: -5px;
    margin-right: -5px;
}

nav {
    padding-top: 10px;
    background: linear-gradient(to bottom, #001011 60%, transparent);
    height: 100px;
    width: 100%;
    z-index: 2;
    position: fixed;
}

.sidebar {
    margin-top: 70px;
    position: fixed;
    top: 0;
    left: -40px;
    height: 100%;
    width: 0px; /* Adjust the width as needed */
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

a.icon {
    width: 5%; /* Adjust the size of the icons */
    height: auto;
    cursor: pointer;
    margin-bottom: -80px;
    transition: 0.4s;
}

.icon-img{
    scale: 20%;
}

a.icon:hover {
    transform: translateY(-0.5rem);
}

.img-wrap .static, .img-wrap:hover .animated {
    display: inline;
}
.img-wrap .animated, .img-wrap:hover .static {
    display: none;
}

nav ul {
    float: right;
    margin-right: 30px;
}

nav ul li{
    display: inline;
    line-height: 70px;
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.1em;
}

nav ul li a:hover{
    transition: 0.4s;
    color: #ca60ff;
    text-shadow: 0 0 10px #ca60ff,
    0 0 20px #ca60ff,
    0 0 40px #ca60ff,
    0 0 80px #ca60ff,
    0 0 160px #ca60ff;
}

.h1-space {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

.h1-manrope {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

ul li {
    line-height: 1.5em;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
    margin-bottom:5%;
}

.ul-inline {
    display: inline;
}

.flex-item{
    padding-bottom: 10px;
    margin-left: 10%;
    margin-right: 10%;
}

.flex-item-2{
    margin-left: 10%;
}

.black-background {
    margin-top: 20%;
    background-color: transparent;
    height: 100vh;
    width: 100vw;
    backdrop-filter: blur(35px);
}

.card {
    display: flex;
    position: relative;
    flex-direction: column;
    height: auto;
    width: auto;
    min-width: 400px;
    border-radius: 7px;
    background: #0a192f;
    /*horizontal offset vertical offset spread radius color*/
    box-shadow: 1rem 0 2rem black;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-1rem);
}

/**/
.card-item {
    padding-top: 60px;
    padding-bottom: 20px;
    margin-left: 5%;
    margin-right: 10%;
}

.card-2 {
    display: flex;
    position: relative;
    flex-direction: column;
    height: 150px;
    width: 500px;
    border-radius: 7px;
    background: #0a192f;
    /*horizontal offset vertical offset spread radius color*/
    box-shadow: 1rem 0 2rem black;
    transition: 0.4s;
}

.card-item-2 {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-left: 5%;
    margin-right: 10%;
}

.project-img {
    position: relative;
    right: -100px;
    transition: transform .2s;
    width: 400px;
    height:320px;
}

.project-vid {
    position: relative;
    right: 45px;
    top: 70px;
    transition: transform .2s;
    width: 520px;
    height: auto;
}

.project-img:hover {
    transform: scale(1.3);
}
.project-vid:hover {
    transform: scale(1.3);
}

.block-div {
    display: block;
}

.img-container {

}

.img-format {
    position: relative;
    height: auto;
    width: 220%;
    margin-left: 1%;
    border-radius: 3%;
}

label.icon img{
    height: 60%;
    width: auto;
    padding-left: 20px;
}

/* Define the styles for the button */
a.glowing-button {
    background-color: black;
    color: #d087fa;
    border: 2px solid #df36e7;
    border-radius: 5px;
    padding: 20px 20px 20px 20px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 1.1em;
}

/* Define the glowing effect on hover */
.glowing-button:hover {
    animation: glow 1.5s infinite;
    transition: 0.4s;
    color: #ca60ff;
    text-shadow: 0 0 1px #ca60ff,
    0 0 20px #ca60ff,
    0 0 40px #ca60ff,
    0 0 80px #ca60ff,
    0 0 100px #ca60ff;
}

a.glowing-button-2 {
    color: #000000;
    background-color: cyan;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 22px;
    padding-right: 22px;
    border-radius: 5px;
    box-shadow: 0 0 5px #00ffff,
    0 0 15px #00ffff;
}

a.glowing-button-2:hover {
    color: #000000;
    box-shadow: 0 0 10px 5px rgb(0, 255, 255),
    0 0 25px 5px rgb(0, 255, 255),
    0 0 90px 5px rgb(0, 255, 255);
}

/* Keyframes for the glowing effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px #ca60ff;
    }
    50% {
        box-shadow: 0 0 20px #a12dff;
    }
}

.glass {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, .1%);
    backdrop-filter: blur(12px);
}

p {
    color: #838dab;
    padding-bottom: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 1.1em;
    line-height: 1.4;
}

.p-inline {
    display: inline;
}

footer {
    display: block;
    justify-content: center;
}

footer .end-footer {
    display: block;
    padding: 60px;
    text-align: center;
    color: white;
    background: linear-gradient(to top, #001011 90%, transparent);
}

.header-starting-text {
    width: 15ch;
    color: #b2b0b0;
    font-family: 'Manrope', sans-serif;
    font-size: 1.2em;
    animation: typing 1s steps(17), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 1px solid white;
}

.section-title-text {
    width: 250px;
    color: #93ecff;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 2.5em;
}

@keyframes typing {
    from {
        width: 0
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(100%) ;
    }
    100% {
        opacity: 1;
        transform: translateY(0%) ;
    }
}

@keyframes slide-left {
    0% {
        animation-delay: 5s;
        opacity: 0;
        transform: translateX(-100%) ;
    }
    100% {
        opacity: 1;
        transform: translateX(0) ;
    }
}

@keyframes slide-right {
    0% {
        opacity: 0;
        transform: translateX(100%) ;
    }
    100% {
        opacity: 1;
        transform: translateX(0) ;
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Desktop (1400px and up) */
@media screen and (min-width: 1400px) {
    .header-content {
        padding-top: 200px;
    }

    .flex-item {
        margin-left: 8%;
        margin-right: 8%;
    }

    .project-img {
        width: 450px;
        height: 360px;
    }

    .project-vid {
        width: 580px;
    }
}

/* Standard Desktop (1200px to 1399px) */
@media screen and (max-width: 1399px) and (min-width: 1200px) {
    .header-content {
        padding-top: 180px;
    }

    .project-img {
        width: 380px;
        height: 300px;
        right: -80px;
    }

    .project-vid {
        width: 480px;
        right: 35px;
    }
}

/* Medium Desktop (992px to 1199px) */
@media screen and (max-width: 1199px) and (min-width: 992px) {
    .header-content {
        padding-top: 160px;
    }

    .header-content h1[style*="font-size: 7em"] {
        font-size: 5.5em !important;
    }

    .header-content h1[style*="font-size: 3.5em"] {
        font-size: 2.8em !important;
    }

    .header-content h1[style*="font-size: 2em"] {
        font-size: 1.6em !important;
    }

    .project-img {
        width: 320px;
        height: 240px;
        right: -60px;
    }

    .project-vid {
        width: 420px;
        right: 25px;
    }

    .card {
        min-width: 350px;
    }

    .card-2 {
        width: 400px;
    }
}

/* Small Desktop/Large Tablet (768px to 991px) */
@media screen and (max-width: 991px) and (min-width: 768px) {
    nav ul li {
        margin: 0 10px;
    }

    nav ul li a {
        font-size: 0.75em;
    }

    .header-content {
        padding-top: 140px;
        margin-left: 5%;
    }

    .header-content h1[style*="font-size: 7em"] {
        font-size: 4em !important;
    }

    .header-content h1[style*="font-size: 3.5em"] {
        font-size: 2.2em !important;
    }

    .header-content h1[style*="font-size: 2em"] {
        font-size: 1.4em !important;
    }

    .flex-container {
        flex-direction: column;
        align-items: center;
    }

    .flex-item, .flex-item-2 {
        margin: 20px 5%;
        width: 90%;
    }

    .project-img {
        width: 100%;
        max-width: 400px;
        height: auto;
        right: 0;
        margin-bottom: 20px;
    }

    .project-vid {
        width: 100%;
        max-width: 500px;
        right: 0;
        top: 0;
    }

    .card {
        min-width: 300px;
        width: 100%;
    }

    .card-2 {
        width: 100%;
        height: auto;
        min-height: 120px;
    }

    .img-format {
        width: 100%;
        max-width: 300px;
    }

    .section-title-text {
        font-size: 2em;
        text-align: center;
    }

    .black-background {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .sidebar {
        left: -30px;
    }

    .icon-img {
        scale: 15%;
    }
}

/* Mobile Large (576px to 767px) */
@media screen and (max-width: 767px) and (min-width: 576px) {
    nav {
        height: 80px;
    }

    nav ul {
        margin-right: 15px;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        font-size: 0.7em;
    }

    .glowing-button-2 {
        padding: 8px 15px;
        font-size: 0.8em;
    }

    .header-content {
        padding-top: 120px;
        margin-left: 5%;
        margin-right: 5%;
    }

    .header-content h1[style*="font-size: 7em"] {
        font-size: 3em !important;
    }

    .header-content h1[style*="font-size: 3.5em"] {
        font-size: 1.8em !important;
    }

    .header-content h1[style*="font-size: 2em"] {
        font-size: 1.2em !important;
    }

    .flex-container {
        flex-direction: column;
        margin-top: 10%;
        margin-bottom: 10%;
    }

    .flex-item, .flex-item-2 {
        margin: 15px 5%;
        width: 90%;
    }

    .project-img {
        width: 100%;
        height: auto;
        right: 0;
        margin-bottom: 20px;
    }

    .project-vid {
        width: 100%;
        right: 0;
        top: 0;
    }

    .card {
        min-width: 280px;
        width: 100%;
    }

    .card-2 {
        width: 100%;
        height: auto;
        min-height: 100px;
    }

    .card-item {
        padding-top: 40px;
        margin-left: 8%;
        margin-right: 8%;
    }

    .card-item-2 {
        margin-left: 8%;
        margin-right: 8%;
    }

    .img-format {
        width: 100%;
        max-width: 250px;
    }

    .section-title-text {
        font-size: 1.8em;
        text-align: center;
        width: auto;
    }

    .black-background {
        height: auto;
        min-height: 100vh;
        padding: 30px 0;
        margin-top: 15%;
    }

    .sidebar {
        left: -25px;
    }

    .icon-img {
        scale: 12%;
    }

    a.icon {
        margin-bottom: -60px;
    }

    footer .end-footer h1 {
        font-size: 3em !important;
    }

    .glowing-button {
        padding: 15px;
        font-size: 1em;
    }

    p {
        font-size: 1em;
    }
}

/* Mobile Small (up to 575px) */
@media screen and (max-width: 575px) {
    nav {
        height: 70px;
        padding-top: 5px;
    }

    nav ul {
        margin-right: 10px;
    }

    nav ul li {
        margin: 0 3px;
        line-height: 60px;
    }

    nav ul li a {
        font-size: 0.6em;
    }

    .glowing-button-2 {
        padding: 6px 12px;
        font-size: 0.7em;
    }

    label.icon img {
        height: 40%;
        padding-left: 10px;
    }

    .header-content {
        padding-top: 100px;
        margin-left: 5%;
        margin-right: 5%;
    }

    .header-content h1[style*="font-size: 7em"] {
        font-size: 2.5em !important;
    }

    .header-content h1[style*="font-size: 3.5em"] {
        font-size: 1.5em !important;
    }

    .header-content h1[style*="font-size: 2em"] {
        font-size: 1em !important;
    }

    .header-starting-text {
        font-size: 1em;
    }

    .flex-container {
        flex-direction: column;
        margin-top: 15%;
        margin-bottom: 15%;
    }

    .flex-item, .flex-item-2 {
        margin: 10px 3%;
        width: 94%;
    }

    .project-img {
        width: 100%;
        height: auto;
        right: 0;
        margin-bottom: 15px;
    }

    .project-vid {
        width: 100%;
        right: 0;
        top: 0;
    }

    .card {
        min-width: 250px;
        width: 100%;
    }

    .card-2 {
        width: 100%;
        height: auto;
        min-height: 80px;
    }

    .card-item {
        padding-top: 30px;
        padding-bottom: 15px;
        margin-left: 5%;
        margin-right: 5%;
    }

    .card-item-2 {
        padding-top: 15px;
        padding-bottom: 15px;
        margin-left: 5%;
        margin-right: 5%;
    }

    .img-format {
        width: 100%;
        max-width: 200px;
    }

    .section-title-text {
        font-size: 1.5em;
        text-align: center;
        width: auto;
        margin-bottom: 20px;
    }

    .black-background {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
        margin-top: 20%;
    }

    .sidebar {
        left: -20px;
    }

    .icon-img {
        scale: 10%;
    }

    a.icon {
        margin-bottom: -40px;
    }

    footer .end-footer {
        padding: 40px 20px;
    }

    footer .end-footer h1 {
        font-size: 2.5em !important;
    }

    .glowing-button {
        padding: 12px;
        font-size: 0.9em;
    }

    p {
        font-size: 0.9em;
        line-height: 1.3;
    }

    /* Hide sidebar icons on very small screens for better UX */
    .sidebar {
        display: none;
    }
}

/* Landscape mobile orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .header-content {
        padding-top: 80px;
        margin-bottom: 10%;
    }

    .header-content h1[style*="font-size: 7em"] {
        font-size: 2em !important;
    }

    .header-content h1[style*="font-size: 3.5em"] {
        font-size: 1.3em !important;
    }

    .header-content h1[style*="font-size: 2em"] {
        font-size: 0.9em !important;
    }

    .black-background {
        height: auto;
        min-height: 80vh;
    }
}