/**
 * Developer Signature Modal Styles
 * Matches NDC Workforce teal/green professional theme
 */

/* ========================================
   MODAL OVERLAY & CONTAINER
   ======================================== */

.dev-signature-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dev-signature-modal.dev-signature-active {
    opacity: 1;
    visibility: visible;
}

.dev-signature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dev-signature-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 900px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid #4A9B96;
}

.dev-signature-modal.dev-signature-active .dev-signature-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Custom Scrollbar */
.dev-signature-content::-webkit-scrollbar {
    width: 10px;
}

.dev-signature-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.dev-signature-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4A9B96 0%, #2D5F5D 100%);
    border-radius: 10px;
}

.dev-signature-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2D5F5D 0%, #1F4342 100%);
}

/* ========================================
   HEADER & CLOSE BUTTON
   ======================================== */

.dev-signature-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
    z-index: 10;
}

.dev-signature-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.4);
}

.dev-signature-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #4A9B96;
}

.dev-signature-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: dev-signature-float 3s ease-in-out infinite;
}

@keyframes dev-signature-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.dev-signature-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2D5F5D 0%, #4A9B96 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ========================================
   SECTIONS
   ======================================== */

.dev-signature-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4A9B96;
}

.dev-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.dev-section-header i {
    font-size: 1.5rem;
    color: #4A9B96;
}

.dev-section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D5F5D;
    margin: 0;
}

/* ========================================
   PROFILE SECTION
   ======================================== */

.dev-signature-profile {
    background: linear-gradient(135deg, #2D5F5D 0%, #1F4342 100%);
    color: white;
    border-left: none;
    border: 3px solid #4A9B96;
}

.dev-profile-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dev-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A9B96 0%, #5CB85C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(74, 155, 150, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.dev-profile-info {
    flex: 1;
    min-width: 250px;
}

.dev-profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.dev-profile-role {
    font-size: 0.875rem;
    color: #4A9B96;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.dev-profile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dev-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.dev-contact-item i {
    width: 20px;
    color: #4A9B96;
}

/* ========================================
   QUOTE
   ======================================== */

.dev-quote {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #4A9B96;
    position: relative;
}

.dev-quote i {
    font-size: 1.5rem;
    color: #4A9B96;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.dev-quote p {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* ========================================
   TECHNOLOGY BADGES
   ======================================== */

.dev-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dev-tech-badge {
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.dev-tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tech-frontend {
    background: linear-gradient(135deg, #3B5B7E 0%, #2C4A63 100%);
    color: white;
}

.tech-frontend:hover {
    border-color: #3B5B7E;
}

.tech-backend {
    background: linear-gradient(135deg, #2D5F5D 0%, #1F4342 100%);
    color: white;
}

.tech-backend:hover {
    border-color: #2D5F5D;
}

.tech-api {
    background: linear-gradient(135deg, #4A9B96 0%, #3A7370 100%);
    color: white;
}

.tech-api:hover {
    border-color: #4A9B96;
}

.tech-ui {
    background: linear-gradient(135deg, #5CB85C 0%, #48A048 100%);
    color: white;
}

.tech-ui:hover {
    border-color: #5CB85C;
}

/* ========================================
   FEATURES GRID
   ======================================== */

.dev-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.dev-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border-left: 3px solid #4A9B96;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

.dev-feature-item.clickable {
    cursor: pointer;
}

.dev-feature-item .info-icon {
    margin-left: auto;
    color: #4A9B96;
    font-size: 1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.dev-feature-item.clickable:hover .info-icon {
    opacity: 1;
    transform: scale(1.2);
}

.dev-feature-item:hover {
    background: linear-gradient(135deg, #4A9B96 0%, #2D5F5D 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(74, 155, 150, 0.3);
}

.dev-feature-item i {
    font-size: 1.25rem;
    color: #4A9B96;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.dev-feature-item:hover i {
    color: white;
}

.dev-feature-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    transition: color 0.3s ease;
}

.dev-feature-item:hover span {
    color: white;
}

/* ========================================
   STATS GRID
   ======================================== */

.dev-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.dev-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2D5F5D 0%, #1F4342 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(45, 95, 93, 0.3);
    border: 2px solid #4A9B96;
    transition: all 0.3s ease;
}

.dev-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(45, 95, 93, 0.4);
}

.dev-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dev-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #4A9B96;
    line-height: 1.2;
    word-wrap: break-word;
}

/* ========================================
   EASTER EGG MESSAGE
   ======================================== */

.dev-signature-easter-egg {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFF8DC 100%);
    border: 3px solid #F59E0B;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    animation: dev-signature-pulse 2s ease-in-out infinite;
}

@keyframes dev-signature-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    }
    50% {
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    }
}

.dev-signature-easter-egg i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.dev-signature-easter-egg p {
    color: #92400E;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.dev-signature-easter-egg strong {
    color: #F59E0B;
    font-weight: 700;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes dev-signature-bounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.05) rotate(-2deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .dev-signature-content {
        width: calc(100% - 1rem);
        padding: 1.5rem;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .dev-signature-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }
    
    .dev-signature-emoji {
        font-size: 3rem;
    }
    
    .dev-signature-title {
        font-size: 2rem;
    }
    
    .dev-profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .dev-profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .dev-profile-name {
        font-size: 1.5rem;
    }
    
    .dev-profile-contact {
        align-items: center;
    }
    
    .dev-signature-section {
        padding: 1rem;
    }
    
    .dev-section-header h3 {
        font-size: 1.25rem;
    }
    
    .dev-features-grid {
        grid-template-columns: 1fr;
    }
    
    .dev-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dev-signature-title {
        font-size: 1.75rem;
    }
    
    .dev-tech-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .dev-stat-value {
        font-size: 1.5rem;
    }
    
    .dev-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.dev-signature-modal:focus-within {
    outline: 2px solid #4A9B96;
    outline-offset: 4px;
}

/* ========================================
   INFO MODAL (For Feature Descriptions)
   ======================================== */

.dev-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dev-info-modal.dev-info-active {
    opacity: 1;
    visibility: visible;
}

.dev-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dev-info-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 600px;
    width: calc(100% - 2rem);
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid #4A9B96;
}

.dev-info-modal.dev-info-active .dev-info-content {
    transform: translate(-50%, -50%) scale(1);
}

.dev-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
    z-index: 10;
}

.dev-info-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.4);
}

.dev-info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4A9B96 0%, #2D5F5D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(74, 155, 150, 0.4);
}

.dev-info-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2D5F5D;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.dev-info-body {
    margin-bottom: 2rem;
}

.dev-info-section {
    margin-bottom: 1.5rem;
}

.dev-info-section:last-child {
    margin-bottom: 0;
}

.dev-info-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D5F5D;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dev-info-section h4 i {
    color: #4A9B96;
}

.dev-info-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
    margin: 0;
    text-align: left;
}

.dev-info-ok {
    width: 100%;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #4A9B96 0%, #2D5F5D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 155, 150, 0.3);
}

.dev-info-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 155, 150, 0.4);
}

.dev-info-ok:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .dev-info-content {
        padding: 1.5rem;
    }
    
    .dev-info-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .dev-info-title {
        font-size: 1.5rem;
    }
    
    .dev-info-section h4 {
        font-size: 1rem;
    }
    
    .dev-info-section p {
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dev-signature-content,
    .dev-signature-emoji,
    .dev-feature-item,
    .dev-tech-badge,
    .dev-stat-item {
        animation: none;
        transition: none;
    }
}

