:root {
    --bg-primary: linear-gradient(135deg, #e8f4f8 0%, #f0f4f8 50%, #e3f2fd 100%);
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --text-primary: #37474f;
    --text-secondary: #607d8b;
    --text-muted: #78909c;
    --accent-gradient: linear-gradient(135deg, #5b9bd5 0%, #7eb3d9 100%);
    --accent-color: #5b9bd5;
    --accent-hover: rgba(91, 155, 213, 0.1);
    --border-color: rgba(255, 255, 255, 0.6);
    --shadow-color: rgba(158, 197, 220, 0.15);
    --shadow-hover: rgba(91, 155, 213, 0.2);
    --floating-gradient: radial-gradient(circle, rgba(91, 155, 213, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-navbar: rgba(15, 23, 42, 0.85);
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    --accent-color: #60a5fa;
    --accent-hover: rgba(96, 165, 250, 0.1);
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(96, 165, 250, 0.2);
    --floating-gradient: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1 0 auto;
    padding-top: 140px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* Theme Transition Overlay */
.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    mix-blend-mode: normal;
}

.theme-transition-overlay.active {
    animation: themeExpand 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes themeExpand {
    0% { opacity: 0.3; clip-path: circle(0% at var(--x) var(--y)); }
    50% { opacity: 0.6; }
    100% { opacity: 0; clip-path: circle(150% at var(--x) var(--y)); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 1100px;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.navbar.hidden {
    transform: translateX(-50%) translateY(-120px);
    opacity: 0;
}

.navbar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a:hover {
    background: var(--accent-hover);
    color: var(--accent-color);
}

.nav-links a.active {
    background: var(--accent-gradient);
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--accent-gradient);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.3);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(91, 155, 213, 0.4);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    color: white;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about-section {
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 50px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-hover);
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-card p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Server Info */
.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-hover);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 32px;
}

.info-header h3 {
    font-size: 24px;
    color: var(--text-primary);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

code {
    background: var(--accent-hover);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

code.copy-text {
    cursor: pointer;
    position: relative;
}

code.copy-text:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

code.copy-text:active {
    transform: scale(0.98);
}

/* Team Section */
.team-section {
    margin: 80px 0;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-category {
    flex: 1;
    min-width: 250px;
    animation: fadeInUp 0.8s ease-out backwards;
}

.team-category:nth-child(2) { animation-delay: 0.5s; }
.team-category:nth-child(3) { animation-delay: 0.6s; }
.team-category:nth-child(4) { animation-delay: 0.7s; }
.team-category:nth-child(5) { animation-delay: 0.8s; }

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.category-icon {
    font-size: 28px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.team-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-hover);
    border-color: var(--accent-color);
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.member-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Info Section */
.info-section {
    margin: 80px 0 100px;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-block {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

.block-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--accent-hover);
    color: var(--accent-color);
}

/* Footer */
.footer {
    flex-shrink: 0;
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 0;
    border-top: 1px solid #334155;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.footer-link img {
    width: 16px;
    height: 16px;
}

.footer-link:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 12px;
    color: #94a3b8;
}

.footer-disclaimer {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 5px;
}

/* Member Modal */
.member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.member-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px var(--shadow-color);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-hover);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-gradient);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
}

.modal-title h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.modal-title p {
    font-size: 16px;
    color: var(--text-muted);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-bio {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.modal-role {
    padding: 15px 20px;
    background: var(--accent-hover);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Floating Elements */
.floating-element {
    position: fixed;
    border-radius: 50%;
    background: var(--floating-gradient);
    pointer-events: none;
    animation: float 20s infinite ease-in-out;
    transition: background 0.6s ease;
}

.floating-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.floating-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -10s;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 12px 20px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-card {
        padding: 35px 25px;
    }

    .about-card h2 {
        font-size: 26px;
    }

    .about-card p {
        font-size: 16px;
    }

    .server-info {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    .team-container {
        flex-direction: column;
    }

    .team-grid {
        flex-direction: column;
    }

    .info-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }

    .modal-content {
        padding: 30px 25px;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }
}