/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
}

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

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00d4ff;
}

header {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 5rem 2rem 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: fadeInDown 1s ease-out;
    margin-top: 70px; /* Account for fixed nav */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-switcher {
    /* Removed absolute positioning to align with flex */
}

#lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

header p {
    font-size: 1.3rem;
    opacity: 0.8;
    font-weight: 300;
}

main {
    flex: 1;
    padding: 4rem 2rem;
}

.home-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.status-banner {
    grid-column: 1 / -1; /* Span all three columns */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.5rem;
}

.status-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #00d4ff;
    text-transform: none;
    letter-spacing: normal;
}

.status-banner p {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-weight: 400;
}

.status-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.status-info p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-info p span:first-child {
    color: #888;
    font-weight: 400;
}

.status-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.status-info p {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-info p span:first-child {
    color: #888;
    font-weight: 500;
}

.status-online {
    color: #4ade80;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.status-offline {
    color: #ef4444;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.latency {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.latency-green {
    color: #4ade80;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.latency-yellow {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.latency-red {
    color: #ef4444;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.online-users {
    margin-top: 1.5rem;
    text-align: center;
}

.online-users h3 {
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.user-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.user-tag {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.link-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.status-card {
    background: rgba(255, 255, 255, 0.06);
}

.status-info {
    text-align: left;
    margin-top: 1rem;
}

.status-info p {
    margin: 0.5rem 0;
    font-weight: 400;
}

.status-online {
    color: #4ade80;
    font-weight: 600;
}

.status-offline {
    color: #ef4444;
    font-weight: 600;
}

.link-card h2 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.link-card p {
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.copy-link {
    cursor: pointer;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 0.5rem;
}

.copy-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-2px);
}

.link-card small {
    display: block;
    color: #b0b0b0;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
}

footer {
    background: rgba(0, 0, 0, 0.8);
    color: #888;
    text-align: center;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-section h2 {
    color: #00d4ff;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-section p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #ff6b6b);
    border-radius: 25px 25px 0 0;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: #b0b0b0;
    font-size: 1rem;
}

.roadmap-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(255, 107, 107, 0.05));
    position: relative;
    margin-bottom: 4rem;
}

.roadmap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
}

.roadmap-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.roadmap-section h2 {
    color: #00d4ff;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #00d4ff, #ff6b6b);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: 100%;
    border-left: 15px solid rgba(255, 255, 255, 0.1);
    border-right: none;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    width: calc(50% - 30px);
    left: calc(50% + 30px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 100%;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

.team-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 4rem;
}

.team-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-section h2 {
    color: #00d4ff;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #ff6b6b);
    border-radius: 25px 25px 0 0;
}

.team-member:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.team-member h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team-member p {
    color: #b0b0b0;
    font-size: 1rem;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .status-banner {
        grid-column: 1; /* Reset for mobile */
    }
    
    .status-banner .status-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .link-card {
        padding: 2rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header {
        padding: 3rem 1rem 2rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .about-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .roadmap-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        left: 60px;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        border-left: none;
        border-right: 15px solid rgba(255, 255, 255, 0.1);
    }
    
    .timeline-content::before {
        right: auto;
        left: -15px;
        border-right: 15px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }
    
    .team-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}