:root {
    --primary: #3a86ff;
    --primary-dark: #2667cc;
    --secondary: #ff006e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #dee2e6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    flex-direction: column;
}

/* Header */
.site-header {
   background-color:rgb(88, 88, 249);
    color: white;	
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    width: 100%;
    margin-bottom: 40px;
}	

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    position: relative;
    top: 2px;
    filter: drop-shadow(0 0 3px rgb(255, 255, 255));
}

.logo a span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    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%;
    }
}

.logo 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;
}

@media (min-width: 300px) and (max-width:360px) {
    .nav-links a{
        font-size: small;
        margin: 0 0 0 10px;
    }
    
    .site-header {
        padding: 5px 10px;
    }
}

.converter {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.header {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
}

.header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.converter-body {
    padding: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
}

.amount-input {
    position: relative;
}

.amount-input input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.amount-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.amount-flag {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
}

.currency-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.currency-select {
    flex: 1;
    position: relative;
}

.currency-select select {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.currency-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.select-flag {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    pointer-events: none;
}

.swap-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
}

.swap-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.result-container {
    background: rgba(58, 134, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.conversion-result {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.conversion-flag {
    font-size: 1.8rem;
}

.converted-amount {
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 15px;
}

button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.convert-btn {
    background: var(--primary);
    color: white;
}

.convert-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.clear-btn {
    background: var(--light);
    color: var(--gray);
    border: 2px solid var(--border);
}

.clear-btn:hover {
    background: #f1f3f9;
    transform: translateY(-2px);
}

.loader {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(58, 134, 255, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error {
    color: #ef4444;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
}

/* Responsive design */
@media (max-width: 600px) {
    .converter {
        border-radius: 15px;
    }

    .converter-body {
        padding: 20px;
    }

    .currency-options {
        flex-direction: column;
    }

    .swap-btn {
        width: 50px;
        height: 50px;
        transform: rotate(90deg);
    }

    .swap-btn:hover {
        transform: rotate(270deg);
    }

    .action-buttons {
        flex-direction: column;
    }

    .conversion-result {
        font-size: 1.5rem;
    }
}


.seo-section {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 1rem;
  color: #212529;
}

.seo-section h2 {
  font-size: 1.8rem;
  color: #4361ee;
  margin-bottom: 20px;
  border-bottom: 2px solid #4361ee;
  padding-bottom: 10px;
}

.seo-section h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #3f37c9;
}

.seo-section p {
  margin-bottom: 15px;
}

.seo-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ul li {
  margin-bottom: 10px;
}

.seo-section ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ol li {
  margin-bottom: 10px;
}

.seo-section strong {
  color: #4361ee;
}

.seo-section a {
  color: #3f37c9;
  text-decoration: underline;
}

.seo-section a:hover {
  text-decoration: none;
}


footer p a {
    text-decoration: none;
    font-weight: bold;
    color: #aa00ff;
}

footer{
    margin-bottom: 20px;
}