/**
 * CUSTOM ENHANCEMENTS & MODERN STYLING
 * Ammar Alsory - Portfolio
 */

/* Floating Theme Toggle Button */
.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(45, 46, 46, 0.85);
    backdrop-filter: blur(8px);
    color: #e0a80d;
    border: 1px solid #404242;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
    background: #e0a80d;
    color: #1a1a1a;
    border-color: #e0a80d;
    transform: translateY(-2px);
}

/* Header Brand Subtitles */
.c-brand__sub-title {
    margin-top: 5px;
    line-height: 1.4;
}

.c-brand__role-desc {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: block;
}

/* Tech Badges */
.tech-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(224, 168, 13, 0.12);
    color: #e0a80d;
    border: 1px solid rgba(224, 168, 13, 0.25);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: rgba(224, 168, 13, 0.25);
    border-color: #e0a80d;
}

/* Experience Bullet Points */
.c-work__bullets {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.c-work__bullets li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.c-work__bullets li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #e0a80d;
    font-weight: bold;
}

/* Flagship Project Badges */
.project-badge-flagship {
    display: inline-block;
    background: #e0a80d;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 6px;
    letter-spacing: 0.8px;
}

/* Card UI & Spacing (Harmonized with all sections) */
.o-media--block {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.o-media--block:hover {
    transform: translateY(-3px);
    border-color: rgba(224, 168, 13, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

body.light-mode .o-media--block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.light-mode .o-media--block:hover {
    transform: translateY(-3px);
    border-color: #d97706;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.12);
}

/* Status Pill */
.c-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.c-status-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* Responsive Portfolio Grid: 2 per row on standard & 1080p screens, 3 only on massive 2200px+ */
.portfolio-card-col {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: flex;
}

.portfolio-card-col>.o-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card-col .o-media--block {
    flex: 1;
}

@media (max-width: 899px) {
    .portfolio-card-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 2200px) {
    .portfolio-card-col {
        width: calc(99.999999% * 0.33333) !important;
        flex: 0 0 calc(99.999999% * 0.33333) !important;
        max-width: calc(99.999999% * 0.33333) !important;
    }
}

/* Utilities */
.u-mb-40 {
    margin-bottom: 40px !important;
}

.u-mt-30 {
    margin-top: 30px !important;
}

.u-bold {
    font-weight: 700 !important;
}

/* Project Card Logo Badge */
.o-media--block {
    position: relative;
}

.project-card-logo-wrap {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 37px;
    height: 37px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.o-media--block:hover .project-card-logo-wrap {
    border-color: rgba(224, 168, 13, 0.4);
    transform: scale(1.05);
}

.project-card-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.project-card-logo-wrap .project-icon-fallback {
    font-size: 20px;
    color: #e0a80d;
}

body.light-mode .project-card-logo-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-mode .o-media--block:hover .project-card-logo-wrap {
    border-color: #d97706;
}

/* Tuwaiq / Satr Social Icon */
.c-social-button .tuwaiq-icon {
    width: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.c-social-button:hover .tuwaiq-icon {
    content: url('../images/tuwaiq_hover.webp');
    transform: scale(1.08);
}