/* වර්ණ විචල්‍යයන් (Color Variables) */
:root {
    --color-dark-blue: #0b1120; /* පසුබිම */
    --color-primary-text: #ffffff; /* ප්‍රධාන පෙළ */
    --color-secondary-text: #a0a8b4; /* ද්විතියික පෙළ */
    --color-accent: #00e0b3; /* ඇක්සන්ට් (නිල්-කොළ) */
    --color-accent-hover: #00ffc8;
    --color-card-bg: #1c2535;
    --font-sinhala: 'Noto Sans Sinhala', sans-serif;
}

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

body {
    font-family: var(--font-sinhala);
    background-color: var(--color-dark-blue);
    color: var(--color-primary-text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--color-accent); /* සිරස්තල ඇක්සන්ට් වර්ණයෙන් */
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
    color: var(--color-secondary-text);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

/* Header & Navigation */
header {
    background-color: rgba(11, 17, 32, 0.95); /* Semi-transparent for 'sticky' effect */
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-card-bg);
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-accent-hover);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--color-primary-text);
    font-weight: 400;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent-hover);
    border-bottom: 2px solid var(--color-accent);
}

.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    color: var(--color-primary-text);
    font-size: 2em;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh; /* වරායේ උසින් 90% ක් */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 5%;
}

/* 💥 Background Graphic Adjustments (Responsive Changes) 💥 */
.background-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 👈 ඕනෑම තිරයකට ගැලපෙන වැදගත්ම ගුණය */
    object-position: center; /* 👈 රූපය මධ්‍යයේ තබයි */
    opacity: 0.1; /* මෘදු පෙනුමක් සඳහා */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 0.4em;
    line-height: 1.2;
    color: var(--color-primary-text); /* ප්‍රධාන සිරස්තලය සුදු වීමට */
}

.hero-content p {
    font-size: 1.3em;
    color: var(--color-secondary-text);
    margin-bottom: 2em;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-dark-blue);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    margin: 10px auto 0;
}

/* Tutorials Grid */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tutorial-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.tutorial-card h3 {
    font-size: 1.5em;
    margin-top: 0;
    color: var(--color-primary-text);
}

.video-button, .link-button {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.video-button {
    background-color: #ff0000; /* YouTube Red */
    color: var(--color-primary-text);
}

.link-button {
    background-color: var(--color-secondary-text);
    color: var(--color-dark-blue);
    opacity: 0.8;
}

.video-button:hover, .link-button:hover {
    opacity: 1;
}

/* Wallets Section */
.wallets-section {
    text-align: center;
    background-color: #121927; /* තරමක් ලා පසුබිමක් */
    border-radius: 15px;
    margin: 50px auto;
}

.wallet-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.wallet-button {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-primary-text);
    min-width: 250px;
    text-transform: uppercase;
}

.safepal {
    background-color: #f7931a; /* Bitcoin Orange */
}

.ledger {
    background-color: #3b50a3; /* Ledger Blue */
}

/* Community Section */
.community-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.resource-group {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 10px;
}

.resource-group h3 {
    color: var(--color-primary-text);
}

.resource-link {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(0, 224, 179, 0.1); /* ඇක්සන්ට් වර්ණයෙන් ලා පසුබිමක් */
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
}

.telegram-chat {
    background-color: #0088cc; /* Telegram Blue */
    color: var(--color-primary-text);
}

.resource-group ul {
    list-style: none;
    padding-left: 0;
}

.resource-group ul li {
    margin-bottom: 10px;
}

.resource-group ul a {
    color: var(--color-secondary-text);
    border-bottom: 1px dotted var(--color-secondary-text);
}

/* Footer */
footer {
    background-color: #0b1120;
    padding: 30px 5%;
    text-align: center;
    border-top: 1px solid var(--color-card-bg);
    font-size: 0.9em;
}

.disclaimer-link {
    display: block;
    margin-top: 10px;
    color: #ff4d4d; /* අවදානම් හැඟවීම සඳහා රතු */
}


/* --- Responsive Design (Mobile First) --- */

@media (max-width: 768px) {
    /* Header adjustments for smaller screens */
    header {
        padding: 15px 20px;
    }

    .nav-links {
        display: none; /* Hide links by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Below the header */
        left: 0;
        background-color: var(--color-dark-blue);
        border-top: 1px solid var(--color-card-bg);
    }

    .nav-links.active {
        display: flex; /* Show when toggled */
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--color-card-bg);
    }

    .nav-links li a {
        display: block;
        padding: 15px;
    }

    .menu-toggle {
        display: block; /* Show the hamburger icon */
    }

    /* Hero adjustments */
    .hero-section {
        height: auto;
        padding: 100px 20px 50px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }

    /* Content adjustments */
    .content-section {
        padding: 50px 20px;
    }

    .wallets-section {
        margin: 30px auto;
        padding: 30px 20px;
    }

    .wallet-links {
        flex-direction: column;
        gap: 15px;
    }

    .wallet-button {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .content-section h2 {
        font-size: 2em;
    }
}
