/* Global Styles */
:root {
    --primary-color: #8b6b2f;
    --secondary-color: #4a3a18;
    --accent-color: #d4af37;
    --light-color: #f5f5f5;
    --dark-color: #333333;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.logo p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Banner */
.banner {
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-content {
    max-width: 800px;
    padding: 0 2rem;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.2rem;
}

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

/* Filters Section */
.filters {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 1rem;
    cursor: pointer;
}

.filter-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
}

#resetFilters {
    background-color: var(--light-color);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#resetFilters:hover {
    background-color: #e5e5e5;
}

/* Coins Container */
.coins-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Loader */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.coins-error {
    color: #f44336;
    text-align: center;
    font-size: 1.2rem;
    margin: 2rem 0;
}

.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin: 2rem 0;
    grid-column: 1 / -1;
}

.coin-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.coin-image {
    height: 220px;
    width: 100%;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 1rem;
}

.coin-info {
    padding: 1.5rem;
}

.coin-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.coin-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.coin-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coin-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: 2rem auto;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    animation: modalopen 0.3s;
    overflow: hidden;
    position: relative;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
}

.modal-coin-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-coin-image-container {
    text-align: center;
}

.modal-coin-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-coin-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-coin-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.modal-coin-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.modal-coin-details-list {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    margin-bottom: 0.8rem;
}

.detail-label {
    font-weight: 600;
    width: 150px;
    color: #666;
}

.contact-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
}

/* About Page */
.about-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Expertise section styling */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.expertise-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.expertise-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.expertise-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team section styling */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.team-photo {
    height: 200px;
    background-position: center;
    background-size: cover;
}

.team-member h3 {
    color: var(--primary-color);
    margin: 1rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.team-title {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0 1.5rem 0.5rem;
    font-size: 0.9rem;
}

.team-member p:not(.team-title) {
    color: #666;
    margin: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
}

/* Testimonial section styling */
.testimonials {
    margin-bottom: 0;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial p:first-child {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info, .contact-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info h2, .contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-detail {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.contact-icon {
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
        text-align: center;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .banner {
        height: 300px;
    }

    .banner h2 {
        font-size: 2rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
        margin-bottom: 1rem;
    }

    .modal-content {
        width: 95%;
        margin-top: 10%;
    }

    .modal-coin-details {
        flex-direction: column;
    }
}

@media screen and (min-width: 768px) {
    .modal-coin-details {
        flex-direction: row;
    }

    .modal-coin-image-container {
        flex: 1;
    }

    .modal-coin-info {
        flex: 1;
    }
} 