*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg-color: #48513d;
    --text-color:#cdefdb;
    --main-font: 'Keania', 'Arial', sans-serif;
    --page-bg-color: #79a085;
    --accent-green: #79b78c;
    --accent-cyan: rgb(33, 158, 108);
    --shadow-color: rgba(71, 255, 99, 0.644);
}

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;
    position: relative;
}

::selection{
    background-color: rgb(255, 255, 255);
    color: #59cb7c;
}

header{
    top: 0;
    left: 0;
    width: 100vw;
    height: 99px;
    background: linear-gradient(45deg, transparent);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
}
header nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    border-radius: 45px;
    border: 1px solid rgb(25, 174, 69);
    transition: all 0.5s ease-out;
    backdrop-filter: blur(15px) brightness(1.3469) contrast(1.5);
    position: relative;
}
header nav input{
    width: 50%;
    max-width: 100px;
    padding: 10px;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-cyan));
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 0.8rem;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.5s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}
header nav input:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(121, 183, 140, 0.4);
}
nav:hover{
    box-shadow: 0 0 15px 12px rgba(1, 107, 8, 0.705), 
    -0.5px 1px 20px 5px rgba(5, 101, 31, 0.603),
    0.5px 1px 20px 5px rgba(5, 122, 5, 0.664);
    border: 1.69px solid rgba(107, 212, 123, 0.845);
    transform: scale(1.02);
}
header nav .logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-shadow: 0 0 10px rgb(94, 255, 83);
    transition: all 0.5s ease;
}

header nav .logo:hover{
    transform: scale(1.169);
    box-shadow: 0 0 20px 8px rgb(5, 121, 23), 0 0 18px 4px rgb(9, 139, 37) inset;
    border-radius: 50%;
    padding-bottom: 5px;
    text-shadow: 0 0 10px rgb(168, 248, 168),
    0 -2px 10px rgba(102, 241, 102, 0.815);
}
header nav .logo img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--page-bg-color);
    transition: 0.5s ease;
}
header nav .logo span{
    position: absolute;
    top: 40px;
    text-align: center;
    width: 90px;
    font-size: .69rem;
    transition: 0.69s all ease;
}
header nav ul{
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    transition: all 0.5s ease;
}
header nav ul li{
    padding: 10px 15px;
    position: relative;
    transition: 0.5s ease;
}
header nav ul li:hover {
    transform: translateY(-3px);
}
header nav ul li a{
    text-decoration: none;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}
header nav ul li a:hover{
    color: white;
    text-shadow: 0 0 10px rgb(9, 255, 0);
}
header nav ul li:nth-child(2){
    background: var(--page-bg-color);
    border: 1.69px solid rgb(17, 163, 17);
    border-radius: 25px;
    padding-inline: 20px;
}
header nav ul li:nth-child(2) a{
    color: #faffff;
    text-shadow: 1px 1px 10px rgb(17, 219, 255),
    0 0 8px rgb(20, 153, 163);
}
header nav ul li:nth-child(2) a:hover{
    color: #0cf714;
    text-shadow: 1px 1px 10px rgb(25, 255, 17),
    0 0 8px rgb(34, 163, 20);
}
header nav ul li:not(:nth-child(2))::after{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(0, 255, 38));
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 2px;
}
header nav ul li:not(:nth-child(2)):hover::after {
    width: 120%;
    box-shadow: 0 0 15px rgb(0, 255, 38);
    animation: slidegw 0.8s ease-in-out;
}
@keyframes slidegw {
    0% {
        box-shadow: 0 0 0px rgb(0, 255, 38);
        transform: translateX(-50%) scaleX(0);
    }
    50% {
        box-shadow: 0 0 20px rgb(0, 255, 38);
        transform: translateX(-50%) scaleX(1.1);
    }
    100% {
        box-shadow: 0 0 10px rgb(0, 255, 38);
        transform: translateX(-50%) scaleX(1);
    }
}
@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
header nav ul li:nth-child(2)::before{
    content: "";
    height: 100%;
    width: 100%;
    transform: translate(-12%, -25%);
    border-radius: 25px;
    padding: 3px;
    z-index: -10;
    background: conic-gradient(from var(--angle), rgb(0, 255, 38), 
    rgba(24, 192, 15, 0.947), rgb(5, 172, 5), transparent 90%);
    position: absolute;
    animation: rotation 1.2s linear infinite;
}
header nav ul li:nth-child(2)::after{
    content: "";
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 25px;
    z-index: -9;
    background: linear-gradient(rgb(12, 208, 19), rgb(4, 101, 118), rgb(16, 84, 2));
    box-shadow: 0 0 15px 3px rgba(60, 165, 18, 0.676),
    1px 1px 15px 3px rgba(4, 101, 118, 0.55),
    -1px 1px 15px 3px rgba(2, 14, 84, 0.58);
    position: absolute;
}

