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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: #3498db;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background-color: white;
}

.calculator-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #2c3e50;
}

.calculator-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

.swap-btn {
    text-align: center;
    margin: 10px 0;
}

.swap-btn button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.swap-btn button:hover {
    background-color: #2980b9;
}

.rate-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.rate-info p {
    color: #666;
    font-size: 14px;
}

/* Currencies Section */
.currencies-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.currencies-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #2c3e50;
}

.currencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.currency-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.currency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.currency-flag {
    font-size: 48px;
    margin-bottom: 20px;
}

.currency-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.currency-card p {
    color: #666;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
}

/* Historical Section */
.historical-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.historical-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #2c3e50;
}

.chart-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-column p {
    color: #ddd;
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* About, Contact, Privacy Policy, Terms of Service Pages */
.content-section {
    padding: 80px 0;
    background-color: white;
}

.content-section h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.content-section h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    color: #34495e;
}

.content-section h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #555;
}

.content-section p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 10px;
    color: #666;
}

.content-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Quick Rates Section */
.quick-rates {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.rate-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.rate-card .currency-pair {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.rate-card .rate-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.rate-card .rate-change {
    font-size: 14px;
}

.rate-card .rate-change.positive {
    color: #28a745;
}

.rate-card .rate-change.negative {
    color: #dc3545;
}

/* Currency Insights Section */
.currency-insights {
    padding: 60px 0;
}

.insights-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.insight-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.insight-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 20px;
}

.insight-card p {
    color: #666;
    line-height: 1.6;
}

/* Tools Preview Section */
.tools-preview {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tool-preview-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.tool-preview-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.tool-preview-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tool-link:hover {
    background-color: #244c85;
}

.tools-cta {
    text-align: center;
    margin-top: 40px;
}

/* Tools Page Hero Section */
.tools-hero {
    background-color: #2c5aa0;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.tools-hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.tools-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Travel Budget Calculator Section */
.travel-budget-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.travel-budget-section h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
}

.travel-budget-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.budget-inputs {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.budget-inputs .input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-inputs label {
    font-weight: 500;
    color: #333;
}

.budget-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
    font-weight: normal;
}

.result-card p {
    font-size: 24px;
    font-weight: 600;
    color: #2c5aa0;
}

.calculate-btn {
    width: 100%;
    padding: 12px;
    background-color: #2c5aa0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calculate-btn:hover {
    background-color: #244c85;
}

/* Rate Comparison Section */
.rate-comparison-section {
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.rate-comparison-section h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
}

.comparison-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.base-currency {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.base-currency label {
    font-weight: 500;
    color: #333;
}

.base-currency select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 250px;
}

.update-btn {
    padding: 10px 20px;
    background-color: #2c5aa0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.update-btn:hover {
    background-color: #244c85;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

/* Conversion History Section */
.conversion-history-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.conversion-history-section h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
}

.history-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history-list {
    margin-bottom: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item .conversion-info {
    font-weight: 500;
}

.history-item .conversion-date {
    font-size: 14px;
    color: #666;
}

.no-history {
    text-align: center;
    color: #666;
    padding: 40px;
}

.clear-btn {
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-btn:hover {
    background-color: #c82333;
}





/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    .travel-budget-container,
    .alerts-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .base-currency {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .calculator-section,
    .currencies-section,
    .features-section,
    .historical-section,
    .travel-budget-section,
    .rate-comparison-section,
    .conversion-history-section,
    .content-section {
        padding: 60px 0;
    }
    
    .calculator-section h2,
    .currencies-section h2,
    .features-section h2,
    .historical-section h2,
    .travel-budget-section h2,
    .rate-comparison-section h2,
    .conversion-history-section h2,
    .content-section h1 {
        font-size: 28px;
    }
    
    .result-card p {
        font-size: 20px;
    }
}