/* Global body styling for a clean, professional look */
body {
    font-family: 'Inter', 'Quicksand', Arial, sans-serif;
    background: linear-gradient(180deg, #f4f7fa 0%, #e6ecf2 100%);
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.1;
    z-index: -1;
}

/* Container with a modern card-like design */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 122, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

/* Main heading with a vibrant, professional style */
h1 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 3.2rem;
    color: #1a1a1a;
    background: linear-gradient(45deg, #007aff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
    animation: slideIn 1.2s ease forwards;
}

/* Slide-in animation for h1 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile section with a clean, student-friendly design */
.profile {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(145deg, rgba(0, 122, 255, 0.05), rgba(0, 212, 255, 0.05));
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease;
}

.profile:hover {
    background: linear-gradient(145deg, rgba(0, 122, 255, 0.1), rgba(0, 212, 255, 0.1));
}

/* Profile heading with a dynamic underline effect */
.profile h3 {
    color: #007aff;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    padding: 0 10%;
    font-weight: 600;
    letter-spacing: 0.8px;
    position: relative;
    animation: fadeInUp 1.2s ease forwards;
}

.profile h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007aff;
    transition: width 0.3s ease, left 0.3s ease;
}

.profile h3:hover::after {
    width: 50%;
    left: 25%;
}

/* Profile link with a modern button style */
.profile a {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    background: linear-gradient(45deg, #007aff, #00d4ff);
    padding: 10px 20%;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: inline-block;
    width: auto;
    max-width: 80%;
}

.profile a:hover {
    background: linear-gradient(45deg, #005bb5, #0096cc);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 91, 181, 0.4);
}

/* Animation for profile elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Command section with a professional accordion style */
.command-section h2 {
    cursor: pointer;
    background: linear-gradient(90deg, #007aff, #00d4ff);
    color: #fff;
    padding: 16px;
    margin: 12px 0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.command-section h2:hover {
    background: linear-gradient(90deg, #005bb5, #0096cc);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 91, 181, 0.3);
}

/* Command list with a clean, readable design */
.command-list {
    display: none;
    padding: 20px;
    background: #f9f9fb;
    border-radius: 8px;
    border: 1px solid #e0e1dd;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.command-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.command-list ul li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e1dd;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.command-list ul li:hover {
    color: #007aff;
}

.command-list ul li strong {
    color: #ff6b6b;
    font-weight: 700;
    font-style: italic;
}

/* Floating mail button with a professional yet vibrant design */
.floating-mail-btn {
    position: fixed;
    bottom: 50px;
    right: 50px;
    background: linear-gradient(135deg, #007aff, #00d4ff);
    color: #fff;
    border: none;
    padding: 16px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-mail-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.5);
    background: linear-gradient(135deg, #005bb5, #0096cc);
}

.floating-mail-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

/* Popup with a clean, professional overlay */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: popupSlide 0.5s ease;
}

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

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.popup-content h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.popup-content p {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

.email-link {
    display: inline-block;
    background: linear-gradient(135deg, #007aff, #00d4ff);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.email-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.5);
    background: linear-gradient(135deg, #005bb5, #0096cc);
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .profile h3 {
        font-size: 1.4rem;
        padding: 0 8%;
    }

    .profile a {
        font-size: 1rem;
        padding: 10px 15%;
        max-width: 85%;
    }

    .floating-mail-btn {
        bottom: 30px;
        right: 30px;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .popup-content {
        max-width: 400px;
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .profile h3 {
        font-size: 1.2rem;
        padding: 0 5%;
    }

    .profile a {
        font-size: 0.9rem;
        padding: 8px 12%;
        max-width: 90%;
    }

    .floating-mail-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .popup-content {
        max-width: 320px;
        padding: 20px;
    }

    .popup-content h2 {
        font-size: 1.5rem;
    }

    .popup-content p {
        font-size: 1rem;
    }
}