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

/* Body */
body {
    background-color: #1C2526; /* Navy blue */
}

/* Main container */
.dmBody {
    font-family: 'B612', sans-serif;
    background-color: transparent;
    color: #F7931A; /* Bitcoin orange */
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Background for Testimonials and Footer */
.bg-section {
    background-image: url('https://i.postimg.cc/wvTBJng2/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* Landing Page */
.landing-body {
    background-image: url('/images/mainlandingpic.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-container {
    text-align: center;
}

.landing-container .dmButtonLink {
    font-size: 24px;
    padding: 15px 30px;
    font-family: 'B612', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #F7931A;
    color: #1C2526;
    border: 1px solid #E68A00;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-container .dmButtonLink:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.4);
}

/* Responsive Grid */
.dmRespRow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 15px 0; /* Removed bottom padding to reduce gaps */
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.dmRespColsWrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.dmRespCol {
    padding: 20px;
}

.small-12 { width: 100%; }
.medium-6 { width: 50%; }
.large-6 { width: 50%; }
.large-4 { width: 33.33%; }
.large-12 { width: 100%; }

@media (max-width: 768px) {
    .medium-6, .large-6, .large-4, .large-12 { width: 100%; }
    .mobile-columns-reversed { flex-direction: column-reverse; }
    .dmRespRow { padding: 20px 10px 0; }
    .dmRespCol { padding: 10px; }
}

/* Section Dividers */
.section-divider {
    border-bottom: 1px solid rgba(247, 147, 26, 0.2);
    margin-bottom: 0; /* Removed margin to eliminate gaps */
}

/* Header */
.dmHeader {
    background-color: transparent !important;
    padding: 40px 15px;
    text-align: center;
    position: relative;
    min-height: 200px;
    z-index: 2;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/backgroundmain.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: -1 !important;
}

.logo-title-container {
    background: rgba(28, 37, 38, 0.6);
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.main-navigation {
    background: rgba(28, 37, 38, 0.6);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 15px;
    position: relative;
    z-index: 3;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    max-width: 200px;
    transition: transform 0.3s ease;
    z-index: 3;
}

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

.header-title {
    font-family: 'B612', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 1px #E68A00;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #F7931A;
    text-decoration: none;
    font-size: 18px;
    font-family: 'B612', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color 0.3s ease;
    text-shadow: 0 0 1px #E68A00;
}

.main-navigation a:hover {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
    .main-navigation a {
        font-size: 16px;
    }
    .logo {
        max-width: 150px;
    }
    .header-title {
        font-size: 48px;
    }
    .logo-title-container, .main-navigation {
        padding: 8px 12px;
    }
}

/* Sections */
.dmNewParagraph h1.section-title {
    font-family: 'B612', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 1px #E68A00;
}

.dmNewParagraph h2.section-title {
    font-family: 'B612', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 1px #E68A00;
}

.dmNewParagraph h3 {
    font-family: 'B612', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-shadow: 0 0 1px #E68A00;
}

.dmNewParagraph h5 {
    font-family: 'B612', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #F7931A;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 1px #E68A00;
}

.dmNewParagraph p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #F7931A;
    text-shadow: 0 0 1px #E68A00;
}

.dmNewParagraph p.roadmap-text {
    font-size: 18px; /* Increased size for roadmap text */
}

.dmNewParagraph.no-overlay {
    background: transparent; /* Remove overlay for specific sections */
}

.footer-links.no-overlay {
    background: transparent; /* Remove overlay for footer links */
}

/* Contract Button */
.contract-button {
    cursor: pointer;
    padding: 10px 15px; /* Match .unifiednav__item styling */
    white-space: nowrap; /* Prevent contract address from wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for long text */
    max-width: 300px; /* Limit width to prevent overflow */
}

.contract-button.copied::after {
    content: 'Copied!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #F7931A;
    color: #1C2526;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'B612', sans-serif;
    opacity: 0;
    animation: fadeInOut 1.5s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

.dmButtonLink {
    display: inline-block;
    padding: 12px 30px;
    background: #F7931A;
    color: #1C2526;
    text-decoration: none;
    border: 1px solid #E68A00;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'B612', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dmButtonLink:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.4);
}

/* Images */
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 1px solid #E68A00;
}

.hero-image:hover {
    transform: scale(1.03);
}

.roadmap-image {
    max-width: 80%;
    margin: 20px auto;
    border-radius: 8px;
    border: 1px solid #E68A00;
}

.avatar {
    max-width: 250px; /* Size for video */
    border-radius: 50%; /* Keep circular shape for video */
    transition: transform 0.3s ease;
    border: 1px solid #E68A00;
}

img.avatar {
    max-width: 400px; /* Force larger size for images */
    height: auto;
    border-radius: 0; /* Remove circular shape to adapt to natural image shape */
}

.avatar:hover {
    transform: scale(1.05);
}

/* Testimonials */
#1760344236 {
    position: relative;
    z-index: 2;
    min-height: 600px;
    padding-bottom: 0; /* Reduced padding to minimize gaps */
}

.testimonial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    position: relative;
    z-index: 3;
}

.testimonial-subgrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.testimonial-overlay {
    background: rgba(28, 37, 38, 0.6);
    padding: 5px; /* Compact padding for overlay */
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.testimonial-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: auto; /* Allow overlay to shrink to content size */
}

.testimonial-text p, .testimonial-text h5 {
    margin: 0;
    padding: 5px 0;
}

@media (min-width: 769px) {
    .testimonial-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .testimonial-text {
        min-height: auto; /* Allow overlay to shrink to content size */
    }
}

@media (max-width: 768px) {
    .testimonial-container {
        margin-bottom: 20px;
    }
    .testimonial-subgrid {
        flex-direction: column; /* Stack testimonials vertically on mobile */
    }
    #1760344236 {
        min-height: 800px;
        padding-bottom: 0;
    }
    .testimonial-overlay {
        padding: 4px; /* Compact padding for mobile */
    }
    .testimonial-text {
        min-height: auto; /* Allow overlay to shrink to content size */
    }
    .avatar {
        max-width: 200px; /* Size for video on mobile */
    }
    img.avatar {
        max-width: 300px; /* Larger size for images on mobile */
        border-radius: 0; /* Remove circular shape for images on mobile */
    }
}

/* Blog and Mèmes */
.mainBlog {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.postArticle {
    width: calc(25% - 20px);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.postArticle:hover {
    transform: translateY(-8px);
}

.blogImg {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #E68A00;
}

@media (max-width: 768px) {
    .mainBlog {
        flex-direction: column;
    }
    .postArticle {
        width: 100%;
    }
    .blogImg {
        height: 250px;
    }
}

/* Nautical Gallery */
#1760344236 {
    background: rgba(28, 37, 38, 0.7);
    padding: 50px 15px 0; /* Removed bottom padding to reduce gaps */
}

.gallery-carousel {
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0 10px;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #E68A00;
}

/* Slick Carousel Overrides */
.slick-prev, .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: rgba(28, 37, 38, 0.8);
    border-radius: 50%;
    z-index: 3;
}

.slick-prev:before, .slick-next:before {
    font-size: 24px;
    color: #F7931A;
    font-family: 'B612', sans-serif;
}

.slick-prev {
    left: 15px;
}

.slick-next {
    right: 15px;
}

.slick-dots {
    text-align: center;
    padding: 15px 0;
}

.slick-dots li {
    display: inline-block;
    margin: 0 6px;
}

.slick-dots li button {
    font-size: 0;
    width: 14px;
    height: 14px;
    background: #F7931A;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.slick-dots li.slick-active button {
    background: #FFFFFF;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    border: 1px solid #E68A00;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #FFFFFF;
    font-size: 40px;
    cursor: pointer;
    font-family: 'B612', sans-serif;
    text-shadow: 0 0 1px #E68A00;
}

/* Footer */
.dmFooterContainer {
    background-color: transparent;
    padding: 5px 15px 40px; /* Added 5px top padding to lower footer */
    border-top: 2px solid #F7931A;
    position: relative;
    z-index: 3;
}

.dmFooterResp {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center for perfect horizontal alignment */
    gap: 20px;
    background: rgba(28, 37, 38, 0.6); /* Overlay for entire footer */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E68A00;
    box-sizing: border-box; /* Ensure padding is included in border dimensions */
    margin-top: 5px; /* Lower footer by 5px */
}

.footer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    min-height: 150px; /* Ensure consistent height for alignment */
}

