/* =========================================
   Portfolio Enhancements CSS
   Sultan Ahmad Portfolio
   ========================================= */

/* -----------------------------------------------
   Scroll Progress Bar
   ----------------------------------------------- */
#sa-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), #ff6b9d);
    z-index: 99999;
    box-shadow: 0 0 10px rgba(255, 1, 79, 0.6);
    pointer-events: none;
    transition: width 0.08s linear;
}

/* -----------------------------------------------
   will-change hints for animated elements
   ----------------------------------------------- */
.sa-anim-subtitle,
.sa-anim-title,
.sa-anim-desc,
.sa-anim-cta,
.sa-anim-social,
.sa-anim-thumbnail {
    will-change: transform, opacity;
}
.sa-stat-card,
.sa-brand-card {
    will-change: transform;
}

/* -----------------------------------------------
   Hero CTA Buttons
   ----------------------------------------------- */
.sa-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
    margin-bottom: 8px;
}
.sa-hero-cta .rn-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.sa-hero-cta .rn-btn i {
    font-size: 14px;
}

/* -----------------------------------------------
   Stats / About Section
   ----------------------------------------------- */

.sa-stat-card {
    background: var(--background-color-1);
    box-shadow: var(--shadow-1);
    border-radius: 16px;
    padding: 32px 15px;
    text-align: center;
    height: 100%;
    /* transform handled by Motion One spring — no CSS transition here */
}
.sa-stat-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}
.sa-stat-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--color-primary);
}
.sa-stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.sa-plus {
    font-size: 24px;
    color: var(--color-primary);
    line-height: 1;
}
.sa-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Leadership Strip */
.sa-leadership-strip {
    background: var(--background-color-1);
    box-shadow: var(--shadow-1);
    border-radius: 16px;
    padding: 36px 44px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.sa-leadership-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 220px;
}
.sa-leadership-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #1e2024, #23272b);
    box-shadow: var(--shadow-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sa-leadership-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
}
.sa-leadership-text h5 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.sa-leadership-text p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.65;
}
.sa-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 991px) {
    .sa-stat-number { font-size: 32px; }
    .sa-divider { display: none; }
    .sa-leadership-strip { padding: 28px 24px; }
}
@media (max-width: 575px) {
    .sa-stat-number { font-size: 28px; }
    .sa-plus { font-size: 20px; }
    .sa-leadership-strip { padding: 22px 16px; gap: 22px; }
}

/* -----------------------------------------------
   Brands Section
   ----------------------------------------------- */
.sa-brand-card {
    background: var(--background-color-1);
    box-shadow: var(--shadow-1);
    border-radius: 16px;
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* transform handled by Motion One spring — no CSS transition here */
}
.sa-brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sa-brand-card:hover::before {
    opacity: 1;
}
.sa-brand-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 10px;
}
.sa-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}
.sa-brand-role-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(255, 1, 79, 0.12);
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.sa-brand-category {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}
.sa-brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}
.sa-brand-tag {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.45);
}
.sa-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: color 0.2s ease;
}
.sa-brand-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}
.sa-brand-link svg {
    width: 11px;
    height: 11px;
}

/* -----------------------------------------------
   White Version Overrides
   ----------------------------------------------- */
.white-version .sa-stat-card,
.white-version .sa-leadership-strip,
.white-version .sa-brand-card {
    background: #ffffff;
    box-shadow: 5px 5px 15px #D1D9E6, -5px -5px 15px #ffffff;
}
.white-version .sa-leadership-icon {
    background: #f0f4f8;
    box-shadow: 3px 3px 8px #D1D9E6, -3px -3px 8px #ffffff;
}
.white-version .sa-stat-number,
.white-version .sa-leadership-text h5,
.white-version .sa-brand-name {
    color: var(--color-heading-wv);
}
.white-version .sa-stat-label,
.white-version .sa-leadership-text p,
.white-version .sa-brand-category,
.white-version .sa-brand-link {
    color: rgba(0, 0, 0, 0.45);
}
.white-version .sa-brand-tag {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.4);
}
.white-version .sa-divider {
    background: rgba(0, 0, 0, 0.08);
}
.white-version .sa-brand-card::before {
    background: var(--color-primary);
}

/* -----------------------------------------------
   Section Spacing Overrides
   (Reduce default 100px to more compact values)
   ----------------------------------------------- */
.rn-section-gap {
    padding: 72px 0 !important;
}
@media (max-width: 991px) {
    .rn-section-gap { padding: 52px 0 !important; }
}
@media (max-width: 575px) {
    .rn-section-gap { padding: 44px 0 !important; }
}

/* Slider (hero) keeps generous top padding */
.rn-slider-area {
    padding-top: 0 !important;
}

/* -----------------------------------------------
   Skill Chips — Hero "Specialized in"
   ----------------------------------------------- */
.sa-skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.sa-skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 6px;
    background: var(--background-color-1);
    box-shadow: var(--shadow-1);
    border-radius: 25px;
    cursor: default;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    will-change: transform;
}

.sa-skill-chip:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

.sa-skill-chip img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.sa-skill-chip span {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    line-height: 1;
}

/* Icon-only chip variant (e.g. Payments — uses <i class="bi"> instead of <img>) */
.sa-skill-chip--icon {
    padding-left: 10px;
}

.sa-skill-chip--icon i {
    font-size: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
    line-height: 1;
}

.sa-skill-chip-letter {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* -----------------------------------------------
   Portfolio Stats Bar
   ----------------------------------------------- */
.sa-pf-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 0;
    padding: 14px 28px;
    background: var(--background-color-1);
    box-shadow: var(--shadow-1);
    border-radius: 50px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.sa-pf-stats-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    padding: 0 18px;
}

