/* =================================
   PORTFOLIO PAGE - PREMIUM
   ================================= */

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 30%, #0a1628 70%, #1a3a5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Page Header */
.portfolio-header {
    background: linear-gradient(180deg, #081220 0%, #0a1628 20%, #1a3a5c 60%, #2a5a8c 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #ff8c00, #ff6b00);
    z-index: 10;
}

.header-badge {
    display: inline-block;
    background: rgba(192, 192, 192, 0.2);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.portfolio-header h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.portfolio-header .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 500px;
}

.header-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.header-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.header-stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.header-stat-item .stat-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.header-stat-item .stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* =================================
   LOGO SLIDER - INFINITE SCROLL
   ================================= */
.clients-slider-section {
    background: #ffffff;
    padding: 80px 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a1628 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.logo-slider-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-slider {
    overflow: hidden;
}

.logo-track {
    display: flex;
    animation: scrollLogos 30s linear infinite;
    will-change: transform;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-slide {
    flex-shrink: 0;
    padding: 0 30px;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 100px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: default;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.logo-item i {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.logo-item:hover i {
    color: #666666;
}

.logo-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
}

/* =================================
   BRANDS WORKED WITH SECTION
   ================================= */
.brands-worked-section {
    background: #f5f5f5;
    padding: 100px 0;
}

.brands-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.brand-row {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 2px solid #e5e5e5;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 3rem;
}

.brand-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 45px rgba(255, 107, 0, 0.12);
    border-color: #ff6b00;
}

.brand-row.reverse {
    flex-direction: row-reverse;
}

.brand-mark-side {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.brand-mark-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.brand-mark-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-mark-circle span {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.case-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c1345a;
    text-decoration: none;
}

.brand-instagram-link:hover {
    color: #ff6b00;
}

.brand-desc-side {
    flex: 1;
}

.brand-desc {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* =================================
   IMPACT SECTION
   ================================= */
.impact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%, #f8f9fa 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.impact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 107, 0, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(10, 22, 40, 0.05) 0%, transparent 30%);
    animation: floatBg 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatBg {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 20px) rotate(10deg);
    }
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.impact-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #e5e5e5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.impact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #ff8c00, #0a1628);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.impact-item:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #ff6b00;
    box-shadow: 0 25px 50px rgba(255, 107, 0, 0.15);
}

.impact-item:hover::before {
    transform: scaleX(1);
}

.impact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.impact-item:hover .impact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4);
}

.impact-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.impact-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.impact-item:hover .impact-value {
    transform: scale(1.05);
}

.impact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =================================
   CTA SECTION - Blends with Footer
   ================================= */
.cta-section {
    background: linear-gradient(180deg, #0a1628 0%, #0d1e35 100%);
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-buttons .btn-outline-light:hover {
    background: #ffffff;
    color: #0a1628;
}

.text-gold {
    color: #c0c0c0;
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 1199px) {
    .header-stats {
        gap: 1rem;
    }

    .header-stat-item {
        padding: 1rem;
        min-width: 100px;
    }

    .header-stat-item .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .portfolio-header h1 {
        font-size: 2.5rem;
    }

    .brand-row,
    .brand-row.reverse {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .portfolio-header {
        padding: 100px 0 60px;
    }

    .portfolio-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .logo-item {
        width: 110px;
        height: 80px;
    }

    .logo-item i {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .impact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .impact-item {
        padding: 1.5rem 1rem;
    }

    .impact-value {
        font-size: 1.75rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 575px) {
    .logo-slide {
        padding: 0 15px;
    }

    .logo-item {
        width: 100px;
        height: 70px;
    }

    .logo-item span {
        font-size: 0.65rem;
    }
}