/* ============================================
   BitNoval - Modern Cryptocurrency Platform
   ============================================ */

:root {
    --primary-color: #6C5CE7;
    --primary-dark: #5A4FCF;
    --primary-light: #A29BFE;
    --secondary-color: #FD79A8;
    --accent-color: #FDCB6E;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --bg-gradient-start: #F8F9FF;
    --bg-gradient-end: #FFFFFF;
    --card-shadow: 0 10px 40px rgba(108, 92, 231, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(108, 92, 231, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #0D0D2B;
    overflow-x: hidden;
    position: relative;
}

/* Overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 43, 0.7);
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: rgba(13, 13, 43, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}

.navbar-brand,
.navbar-nav .nav-link {
    color: white !important;
}

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

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    margin-right: 10px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-light), #FDCB6E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-start {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    color: white;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 13, 43, 0.85) 0%, rgba(25, 25, 60, 0.85) 100%);
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 13, 43, 0.6) 0%, rgba(25, 25, 60, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

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

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

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

.crypto-icons-left {
    position: relative;
    margin-top: 3rem;
    animation: fadeInUp 1.2s ease;
}

.crypto-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-right: 1rem;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    animation: float 4s ease-in-out infinite;
}

.crypto-icon-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0.5rem;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
    animation: float 5s ease-in-out infinite;
}

.crypto-icon-small:nth-child(3) {
    animation-delay: 0.5s;
}

/* ============================================
   Exchange Card
   ============================================ */

.exchange-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease;
    transition: all 0.3s ease;
}

.exchange-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

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

.exchange-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.input-group {
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #F8F9FA;
}

.form-control:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    border: none;
}

.form-select {
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    cursor: pointer;
}

.form-select:focus {
    border: none;
    box-shadow: none;
}

.exchange-rate {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.swap-button {
    text-align: center;
    margin: 1rem 0;
}

.btn-swap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-swap:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-exchange {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-exchange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.4);
}

.rating-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E9ECEF;
}

.stars {
    color: #FDCB6E;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Cosmic Illustration
   ============================================ */

.cosmic-illustration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    z-index: 1;
    opacity: 0.3;
}

.floating-crypto {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

.floating-crypto:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-crypto:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.floating-crypto:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* ============================================
   Crypto List Section
   ============================================ */

.crypto-list-section {
    padding: 80px 0;
    background: white;
}

.search-bar-container {
    margin-bottom: 3rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar .form-control {
    border: 2px solid #E9ECEF;
    border-radius: 25px 0 0 25px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.search-bar .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateX(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.crypto-table-container {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.crypto-table {
    margin: 0;
    background: white;
}

.crypto-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.crypto-table thead th {
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.crypto-table tbody tr {
    border-bottom: 1px solid #F1F3F5;
    transition: all 0.3s ease;
}

.crypto-table tbody tr:hover {
    background: #F8F9FF;
    transform: scale(1.01);
}

.crypto-table tbody td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

.crypto-name {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.crypto-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.crypto-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.crypto-change {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.crypto-change.positive {
    color: #00B894;
    background: rgba(0, 184, 148, 0.1);
}

.crypto-change.negative {
    color: #D63031;
    background: rgba(214, 48, 49, 0.1);
}

.crypto-chart {
    width: 100px;
    height: 40px;
}

.btn-crypto {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sell {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-buy {
    background: linear-gradient(135deg, #FDCB6E, #E17055);
    color: white;
}

.btn-crypto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.feature-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer h5, .footer h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .exchange-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .crypto-table {
        font-size: 0.85rem;
    }
    
    .crypto-table thead th,
    .crypto-table tbody td {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .btn-start {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

