/* Services & Hotkey Hint */
.services-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
}

.services-button:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.hotkey-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-secondary);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s;
    animation: pulse 4s infinite;
}

.hotkey-hint .key {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary);
    font-weight: 600;
    margin-right: 0.3rem;
}

/* Modal Styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    isolation: isolate;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0a0a12;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    will-change: transform;
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.section-desc {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    color: var(--text-secondary);
}

.modal-section li strong {
    color: var(--text-primary);
}

.modal-section li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Engagement Grid */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.engagement-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.engagement-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.engagement-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Achievements Timeline */
.achievements-timeline {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(0, 212, 255, 0.2));
}

.achievement-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.achievement-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #0a0a12;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 20px var(--primary-glow);
}

.achievement-content {
    flex: 1;
    padding-bottom: 1rem;
}

.achievement-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.achievement-year {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.achievement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-size: 0.8rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Mobile Fixes */
@media (max-width: 600px) {
    .cta-button {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        text-align: center;
        padding: 0.9rem 2rem;
    }

    .services-button {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-bottom: 0.75rem;
        text-align: center;
        padding: 0.9rem 2rem;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid var(--primary);
        color: var(--primary);
    }

    .services-button:hover {
        background: rgba(0, 212, 255, 0.2);
    }

    .modal-content {
        padding: 1.25rem;
        width: 95%;
        max-height: 85vh;
        border-radius: 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        padding-right: 2rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .modal-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .modal-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.4rem;
    }

    /* Compact timeline for mobile */
    .achievements-timeline {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }

    .achievements-timeline::before {
        left: 0.65rem;
        width: 2px;
    }

    .achievement-item {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .achievement-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9rem;
        border-width: 1.5px;
        box-shadow: 0 0 10px var(--primary-glow);
    }

    .achievement-content h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.15rem;
    }

    .achievement-year {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .achievement-list li {
        font-size: 0.8rem;
        padding-left: 1rem;
        margin-bottom: 0.35rem;
        line-height: 1.4;
    }

    .achievement-list li::before {
        font-size: 0.7rem;
    }

    /* Metrics grid - 2 columns on mobile */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .metric-card {
        padding: 1rem 0.75rem;
        border-radius: 10px;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.7rem;
    }

    .hotkey-hint {
        display: none;
        /* Hide hint on mobile where keyboard is rare */
    }
}