/* About Developer Page Styles */
.about-developer-overlay {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    transition: bottom 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    scroll-behavior: smooth;
}

/* Modern Custom Scrollbar for the Overlay */
.about-developer-overlay::-webkit-scrollbar {
    width: 8px;
}

.about-developer-overlay::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.about-developer-overlay::-webkit-scrollbar-thumb {
    background: #0D47A1;
    border-radius: 10px;
}

.about-developer-overlay::-webkit-scrollbar-thumb:hover {
    background: #0a3066;
}

.about-developer-overlay.open {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

.about-developer-header {
    background: linear-gradient(135deg, #0D47A1 0%, #0a3066 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid #8BC34A;
}

.about-developer-header h1 {
    color: white !important;
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-developer-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px;
}

.close-about-dev {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.close-about-dev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.about-dev-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}

.about-developer-overlay.open .about-dev-container {
    transform: translateY(0);
    opacity: 1;
}

/* Scroll Reveal Animation Classes */
.dev-section,
.contact-info-dev {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.dev-section.revealed,
.contact-info-dev.revealed {
    opacity: 1;
    transform: translateY(0);
}

.dev-profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .dev-profile-grid {
        display: flex;
        flex-direction: column;
    }

    .dev-image-card {
        position: relative;
        z-index: 1;
        margin-bottom: -150px;
        /* Pull the info section up over the photo */
    }

    .dev-info {
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.6) !important;
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        border-radius: 25px 25px 0 0;
        padding: 30px 20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.4);
        margin-top: 0;
    }

    /* Adjust animations for glassmorphism */
    .dev-section,
    .contact-info-dev {
        opacity: 1 !important;
        transform: none !important;
    }
}

.dev-image-card {
    position: sticky;
    top: 20px;
}

.dev-profile-pic {
    width: 100%;
    aspect-ratio: 1242 / 1600;
    /* Approximate based on the original photo content */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
}

.dev-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #0D47A1;
}

.dev-tagline {
    font-size: 18px;
    color: #C2185B;
    font-weight: 600;
    margin-bottom: 20px;
}

.dev-section {
    margin-bottom: 30px;
}

.dev-section h2 {
    font-size: 24px;
    border-left: 5px solid #8BC34A;
    padding-left: 15px;
    margin-bottom: 15px;
    color: #0a3066;
}

.dev-section p {
    font-size: 16px;
    line-height: 1.8;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #f0f7ff;
    color: #0D47A1;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid #d1e3fa;
}

.current-project-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #0D47A1;
}

.mentors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mentor-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mentor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #0D47A1;
}

.mentor-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.mentor-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f7ff;
}

.mentor-details h4 {
    margin: 0 0 5px 0;
    color: #0D47A1;
    font-size: 18px;
}

.mentor-details p {
    margin: 0 0 8px 0 !important;
    font-size: 14px !important;
    color: #666;
    line-height: 1.4 !important;
}

.mentor-details a {
    color: #0077b5;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mentor-details a:hover {
    text-decoration: underline;
}

.contact-info-dev {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.contact-dev-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.contact-dev-item i {
    color: #C2185B;
    font-size: 20px;
}

.social-link-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    width: 100%;
}

.social-link-item a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.social-link-item i.fa-linkedin-square {
    color: #0077b5;
    font-size: 24px;
}

.social-link-item i.fa-facebook-square {
    color: #1877f2;
    font-size: 24px;
}

.social-link-item span {
    font-weight: 600;
    font-size: 14px;
}

/* Button style for the footer */
.about-dev-container-footer {
    text-align: center;
    width: 100%;
    margin-top: 30px;
    padding-bottom: 10px;
}

.about-dev-btn {
    background: #C2185B;
    color: white !important;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3);
    animation: blink-soft 2s infinite;
}

@keyframes blink-soft {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
        box-shadow: 0 2px 5px rgba(194, 24, 91, 0.2);
    }
}

.about-dev-btn:hover {
    background: #AD1457;
    transform: scale(1.05);
    animation: none;
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.4);
}