/* Key CSS styles */
:root {
    --header-padding: 4rem 2rem;
    --section-margin: 3rem;
    --content-padding: 2rem;
    --mobile-header-padding: 2rem 1rem;
    --mobile-section-margin: 2rem;
    --mobile-content-padding: 1rem;
}

body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav li {
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

nav a {
    padding: 0.75rem 1rem;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(148, 0, 211, 0.2);
    text-decoration: none;
}

header {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #000000;
}

.logo {
    width: 50px; /* Sets a fixed width while preserving aspect ratio */
    height: auto; /* Ensures the height adjusts automatically to match the width */
    margin-right: 1rem; /* Adds right spacing for separation from the title */
    border-radius: 50%;
}

h1 {
    font-size: 3rem;
    margin: 0;
    color: #9400D3;
}

h2 {
    font-size: 2rem;
    color: #9400D3;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
        
h3 {
    font-size: 1.5rem;
    color: #ffffff;
}
        
p {
    margin: 0.5rem 0;
}
        
a {
    color:	#DDA0DD;
    text-decoration: none;
}
        
a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

form input, form textarea, form button {
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #222;
    color: #ffffff;
    font-size: 1rem;
    font-size: max(16px, 1rem);
    width: 100%;
    box-sizing: border-box;
}

form button {
    background-color: #9400D3;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 44px;
}

form button:hover {
    background-color: #7A00B3;
}
        
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
        
section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
        
.team-members, .projects, .facts, .support {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
        
.team-member, .project-item, .fact-item, .support-option {
    background-color: #222222;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease; /* Simple animation for hover */
}
        
.team-member:hover, .project-item:hover, .fact-item:hover, .support-option:hover {
    transform: scale(1.05);
}

.team-member {
    text-align: center;
}
        
ul {
    list-style-type: none;
    padding: 0;
    }
        
li {
    margin-bottom: 1rem;
}
        
li::before {
    content: '•';
    color: #00cc00;
    margin-right: 0.5rem;
}
        
blockquote {
    font-style: italic;
    border-left: 4px solid #00cc00;
    padding-left: 1rem;
    margin: 1rem 0;
}

.copyable-address {
    cursor: pointer; /* Changes mouse cursor to indicate clickability */
    transition: color 0.3s ease; /* Smooth color change on hover */
}

.copyable-address:hover {
    color: #9400D3;
}

.profile-img {
    width: 100%; /* Makes the image responsive to the container width */
    max-width: 150px; /* Prevents the image from getting too large on wider screens */
    height: auto; /* Maintains the image's aspect ratio */
    border-radius: 50%; /* Creates a circular shape for a modern profile look */
    display: block; /* Treats the image as a block element for centering */
    margin: 0 auto 1rem auto; /* Centers horizontally and adds bottom spacing */
}

#matrix-bg {
    position: fixed; /* Stays fixed to the viewport, even on scroll */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    z-index: -1; /* Places it behind all other content */
    pointer-events: none; /* Allows clicks/mouse events to pass through to underlying elements */
    opacity: 0.3; /* Low opacity for subtlety; adjust to 0.1-0.5 as needed */
}

nav {
    background-color: #000000;
    position: sticky; /* Sticks to top on scroll */
    top: 0;
    z-index: 10; /* Above other content */
    text-align: center;
}

nav ul { 
    display: flex; 
    justify-content: center; 
    list-style: none; 
    padding: 1rem; 
}

nav li { 
    margin: 0 1rem; 
}

html { 
    scroll-behavior: smooth; /* Smooth scrolling to anchors */
} 


/* ---- Responsive design ---- */
@media (max-width: 479px) {
    header {
        padding: var(--mobile-header-padding);
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    main {
        padding: var(--mobile-content-padding);
    }
    
    section {
        margin-bottom: var(--mobile-section-margin);
    }
    
    nav ul {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .team-members, .projects, .facts, .support {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-member, .project-item, .fact-item, .support-option {
        padding: 1rem;
    }
    
    .profile-img {
        max-width: 80px;
    }
    
    .logo {
        width: 40px;
        margin-right: 0.5rem;
    }
    
    .copyable-address {
        font-size: 0.85rem;
        word-break: break-all; /* Prevents horizontal overflow */
        padding: 0.5rem;
        background-color: #333;
        border-radius: 4px;
        margin: 0.5rem 0;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    header {
        padding: 3rem 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .support {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .profile-img {
        max-width: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .team-members, .projects, .facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .support {
        grid-template-columns: repeat(2, 1fr);
    }
    
    main {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .team-members, .projects, .facts, .support {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Accessibility and usability */

/* Visible focus for keyboard navigation */
nav a:focus, form input:focus, form textarea:focus, form button:focus {
    outline: 2px solid #9400D3;
    outline-offset: 2px;
}

/* Avoid animations on devices that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    section {
        transition: none;
    }
    
    .team-member, .project-item, .fact-item, .support-option {
        transition: none;
    }
    
    .team-member:hover, .project-item:hover, .fact-item:hover, .support-option:hover {
        transform: none;
    }
}

/* Improvement for high-density screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .logo, .profile-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}