.sa-pf-stats-bar span i {
    color: var(--color-primary);
    font-size: 13px;
}

.sa-pf-stats-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    padding: 0 !important;
}

/* -----------------------------------------------
   Portfolio Cards — Modern Design
   ----------------------------------------------- */
.sa-pf-card {
    background: var(--background-color-1);
    box-shadow: var(--shadow-1);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.35s ease;
    will-change: transform;
}

.sa-pf-card:hover {
    box-shadow: var(--shadow-2);
}

/* Image Wrapper */
.sa-pf-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f0f0f2;
    flex-shrink: 0;
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* <a> fills the entire fixed-height wrapper */
.sa-pf-img-wrap > a:first-child {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Image: full width, natural height, centered — no stretch */
.sa-pf-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.sa-pf-card:hover .sa-pf-img-wrap img {
    transform: scale(1.04) !important;
}

/* Dark theme: slightly lighter tinted bg */
.white-version .sa-pf-img-wrap {
    background: #f5f5f7;
}

/* Category Badge */
.sa-pf-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 4px 11px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 1, 79, 0.35);
}

/* Overlay with buttons */
.sa-pf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, 0.78);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.sa-pf-card:hover .sa-pf-overlay {
    opacity: 1;
}

.sa-pf-view-btn,
.sa-pf-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    transform: translateY(12px);
    opacity: 0;
    letter-spacing: 0.3px;
}

.sa-pf-card:hover .sa-pf-view-btn {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.32s ease 0.06s;
}

.sa-pf-card:hover .sa-pf-live-btn {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.32s ease 0.14s;
}

.sa-pf-view-btn {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 1, 79, 0.4);
}

.sa-pf-view-btn:hover {
    background: #e6003f;
    color: #ffffff;
}

.sa-pf-live-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sa-pf-live-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Card Body */
.sa-pf-body {
    padding: 20px 22px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta row: date + client */
.sa-pf-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}

.sa-pf-date,
.sa-pf-client {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sa-pf-date i  { color: var(--color-primary); opacity: 0.75; }
.sa-pf-client i { color: rgba(255, 255, 255, 0.3); }

/* Title */
.sa-pf-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 9px;
}

.sa-pf-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sa-pf-title a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Short description */
.sa-pf-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.65;
    margin-bottom: 13px;
    flex: 1;
}

/* Tech Stack */
.sa-pf-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.sa-pf-tech-tag {
    font-size: 10px;
    padding: 3px 10px;
    background: rgba(255, 1, 79, 0.09);
    border: 1px solid rgba(255, 1, 79, 0.18);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.sa-pf-tech-more {
    font-size: 10px;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.3);
}

/* Footer: likes + arrow */
.sa-pf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.sa-pf-likes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.32);
}

.sa-pf-likes i {
    color: #ff6b6b;
    font-size: 11px;
}

.sa-pf-arrow {
    color: var(--color-primary);
    font-size: 21px;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 0.22s ease;
    display: inline-flex;
}

.sa-pf-arrow:hover {
    transform: translateX(4px) scale(1.05);
    color: var(--color-primary);
    text-decoration: none !important;
}

/* -----------------------------------------------
   Load More Button
   ----------------------------------------------- */
.sa-pf-hidden {
    display: none !important;
}

.sa-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 40px;
    width: auto !important;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.4px;
}

.sa-load-more-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(255, 1, 79, 0.32);
    transform: translateY(-2px);
}

.sa-load-more-btn i {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.sa-load-more-btn:hover i {
    transform: rotate(90deg);
}

.sa-lm-count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.75;
}

/* Pop-in animation for newly revealed cards */
@keyframes sa-card-pop {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* -----------------------------------------------
   mt--36 utility (used in portfolio tab content margin)
   ----------------------------------------------- */
.mt--36 { margin-top: 36px; }

/* -----------------------------------------------
   White Version — new components
   ----------------------------------------------- */
.white-version .sa-skill-chip {
    background: #ffffff;
    box-shadow: 3px 3px 10px #D1D9E6, -3px -3px 10px #ffffff;
}

.white-version .sa-skill-chip span {
    color: rgba(0, 0, 0, 0.6);
}

.white-version .sa-pf-stats-bar {
    background: #ffffff;
    box-shadow: 5px 5px 15px #D1D9E6, -5px -5px 15px #ffffff;
}

.white-version .sa-pf-stats-bar span {
    color: rgba(0, 0, 0, 0.5);
}

.white-version .sa-pf-stats-divider {
    background: rgba(0, 0, 0, 0.08);
}

.white-version .sa-pf-card {
    background: #ffffff;
    box-shadow: 5px 5px 15px #D1D9E6, -5px -5px 15px #ffffff;
}

.white-version .sa-pf-title a {
    color: var(--color-heading-wv);
}

.white-version .sa-pf-desc,
.white-version .sa-pf-date,
.white-version .sa-pf-client {
    color: rgba(0, 0, 0, 0.45);
}

.white-version .sa-pf-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.white-version .sa-pf-likes {
    color: rgba(0, 0, 0, 0.3);
}

.white-version .sa-pf-tech-tag {
    background: rgba(255, 1, 79, 0.06);
    border-color: rgba(255, 1, 79, 0.15);
    color: rgba(0, 0, 0, 0.55);
}

.white-version .sa-pf-tech-more {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.3);
}

.white-version .sa-load-more-btn {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.white-version .sa-load-more-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

