/* CSS Custom Properties - HSL Color System */
:root {
    /* Pink Color Palette (Sophisticated Rose/Dusty Pink) */
    --primary-hue: 350;
    --primary-saturation: 60%;
    --accent-hue: 340;
    --accent-saturation: 70%;

    /* Primary Colors */
    --primary-50: 350 60% 97%;
    /* #FDF2F5 */
    --primary-100: 350 60% 93%;
    /* #FAE5EA */
    --primary-200: 350 60% 86%;
    /* #F5CCD6 */
    --primary-300: 350 60% 75%;
    /* #ED9FB1 */
    --primary-400: 350 60% 65%;
    /* #E4718C */
    --primary-500: 350 60% 55%;
    /* #DB4367 */
    --primary-600: 350 60% 45%;
    /* #B8345A */
    --primary-700: 350 60% 35%;
    /* #95274D */
    --primary-800: 350 60% 25%;
    /* #721A40 */
    --primary-900: 350 60% 15%;
    /* #4F0D33 */

    /* Accent Colors */
    --accent-400: 340 70% 70%;
    /* #E885A3 */
    --accent-500: 340 70% 60%;
    /* #E066A3 */
    --accent-600: 340 70% 50%;
    /* #D84799 */

    /* Neutral Colors */
    --neutral-50: 0 0% 98%;
    /* #FAFAFA */
    --neutral-100: 0 0% 96%;
    /* #F5F5F5 */
    --neutral-200: 0 0% 90%;
    /* #E5E5E5 */
    --neutral-300: 0 0% 83%;
    /* #D4D4D4 */
    --neutral-400: 0 0% 64%;
    /* #A3A3A3 */
    --neutral-500: 0 0% 45%;
    /* #737373 */
    --neutral-600: 0 0% 32%;
    /* #525252 */
    --neutral-700: 0 0% 25%;
    /* #404040 */
    --neutral-800: 0 0% 15%;
    /* #262626 */
    --neutral-900: 0 0% 9%;
    /* #171717 */

    /* Semantic Colors */
    --success: 142 76% 36%;
    /* #16A34A */
    --warning: 38 92% 50%;
    /* #EAB308 */
    --danger: 0 84% 60%;
    /* #EF4444 */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary-400)), hsl(var(--accent-500)));
    --gradient-subtle: linear-gradient(135deg, hsl(var(--primary-50)), hsl(var(--primary-100)));

    /* Layout */
    --container-max-width: 1200px;
    --section-spacing: 3rem;
    --content-spacing: 1.5rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.25s ease-in-out;
    --transition-slow: 0.35s ease-in-out;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-normal);
    color: hsl(var(--neutral-800));
    background: linear-gradient(135deg, hsl(var(--primary-50)), hsl(var(--neutral-50)));
    min-height: 100vh;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-main {
    text-align: left;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.theme-icon {
    transition: all var(--transition-normal);
}

.moon-icon {
    display: none;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.header-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.header-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-main {
        text-align: center;
    }

    .logo {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .header-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-nav {
        order: -1;
    }
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--primary-200));
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.nav-content {
    padding: 0.75rem 0;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.nav h3 {
    color: hsl(var(--primary-700));
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.nav-toggle {
    background: none;
    border: none;
    color: hsl(var(--primary-600));
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    background: hsl(var(--primary-50));
    color: hsl(var(--primary-700));
}

.nav-arrow {
    transition: transform var(--transition-normal);
}

.nav-toggle.collapsed .nav-arrow {
    transform: rotate(-90deg);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    transition: all var(--transition-normal);
    overflow: hidden;
    max-height: 200px;
    opacity: 1;
}

.nav-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-link {
    color: hsl(var(--neutral-600));
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: hsl(var(--primary-600));
    background: hsl(var(--primary-50));
    transform: translateX(4px);
}

.nav-link.active {
    color: hsl(var(--primary-600));
    background: hsl(var(--primary-100));
}

@media (max-width: 768px) {
    .nav-list {
        justify-content: center;
        gap: 0.125rem;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.375rem;
    }

    .nav h3 {
        font-size: 0.9rem;
    }

    .nav-header {
        justify-content: space-between;
    }
}

/* Main Content */
.main {
    padding: var(--section-spacing) 0;
}

/* Introduction Section */
.intro-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--section-spacing);
    border-left: 4px solid hsl(var(--primary-500));
}

.last-updated {
    color: hsl(var(--neutral-600));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.125rem;
    line-height: var(--line-height-relaxed);
    color: hsl(var(--neutral-700));
}

/* ToS Sections */
.tos-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid hsl(var(--primary-100));
}

.tos-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid hsl(var(--primary-100));
}

