:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f8f8f8;
    --accent-color: #d4af37;
    --text-color: #333;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8f8f8 0%, #e6e6e6 100%);
    background-attachment: fixed;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    transform: scale(1.03);
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    background: linear-gradient(45deg, #f3e7d3, #fff9e6);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.market-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    max-width: 250px;
}

.market-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-content p {
    color: var(--accent-color);
    font-weight: 400;
    font-size: 0.9rem;
}

footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .market-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .market-card {
        max-width: none;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem 0.5rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .market-grid {
        gap: 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    .flag {
        font-size: 2.5rem;
    }

    .card-content h2 {
        font-size: 1.2rem;
    }

    .card-content p {
        font-size: 0.8rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.market-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.market-card:nth-child(1) { animation-delay: 0.1s; }
.market-card:nth-child(2) { animation-delay: 0.15s; }
.market-card:nth-child(3) { animation-delay: 0.2s; }
.market-card:nth-child(4) { animation-delay: 0.25s; }
.market-card:nth-child(5) { animation-delay: 0.3s; }
.market-card:nth-child(6) { animation-delay: 0.35s; }
.market-card:nth-child(7) { animation-delay: 0.4s; }
