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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Bar */
nav {
    background-color: #ffffff;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #d3d3d3;
    border-bottom: 1px solid #d3d3d3;
}

nav .logo img {
    vertical-align: middle;
}

nav .logo a {
    cursor: pointer;
}

nav .logo {
    flex-shrink: 0;
}

nav .ticker {
    flex-grow: 1;
    text-align: center;
    font-size: 16px;
    color: #333;
    padding: 0 10px;
}

nav .ticker .bitcoin-logo {
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.price-up {
    color: green;
}

.price-down {
    color: red;
}

nav .nav-right {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

.nav-link {
    color: #222 !important;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 10px 8px; /* Adjusted bottom padding for tighter underline */
    line-height: 1; /* Normalize line height */
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.nav-link:hover {
    color: #444 !important;
    text-decoration: underline;
    text-decoration-color: #5b5d63; /* Clean underline below word */
}

/* Navigation Language Dropdown */
#language-switcher {
    margin-left: 20px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#language-switcher:hover {
    border-color: #5b5d63;
}

#language-switcher:focus {
    outline: none;
    border-color: #2ecc71;
}

/* Container */
.container {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    background: url('images/blockchain-background.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 100px 20px;
    color: #ffffff;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.bitcoin-symbol {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Hero Section CTA Button */
.cta-button-wrapper {
    position: relative;
}

.cta-button {
    background-color: #2ecc71;
    border-radius: 12px;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

.cta-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    animation: none;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Services Section */
.services {
    padding: 50px 20px;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
}

.services h2::before {
    content: '';
    width: 50px;
    height: 3px;
    background-color: #f7931a;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-block {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-block .service-icon {
    font-size: 40px;
    color: #f7931a;
    margin: 0 auto 8px;
    display: block;
    opacity: 0.7;
}

.service-block h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.service-block p {
    font-size: 10px;
    margin-bottom: 12px;
}

.service-link {
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-link:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
}

.email-modal-content {
    max-width: 400px;
    text-align: center;
}

.modal-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-image {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    margin-bottom: 8px;
    border-radius: 5px;
}

.close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #a9a9a9;
}

/* Compelling Text in Modal */
.compelling-text {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.compelling-text strong {
    color: #333;
}

/* Email Warning */
.email-warning {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

/* Modal CTA Button */
.modal-cta-button {
    background-color: #2ecc71;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: block;
    margin: 8px auto;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-cta-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

/* TradingView Chart in Modal */
#bitcoin-price-chart {
    width: 100% !important;
    height: 42vh !important;
    margin: 8px auto;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-loading {
    font-size: 12px;
    font-weight: normal;
    margin: 0;
    text-align: center;
    color: #333;
}

#chart-reload {
    background-color: #f7931a;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: none;
    margin: 8px auto;
}

#chart-reload:hover {
    background-color: #e68a00;
}

/* Form Inputs in Email Modal */
#prospectus-form label {
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

#prospectus-form input {
    width: 100%;
    padding: 8px;
    margin: 4px 0 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#download-leads {
    background-color: #f7931a;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#download-leads:hover {
    background-color: #e68a00;
}

/* News Modal */
#news-modal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.twitter-timeline {
    width: 100%;
    height: 500px;
    margin: 10px 0;
}

/* News Modal Enhancements */
#news-modal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    max-width: 600px; /* Wider for timeline */
}

#news-modal .modal-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #f7931a; /* Bitcoin orange accent */
}

#news-modal .modal-content p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
}

.follow-prompt {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
    color: #777;
}

.follow-prompt a {
    color: #2ecc71; /* Green link for CTA */
    text-decoration: none;
}

.follow-prompt a:hover {
    text-decoration: underline;
}

/* X Timeline Wrapper */
.x-timeline-wrapper {
    position: relative;
    border: 1px solid #f7931a; /* Bitcoin-themed border */
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    margin: 10px 0;
}

.timeline-loading {
    text-align: center;
    padding: 20px;
    color: #f7931a;
    font-style: italic;
    display: none; /* Hidden by default */
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    #news-modal .modal-content {
        width: 95%;
        max-width: none;
        padding: 15px;
    }
    
    .twitter-timeline {
        height: 400px !important; /* Shorter on mobile */
    }
    
    .x-timeline-wrapper {
        border-width: 2px; /* Thicker border for touch */
    }
}

/* About Section */
.about {
    display: block !important;
    padding: 50px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about p {
    font-size: 18px;
}

/* Book Section */
.book {
    padding: 50px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.book h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.book p {
    font-size: 18px;
    margin-bottom: 20px;
}

.book-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 20px 0;
}

.buy-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.buy-button {
    background-color: #2ecc71;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.buy-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

/* Contact Section */
.contact {
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.contact h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 20px;
}

.map {
    margin-top: 20px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    background-color: #2ecc71;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.g-recaptcha {
    margin-bottom: 15px;
}

/* Footer */
.copyright {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Modal and Chart */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 10px;
        max-height: 85vh;
    }
    .email-modal-content {
        width: 90%;
    }
    #bitcoin-price-chart {
        height: 35vh !important;
    }
    .modal-image {
        max-height: 120px;
    }
    .compelling-text {
        font-size: 12px;
    }
    .modal-content h2 {
        font-size: 18px;
    }
    .modal-content p {
        font-size: 12px;
    }
    .chart-loading {
        font-size: 10px;
    }
    .modal-cta-button {
        font-size: 12px;
        padding: 6px 12px;
    }
    .email-warning {
        font-size: 10px;
    }
    #prospectus-form label {
        font-size: 12px;
    }
    #prospectus-form input {
        font-size: 12px;
        padding: 6px;
    }
    #chart-reload {
        font-size: 12px;
        padding: 6px 12px;
    }
    .service-block .service-icon {
        font-size: 30px;
    }
    .service-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    .book-image {
        height: auto;
    }
    .book h2 {
        font-size: 28px;
    }
    .book p {
        font-size: 16px;
    }
    .buy-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 8px;
    }
    #bitcoin-price-chart {
        height: 30vh !important;
    }
    .modal-image {
        max-height: 100px;
    }
    .compelling-text {
        font-size: 10px;
    }
    .modal-content h2 {
        font-size: 16px;
    }
    .modal-content p {
        font-size: 10px;
    }
    .modal-cta-button {
        font-size: 10px;
        padding: 5px 10px;
    }
    .email-warning {
        font-size: 9px;
    }
    #prospectus-form label {
        font-size: 10px;
    }
    #prospectus-form input {
        font-size: 10px;
        padding: 5px;
    }
    #chart-reload {
        font-size: 10px;
        padding: 5px 10px;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .service-link {
        padding: 5px 10px;
        font-size: 10px;
    }
    .book-image {
        height: auto;
    }
    .book h2 {
        font-size: 24px;
    }
    .book p {
        font-size: 14px;
    }
    .buy-button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .contact-container {
        flex-direction: column;
    }
    #language-switcher {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    .contact-form button {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .contact-form button {
        font-size: 12px;
        padding: 8px;
    }
}