.section-header h2 {
    color: hsl(var(--primary-700));
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.copy-btn {
    background: none;
    border: none;
    color: hsl(var(--neutral-400));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: hsl(var(--primary-500));
    background: hsl(var(--primary-50));
}

.section-content {
    color: hsl(var(--neutral-700));
    line-height: var(--line-height-relaxed);
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

.section-content strong {
    color: hsl(var(--primary-700));
    font-weight: 600;
}

/* Warning Quote */
.warning-quote {
    background: linear-gradient(135deg, hsl(var(--primary-50)), hsl(var(--primary-100)));
    border-left: 4px solid hsl(var(--primary-500));
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.warning-quote p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.warning-quote p:last-child {
    margin-bottom: 0;
}

.warning-quote a {
    color: hsl(var(--primary-700));
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.warning-quote a:hover {
    color: hsl(var(--primary-900));
}

/* Tier Comparison */
.tier-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tier-card {
    background: linear-gradient(135deg, hsl(var(--primary-50)), white);
    border: 2px solid hsl(var(--primary-200));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--primary-400));
}

.tier-card h3 {
    color: hsl(var(--primary-700));
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tier-card ul {
    list-style: none;
    padding: 0;
}

.tier-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--primary-100));
}

.tier-card li:last-child {
    border-bottom: none;
}

.tier-premium {
    border-color: hsl(var(--accent-400));
}

.tier-premium::before {
    background: linear-gradient(135deg, hsl(var(--accent-400)), hsl(var(--accent-600)));
}

.tier-ultra {
    border-color: hsl(var(--primary-600));
    background: linear-gradient(135deg, hsl(var(--primary-50)), hsl(var(--accent-50)));
}

