:root {
    --bg-dark: #f8fafc; /* Not dark anymore, just light gray */
    --bg-darker: #ffffff; /* White background */
    --primary: #A0522D;
    --primary-glow: rgba(160, 82, 45, 0.2);
    --secondary: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Gradients for modern look */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
}

.highlight {
    color: var(--primary);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

.cta-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 2rem 0;
}

.mobile-menu ul li a {
    font-size: 2rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 5%;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 4rem;
    padding-top: 80px;
    background-image: linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.98)), url('https://images.unsplash.com/photo-1580519542036-ed47f3e42a9b?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: white;
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    background: var(--bg-dark);
}

.secondary-btn:hover {
    border-color: var(--text-muted);
    background: rgba(0,0,0,0.03);
}

/* Converter Card */
.hero-converter {
    flex: 0.8;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.hero-converter h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.currency-input {
    display: flex;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.currency-input:focus-within {
    border-color: var(--primary);
}

.currency-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    outline: none;
    width: 100%;
}

.currency-input select {
    background: rgba(0,0,0,0.03);
    border: none;
    border-left: 1px solid var(--glass-border);
    padding: 0 1rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem top 50%;
    background-size: .65rem auto;
}

.currency-input select option {
    background: #ffffff;
    color: var(--text-main);
}

.swap-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -10px auto;
    position: relative;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--primary-glow);
    transition: transform 0.3s ease;
    color: white;
}

.swap-icon:hover {
    transform: rotate(180deg);
}

.rate-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.rate-info span {
    font-weight: 600;
    color: var(--text-main);
}

/* Sections */
section {
    padding: 6rem 5%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Rates Grid */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.rate-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.rate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.currency-pair {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.currency-pair i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.buy-sell {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.buy-sell div {
    display: flex;
    flex-direction: column;
}

.buy-sell span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.buy-sell strong {
    font-size: 1.3rem;
    color: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(160, 82, 45, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(160, 82, 45, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact */
.contact-container {
    display: flex;
    padding: 3rem;
    gap: 4rem;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(160, 82, 45, 0.08);
    padding: 1rem;
    border-radius: 12px;
    width: 55px;
    text-align: center;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.info-item p {
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-map {
    flex: 1;
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=800&q=80') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    gap: 1rem;
    position: relative;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7);
}

.map-placeholder i, .map-placeholder p, .map-placeholder span {
    position: relative;
    z-index: 1;
    color: var(--primary);
    font-weight: 600;
}

.map-placeholder i {
    font-size: 3rem;
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
    background: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.footer-logo i {
    color: var(--primary);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-converter {
        margin-top: 2rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .cta-btn {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
