@font-face{
    font-family: 'Keania';
    src: url('KeaniaOne-Regular.ttf') format('truetype');
    font-display: swap;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg-color: linear-gradient(45deg, black, rgba(6, 2, 99, 0.973), rgb(10, 10, 143));
    --text-color: rgb(87, 173, 169);
    --main-font: 'Keania', 'Arial', sans-serif;
    --page-bg-color: linear-gradient(45deg, transparent, rgba(37, 37, 163, 0.865), rgb(12, 72, 128));
    --accent-blue: rgb(55, 119, 255);
    --accent-cyan: rgb(45, 178, 205);
    --shadow-color: rgba(71, 243, 255, 0.5);
}

body{
    text-overflow: ellipsis;
    background: var(--bg-color);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    color: var(--text-color);
    font-family: var(--main-font);
    line-height: 1.6;
    overflow-x: hidden;
}
::selection{
    background-color: white;
    color: blue;
}

header{
    top: 0;
    left: 0;
    justify-content: center;
    width: 100vw;
    height: 99px;
    background: linear-gradient(45deg, transparent);
    position: relative;
    position: sticky;
    z-index: 69;
}

.navbar{
    position: absolute;
    display: flex;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 30vw;
    text-wrap: wrap;
    padding: 1rem;
    padding-inline: 25px;
    padding-bottom: 25px;
    border-radius: 45px;
    border: 1px solid rgb(55, 119, 255);
    transition: 0.5s all ease-in-out;
    backdrop-filter: blur(7px) brightness(1.1069) contrast(1.2) url(#liquidFilter);
}

.navbar:hover{
    box-shadow: 0 0 15px 12px rgb(10, 1, 107), 
    -0.5px 1px 7px 5px rgba(7, 7, 156, 0.765),
    0.5px 1px 7px 5px rgb(6, 63, 117);
    border: 1.69px solid rgb(45, 178, 205);
    z-index: 70;
}

.logo{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    margin-left: 10px;
    justify-content: center;
    text-shadow: 0 0 10px rgb(83, 95, 255);
    flex-direction: column;
}

.logo:hover{
    scale: 1.069;
    box-shadow: 0 0 20px 8px rgb(9, 94, 147), 0 0 18px 4px rgb(140, 241, 236) inset;
    border-radius: 50%;
    transition: 0.5s all ease;
}

.logo img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--page-bg-color);
}

.logo span{
    position: absolute;
    top: 40px;
    text-align: center;
    width: 90px;
    font-size: .69rem;
    transition: 0.69s all ease;
}

.logo span:hover{
    text-shadow: 0 0 10px rgb(136, 210, 255),
    0 -2px 10px rgb(37, 222, 255);
}

.navbar ul{
    display: flex;
    text-align: justify;
    justify-content: space-around;
    gap: 10vw;
}

.navbar ul li{
    list-style-type: none;
    padding: 10px;
    position: relative;
}

.navbar ul li a{
    text-decoration: none;
    text-overflow: ellipsis;
    font-size: large;
    color: var(--text-color);
}

.navbar ul li a:hover{
    color: white;
    text-shadow: 0 0 10px blue;
    transition: 0.5s all ease;
}

.navbar ul li:nth-child(4){
    background: var(--page-bg-color);
    border: 1.69px solid rgb(17, 163, 117);
    border-radius: 25px;
    padding-inline: 20px;
}

.navbar ul li:nth-child(4) a{
    color: #faffff;
    text-shadow: 1px 1px 10px rgb(17, 219, 255),
    0 0 8px rgb(20, 153, 163);
}

.navbar ul li:nth-child(4) a:hover{
    color: #0cf7f7;
    text-shadow: 1px 1px 10px rgb(17, 57, 255),
    0 0 8px rgb(20, 25, 163);
}

.navbar ul li::after{
    width: 100%;
    content: "";
    position: absolute;
    height: 2px;
    bottom: 0;
    left: 0;
    transition: all 0.5s ease;
    background: rgb(0, 255, 247);
}

.navbar ul li:nth-child(4)::before{
    content: "";
    height: 100%;
    width: 100%;
    transform: translate(-25%, -25%);
    border-radius: 25px;
    padding: 3px;
    z-index: -10;
    background: conic-gradient(from var(--angle), rgb(0, 42, 255), rgb(0, 140, 255), rgb(0, 242, 255), transparent 90%);
    position: absolute;
    animation: rotation 1.2s linear infinite;
}

