/* =========================================
   PORTFOLIO PAGE UNIQUE STYLES
   ========================================= */

/* Header navigation highlight on active page */
.nav-item.dropdown.active .dropdown-toggle {
    color: var(--accent) !important;
}

/* Portfolio Hero Section */
.portfolio-hero {
    position: relative;
    padding: 140px 0 80px;
    background-color: #0d0d0d;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(176, 138, 87, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(176, 138, 87, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 138, 87, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    background-repeat: no-repeat, repeat, repeat;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(176, 138, 87, 0.15);
}

/* Portfolio Hero Decorations Layer */
.portfolio-hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.portfolio-hero-decorations .decor-shape-top-left {
    position: absolute;
    top: 10%;
    left: 4%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.portfolio-hero-decorations .decor-shape-top-right {
    position: absolute;
    top: 10%;
    right: 4%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.portfolio-hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.portfolio-hero h1 {
    font-family: 'Satoshi', sans-serif;
    font-size: 56px; /* Increased from 48px */
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.portfolio-hero p {
    font-size: 15px; /* Decreased from 18px */
    color: #b3b3b3;
    margin-bottom: 30px;
    line-height: 1.6;
}

.portfolio-hero .badge-secondary {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(176, 138, 87, 0.12), rgba(255, 255, 255, 0.04)) !important;
    background-size: 200% 100% !important;
    border: 1px solid rgba(176, 138, 87, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(176, 138, 87, 0.1);
    margin-bottom: 20px;
    animation: gradientFlow 3s linear infinite;
    position: relative;
    overflow: hidden;
}

.portfolio-hero .badge-secondary .dot {
    background-color: var(--accent) !important;
    animation: dotPulse 1.8s infinite alternate;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes dotPulse {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 4px rgba(176, 138, 87, 0.5);
    }
    100% {
        transform: scale(1.2);
        box-shadow: 0 0 10px rgba(176, 138, 87, 0.9);
    }
}

/* Filter Controls - Glassmorphic Dark Style */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 0px;
    position: relative;
    z-index: 2;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 6px; /* Rectangular corner radius */
    font-family: 'Nunito', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #b3b3b3;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 13px;
    color: #b3b3b3;
    transition: color 0.3s ease;
}

.filter-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.filter-btn:hover i {
    color: #ffffff;
}

.filter-btn.active {
    background: rgba(176, 138, 87, 0.15);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(176, 138, 87, 0.15);
}

.filter-btn.active i {
    color: var(--accent);
}

/* Portfolio Grid - Pinterest Masonry Layout */
.portfolio-grid-section {
    padding: 40px 0 80px;
    background-color: var(--bg-main);
}

.portfolio-grid {
    column-count: 4; /* Reduced from 5 to 4 on large screens for larger, more premium cards */
    column-gap: 16px;
    width: 100%;
}

@media (max-width: 1400px) {
    .portfolio-grid {
        column-count: 3; /* Reduced from 4 to 3 */
        column-gap: 16px;
    }
}

@media (max-width: 1100px) {
    .portfolio-grid {
        column-count: 3;
        column-gap: 14px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        column-count: 2; /* Pinterest-style 2 columns on mobile */
        column-gap: 12px;
    }
    .portfolio-hero h1 {
        font-family: 'Satoshi', sans-serif;
        font-size: 26px !important; /* Minimal and clean */
        font-weight: 900;
        letter-spacing: -1px;
    }
    .portfolio-hero p {
        font-size: 14px; /* Decreased from 18px */
        line-height: 1.5;
    }
    .portfolio-hero {
        padding: 100px 0 40px;
    }
    .filter-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Portfolio Cards - Clean Transparent Layout with Hover Info Overlay */
.project-card {
    display: inline-block; /* Crucial for masonry column grid flow */
    width: 100%;
    background: transparent;
    border-radius: 12px;
    border: none;
    overflow: hidden; /* Clips overlay to card boundaries */
    position: relative; /* Anchor for absolute overlay */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 20px;
    cursor: pointer;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.project-card:hover {
    transform: translateY(-6px);
}

@media (max-width: 600px) {
    .project-card {
        margin-bottom: 12px;
    }
}

/* Mockup Frames Styles - Simplified (Only clean screenshots) */
.mockup-container {
    position: relative;
    background: transparent;
    overflow: hidden;
    width: 100%;
    border-radius: 12px; /* Smooth rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .mockup-container {
    border-color: rgba(176, 138, 87, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hide all mockup headers and notch bars entirely */
.mockup-header,
.mockup-phone-header,
.browser-mockup .mockup-header,
.phone-mockup .mockup-phone-header {
    display: none !important;
}

.phone-mockup {
    padding: 0 !important;
    background-color: transparent !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: none !important;
}

/* Image Container with Natural Heights */
.project-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.project-img-container img {
    width: 100%;
    display: block;
    object-position: top; /* Align top for header showcase */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific size override for landscape screenshots (not ending with -p.) to make them look larger and match mockups */
.project-card img:not([src*="-p."]) {
    height: 230px !important; /* Larger height for desktop landscape screenshots */
    object-fit: cover;
    object-position: top;
}

@media (max-width: 1200px) {
    .project-card img:not([src*="-p."]) {
        height: 190px !important;
    }
}

@media (max-width: 768px) {
    .project-card img:not([src*="-p."]) {
        height: 140px !important; /* Balanced for mobile dual column */
    }
}

/* Desktop Web Layout: natural height for Pinterest masonry */
.browser-mockup .project-img-container {
    height: auto;
    overflow: hidden;
}

.browser-mockup .project-img-container img {
    height: auto !important;
    object-fit: cover;
}

/* Mobile App Layout: natural full height */
.phone-mockup .project-img-container {
    height: auto;
}

.phone-mockup .project-img-container img {
    height: auto !important;
    object-fit: contain;
}

.project-card:hover .project-img-container img {
    transform: scale(1.02);
}

.project-badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold-light);
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(176, 138, 87, 0.25);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Pinterest Overlay style - Info shows on card hover only */
.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 14px 60px; /* Reduced padding to fit smaller cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    border-radius: 12px;
    border-top: none;
}

.project-info h3 {
    font-size: 13.5px; /* Slightly tighter */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
    transform: translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-info h3 span {
    color: var(--accent);
}

.project-info p {
    font-size: 11px; /* Slightly tighter */
    color: #cccccc;
    line-height: 1.4;
    margin-bottom: 10px;
    max-width: 92%;
    transform: translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    transform: translateY(14px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-tag {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(176, 138, 87, 0.2);
}

/* Glassy Action Button within absolute hover overlay */
.btn-view-webpage {
    position: absolute;
    bottom: 14px; /* Reduced from 20px */
    left: 14px;
    width: calc(100% - 28px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 7px 12px; /* Reduced padding */
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-view-webpage:hover {
    background: rgba(176, 138, 87, 0.2);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(176, 138, 87, 0.15);
}

.btn-view-webpage i {
    font-size: 9px;
    transition: transform 0.3s ease;
}

.btn-view-webpage:hover i {
    transform: translate(2px, -2px);
}

/* Card Hover Rules Only Enabled on Desktop Devices */
@media (hover: hover) and (pointer: fine) {
    .project-card:hover .project-info {
        opacity: 1;
        visibility: visible;
    }
    
    .project-card:hover .btn-view-webpage {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .project-card:hover .project-badge-tag {
        opacity: 1;
        visibility: visible;
    }
    
    .project-card:hover .project-info h3 {
        transform: translateY(0);
    }
    
    .project-card:hover .project-info p {
        transform: translateY(0);
    }
    
    .project-card:hover .project-info .project-tech-tags {
        transform: translateY(0);
    }
}

/* Entrance Animations & Mobile Layout Cleanups */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    opacity: 1; /* Visible by default, JS animates on scroll */
}

@media (max-width: 768px) {
    .project-info {
        display: none !important;
    }
    .btn-view-webpage {
        display: none !important;
    }
    .project-badge-tag {
        display: none !important;
    }
    .project-card:hover {
        transform: none !important;
    }
    .project-card:hover .mockup-container {
        border-color: rgba(255, 255, 255, 0.05) !important;
        box-shadow: none !important;
    }
    .mockup-container {
        min-height: auto; /* Allow natural heights on mobile without layout boxes */
    }
    .project-img-container img {
        min-height: auto;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-content-wrapper {
    background: var(--bg-surface);
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.lightbox-modal.active .lightbox-content-wrapper {
    transform: scale(1);
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-close-btn:hover {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-scrollable {
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .lightbox-scrollable {
        grid-template-columns: 1fr;
    }
}

.lightbox-img-pane {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

.lightbox-img-pane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 70vh;
}

.lightbox-details-pane {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .lightbox-details-pane {
        padding: 24px;
    }
}

.modal-category {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-tech-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.modal-tech-tags span {
    background: var(--bg-light);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(176, 138, 87, 0.15);
}

.modal-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1F5E3F !important;
    border: 1px solid #1F5E3F !important;
    color: #ffffff !important;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 94, 63, 0.2);
}

.modal-cta-btn:hover {
    background-color: #184A31 !important;
    border-color: #184A31 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 94, 63, 0.3);
}

/* Animations classes for cards */
.project-card.hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
    margin: 0;
    /* Allows other columns grid items to slide into space seamlessly */
}

/* Showcase Badge Hover Glow */
.portfolio-hero .badge-secondary {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-hero .badge-secondary:hover {
    background: rgba(176, 138, 87, 0.25) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 20px rgba(176, 138, 87, 0.45) !important;
    transform: translateY(-1px);
    cursor: pointer;
}

/* Card Mockup Border Glow on Hover */
.project-card:hover .mockup-container {
    border-color: rgba(176, 138, 87, 0.4) !important;
    box-shadow: 0 10px 30px rgba(176, 138, 87, 0.12), 0 0 20px rgba(176, 138, 87, 0.05) !important;
}

/* =========================================
   CLIENT REVIEWS TICKER SECTION
   ========================================= */
.portfolio-reviews-section {
    padding: 30px 0 90px; /* Reduced top space from 80px to 30px */
    background-color: var(--bg-light); /* Soft Warm Champagne Beige */
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.badge-light-reviews {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.badge-light-reviews .dot {
    background-color: var(--accent) !important;
    box-shadow: 0 0 6px var(--accent);
    animation: dotPulse 1.8s infinite alternate;
}

.badge-light-reviews:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 20px rgba(176, 138, 87, 0.35) !important;
    border-color: var(--accent) !important;
}

.reviews-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px; /* Reduced margin from 50px */
    padding: 0 20px;
}

.reviews-section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.reviews-section-header p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.reviews-ticker-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    /* Edge fade gradient overlay */
    mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

.reviews-ticker-wrapper:last-of-type {
    margin-bottom: 0;
}

.ticker-track-left {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollLeft 45s linear infinite;
}

.ticker-track-right {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollRight 45s linear infinite;
}

/* Pause scroll animation on hover */
.reviews-ticker-wrapper:hover .ticker-track-left,
.reviews-ticker-wrapper:hover .ticker-track-right {
    animation-play-state: paused;
}

.review-card {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-surface); /* Pure White */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
    border-color: rgba(176, 138, 87, 0.4);
    box-shadow: var(--shadow-md), 0 0 15px rgba(176, 138, 87, 0.05);
    transform: translateY(-4px); /* Tighter, more floating movement */
}

.review-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.review-stars {
    color: var(--accent);
    font-size: 11px;
    display: flex;
    gap: 3px;
}

.review-badge {
    font-size: 9px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(176, 138, 87, 0.08);
    padding: 2px 8px;
    border-radius: 30px;
    border: 1px solid rgba(176, 138, 87, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-text {
    font-size: 13px;
    color: #333333; /* Dark grey for readability */
    line-height: 1.55;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(176, 138, 87, 0.08);
    border: 1px solid rgba(176, 138, 87, 0.25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.5px;
}

.author-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Marquee Scrolling Keyframes */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px)); /* Shift exactly half width including gap */
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-50% - 10px));
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .portfolio-reviews-section {
        padding: 40px 0 80px;
    }
    .reviews-section-header h2 {
        font-size: 28px;
    }
    .review-card {
        width: 240px; /* Highly compact width for mobile */
        padding: 14px; /* Reduced padding for mobile screens */
    }
    .review-text {
        font-size: 11.5px !important;
        margin-bottom: 12px !important;
    }
    .avatar-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }
    .author-info h4 {
        font-size: 12px !important;
    }
    .author-info span {
        font-size: 10px !important;
    }
    .review-badge {
        font-size: 8px !important;
        padding: 2px 6px !important;
    }
    .review-stars {
        font-size: 9px !important;
    }
}

/* Disable hover transitions, pointer cursor, and overlays for showcase-only cards (no live website link) */
.project-card:not(:has(.btn-view-webpage)) {
    cursor: default;
}

.project-card:not(:has(.btn-view-webpage)):hover {
    transform: none !important;
}

.project-card:not(:has(.btn-view-webpage)) .project-info {
    display: none !important;
}

.project-card:not(:has(.btn-view-webpage)) .project-badge-tag {
    display: none !important;
}

.project-card:not(:has(.btn-view-webpage)):hover .mockup-container {
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
}
