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

:root {
    /* EHR Theme Colors */
    --primary-color: #00a5ff;
    --secondary-color: #00ffff;
    --accent-color: #00ffa5;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, #00a5ff 0%, #00ffff 50%, #00ffa5 100%);
    --gradient-secondary: linear-gradient(135deg, #00ffff 0%, #00ffa5 100%);
    --gradient-accent: linear-gradient(135deg, #00a5ff 0%, #00ffa5 100%);
    --border-radius: 12px;
    --shadow-light: 0 4px 20px rgba(0, 165, 255, 0.15);
    --shadow-medium: 0 8px 40px rgba(0, 165, 255, 0.2);
    --shadow-heavy: 0 20px 60px rgba(0, 165, 255, 0.25);
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 165, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: -2px;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(0, 165, 255, 0.05) 0%, rgba(10, 10, 10, 1) 70%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 165, 255, 0.1);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: var(--text-primary);
}

.title-highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 165, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 165, 255, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 18px 32px;
    font-size: 1.1rem;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-main {
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-sub {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInRight 1s ease-out;
}

.ehr-logo-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehr-logo {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 2;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.orbiting-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.orbit-element {
    position: absolute;
    font-size: 2rem;
    animation: counter-rotate 20s linear infinite;
}

.element-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.element-2 { top: 25%; right: 15%; }
.element-3 { right: 10%; top: 50%; transform: translateY(-50%); }
.element-4 { bottom: 25%; right: 15%; }
.element-5 { bottom: 10%; left: 50%; transform: translateX(-50%); }
.element-6 { left: 15%; top: 50%; transform: translateY(-50%); }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 165, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modes Section */
.modes {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mode-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 165, 255, 0.1);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.mode-card.featured {
    border-color: var(--accent-color);
    background: rgba(0, 255, 165, 0.05);
}

.mode-card.coming-soon {
    border-color: var(--text-muted);
    background: rgba(136, 136, 136, 0.05);
    opacity: 0.7;
}

.mode-card:hover:not(.coming-soon) {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mode-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mode-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mode-players {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(0, 255, 165, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Community Section */
.community {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.community-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.community-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 165, 255, 0.1);
    transition: var(--transition);
}

.community-stat:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.stat-icon {
    font-size: 2rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.community-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-highlight {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.feature-highlight h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-highlight p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 255, 165, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 165, 0.2);
}

.highlight-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.highlight-text {
    color: var(--text-primary);
    font-weight: 500;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Support Section */
.support {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 165, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 255, 165, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.support-card {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInScale 0.8s ease forwards;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 165, 255, 0.3), rgba(0, 255, 255, 0.3), rgba(0, 255, 165, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.support-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    transform: rotate(0deg);
    transition: transform 0.8s ease;
}

.support-card:nth-child(1) {
    animation-delay: 0.1s;
}

.support-card:nth-child(2) {
    animation-delay: 0.25s;
}

.support-card:nth-child(3) {
    animation-delay: 0.4s;
}

.support-card:nth-child(4) {
    animation-delay: 0.55s;
}

.support-card:nth-child(5) {
    animation-delay: 0.7s;
}

.support-card:nth-child(6) {
    animation-delay: 0.85s;
}

.support-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 165, 255, 0.3),
                0 0 40px rgba(0, 255, 255, 0.2),
                inset 0 0 30px rgba(0, 255, 165, 0.05);
}

.support-card:hover::before {
    opacity: 1;
}

.support-card:hover::after {
    transform: rotate(180deg);
}

.patreon-card::before {
    background: linear-gradient(135deg, rgba(255, 66, 77, 0.4), rgba(249, 104, 84, 0.4), rgba(255, 66, 77, 0.4));
}

.patreon-card:hover {
    box-shadow: 0 20px 60px rgba(255, 66, 77, 0.3),
                0 0 40px rgba(255, 66, 77, 0.2),
                inset 0 0 30px rgba(255, 66, 77, 0.05);
}

.discord-card::before {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.4), rgba(114, 137, 218, 0.4), rgba(88, 101, 242, 0.4));
}

.discord-card:hover {
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3),
                0 0 40px rgba(88, 101, 242, 0.2),
                inset 0 0 30px rgba(88, 101, 242, 0.05);
}

.tools-card::before {
    background: linear-gradient(135deg, rgba(0, 255, 165, 0.4), rgba(0, 255, 255, 0.4), rgba(0, 165, 255, 0.4));
}

.tools-card:hover {
    box-shadow: 0 20px 60px rgba(0, 255, 165, 0.3),
                0 0 40px rgba(0, 255, 255, 0.2),
                inset 0 0 30px rgba(0, 255, 165, 0.05);
}

.wiki-card::before {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 200, 0, 0.4), rgba(255, 165, 0, 0.4));
}

