/* ==========================================================================
   Base Styles
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Rajdhani', sans-serif;
    scroll-behavior: smooth; /* Enable smooth scrolling for the entire page */
}

body {
    background-color: black;
    color: #fff;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #0A0A0A;
    opacity: 0;
    pointer-events: none;
}

body.bg-loaded {
    background: black;
}

/* Fullwidth body style */
.fullwidth-body {
    display: block;
    overflow-y: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */
/* Base h1 styles */
h1 {
    font-size: 3em;
    margin-bottom: 0.1em;
    position: relative;
    font-weight: 700;
    color: #ffffff;
}

.subtext {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 1em;
    font-weight: 500;
    color: rgb(255, 255, 255);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.1s;
}

.subtext.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Strategy section h2 */
.strategy-section h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.strategy-section.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */

   /* Content section styles */
.content-section {
    margin-bottom: 2em;
    position: relative;
}

.content-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    font-weight: 400;
    max-width: 900px;
}

.content-logo {
    float: left;
    width: 145px;
    height: auto;
    margin: 5px 30px 10px 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-logo.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Ethereum logo animation */
.eth-logo {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.eth-logo.animate {
    opacity: 1;
    transform: translateY(0);
}

/* East Asia map styling moved to line ~360 */

.section-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   Background Video
   ========================================================================== */
.background-video {
    transition: opacity 2s ease-in-out;
    display: block;
}

.video-hidden {
    opacity: 0;
    pointer-events: none;
}

video.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 720px;
    object-fit: cover;
    z-index: 0;
}

.fullwidth-body video.background-video {
    z-index: 0;
}

/* Video overlay for darkness */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Static background image when video ends */
.hero-section.bg-loaded {
    background: url("bg.webp") no-repeat center center;
    background-size: cover;
}

/* ==========================================================================
   Full-width Section Styles
   ========================================================================== */
.hero-section {
    height: 720px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: transparent;
}

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

.hero-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    margin-top: 110px; 
    padding: 0 60px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4.5em;
    margin-bottom: 0.05em;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-section h1.animate {
    opacity: 1;
    transform: translateY(0);
}

.strategy-section {
    background-color: #0A0A0A;
    padding: 80px 0;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.2s;
}

.strategy-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-section {
    background-color: #0A0A0A; /* Pure black background */
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.contact-section h2 {
    color: rgba(255, 255, 255, 0.9); /* White color like other sections */
    font-size: 2.5em;
    margin-bottom: 1em; /* Updated to match Strategy heading's 1em */
    font-weight: 600;
    letter-spacing: 1px;
    text-align: left; /* Left align like other sections */
}

.contact-section .content-section {
    margin-bottom: 2em;
    margin-top: 0.5em; /* Added to create consistent spacing */
}

.contact-section h3 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
    margin-top: 0px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: left; /* Left align like other sections */
}

.contact-section .company-info {
    max-width: 600px;
    margin: 0 auto 0 0; /* Align to the left */
    text-align: left; /* Left align like other sections */
    display: block; /* Ensure it's displayed */
}

.contact-section .company-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    text-align: left; /* Left align like other sections */
}

.contact-section .company-info a {
    color: rgba(200, 200, 200, 0.9); /* Slightly grey color */
    text-decoration: underline; /* Always show underline */
    transition: color 0.3s ease;
}

.contact-section .company-info a:hover {
    color: #00FFFF; /* Cyan on hover */
}

.email-section {
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 55px 0;
    position: relative;
    z-index: 2;
    background-image: url('blur-bg.png');
    background-size: cover; /* Reverted back to 'cover' */
    background-position: center;
    background-blend-mode: soft-light; /* Changed from overlay to soft-light for better visibility */
}

.email-section h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: inline-block;
    background-color: transparent;
    padding: 0;
    border-radius: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.email-section h3 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background-color: transparent;
    padding: 0;
    border-radius: 5px;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.email-section .content-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    font-weight: 400;
    max-width: 753px;
}

.email-section .contact {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2em;
}