.tier-ultra::before {
    background: linear-gradient(135deg, hsl(var(--primary-600)), hsl(var(--primary-800)));
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.rule-box {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid;
}

.rule-box h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.rule-box ul {
    list-style: none;
    padding: 0;
}

.rule-box li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.rule-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.not-allowed {
    background: linear-gradient(135deg, hsl(0 100% 97%), hsl(0 100% 95%));
    border-color: hsl(var(--danger));
    color: hsl(0 70% 20%);
}

.not-allowed h4 {
    color: hsl(var(--danger));
}

.not-allowed li::before {
    background: hsl(var(--danger));
}

.allowed {
    background: linear-gradient(135deg, hsl(142 100% 97%), hsl(142 100% 95%));
    border-color: hsl(var(--success));
    color: hsl(142 70% 20%);
}

.allowed h4 {
    color: hsl(var(--success));
}

.allowed li::before {
    background: hsl(var(--success));
}

/* Important Note */
.important-note {
    background: linear-gradient(135deg, hsl(38 100% 97%), hsl(38 100% 95%));
    border: 2px solid hsl(var(--warning));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.important-note h4 {
    color: hsl(var(--warning));
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.important-note p {
    color: hsl(38 70% 20%);
    margin-bottom: 0.5rem;
}

.important-note p:last-child {
    margin-bottom: 0;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: 2px solid;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    border-color: #5865F2;
}

.discord:hover {
    background: linear-gradient(135deg, #4752C4, #3C45A5);
}

.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    color: white;
    border-color: #1DA1F2;
}

.twitter:hover {
    background: linear-gradient(135deg, #0d8bd9, #0a7bc4);
}

.github {
    background: linear-gradient(135deg, #333, #24292e);
    color: white;
    border-color: #333;
}

.github:hover {
    background: linear-gradient(135deg, #24292e, #1b1f23);
}

/* Footer */
.footer {
    background: hsl(var(--neutral-900));
    color: hsl(var(--neutral-300));
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: hsl(var(--neutral-800));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    font-size: 0.875rem;
    font-weight: 500;
}

.copy-notification.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-spacing: 2rem;
        --content-spacing: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 1.5rem 0;
    }

    .intro-section,
    .tos-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .tier-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-link {
        justify-content: center;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .copy-notification {
        bottom: 4.5rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* Print Styles */
@media print {

    .nav,
    .scroll-to-top,
    .copy-notification,
    .copy-btn {
        display: none !important;
    }

    .header {
        background: none !important;
        color: black !important;
    }

    .tos-section {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .contact-link {
        color: blue !important;
        text-decoration: underline !important;
    }
}

/* Dark Theme */
[data-theme="dark"] {
    /* Dark Theme Color Palette */
    --primary-50: 350 60% 10%;
    /* #1A0D13 */
    --primary-100: 350 60% 15%;
    /* #26131A */
    --primary-200: 350 60% 20%;
    /* #331A21 */
    --primary-300: 350 60% 30%;
    /* #4D2633 */
    --primary-400: 350 60% 40%;
    /* #663344 */
    --primary-500: 350 60% 55%;
    /* #DB4367 */
    --primary-600: 350 60% 65%;
    /* #E4718C */
    --primary-700: 350 60% 75%;
    /* #ED9FB1 */
    --primary-800: 350 60% 85%;
    /* #F5CCD6 */
    --primary-900: 350 60% 95%;
    /* #FDF2F5 */

    /* Dark Neutral Colors */
    --neutral-50: 0 0% 9%;
    /* #171717 */
    --neutral-100: 0 0% 15%;
    /* #262626 */
    --neutral-200: 0 0% 20%;
    /* #333333 */
    --neutral-300: 0 0% 25%;
    /* #404040 */
    --neutral-400: 0 0% 40%;
    /* #666666 */
    --neutral-500: 0 0% 55%;
    /* #8C8C8C */
    --neutral-600: 0 0% 70%;
    /* #B3B3B3 */
    --neutral-700: 0 0% 85%;
    /* #D9D9D9 */
    --neutral-800: 0 0% 95%;
    /* #F2F2F2 */
    --neutral-900: 0 0% 98%;
    /* #FAFAFA */
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, hsl(var(--neutral-50)), hsl(var(--neutral-100)));
    color: hsl(var(--neutral-800));
}

[data-theme="dark"] .header {
    background: linear-gradient(135deg, hsl(var(--primary-700)), hsl(var(--accent-600)));
}

[data-theme="dark"] .nav {
    background: rgba(23, 23, 23, 0.95);
    border-bottom: 1px solid hsl(var(--neutral-200));
}

[data-theme="dark"] .intro-section,
[data-theme="dark"] .tos-section {
    background: hsl(var(--neutral-100));
    border: 1px solid hsl(var(--neutral-200));
}

[data-theme="dark"] .section-header {
    border-bottom: 2px solid hsl(var(--neutral-200));
}

[data-theme="dark"] .section-header h2 {
    color: hsl(var(--primary-700));
}

[data-theme="dark"] .warning-quote {
    background: linear-gradient(135deg, hsl(var(--neutral-200)), hsl(var(--neutral-300)));
    border-left: 4px solid hsl(var(--primary-600));
}

[data-theme="dark"] .tier-card {
    background: linear-gradient(135deg, hsl(var(--neutral-200)), hsl(var(--neutral-100)));
    border: 2px solid hsl(var(--neutral-300));
}

[data-theme="dark"] .tier-card::before {
    background: var(--gradient-primary);
}

[data-theme="dark"] .tier-card h3 {
    color: hsl(var(--primary-700));
}

[data-theme="dark"] .tier-card li {
    border-bottom: 1px solid hsl(var(--neutral-300));
}

[data-theme="dark"] .not-allowed {
    background: linear-gradient(135deg, hsl(0 50% 15%), hsl(0 50% 10%));
    border-color: hsl(var(--danger));
    color: hsl(0 70% 80%);
}

[data-theme="dark"] .allowed {
    background: linear-gradient(135deg, hsl(142 50% 15%), hsl(142 50% 10%));
    border-color: hsl(var(--success));
    color: hsl(142 70% 80%);
}

[data-theme="dark"] .important-note {
    background: linear-gradient(135deg, hsl(38 50% 15%), hsl(38 50% 10%));
    border: 2px solid hsl(var(--warning));
}

[data-theme="dark"] .important-note h4 {
    color: hsl(var(--warning));
}

[data-theme="dark"] .important-note p {
    color: hsl(38 70% 80%);
}

[data-theme="dark"] .nav-link {
    color: hsl(var(--neutral-600));
}

[data-theme="dark"] .nav-link:hover {
    color: hsl(var(--primary-700));
    background: hsl(var(--neutral-200));
}

[data-theme="dark"] .nav-link.active {
    color: hsl(var(--primary-700));
    background: hsl(var(--neutral-300));
}

[data-theme="dark"] .copy-btn {
    color: hsl(var(--neutral-500));
}

[data-theme="dark"] .copy-btn:hover {
    color: hsl(var(--primary-600));
    background: hsl(var(--neutral-200));
}

[data-theme="dark"] .footer {
    background: hsl(var(--neutral-50));
    color: hsl(var(--neutral-700));
}

[data-theme="dark"] .nav h3 {
    color: hsl(var(--primary-700));
}

[data-theme="dark"] .nav-toggle {
    color: hsl(var(--primary-600));
}

[data-theme="dark"] .nav-toggle:hover {
    background: hsl(var(--neutral-200));
    color: hsl(var(--primary-700));
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-500: 350 80% 40%;
        --primary-600: 350 80% 30%;
        --primary-700: 350 80% 20%;
        --neutral-600: 0 0% 20%;
        --neutral-700: 0 0% 10%;
        --neutral-800: 0 0% 5%;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .header::before {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.copy-btn:focus,
.contact-link:focus,
.scroll-to-top:focus {
    outline: 2px solid hsl(var(--primary-500));
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: hsl(var(--primary-200));
    color: hsl(var(--primary-800));
}

::-moz-selection {
    background: hsl(var(--primary-200));
    color: hsl(var(--primary-800));
}