:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Background watermark */
body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 300px;
    background-image: url('../images/sixRow.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    padding: 0;
}

header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    padding: 0;
}

/* Navigation */
nav {
    margin-top: 20px;
    width: 100%;
}

nav>ul {
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav>ul>li {
    padding: 0;
    border: none;
}

nav>ul>li>a {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

nav>ul>li>a:hover {
    color: var(--primary-color);
}

/* Index Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
    margin: 0;
}

/* Common Card Style */
.card,
.grid>div {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.grid>div>div {
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
}

.card {
    /* Single card pages */
    margin-bottom: 30px;
}

.grid>div {
    /* Grid cards on index */
    min-height: 200px;
}

.grid>div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.grid>div>div:last-child {
    margin-top: auto;
    padding-top: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
}

h2,
h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.25rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    background-color: var(--primary-color);
    color: white;
    width: auto;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Profile Page Lists */
.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-list li {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-list li.done {
    border-left-color: var(--secondary-color);
}

.profile-list li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.profile-list li span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Standard Lists */
ul:not(.profile-list):not(.grid) {
    padding-left: 20px;
}

ul:not(.profile-list):not(.grid) li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    background: transparent;
    position: relative;
    bottom: auto;
    width: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card,
    .grid>div {
        padding: 20px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}