/* Custom CSS for Veron Cryptocurrency Exchange */

:root {
    --primary-color: #0f2942;
    --secondary-color: #8cce26;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #333;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Add space between content and footer */
body::after {
    content: '';
    display: block;
    height: 80px; /* Height of the footer */
}

main {
    flex: 1 0 auto;
    min-height: calc(100vh - 400px);
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
    background-color: var(--dark-color);
    color: white;
    position: relative;
    z-index: 10;
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, var(--primary-color), #133349);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.brand-image {
    max-height: 400px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

/* Exchange Section */
.exchange-section {
    padding: 3rem 0;
}

.exchange-container {
    max-width: 1000px;
    margin: 0 auto;
}

.exchange-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.currency-selector {
    position: relative;
}

.form-select-container {
    position: relative;
}

.form-select {
    padding-left: 15px;
    height: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-control {
    height: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.exchange-rate {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.exchange-button {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #0f2942;
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.exchange-button:hover {
    background-color: #7db71e;
    border-color: #7db71e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 206, 38, 0.4);
}

/* Testimonials Section */
.testimonials-section {
    background-color: white;
    padding: 4rem 0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.testimonial-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.avatar {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Floating cryptocurrency coins animation */
.floating-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.coin {
    position: absolute;
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.8;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.coin-1 {
    top: 20%;
    left: 15%;
    animation-name: float-1;
}

.coin-2 {
    top: 40%;
    right: 10%;
    animation-name: float-2;
    animation-delay: 0.5s;
}

.coin-3 {
    bottom: 20%;
    left: 30%;
    animation-name: float-3;
    animation-delay: 1s;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(-15deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
}

.footer a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
}

/* About Us Page */
.about-us-section .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.about-us-section .card-body {
    padding: 2rem;
}

.about-us-section .card-title {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-us-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.about-us-section a:hover {
    text-decoration: underline;
}

.about-us-section .card-text {
    line-height: 1.6;
}

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

/* FAQ Page */
.faq-section {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.faq-section .row,
.faq-section .card {
    flex-grow: 1;
}

.faq-section .card-body {
    display: flex;
    flex-direction: column;
}

.faq-section .mt-5.text-center {
    padding: 2rem 0;
    margin-top: 3rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .brand-image {
        max-height: 300px;
        margin-top: 2rem;
    }
    
    .exchange-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .brand-image {
        max-height: 250px;
    }
    
    .exchange-button {
        width: 100%;
    }
}