.navbar ul li:nth-child(4)::after{
    content: "";
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 25px;
    z-index: -9;
    background: linear-gradient(rgb(24, 62, 160), rgb(4, 101, 118), rgb(2, 14, 84));
    box-shadow: 0 0 15px 3px rgba(24, 62, 160, 0.676),
    1px 1px 15px 3px rgba(4, 101, 118, 0.55),
    -1px 1px 15px 3px rgba(2, 14, 84, 0.58);
    position: absolute;
}

@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotation{
    from{ --angle: 0deg; }
    to{ --angle: 360deg; }
}

.error-container{
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.error-content{
    text-align: center;
    max-width: 800px;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(37, 37, 163, 0.2), rgba(12, 72, 128, 0.2));
    border: 1px solid rgba(55, 119, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.error-content::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 20px 20px 0 0;
}

.error-number{
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: bold;
    color: #faffff;
    text-shadow: 0 0 30px var(--shadow-color);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow{
    from{
        text-shadow: 0 0 20px var(--shadow-color);
    }
    to{
        text-shadow: 0 0 40px var(--shadow-color), 0 0 60px var(--accent-cyan);
    }
}

.error-title{
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: #faffff;
    text-shadow: 0 0 15px var(--shadow-color);
}

.error-message{
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.error-actions{
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.action-btn{
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(24, 62, 160, 0.3), rgba(4, 101, 118, 0.3));
    border: 1px solid var(--accent-blue);
    border-radius: 15px;
    color: #faffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--main-font);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn:hover{
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(45, 178, 205, 0.3);
    color: var(--accent-cyan);
}

.action-btn.primary{
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    font-weight: bold;
}

.action-btn.primary:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(45, 178, 205, 0.4);
    color: white;
}

.floating-elements{
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element{
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(55, 119, 255, 0.2), rgba(45, 178, 205, 0.2));
    border: 1px solid rgba(55, 119, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1){
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2){
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3){
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4){
    bottom: 10%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float{
    0%, 100%{
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50%{
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.physics-formula{
    position: absolute;
    color: rgba(87, 173, 169, 0.3);
    font-size: 0.8rem;
    animation: fadeInOut 4s ease-in-out infinite;
}

.physics-formula:nth-child(1){
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.physics-formula:nth-child(2){
    top: 25%;
    right: 5%;
    animation-delay: 2s;
}

.physics-formula:nth-child(3){
    bottom: 25%;
    left: 8%;
    animation-delay: 1s;
}

.physics-formula:nth-child(4){
    bottom: 15%;
    right: 8%;
    animation-delay: 3s;
}

@keyframes fadeInOut{
    0%, 100%{
        opacity: 0;
    }
    50%{
        opacity: 0.6;
    }
}

footer{
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(6, 2, 99, 0.9));
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--accent-blue);
    margin-top: 4rem;
}

.heads{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.heads .logo{
    width: 60px;
    height: 60px;
    background: var(--page-bg-color);
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
}

.heads ul{
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.heads ul li a{
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.heads ul li a:hover{
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.social-icons{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 37, 163, 0.3), rgba(12, 72, 128, 0.3));
    border: 1px solid rgba(55, 119, 255, 0.5);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover{
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(45, 178, 205, 0.4);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.social-link.github:hover{
    background: linear-gradient(135deg, rgba(88, 88, 88, 0.3), rgba(40, 40, 40, 0.3));
}

.social-link.linkedin:hover{
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.3), rgba(0, 84, 138, 0.3));
}

.social-link svg{
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.social-link:hover svg{
    transform: scale(1.1);
}

.lanc{
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(55, 119, 255, 0.3);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.lanc p{
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.lanc span{
    color: var(--accent-cyan);
    font-weight: bold;
}

.lanc span:hover{
    color: rgb(63, 159, 255);
    text-shadow: 0 0 10px rgb(13, 35, 132), 0 0 12px rgb(154, 226, 248);
    font-size: larger;
    transition: 0.5s all ease;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .navbar{
        gap: 20vw;
        width: 95%;
    }
    
    .error-actions{
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header{
        height: auto;
        padding: 1rem 0;
    }
    
    .navbar{
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        gap: 2rem;
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }
    
    .navbar ul{
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .error-container{
        padding: 1rem;
    }
    
    .error-content{
        padding: 2rem 1.5rem;
    }
    
    .error-actions{
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-btn{
        width: 100%;
        max-width: 300px;
    }
    
    .heads{
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons{
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar{
        padding: 1rem;
    }
    
    .navbar ul{
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar ul li{
        padding: 8px 15px;
    }
    
    .error-content{
        padding: 1.5rem 1rem;
    }
    
    .error-number{
        font-size: 5rem;
    }
    
    .floating-element{
        width: 40px;
        height: 40px;
    }
    
    .physics-formula{
        font-size: 0.7rem;
    }

}
