/* =================== CSS VARIABLES =================== */
:root {
    --primary-color: #1d539f;
    --text-color: #666565;
    --bg-white: #ffffff;
    --bg-light: #f1f1f1;
    --border-radius: 5px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --font-main: "Red Hat Display", serif;
    --font-heading: "Bona Nova SC", serif;
    --transition: all 0.3s ease;
}

/* =================== GLOBAL STYLES =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* =================== HEADER =================== */
.navbar {
    background: var(--bg-white) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* =================== MAIN CONTENT SPACING =================== */
main {
    margin-top: 80px;
}

/* =================== SECTIONS =================== */
.section {
    padding: 4rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-white {
    background: var(--bg-white);
}

/* =================== HERO SECTION =================== */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 6rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./img/hero-background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.73;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #fff;
}
.card-img-top {
    height: 200px;
}
/* =================== BUTTONS =================== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #164080;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* =================== CARDS =================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

/* =================== MARKET DATA STYLES =================== */
.market-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.market-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.market-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 1rem;
}

.market-info h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.market-info small {
    color: var(--text-color);
    font-size: 0.85rem;
}

.market-value {
    text-align: right;
}

.market-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.market-change {
    font-size: 0.9rem;
    font-weight: 600;
}

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

.market-change.negative {
    color: #dc3545;
}

/* =================== STATISTICS =================== */
.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* =================== TESTIMONIALS =================== */
.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 600;
    color: #333;
}

/* =================== FORM STYLES =================== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 83, 159, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* =================== FOOTER =================== */
.footer {
    background: var(--bg-light);
    padding: 3rem 0 1rem;
    border-top: 1px solid #dee2e6;
}

.footer h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer a {
    color: var(--text-color);
    display: block;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* =================== COOKIE POPUP =================== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .market-item {
        flex-direction: column;
        text-align: center;
    }
    
    .market-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* =================== UTILITY CLASSES =================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light-custom {
    background: var(--bg-light) !important;
}

.border-radius {
    border-radius: var(--border-radius) !important;
}

.shadow-custom {
    box-shadow: var(--box-shadow) !important;
}

.mb-section {
    margin-bottom: 4rem;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
