/* General Body Styles */
body {
    margin: 0;
    background-color: #f7f9fc;
    font-family: 'Inter', sans-serif; /* Using Inter for a modern look */
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    padding: 15px 5%; /* Responsive padding */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Sticky positioning */
    position: sticky;
    top: 0;
    /* Ensure header stays above other content */
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    border-radius: 8px; /* Rounded corners */
}

.header-logo img {
    height: 40px;
    width: 40px; /* Ensure square aspect ratio */
    margin-right: 10px;
    border-radius: 50%; /* Circular logo */
    background-color: white; /* Background for placeholder */
}

.nav-toggle {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001; /* Ensure it's above other content */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation for hamburger icon to cross */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


.header-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.header-nav li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #dcdcdc;
}

/* Main Content - Currency Converter */
.container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    margin-bottom: 1.5rem;
    color: #2b9348;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-small {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin-right: 16px;
    border-radius: 8px; /* Rounded corners */
}

.converter-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    text-align: left;
    font-weight: bold;
    color: #555;
    font-size: 1.05rem;
}

input, select {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    border-color: #2b9348;
    box-shadow: 0 0 0 3px rgba(43, 147, 72, 0.2);
    outline: none;
}

button {
    padding: 0.9rem;
    background-color: #2b9348;
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(43, 147, 72, 0.2);
}

button:hover {
    background-color: #1f7034;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(43, 147, 72, 0.2);
}

.result {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #444;
    background-color: #e6ffe6; /* Light green background for result */
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #2b9348;
}

/* Informational Sections */
section {
    background-color: #ffffff;
    margin: 30px auto;
    padding: 25px;
    max-width: 850px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

h2 {
    color: #1c3d5a;
    font-size: 26px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

p, li {
    color: #333;
    font-size: 17px;
    line-height: 1.7;
    text-align: justify;
}

ol {
    padding-left: 25px;
    margin-top: 15px;
}

ol li {
    margin-bottom: 10px;
}

strong {
    color: #1c3d5a;
}

/* Sticky Chat Icon */
@keyframes wave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.4;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.sticky-chat-link {
    display: inline-block;
    text-decoration: none;
}

.sticky-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
}

.sticky-chat-icon {
    width: 50px;
    height: 50px;
    background-color: #8800f8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.sticky-chat-icon svg {
    width: 25px;
    height: 25px;
}

.sticky-chat-wave {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #8800f8;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.4;
    animation: wave 2s infinite linear;
}

/* Footer Styles */
.footer {
    background-color: #1a202c; /* Dark blue from the image */
    color: #a0aec0; /* Light grey for text */
    padding: 40px 5%; /* Adjusted for responsiveness */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px; /* Space between columns */
    margin-top: 50px;
    border-radius: 12px 12px 0 0; /* Rounded top corners */
}

.footer-column {
    flex: 1;
    min-width: 200px; /* Minimum width for columns before wrapping */
    max-width: 280px; /* Max width for columns */
    margin-bottom: 20px; /* Space between columns on smaller screens */
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.footer-logo img {
    height: 30px;
    width: 30px; /* Ensure square aspect ratio */
    margin-right: 10px;
    border-radius: 50%; /* Circular logo */
    background-color: #2d3748; /* Background for placeholder */
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #2d3748; /* Underline for titles */
    padding-bottom: 8px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    border-radius: 4px; /* Rounded corners */
    padding: 2px 0;
    display: inline-block; /* Allows padding */
}

.footer-column ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #718096;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Header Responsive */
    .nav-toggle {
        display: flex; /* Show toggle button */
    }

    .header-nav {
        display: none; /* Hide nav by default */
        flex-direction: column;
        width: 100%;
        background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        padding: 15px 5%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        border-radius: 0 0 12px 12px; /* Rounded bottom corners when open */
    }

    .header-nav.active {
        display: flex; /* Show nav when active */
    }

    .header-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
    }

    .header-nav li {
        margin: 10px 0;
    }

    .header-nav li a {
        font-size: 1.2rem;
        display: block; /* Make links full width */
    }

    .header {
        justify-content: space-between;
    }

    /* Sticky Chat Icon Responsive */
    .sticky-chat-container {
        bottom: 20px;
        right: 20px;
    }

    .sticky-chat-icon {
        width: 45px;
        height: 45px;
    }

    .sticky-chat-icon svg {
        width: 22px;
        height: 22px;
    }

    .sticky-chat-wave {
        width: 70px;
        height: 70px;
    }

    /* Footer Responsive */
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: unset;
        max-width: 90%; /* Adjust max width for mobile */
        width: 100%;
    }

    .footer-column ul {
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .icon-small {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .container {
        margin: 1.5rem auto;
        padding: 1.5rem;
    }

    .result {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 22px;
    }

    p, li {
        font-size: 16px;
    }
}
