:root {
    --primary: #4361ee;
    --accent: #f72585;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7ff;
    color: #212529;
    margin: 0;
}

/* Header */
.site-header {
    background-color:#4361ee;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

.log {
    display: flex;
    align-items: center;
    margin: 0;
}

.log img {
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    position: relative;
    top: 2px;
    filter: drop-shadow(0 0 3px rgb(255, 255, 255));
}

.log a span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: bolder;
    background: linear-gradient(to right,#aa00ff,#0015ff,#1b9400, #ffae00, #ff0000, #ffae00, #1b9400, #0015ff, #aa00ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.log a {
    text-decoration: none;
    color: white;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
    color: aqua;
}








footer a {
    color: #aa00ff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: bold;
}

footer a span:hover {
    text-decoration: underline;
    color: aqua;
}

.seo-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
}

.seo-section h2,
.seo-section h3 {
    color: #4361ee;
    margin-top: 20px;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 15px;
}

footer {
    background: #212121;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 100%;
}

.converter-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.card-icon {
    background: linear-gradient(135deg, var(--primary), #4895ef);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-container {
    display: flex;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    height: 48px;
}

.input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.input-field {
    flex: 1;
    padding: 0 14px;
    font-size: 1rem;
    border: none;
    outline: none;
    background: #f8f9fa;
    min-width: 0;
    height: 100%;
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.input-unit {
    background: #f0f0f0;
    color: var(--dark);
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
    min-width: 65px;
    justify-content: center;
    font-size: 0.9rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.result-card {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 14px 8px;
    text-align: center;
}

.result-title {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    word-break: break-word;
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    height: 48px;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), #3a56e8);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid #e0e0e0;
}

.info-section {
    margin-top: 25px;
    padding: 0 5px;
}

.info-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-title i {
    font-size: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--box-shadow);
}

.info-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary);
}

.info-card-content {
    color: var(--gray);
    font-size: 0.85rem;
}

/* footer {
    text-align: center;
    margin-top: 30px;
    color: var(--gray);
    font-size: 0.8rem;
    padding: 0 10px;
}

.footer-heart {
    color: var(--accent);
} */

/* Landscape orientation adjustments */
@media (orientation: landscape) {
    .converter-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .converter-card {
        margin-bottom: 0;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .input-unit {
        min-width: 55px;
        font-size: 0.8rem;
        padding: 0 8px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 12px 8px;
    }
}


@media (min-width: 300px) and (max-width:350px) {
    .nav-links a{
        font-size: small;
        margin: 0 0 0 10px;
    }
    
    .site-header {
        padding: 5px 10px;
    }
}

