:root {
    --primary-color: #27548A;
    --primary-dark: #183B4E;
    --secondary-color: #27548A;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --background: #FFFFFF;
    --background-alt: #F9FAFB;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --error-color: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Merriweather', serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 100%);
    box-shadow: 0 4px 20px rgba(39, 84, 138, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(39, 84, 138, 0.1);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.logo a:hover {
    color: var(--primary-color);
    background: rgba(39, 84, 138, 0.05);
    transform: translateY(-1px);
}

.logo svg {
    width: 33.6px;
    height: 33.6px;
    transition: transform 0.3s ease;
}

.logo a:hover svg {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(39, 84, 138, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.converter {
    text-align: center;
    margin-bottom: 4rem;
}

.converter h1 {
    font-size: 2rem;  /* Increased by 5% from 2.625rem */
}

.conversion-widget {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(39, 84, 138, 0.1),
                0 8px 10px -6px rgba(39, 84, 138, 0.1),
                0 0 0 1px rgba(39, 84, 138, 0.05),
                inset 0 2px 4px rgba(255, 255, 255, 0.5);
    max-width: 690px;
    margin: 2rem auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.conversion-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0.8;
}

.conversion-widget:hover {
    box-shadow: 0 20px 25px -5px rgba(39, 84, 138, 0.15),
                0 10px 10px -5px rgba(39, 84, 138, 0.08),
                0 0 0 1px rgba(39, 84, 138, 0.05),
                inset 0 2px 4px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

#number-input {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s ease;
    background: var(--background-alt);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#number-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(39, 84, 138, 0.1),
                inset 0 2px 4px rgba(0, 0, 0, 0.05);
    background: white;
}

.check-spelling-btn {
    width: 60%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 4px 6px rgba(39, 84, 138, 0.1);
}

.check-spelling-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(39, 84, 138, 0.15);
}

.check-spelling-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(39, 84, 138, 0.1);
}

.check-spelling-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
}

select, label {
    padding: 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-family: 'Merriweather', serif;
}

.result {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 8px;
    min-height: 3rem;
    font-family: 'Merriweather', serif;
    border: 1px solid rgba(39, 84, 138, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    font-weight: 450;
    text-align: center;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 6px rgba(39, 84, 138, 0.1);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(39, 84, 138, 0.15);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(39, 84, 138, 0.1);
}

/* Examples Section */
.examples {
    margin-top: 4rem;
    padding: 2rem 0;
}

.examples h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.example {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.example:hover {
    transform: translateY(-5px);
}

.example h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.example p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.example-input {
    font-family: 'Fira Code', monospace;
    background: var(--background);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.example-output {
    font-family: 'Merriweather', serif;
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        display: none;  /* Hide navigation links on mobile */
    }

    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo a {
        justify-content: center;
    }

    .options {
        flex-direction: column;
    }

    .conversion-widget {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result {
    animation: fadeIn 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    main {
        padding: 0 5%;
    }

    .conversion-widget {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .check-spelling-btn {
        width: 100%;
    }

    .options {
        flex-direction: column;
        gap: 0.5rem;
    }

    select, label {
        width: 100%;
    }

    .example-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .currency-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .currency-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 5%;
    }

    .converter h1 {
        font-size: 1.5rem;
    }

    .result {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Currency Spelling Section */
.currency-spelling {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin: 2rem auto;
    padding: 3rem 2rem;
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow);
}

.currency-header {
    text-align: center;
    margin-bottom: 3rem;
}

.currency-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.currency-intro {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.currency-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.currency-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.currency-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.currency-code {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #E5E7EB;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-name {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.currency-spelling-text {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    line-height: 1.4;
    margin-right: 2.5rem;
}

.currency-copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.currency-copy-btn svg {
    width: 16px;
    height: 16px;
}

/* FAQ Section Styles */
.number-faqs {
    max-width: 900px;
    margin: 2.5rem auto 2rem auto;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(39,84,138,0.06);
}
.number-faqs h2 {
    font-family: 'Montserrat', sans-serif;
    color: #27548A;
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    text-align: center;
}
.number-faqs dl {
    font-size: 1.13rem;
    color: #183B4E;
}
.number-faqs dt {
    font-weight: 600;
    margin-top: 1.1rem;
}
.number-faqs dd {
    margin-left: 1.2rem;
    margin-bottom: 0.7rem;
} 