* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f5f5f7;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

main {
    align-items: center;
    padding: 2rem 2rem;
}

p, h1, h2, h3 {
    margin-bottom: 1rem;
    color: #333333;
}

/* Navbar Container */
.navbar {
    display: flex;
    align-items: center;
    background-color: #f5f5f7;
    padding: 0 2rem;
    height: 60px;
    box-shadow: 0 2px rgba(0, 0, 0, 0.05);
}

/* The centered inner container */
.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    /* Compresses the layout on large screens. Change this value to adjust the width. */
    max-width: 1100px; 
    height: 60px;
    /* Centers the entire container horizontally */
    margin: 0 auto; 
}

/* Navigation List */
.nav-list {
    display: flex;
    align-items: center;
    width: 100%;
    list-style: none;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Individual Nav Items */
.nav-item a {
    text-decoration: none;
    color: #333333;
    font-weight: 400;
    padding: 0.5rem 0.5rem;
    transition: color 0.2s ease;
}

.nav-item a:hover {
    color: #696969;
}

/* The Magic Trick: 
    Applying margin-right: auto to the first item pushes 
    every subsequent sibling item all the way to the right. */
.nav-item:first-child {
    margin-right: auto;
}

/* Optional: Style the first item like a brand/logo */
.nav-item:first-child a {
    font-weight: 700;
    font-size: 1.2rem;
    padding-left: 0;
}

/* Section Container */
.links-section {
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Links Grid/List Layout */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Category Card Block */
.link-group {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.link-image {
    height: 60px;
    margin-right: 0.75rem;
    border-radius: 5px;
    object-fit: contain;
}

/* Category Label */
.group-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Link Formatting */
.profile-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.15s ease;
}

.profile-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Platform Name styling inside the link */
.platform-name {
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Subtle arrow indicator */
.profile-link::after {
    content: "↗";
    font-size: 0.85rem;
    margin-left: 0.25rem;
    opacity: 0.6;
}