.wiki-card:hover {
    box-shadow: 0 20px 60px rgba(255, 165, 0, 0.3),
                0 0 40px rgba(255, 200, 0, 0.2),
                inset 0 0 30px rgba(255, 165, 0, 0.05);
}

.control-panel-card::before {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(186, 85, 211, 0.4), rgba(138, 43, 226, 0.4));
}

.control-panel-card:hover {
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3),
                0 0 40px rgba(186, 85, 211, 0.2),
                inset 0 0 30px rgba(138, 43, 226, 0.05);
}

.template-designer-card::before {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.4), rgba(255, 105, 180, 0.4), rgba(255, 20, 147, 0.4));
}

.template-designer-card:hover {
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.3),
                0 0 40px rgba(255, 105, 180, 0.2),
                inset 0 0 30px rgba(255, 20, 147, 0.05);
}

.beta-label {
    display: inline-block;
    background: #ffc800;
    color: #0a0a0a;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-shadow: none;
    -webkit-text-fill-color: #0a0a0a;
}

.support-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 165, 255, 0.1), rgba(0, 255, 165, 0.1));
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.support-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.support-card:hover .support-icon {
    transform: scale(1.1) rotate(5deg);
}

.support-card:hover .support-icon::before {
    opacity: 0.6;
}

.support-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.support-card:hover .support-title {
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    filter: brightness(1.2);
}

.support-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
    transition: color 0.3s ease;
}

.support-card:hover .support-description {
    color: var(--text-primary);
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 165, 255, 0.05), rgba(0, 255, 165, 0.05));
    border-radius: 12px;
    border: 1px solid transparent;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 165, 255, 0.3), rgba(0, 255, 255, 0.3), rgba(0, 255, 165, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-item:hover {
    background: linear-gradient(135deg, rgba(0, 165, 255, 0.15), rgba(0, 255, 165, 0.15));
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 255, 165, 0.2);
}

.tool-item:hover::before,
.tool-item:hover::after {
    opacity: 1;
}

.tool-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 165, 0.5));
    transition: transform 0.3s ease;
}

.tool-item:hover .tool-icon {
    transform: scale(1.2) rotate(5deg);
}

.tool-text {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-item:hover .tool-text {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 165, 0.3);
}

/* Patreon card tool items - Red/Pink theme */
.patreon-card .tool-item {
    background: linear-gradient(135deg, rgba(255, 66, 77, 0.05), rgba(249, 104, 84, 0.05));
}

.patreon-card .tool-item::before {
    background: linear-gradient(135deg, #ff424d, #f96854);
}

.patreon-card .tool-item::after {
    background: linear-gradient(135deg, rgba(255, 66, 77, 0.3), rgba(249, 104, 84, 0.3), rgba(255, 66, 77, 0.3));
}

.patreon-card .tool-item:hover {
    background: linear-gradient(135deg, rgba(255, 66, 77, 0.15), rgba(249, 104, 84, 0.15));
    box-shadow: 0 4px 20px rgba(255, 66, 77, 0.2);
}

.patreon-card .tool-icon {
    filter: drop-shadow(0 0 8px rgba(255, 66, 77, 0.5));
}

.patreon-card .tool-item:hover .tool-text {
    color: #ff424d;
    text-shadow: 0 0 10px rgba(255, 66, 77, 0.3);
}

/* Discord card tool items - Blurple theme */
.discord-card .tool-item {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05), rgba(114, 137, 218, 0.05));
}