@keyframes rotation{
    from{
        --angle: 0deg;
    }
    to{
        --angle: 360deg;
    }
}

.converter {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 2rem;
    margin-top: 2rem;
}
.converter form {
    background: rgba(121, 160, 133, 0.1);
    border: 2px solid var(--accent-green);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: all 0.5s ease;
    width: 100%;
    max-width: 600px;
}
.converter form:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 40px rgba(121, 183, 140, 0.2);
    transform: translateY(-5px);
}
.converter form fieldset {
    border: none;
    padding: 0;
}
.converter form legend {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.converter form label {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(205, 239, 219, 0.5);
}

.converter form select,
.converter form input[type="number"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--accent-green);
    border-radius: 15px;
    background: rgba(121, 160, 133, 0.15);
    color: blend-var(--text-color);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.converter form select:focus,
.converter form input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(33, 158, 108, 0.4);
    transform: scale(1.02);
}

.converter form select:hover,
.converter form input[type="number"]:hover {
    border-color: var(--accent-cyan);
    background: rgba(121, 160, 133, 0.2);
}

.form-rw {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-rw input[readonly] {
    background: rgba(33, 158, 108, 0.1);
    cursor: not-allowed;
    border-style: dashed;
}

.convert-btn,
#quantity-selector-btn {
    width: 100%;
    max-width: 250px;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-cyan));
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.5s ease;
    margin: 2rem auto 0;
    display: block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.convert-btn:hover,
#quantity-selector-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(121, 183, 140, 0.4);
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-green));
}

.convert-btn:active,
#quantity-selector-btn:active {
    transform: translateY(-1px);
}

.convert-btn::before,
#quantity-selector-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.convert-btn:hover::before,
#quantity-selector-btn:hover::before {
    left: 100%;
}

.outro{
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.outro .content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.outro .content p{
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
    background: linear-gradient(45deg, var(--accent-green), var(--accent-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.outro .links{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.outro .links a{
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-cyan));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.outro .links a:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(121, 183, 140, 0.4);
}


@media (max-width: 768px) {
    footer .heads {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    footer {
        padding: 2rem 1rem 1rem;
    }
}
footer {
    background: linear-gradient(135deg, rgba(72, 81, 61, 0.9), rgba(121, 160, 133, 0.8));
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(25, 174, 69, 0.3);
}
footer .heads {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    align-items: center;
}
footer .heads .logo {
    display: flex;
    justify-content: center;
}
footer .heads .logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px var(--shadow-color));
    transition: 0.5s ease;
}
footer .heads .logo:hover img {
    transform: scale(1.2);
}
footer .heads ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}
footer .heads ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
footer .heads ul li a::after{
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.5s ease;
}
footer .heads ul li a:hover::after{
    width: 100%;
}
footer .heads ul li a:hover{
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}
footer .heads .social-icons{
    display: flex;
    justify-content: center;
}
footer .heads .social-icons .social-link{
    display: inline-block;
    padding: 10px;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 50%;
}
footer .heads .social-icons .social-link:hover{
    color: var(--accent-cyan);
    background: rgba(33, 158, 108, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(33, 158, 108, 0.3);
}
footer .lanc{
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(25, 174, 69, 0.3);
}
footer .lanc p{
    color: rgba(205, 239, 219, 0.8);
    font-size: 0.9em;
}
footer .lanc span{
    color: var(--accent-cyan);
    font-weight: bold;
}
@media (max-width: 768px){
    footer .heads {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    footer .heads ul {
        justify-content: center;
        gap: 1rem;
    }
}
@media (max-width: 768px) {
    footer .heads {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    form {
        padding: 1.5rem;
    }
    footer {
        padding: 2rem 1rem 1rem;
    }
}
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
    }
    header nav{
        top: 80%;
    }
    footer .heads {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    footer .heads ul {
        justify-content: center;
        gap: 1rem;
    }
}