/* 
  Modern CSS with Variables for a Professional Look
*/

:root {
    --primary-color: #FFFFFF; /* White for headings on dark bg */
    --secondary-color: #F0A500; /* Gold/Yellow */
    --background-color: #121212; /* Very Dark Grey */
    --surface-color: #1E1E1E; /* Dark Surface for cards */
    --text-color: #e9ecef; /* Light Grey for text */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* Basic Reset & Body Styles */
body {
    font-family: var(--body-font);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #040503;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky; /* Makes the header stick to the top */
    top: 0; /* Position it at the top of the viewport */
    z-index: 1001;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Increased logo size */
    width: auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

header nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 400; /* Reduced font weight for a lighter look */
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--secondary-color);
}

header nav a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animation for hamburger to 'X' */
header.mobile-nav-active .mobile-menu-toggle span:nth-child(1) { transform: rotate(45deg); }
header.mobile-nav-active .mobile-menu-toggle span:nth-child(2) { opacity: 0; transform: translateX(20px); }
header.mobile-nav-active .mobile-menu-toggle span:nth-child(3) { transform: rotate(-45deg); }


/* Main Content Area */
main {
    flex: 1;
    padding: 40px 0;
}

/* .content-section is now the standard for white-background sections */
.content-section {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
}

/* Form Styles */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    background-color: var(--surface-color);
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
    color: var(--text-color);
    padding: 0.85rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.25);
}

.btn-submit {
    background: var(--secondary-color);
    border: none;
    border-radius: 4px;
    color: #1E1E1E;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 2rem;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: #d48f00; /* Darker shade of secondary */
}

/* Alert & Error Styles */
.alert {
    background-color: #0f5132;
    border: 1px solid #198754;
    border-radius: 4px;
    color: #d1e7dd;
    padding: 1rem;
    margin-bottom: 1rem;
}

.error-text {
    color: #842029;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-column a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

/* --- Home Page Specific Styles --- */

.hero-section {
    background-image: linear-gradient(rgba(42, 42, 42, 0.85), rgba(42, 42, 42, 0.95)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-content h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-intro {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-buttons {
    margin-top: 2rem;
}

.btn-cta {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    margin: 5px 10px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-cta.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-cta.btn-primary:hover {
    background-color: #d48f00;
    border-color: #d48f00;
    transform: translateY(-2px);
}

.btn-cta.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-cta.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Home Page Video Player Section --- */
.video-player-section {
    text-align: center;
    padding-bottom: 3rem;
}

.video-player-section .section-title {
    margin-bottom: 2rem;
}

.video-wrapper {
        /* This wrapper is now just for positioning the play button */
    position: relative;
        display: inline-block; /* Make wrapper only as big as its content */
        line-height: 0; /* Remove extra space below video */
}

.video-wrapper video {
    /* This ensures the video scales to fit without being cropped */
        display: block;
        max-width: 960px;
        width: 100%; /* Be responsive, but not wider than the page */
        max-height: 80vh; /* The crucial height constraint */
        height: auto; /* Let height be calculated from width, respecting max-height */
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        background: #000; /* Background for any letterboxing */
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(240, 165, 0, 0.8); /* Use secondary color with transparency */
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.play-button-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%; /* Nudge to the right for better centering */
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #1E1E1E; /* Dark color for the triangle */
}

.play-button-overlay:hover {
    background-color: rgba(240, 165, 0, 1); /* Full opacity on hover */
    transform: translate(-50%, -50%) scale(1.1);
}

/* Features Section */
.features-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- About Us Page Styles --- */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-text h2 {
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.founders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.founder {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.founder:hover {
    transform: translateY(-5px);
}

.founder strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.founder span {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #adb5bd; /* Lighter text for description */
}

/* --- Nexus Wallet Page Styles --- */

.wallet-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.wallet-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wallet-features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.wallet-features-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.wallet-features-list li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tech-highlight {
    background-color: var(--background-color);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 0 4px 4px 0;
}

.tech-highlight p {
    margin: 0;
    font-style: italic;
}

/* --- How It Works Page Styles --- */

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.step-item {
    flex: 1 1 250px;
    max-width: 340px; /* Prevents items from becoming too wide on a 3-item row */
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

.step-item h3 {
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.flowchart-image {
    margin-top: 3rem;
    text-align: center;
}

.flowchart-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Payment Methods Page Styles --- */

.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.payment-option {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.payment-icon img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.payment-option h3 {
    margin-bottom: 1rem;
}

.card-icons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.card-icons img {
    height: 35px; /* Increased size for better visibility */
}

.security-assurance {
    text-align: center;
    background-color: var(--background-color); /* Use a theme-consistent background */
    color: var(--text-color);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid #444; /* Use a subtle border consistent with the theme */
}

/* --- FAQ Page Styles --- */

.faq-container {
    max-width: 800px;
    margin: 3rem auto;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1rem;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 1.5rem;
}

.support-channels {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

/* --- Legal Page Styles (Privacy/Terms) --- */

.legal-page h1,
.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page h1 {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.legal-page p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* --- Nexus Wallet Page - Additional Sections --- */

.styled-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.styled-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.styled-list li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.highlight-quote {
    background-color: var(--background-color);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0 0 0;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    font-size: 1.1rem;
}

.utility-model-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: center;
    margin-top: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #333;
}

.utility-model-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.utility-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.comparison-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Enforce 2 columns on desktop */
    gap: 1.5rem;
    margin: 2rem 0;
}

.comparison-card {
    background-color: var(--background-color);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-card h3 {
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 1rem;
}

.card-property {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.property-label {
    font-weight: 600;
    color: var(--text-color);
}

.property-value {
    text-align: right;
    color: #adb5bd;
}

.core-innovation {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    /* General Adjustments */
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    /* Header & Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    header nav {
        display: none;
        position: absolute;
        top: 80px; /* Height of header */
        left: 0;
        width: 100%;
        background-color: #040503;
        flex-direction: column;
        border-top: 1px solid #333;
    }

    header.mobile-nav-active nav {
        display: flex;
    }

    header nav a {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #222;
    }

    header nav a.active {
        border-bottom-color: var(--secondary-color); /* Keep original border style */
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    /* --- Home Page --- */
    .hero-section {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 320px; /* Stop buttons from being overly wide */
        margin: 0;
    }

    .features-grid {
        /* Ensure a single column layout for features on mobile */
        grid-template-columns: 1fr;
    }

    /* --- Nexus Wallet Page --- */
    .wallet-content,
    .utility-model-item {
        /* Stack the two-column layouts into a single column */
        grid-template-columns: 1fr;
        gap: 2rem; /* Adjust gap for mobile */
    }

    .comparison-cards-container {
        /* Revert to a single column on mobile */
        grid-template-columns: 1fr;
    }

    /* --- How It Works Page --- */
    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    /* --- Payment Methods Page --- */
    .payment-options-grid {
        grid-template-columns: 1fr;
    }

    /* --- About Us Page --- */
    .about-content {
        grid-template-columns: 1fr;
    }
}
