/* Custom CSS for GradientXchange */

:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --african-gold: #d4af37;
    --african-earth: #cd853f;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
}

/* Typography */
body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    line-height: 1.6;
    color: var(--text-dark);
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem !important;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: transparent;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
    flex: 1.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 0.8;
    padding-left: 0;
    margin-left: -2rem;
}

.hero-content .lead {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
}

/* Footer styling */
footer .text-muted {
    color: white !important;
}

footer a.text-muted {
    color: white !important;
}

footer a.text-muted:hover {
    color: #e2e8f0 !important;
    text-decoration: underline !important;
}

/* TradingView Widget styling */
.tradingview-widget-container {
    margin-top: 76px;
    background: transparent;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.tradingview-widget-container__widget {
    min-height: 40px;
    display: inline-block;
    vertical-align: middle;
    background: transparent;
}

.hero-section .row {
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    transform: scale(1.15);
}



.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Crypto Section */
.crypto-section {
    background: transparent;
}

.crypto-logos {
    gap: 2rem;
}

.crypto-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.crypto-item:hover {
    transform: translateY(-5px);
}

.crypto-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.crypto-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.crypto-name {
    display: block;
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Widgets Section */
.widget-preview {
    padding: 2rem;
    transition: all 0.3s ease;
}

.widget-preview:hover {
    transform: translateY(-5px);
}

.widget-preview img {
    max-width: 80%;
    height: auto;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.widget-preview img[src*="Onramp_widget_interface_mockup"],
.widget-preview img[src*="Offramp_widget_interface_mockup"] {
    max-width: 85%;
    max-height: 500px;
    object-fit: contain;
}

.widget-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.widget-card .card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 1.25rem;
    font-weight: 600;
}

.currency-display {
    background: transparent;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.currency-label {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
}

.currency-value {
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.conversion-display {
    background: transparent;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.conversion-rate {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* About Section */
.about-section {
    background: transparent;
}

.feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Contact Section */
.contact-item {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: transparent;
    transform: translateY(-5px);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 500px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        margin-top: 60px;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image img {
        transform: scale(1);
        max-width: 100%;
        margin: 1rem 0;
    }
    
    .crypto-logos {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .crypto-item {
        margin-bottom: 1rem;
    }
    
    .crypto-logo {
        width: 50px;
        height: 50px;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .widget-card {
        margin-bottom: 2rem;
    }
    
    .widget-preview {
        padding: 1rem;
    }
    
    .widget-preview img {
        max-width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .brand-text {
        font-size: 1.4rem;
    }
    
    .tradingview-widget-container {
        margin-top: 60px;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content .lead {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .crypto-logos {
        gap: 1rem;
    }
    
    .crypto-logo {
        width: 45px;
        height: 45px;
    }
    
    .contact-form {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .hero-content {
        margin-left: 0;
        padding: 0 1rem;
    }
    
    .hero-image {
        flex: 1;
    }
    
    .hero-section .row {
        flex-direction: column;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}