.email-section .contact a {
    color: #19FB9B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-section .contact a:hover {
    text-decoration: underline;
    color: #00FFFF;
}

/* Interest items styling */
.interest-item {
    display: grid;
    grid-template-columns: 150px 1fr; /* Fixed width for image, remaining space for text */
    grid-gap: 0px; /* Reduced gap between image and text */
    margin-bottom: 3em;
    align-items: center;
    background-color: transparent;
    padding: 0; /* Remove padding that's causing misalignment */
}

.eth-logo-container, .asia-map-container {
    width: 170px;
    height: 170px;
    display: flex;
    justify-content: flex-start; /* Align to the left instead of center */
    align-items: center;
    position: relative;
}

/* Specific adjustments for the Asia map container */
.asia-map-container {
    display: flex;
    justify-content: flex-start;
    padding: 0;
}

@media (min-width: 769px) {
    /* Desktop-only adjustments */
    .asia-map-container {
        margin-left: 20px; /* Add margin to position it more to the right on desktop only */
    }
}

/* Ethereum logo specific styling */
.eth-logo-container {
    padding: 0;
}

/* Ensure both images have the same dimensions */
.eth-logo, .asia-map {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    margin-left: 0;
}

/* Ensure consistent spacing for both interest content sections */
.interest-content {
    padding-left: 0;
    margin-left: 0;
    width: 100%; /* Ensure full width */
}

.interest-content h3 {
    padding: 0;
    margin-top: 0;
    margin-bottom: 15px; /* Consistent spacing below heading */
}

/* Ensure the Malaysia map fits well in the container */
.asia-map {
    max-width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    filter: grayscale(100%) brightness(100%) invert(100%); /* Reverted to previous brightness setting */
    object-fit: contain;
}

.asia-map.animate {
    opacity: 1;
    transform: translateY(0);
    /* Removed the magenta glow effect */
}

/* Ethereum logo animation */
.eth-logo {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.eth-logo.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    transition: padding 1.2s ease;
    height: auto;
}

.nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('blur-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    filter: brightness(0.4);
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: -1;
    pointer-events: none;
}

.nav.scrolled::after {
    opacity: 1;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    transition: background 1.2s ease, box-shadow 1.2s ease, padding 1.2s ease;
}

.nav a {
    display: inline-block;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    margin-left: 50px;
    transition: transform 0.3s ease, height 1.2s ease;
}

.nav.scrolled .nav-logo {
    height: 30px;
}

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

.nav-links {
    max-width: 1000px;
    padding: 0 60px 0 0;
    text-align: right;
}

.nav-links a, .nav-links .scroll-link {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s ease, font-size 1.2s ease;
}

.nav.scrolled .nav-links a, .nav.scrolled .nav-links .scroll-link {
    font-size: 1.1em;
}

.nav-links a:hover, .nav-links .scroll-link:hover {
    color: #00ffff;
}

.nav-links a.active, .nav-links .scroll-link.active {
    color: #19FB9B;
    font-weight: 500;
}

/* ==========================================================================
   Footer Adjustments for Fullwidth Design
   ========================================================================== */
footer {
    background-color: #0A0A0A; /* Changed to #0A0A0A - a very dark black */
    padding: 30px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.fullwidth-body footer {
    margin-top: 0;
}

.registered-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    margin: 5px 0;
}

/* ==========================================================================
   Animation & Effects
   ========================================================================== */
