@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body{
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body{
    min-height: 150dvh;
    position: relative;          
    overflow-y: auto;  
    margin: 0;
    padding:0;
}

header{
    padding-bottom: 20px;
    text-align: center;
    z-index: 998;
    background: #f4eefb;
    border-bottom: 5px solid rgba(30, 71, 173, 0.6);
}
.header-content{
    padding: 40px 20px;
    text-align: center;
}
.subtitle{
    font-size: 15px;
    opacity: 0.9;
    font-weight: 500;
    color:#555;
}
.logo{
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0,5px;
    color:#6366f1;
    margin: 10px;
}
.navbar{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
}
.nav-links {
    display: flex;           
    gap: 36px;               
    align-items: center;
}   
.nav-links a {
    display: inline-block;
    color:#888;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(-8px);
    animation: navFade 0.5s ease forwards;
}
.navbar a:nth-child(1) { animation-delay: 0.1s; }
.navbar a:nth-child(2) { animation-delay: 0.2s; }
.navbar a:nth-child(3) { animation-delay: 0.3s; }

@keyframes navFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-links a:hover,
.nav-links a.active{
    color:black;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 25%;
    bottom: 0;
    width: 0;
    height: 2.5px;
    background: #308ad3;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 50%;        
}
.hamburger{
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span{
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
}
.wrapper{
    position: static;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
}
.wrapper p{
    text-align: center;
    font-size: 17px;
    margin-top: 5px;
    color: #555;
}
.wrapper form{
    margin: 40px 0 20px 0;
}
.bg {
    position: fixed;
    inset: 0;
    background: 
    linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.8)),
    url("images/bg.jpg") center / cover no-repeat;
    filter: blur(10px);
    transform: scale(1.05);
    z-index: -1;
}

form :where(input,select,button){
    width:100%;
    outline: none;
    border: none;
    border-radius:5px;
    box-sizing: border-box;
}
.amount,
.select-box,
form button{
    width: 500px;
    max-width: 500px;
    margin-top: 20px;
}
.from p, .to p {
    font-size: 18px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
form input{
    font-size: 20px;
    padding: 0 0 0 18px;
    margin: 0 0 10px 0;
    border:1px solid #ccc;
    border-radius:6px;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
form input:focus{
    padding:0 15px;
    border: 2px solid #308ad3;
}
form .drop-list{
    display:block;
    margin-top:30px;
    align-items: center;
    justify-content: space-between;
}
form .exchange-rate{
    font-size: 17px;
    margin:20px 0 30px 0;
}
form .exchange-rate span{
    font-size: 30px;
    font-weight: 500;
    color: #6366f1;
    justify-content: center;
    display: flex;
    margin-top: 5px;
}
form button{
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    background:#6366f1; 
    border-radius:6px; 
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    transition: 0.3s;
}
form button:hover{
    background: #4f46e5;
    box-shadow: 0 8px 25px rgba(79,70,229,0.4);
}

.drop-list .select-box{
    display: flex;
    height: 45px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: #fff;
}
.select-box{
    border-radius: 6px;
    padding: 0 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    margin: 12px 0;
    cursor: pointer;
}
.select-box select{
    font-size:16px;
    margin:0 -5px 0 5px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    color: #6366f1;
}
.select-box select::-webkit-scrollbar{
    width: 15px;
}
.select-box select::-webkit-scrollbar-track{
    background: #ffffff;
}
.select-box select::-webkit-scrollbar-thumb{
    background: #888;
    border-radius: 10px;
    border-right: 2px solid #fff;
}
.select-box img{
    max-width: 25px;
}
.drop-list .icon{
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 20px auto;
    font-size: 26px;
    background: rgba(99,102,241,0.6);
    border-radius: 50%;
    transition: 0.3s; 
}
.drop-list .icon:hover,
.swap-icon:hover {
    background: rgba(99,102,241,0.8);
    transform: rotate(180deg);
}
#about, #contact{
    padding: 60px 20px 60px 20px; 
}
.about-container, .contact-container{
    max-width: 800px;
    margin: auto;
    text-align: center;
}
#about h2, #contact h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #6366f1;
}

#about p, #contact p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}


@media (max-width: 480px) {
    .logo { font-size: 26px; }
    .subtitle { font-size: 14px; }
    .navbar{
        background: #fff;
        justify-content:space-between;
    }

    .hamburger{
        display: flex;
        margin-left: auto;
    }
    .nav-links{
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        align-items:center;
        gap: 0;
        display: none;
        border-bottom:1px solid #ddd;
    }
    .nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2.5px;
    background: #308ad3;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}    
    .nav-links.active{
        display: flex;
    }
    .nav-links a{
        width: 100%;
        text-align: center;
        padding:16px;
        border-top: 1px solid #eee;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }
    .wrapper{
        margin-top: 20px;
        align-items: flex-start;
    }
    .amount,
    .select-box,
    form button{
    width: 100%;
    max-width: 480px;
    }
    .select-box {
        height: 58px;
        padding: 0 16px;
    }
    .select-box img { width: 26px; }
    .swap-icon { font-size: 24px; padding: 12px 14px; }
}

    .amount input,
    .select-box,
    button {
        min-height: 56px;
        font-size: 16px;
    }


@supports (-webkit-touch-callout: none) {
    body, .wrapper { height: -webkit-fill-available; }
    html { height: -webkit-fill-available; }
}

* { -webkit-tap-highlight-color: transparent; }
button, .swap-icon { touch-action: manipulation; }