.footer-section.hub-section {
    background: transparent; /* Remove overlay for BTSea Hub section */
}

.footer-section.contract-section {
    background: transparent; /* Remove overlay for Contract Address section */
}

.footer-section h2.section-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: row; /* Ensure horizontal alignment on desktop */
    gap: 15px;
    margin: 0;
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
}

.footer-links li {
    display: inline-block;
}

.footer-links a {
    font-size: 16px;
    color: #F7931A;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #E68A00;
    transition: color 0.3s ease;
    padding: 10px 15px; /* Consistent padding for alignment */
}

.footer-links a:hover {
    color: #FFFFFF;
}

.dmSocialHub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center; /* Center vertically */
    min-height: 100px; /* Match height for alignment */
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px;
    background: #F7931A;
    border: 1px solid #E68A00;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.4);
}

.social-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #E68A00;
}

.social-label {
    font-size: 14px;
    color: #1C2526;
    font-family: 'B612', sans-serif;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 0 1px #E68A00;
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 5px; /* Maintain lowering on mobile */
    }
    .footer-section {
        width: 100%;
        min-height: auto; /* Remove min-height for mobile */
    }
    .footer-section.contract-section {
        max-width: 180px; /* Slightly wider opaque background on mobile */
    }
    .footer-section.contract-section .footer-links {
        max-width: 180px; /* Slightly wider footer-links width in contract section */
    }
    .contract-button {
        max-width: 180px; /* Match opaque background width */
        font-size: 8px; /* Smaller font size for mobile to fit text */
        padding: 5px 6px; /* Reduced padding for compactness */
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dmSocialHub {
        gap: 8px;
    }
    .social-icon {
        width: 25px;
        height: 25px;
    }
    .social-label {
        font-size: 12px;
    }
    .footer-section h2.section-title {
        margin-bottom: 10px; /* Reduced for mobile */
    }
}

/* Disabled Link Styling */
.unifiednav__item.disabled {
    cursor: default;
    opacity: 0.5;
}

/* Animations */
[data-anim-desktop="fadeInScale"] {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-anim-desktop="fadeInScale"].visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

[data-anim-desktop="zoomIn"] {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim-desktop="zoomIn"].visible {
    opacity: 1;
    transform: scale(1);
}
