/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* Navigation */
.nav-links {
    position: sticky;
    top: 20px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
    margin-bottom: 30px;
}

.nav-item {
    color: #5fff6d;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: #5fff6d;
    color: #1a1a2e;
    transform: translateY(-2px);
}

/* Cheatsheet Container */
.cheatsheet {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

header h1 {
    font-size: 3rem;
    color: #5fff6d;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(95, 255, 109, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(95, 255, 109, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(95, 255, 109, 0.8);
    }
}

.header-info {
    margin-top: 15px;
}

.profile-text a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.profile-text a:hover {
    color: #ffffff;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 2rem;
    color: #ffffff;
    border-bottom: 2px solid #5fff6d;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.subsection h3 {
    font-size: 1.5rem;
    color: #5fff6d;
    margin: 20px 0 15px;
}

/* Commands */
.command {
    display: flex;
    align-items: center;
    background: #2a2a4e;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.command:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(95, 255, 109, 0.3);
}

.command code {
    flex: 1;
    background: #1a1a2e;
    padding: 10px;
    border-radius: 6px;
    color: #ffcc00;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

.command .comment {
    flex: 2;
    padding-left: 20px;
    color: #a0a0c0;
    font-style: italic;
}

.copy-btn {
    background: #5fff6d;
    color: #1a1a2e;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.copy-btn:hover {
    background: #4ae05c;
    transform: scale(1.05);
}

/* Floating Mail Button */
.floating-mail-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #5fff6d;
    color: #1a1a2e;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(95, 255, 109, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-mail-btn:hover {
    background: #4ae05c;
    transform: translateY(-5px);
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
}

.popup-content {
    background: #2a2a4e;
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.popup-content h2 {
    color: #5fff6d;
    margin-bottom: 20px;
}

.popup-content p {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5fff6d;
    color: #1a1a2e;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.email-link:hover {
    background: #4ae05c;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #5fff6d;
}

/* Support Section */
.support-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
}

.support-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.support-section img {
    transition: transform 0.3s ease;
}

.support-section img:hover {
    transform: scale(1.1);
}

.support-section hr {
    border: 0;
    height: 1px;
    background: #5fff6d;
    margin: 20px 0;
}

.support-section p {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .cheatsheet {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .command {
        flex-direction: column;
        align-items: flex-start;
    }

    .command .comment {
        padding-left: 0;
        padding-top: 10px;
    }

    .copy-btn {
        align-self: flex-end;
    }

    .floating-mail-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
      .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 2px;
    }
    .popup-content {
        margin: 50px 20px;
        padding: 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .subsection h3 {
        font-size: 1.2rem;
    }
}