.discord-card .tool-item::before {
    background: linear-gradient(135deg, #5865f2, #7289da);
}

.discord-card .tool-item::after {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(114, 137, 218, 0.3), rgba(88, 101, 242, 0.3));
}

.discord-card .tool-item:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(114, 137, 218, 0.15));
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

.discord-card .tool-icon {
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.5));
}

.discord-card .tool-item:hover .tool-text {
    color: #5865f2;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.3);
}

.wiki-card .tool-item:hover .tool-text {
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.control-panel-card .tool-item:hover .tool-text {
    color: #ba55d3;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.template-designer-card .tool-item:hover .tool-text {
    color: #ff1493;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.btn-patreon, .btn-discord, .btn-tools, .btn-wiki, .btn-control-panel, .btn-template-designer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-patreon {
    background: linear-gradient(135deg, #ff424d 0%, #f96854 100%);
    border: none;
    color: #0a0a0a;
}

.btn-patreon:hover {
    background: linear-gradient(135deg, #f96854 0%, #ff424d 100%);
    box-shadow: 0 8px 30px rgba(255, 66, 77, 0.4);
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    border: none;
    color: #0a0a0a;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}

.btn-tools {
    background: linear-gradient(135deg, #00ffa5 0%, #00ffff 100%);
    border: none;
    color: #0a0a0a;
}

.btn-tools:hover {
    background: linear-gradient(135deg, #00ffff 0%, #00ffa5 100%);
    box-shadow: 0 8px 30px rgba(0, 255, 165, 0.4);
}

.btn-tools .btn-main,
.btn-tools .btn-sub {
    color: #0a0a0a;
    font-weight: 600;
}

.btn-wiki {
    background: linear-gradient(135deg, #ffa500 0%, #ffc800 100%);
    border: none;
    color: #0a0a0a;
}

.btn-wiki:hover {
    background: linear-gradient(135deg, #ffc800 0%, #ffa500 100%);
    box-shadow: 0 8px 30px rgba(255, 165, 0, 0.4);
}

.btn-wiki .btn-main,
.btn-wiki .btn-sub {
    color: #0a0a0a;
    font-weight: 600;
}

.btn-control-panel {
    background: linear-gradient(135deg, #8a2be2 0%, #ba55d3 100%);
    border: none;
    color: #ffffff;
}

.btn-control-panel:hover {
    background: linear-gradient(135deg, #ba55d3 0%, #8a2be2 100%);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.4);
}

.btn-control-panel .btn-main,
.btn-control-panel .btn-sub {
    color: #ffffff;
    font-weight: 600;
}

.btn-template-designer {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    border: none;
    color: #ffffff;
}

.btn-template-designer:hover {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    box-shadow: 0 8px 30px rgba(255, 20, 147, 0.4);
}

.btn-template-designer .btn-main,
.btn-template-designer .btn-sub {
    color: #ffffff;
    font-weight: 600;
}

.nav-link-discord {
    color: #5865f2 !important;
    font-weight: 600;
}

.nav-link-discord:hover {
    color: #7289da !important;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 165, 255, 0.1);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 165, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 60px rgba(0, 165, 255, 0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 165, 255, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(0, 165, 255, 0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes counter-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 165, 255, 0.2);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-item {
        flex: 1;
        min-width: 120px;
    }

    .community-content,
    .download-content,
    .support-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .ehr-logo-container {
        width: 250px;
        height: 250px;
    }

    .ehr-logo {
        font-size: 3rem;
    }

    .orbit-element {
        font-size: 1.5rem;
    }

    .hero-buttons,
    .download-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 200px;
    }

    .features-grid,
    .modes-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Selection styles */
::selection {
    background: rgba(0, 165, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 165, 255, 0.3);
    color: var(--text-primary);
}