/* Background animation */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
/* Desktop Styles */
@media (min-width: 769px) {
    .content-container {
        margin: 80px auto;
    }
    
   
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container::before {
        display: none;
    }
    
    .subtext {
        font-size: 1.3em;
    }
    
    footer {
        padding: 15px 5px;
    }
    
    .registered-info {
        font-size: 0.8em;
        padding-left: 12px;
        padding-right: 12px;
        margin-top: 12px;
    }

    .hero-section {
        height: 600px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
        
    .strategy-section {
        opacity: 1;
        transform: none;
        transition: none;
        padding: 40px 0;
    }
    
    .section-content {
        padding: 0 20px;
    }
    
    .content-logo {
        float: none;
        display: block;
        margin: 0 auto 30px;
        width: 140px;
    }

    .nav-logo {
        margin-left: 20px;
        height: 35px;
    }
    
    .nav-links {
        padding: 0 40px 0 0;
    }
    
    .nav-links a {
        margin-left: 40px;
        font-size: 1em;
    }

    .interest-item {
        grid-template-columns: 1fr; /* Single column on mobile */
        grid-template-rows: auto auto; /* Two rows: image then text */
        grid-gap: 10px; /* Reduced gap for mobile */
        justify-items: center; /* Center items horizontally on mobile */
        padding: 0; /* Remove any padding that might cause overflow */
        width: 100%; /* Ensure it takes full width of container */
        max-width: 100%; /* Prevent extending beyond container */
    }
    
    .eth-logo-container, .asia-map-container {
        width: 150px;
        height: 150px;
        justify-content: center; /* Center images on mobile */
    }
    
    /* Center content on mobile */
    .interest-content {
        text-align: center; /* Center text on mobile */
        padding: 0; /* Remove padding that might cause overflow */
        width: 100%; /* Ensure content takes full width */
        max-width: 100%; /* Prevent extending beyond container */
    }
    
    /* Ensure Malaysia map is centered on mobile */
    .asia-map-container {
        align-self: center;
    }
    
    /* Adjust Malaysia map size on mobile */
    .asia-map {
        max-height: 150px;
        min-width: 120px;
        padding: 5px;
    }
    
    /* Adjust Ethereum logo on mobile */
    .eth-logo-container {
        padding: 10px;
    }

    /* Hide Home link on mobile, show Contact link */
    .nav-links a[href="index.html"] {
        display: none;
    }
    
    /* Remove the previous rule that hides Contact link */
    .nav-links a[href="#contact-section"] {
        display: inline-block;
    }
    
    /* Make all nav links the same size */
    .nav-links a, .nav-links .scroll-link {
        font-size: 1.1em; /* Consistent font size */
        margin-left: 12px;
    }
    
    .contact-section {
        padding: 40px 0;
    }

    .email-section {
        padding: 40px 0; /* Match strategy section padding */
        background-position: top center;
    }
    
    .email-section .section-content {
        padding: 0 20px; /* Match strategy section padding */
        margin: 0 auto; /* Center the content like strategy section */
        background-color: transparent;
        width: auto; /* Change from 100% to auto to prevent overflow */
        max-width: 1000px; /* Match the max-width of other sections */
    }
    
    .email-section .interest-content {
        padding: 0; /* Remove extra padding */
        width: 100%; /* Ensure content takes full width of container */
    }

    .email-section .content-section p {
        padding: 0; /* Remove padding that might cause overflow */
        margin-bottom: 15px;
        background-color: transparent;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
        width: 100%; /* Ensure text takes full width of container */
        max-width: 100%; /* Prevent text from extending beyond container */
        word-wrap: break-word; /* Ensure long words wrap properly */
    }
    
    .email-section h3 {
        padding: 0; /* Remove padding to match other headings */
        margin-bottom: 15px; /* Add consistent margin */
    }

    .contact-section h2 {
        padding: 0; /* Remove padding to match Strategy header */
        margin-bottom: 20px; /* Keep the same bottom spacing */
    }

    .email-section h2 {
        display: block; /* Change from inline-block to block for consistent alignment */
        padding: 0; /* Remove any padding */
        margin-bottom: 20px; /* Consistent bottom margin */
    }

    /* Styles from 480px media query */
    .hero-section {
        height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2.7em;
        font-weight: 800;
    }
    
    .strategy-section h2 {
        font-size: 2.3em;
    }

    .subtext {
        font-size: 1.2em;
    }
    
    .nav-logo {
        margin-left: 20px;
        height: 25px;
    }
    
    .nav-links {
        padding: 0 20px 0 0;
    }
    
    .nav-links a {
        margin-left: 20px;
        font-size: 0.9em;
    }
}

