/* BitBrands UG - Custom CSS */
:root {
    --primary-navy: #0A1828;
    --primary-charcoal: #2C2C2C;
    --accent-gold: #BFA181;
    --accent-gold-dark: #D4AF37;
    --text-light: #FFFFFF;
    --text-muted: #F0F0F0;
    --background-light: #F8F9FA;
    --background-dark: #1a1a1a;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--primary-charcoal);
    background-color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-navy);
}

/* Navigation */
.navbar {
    background-color: var(--primary-navy) !important;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light) !important;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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


/* Enhanced Flash Messages - Add this to your existing style.css */

/* Replace your existing .flash-messages with this */
.flash-messages-container {
    position: fixed;
    top: 80px; /* Below your navbar */
    left: 0;
    right: 0;
    z-index: 1055; /* Higher than your existing 1000 */
    padding: 0 20px;
    pointer-events: none; /* Allow clicks through container */
}

.flash-messages-container .container {
    pointer-events: auto; /* Re-enable clicks on content */
}

.flash-message {
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.4s ease-out;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.flash-message.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(25, 135, 84, 0.95));
    border-left: 5px solid var(--accent-gold);
    color: var(--text-light);
}

.flash-message.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(176, 42, 55, 0.95));
    border-left: 5px solid #ff6b7a;
    color: var(--text-light);
}

.flash-message .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.flash-message .btn-close:hover {
    opacity: 1;
}

/* Enhanced animations matching your theme */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Auto-hide animation */
.flash-message.auto-dismiss {
    animation: slideInDown 0.4s ease-out, slideOutUp 0.4s ease-out 4.6s forwards;
}

/* Icon styling for flash messages */
.flash-message .fas {
    color: var(--accent-gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for flash messages */
@media (max-width: 576px) {
    .flash-messages-container {
        top: 70px;
        padding: 0 10px;
    }
    
    .flash-message {
        font-size: 0.9rem;
    }
}





/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-charcoal) 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://pixabay.com/get/gc4187660b4974ffa589c0845358c4a0ce04ae25529665661dbfd26d005b4118929eacb779f5159e3828558386eaf94f656de61be91435d76ced99eb0768a3b05_1280.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-trust {
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.text-gold {
    color: var(--accent-gold) !important;
}

/* Hero Buttons Vertical Layout */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-buttons .btn {
    min-width: 250px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: block;
    margin-bottom: 0;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, #D4AF37, #F4D03F);
    border: none;
    color: #1a1a1a;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(45deg, #F4D03F, #D4AF37);
    color: #1a1a1a;
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

/* Override any existing flex layout */
.hero-buttons .d-flex {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
}

/* Responsive spacing for buttons */
@media (max-width: 576px) {
    .hero-buttons {
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        min-width: 100%;
    }
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--primary-navy);
    box-shadow: 0 4px 15px rgba(191, 161, 129, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold-dark) 0%, var(--accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 161, 129, 0.4);
    color: var(--primary-navy);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

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

.btn-outline-primary {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline-primary:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-outline-secondary {
    border: 2px solid var(--primary-charcoal);
    color: var(--primary-charcoal);
}

.btn-outline-secondary:hover {
    background-color: var(--primary-charcoal);
    color: var(--text-light);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    margin: 20px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary-charcoal);
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--text-light);
}

.about-card {
    background: var(--text-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
    height: 100%;
}

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

.about-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-icon i {
    font-size: 1.5rem;
    color: var(--primary-navy);
}

/* How It Works Section */
.how-it-works {
    background-color: var(--background-light);
    padding: 80px 0;
}

.process-card {
    background: var(--text-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
    height: 100%;
}

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

.process-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-charcoal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.process-icon i {
    font-size: 2rem;
    color: var(--accent-gold);
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-charcoal) 100%);
    color: var(--text-light);
}

.trust-section .section-title {
    color: var(--text-light);
}

.trust-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    height: 100%;
}

.trust-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.trust-icon i {
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.transparency-note {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    margin-top: 2rem;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.project-card {
    background: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
    height: 100%;
}

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

.project-image {
    height: 250px;
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.project-image img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(1.2) contrast(1.3) saturate(1.1);
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Special positioning for BitDials logo */
.project-image img[src*="bitdials-new-logo"] {
    max-width: 85%;
    max-height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    filter: brightness(1.1) contrast(1.2);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Disable hover animation for BitDials logo */
.project-card:hover .project-image img[src*="bitdials-new-logo"] {
    transform: translate(-50%, -50%) !important;
}

/* Special positioning for BitCars logo to match BitDials size */
.project-image img[src*="bitcars-updated-logo"] {
    max-width: 85%;
    max-height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    filter: brightness(1.1) contrast(1.2);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Disable hover animation for BitCars logo */
.project-card:hover .project-image img[src*="bitcars-updated-logo"] {
    transform: translate(-50%, -50%) !important;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-features {
    margin: 1rem 0;
}

.project-testimonial {
    background: var(--background-light);
    border-radius: 10px;
    padding: 1rem;
    font-style: italic;
}

.blockquote-footer {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-charcoal) 0%, var(--primary-navy) 100%);
    color: var(--text-light);
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-section .section-subtitle {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 600 !important;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    border-radius: 8px;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-gold);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(191, 161, 129, 0.25);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form label {
    color: var(--text-light);
    font-weight: 500;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a {
    color: var(--accent-gold);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--text-light);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: var(--primary-navy) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: var(--text-muted) !important;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-gold) !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-navy);
    color: var(--text-light);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--shadow-color);
    border-top: 2px solid var(--accent-gold);
}

.cookie-banner a {
    color: var(--accent-gold);
    text-decoration: none;
}

.cookie-banner a:hover {
    color: var(--text-light);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

/* Legal Pages */
.legal-page {
    background: var(--text-light);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-top: 80px;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.legal-section h4 {
    color: var(--primary-charcoal);
    margin-bottom: 0.5rem;
}

.legal-section ul {
    padding-left: 1.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about-card,
    .process-card,
    .trust-card,
    .project-card {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .cookie-banner .row {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner .col-md-4 {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .legal-page {
        padding: 2rem;
        margin-top: 60px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--background-light);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}
