/* ========== HERO SECTION ========== */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%,
        rgba(255, 107, 53, 0.08) 0%,
        rgba(255, 140, 66, 0.04) 30%,
        transparent 70%);
    pointer-events: none;
}

/* ========== FILTER SECTION ========== */
.projects-filter-section {
    padding: 8rem 0 1rem;
    background: var(--neo-bg);
}

.projects-filter-section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(24px + 2rem);
    box-sizing: border-box;
}

.filter-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.filter-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-header p {
    font-size: 1.05rem;
    color: var(--text-light);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.5rem;
    background: var(--neo-bg);
    border: none;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        4px 4px 10px var(--neo-shadow-dark),
        -4px -4px 10px var(--neo-shadow-light);
}

.filter-tab:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
    box-shadow:
        6px 6px 14px var(--neo-shadow-dark),
        -6px -6px 14px var(--neo-shadow-light);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.filter-tab.active:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== PROJECTS GRID ========== */
.projects-grid-section {
    padding: 3rem 0;
    background: var(--neo-bg);
}

.projects-grid-section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(24px + 2rem);
    box-sizing: border-box;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}


.project-card {
    position: relative;
    min-width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Faster: 0.3s (was 0.5s) */
    opacity: 1;
}

.project-card.hidden {
    display: none;
}

/* Glass Card Container - Your Favorite! */
.card-glass {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 560px;
    max-width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .card-glass {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-12px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image img.project-image {
    cursor: zoom-in;
}

.card-image img.project-image:focus-visible {
    outline: 3px solid rgba(232, 101, 78, 0.6);
    outline-offset: 2px;
}

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

.image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 100%);
    pointer-events: none;
}

/* Project Placeholder (for cards without images) */
.project-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(138, 43, 226, 0.1),
        rgba(75, 0, 130, 0.1));
    color: var(--primary-color);
    gap: 1rem;
}

.project-placeholder i {
    font-size: 3rem;
    opacity: 0.4;
}

.project-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.6;
}

/* ========== IMAGE MODAL ========== */
.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: opacity 0.2s ease;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 22, 0.6);
    backdrop-filter: blur(6px);
}

.image-modal__content {
    position: relative;
    width: min(1100px, 92vw);
    max-height: 90vh;
    background: var(--neo-bg);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(232, 101, 78, 0.2);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--neo-bg);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        6px 6px 12px var(--neo-shadow-dark),
        -6px -6px 12px var(--neo-shadow-light);
    z-index: 2;
}

.image-modal__viewport {
    width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(232, 236, 243, 0.85));
    z-index: 1;
}

.image-modal__img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    transition: opacity 0.2s ease;
    cursor: default;
}

.image-modal__hint {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.image-modal__download {
    align-self: center;
    text-decoration: none;
}

body.modal-open {
    overflow: hidden;
}

/* Card Overlay - Content Section */
.card-overlay {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Category Badge - Color Coded */
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.card-badge.webdev {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.card-badge.automation {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.card-badge.ads {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.card-badge.aiml {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-badge.mobileapp {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Card Title */
.card-overlay h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.62),
        rgba(255, 255, 255, 0.34)
    );
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 6px 14px rgba(16, 24, 40, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.stat-pill i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Tech Stack Tags */
.card-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tech span {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Desktop: enforce row alignment across cards */
@media (min-width: 1024px) {
    .project-card {
        display: flex;
    }

    .card-glass {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .card-overlay {
        flex: 1;
        gap: 0.55rem;
    }

    .card-overlay h3 {
        min-height: 3.4rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .card-subtitle {
        min-height: 2.2rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .card-details {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        margin-top: 0.2rem;
    }

    .card-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin-top: 0;
    }

    .stat-pill {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-tech {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        margin-bottom: 0.35rem;
    }

    .card-tech span {
        display: block;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}

/* Card CTA Button */
.card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    margin-top: 0.5rem;
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.card-cta.disabled {
    background: rgba(150, 150, 150, 0.2);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.card-cta.disabled:hover {
    transform: none;
}

@media (min-width: 1024px) {
    .card-cta {
        width: 100%;
        margin-top: auto;
    }
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.3),
        rgba(255, 140, 66, 0.3));
    border-radius: 24px;
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.project-card:hover .card-glow {
    opacity: 0.6;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
    padding: 2rem 0 0;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.02) 0%,
        transparent 100%);
}

.testimonials-section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(24px + 2rem);
    box-sizing: border-box;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-intro h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro p {
    font-size: 1.05rem;
    color: var(--text-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--neo-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow:
        8px 8px 20px var(--neo-shadow-dark),
        -8px -8px 20px var(--neo-shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Faster: 0.3s (was 0.4s) */
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow:
        12px 12px 30px var(--neo-shadow-dark),
        -12px -12px 30px var(--neo-shadow-light);
}

.testimonial-rating {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ========== CTA SECTION ========== */
.freelance-cta {
    padding: 3rem 0 2rem;
    background: var(--neo-bg);
}

.freelance-cta .container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 calc(24px + 2rem);
    box-sizing: border-box;
}

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

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary-large,
.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.25rem;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.btn-secondary-large {
    background: var(--neo-bg);
    color: var(--text-dark);
    box-shadow:
        6px 6px 16px var(--neo-shadow-dark),
        -6px -6px 16px var(--neo-shadow-light);
}

.btn-secondary-large:hover {
    transform: translateY(-3px);
    box-shadow:
        8px 8px 20px var(--neo-shadow-dark),
        -8px -8px 20px var(--neo-shadow-light);
}

.cta-note {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.5rem;
    background: var(--neo-bg);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-light);
    box-shadow:
        inset 3px 3px 6px var(--neo-shadow-dark),
        inset -3px -3px 6px var(--neo-shadow-light);
}

.cta-note i {
    color: var(--secondary-color);
}

/* ========== MOBILE BOTTOM SHEET ========== */
/* Prevent body scroll when bottom sheet is open */
body.sheet-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Hide mobile elements by default (desktop view) */
.mobile-filter-trigger {
    display: none;
}

.bottom-sheet-overlay,
.bottom-sheet {
    display: none;
}

/* Mobile Bottom Sheet Styles */
@media (max-width: 767px) {
    .projects-filter-section {
        padding: 6rem 0 0.6rem;
    }

    .filter-header {
        margin: 0 auto 1rem;
    }

    .projects-grid-section {
        padding: 2rem 0;
    }

    .card-tech span {
        font-size: 0.5rem;
    }

    /* Hide desktop tabs on mobile */
    .filter-tabs {
        display: none;
    }

    .filter-header p {
        display: none;
    }

    /* Show mobile trigger button */
    .mobile-filter-trigger {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 1.5rem;
        background: var(--neo-bg);
        border: 2px solid rgba(255, 107, 53, 0.2);
        border-radius: 16px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        color: var(--text-dark);
        cursor: pointer;
        box-shadow:
            6px 6px 12px var(--neo-shadow-dark),
            -6px -6px 12px var(--neo-shadow-light);
        transition: all 0.3s ease;
        position: relative;
        margin-top: 2rem !important;
    }

    .mobile-filter-trigger:active {
        transform: scale(0.98);
        box-shadow:
            3px 3px 6px var(--neo-shadow-dark),
            -3px -3px 6px var(--neo-shadow-light);
    }
    
    .mobile-filter-trigger:hover {
        border-color: rgba(255, 107, 53, 0.4);
        box-shadow:
            8px 8px 16px var(--neo-shadow-dark),
            -8px -8px 16px var(--neo-shadow-light);
    }
    
    /* Trigger Left Section */
    .trigger-left {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }
    
    .trigger-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 12px;
        color: white;
        font-size: 1.25rem;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
    
    .trigger-text {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        text-align: left;
        flex: 1;
    }
    
    .trigger-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .active-category {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.2;
    }
    
    /* Chevron Arrow - Makes it obvious it's clickable */
    .trigger-arrow {
        flex-shrink: 0;
        font-size: 1.2rem;
        color: var(--primary-color);
        transition: transform 0.3s ease;
        animation: bounce 2s ease-in-out infinite;
        margin-left: 0.5rem;
    }
    
    @keyframes bounce {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(4px);
        }
    }
    
    .mobile-filter-trigger.sheet-active .trigger-arrow {
        transform: rotate(180deg);
        animation: none; /* Stop bouncing when open */
    }

    /* Bottom Sheet Overlay */
    .bottom-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .bottom-sheet-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Bottom Sheet Container */
    .bottom-sheet {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh; /* Increased from 70vh to show all options */
        background: var(--neo-bg);
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .bottom-sheet.active {
        transform: translateY(0);
    }

    /* Bottom Sheet Header */
    .bottom-sheet-header {
        position: relative;
        padding: 1.5rem 1.5rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .sheet-handle {
        width: 40px;
        height: 4px;
        background: var(--text-light);
        border-radius: 2px;
        opacity: 0.3;
        margin: 0 auto 1rem;
    }

    .bottom-sheet-header h3 {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-dark);
        text-align: center;
        margin: 0;
    }

    .sheet-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--neo-bg);
        border: none;
        border-radius: 50%;
        color: var(--text-dark);
        cursor: pointer;
        box-shadow:
            3px 3px 6px var(--neo-shadow-dark),
            -3px -3px 6px var(--neo-shadow-light);
        transition: all 0.2s ease;
    }

    .sheet-close:active {
        transform: scale(0.95);
        box-shadow:
            inset 2px 2px 4px var(--neo-shadow-dark),
            inset -2px -2px 4px var(--neo-shadow-light);
    }

    /* Bottom Sheet Content */
    .bottom-sheet-content {
        padding: 1rem 1.25rem 2rem 1.25rem;
        max-height: calc(85vh - 100px); /* Increased to match container */
        overflow-y: auto; /* Changed from scroll to auto - only show if needed */
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Sheet Option Buttons */
    .sheet-option {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 1rem 1.25rem;
        background: var(--neo-bg);
        border: none;
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow:
            4px 4px 8px var(--neo-shadow-dark),
            -4px -4px 8px var(--neo-shadow-light);
    }

    .sheet-option:active {
        transform: scale(0.98);
    }

    .sheet-option.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }

    /* Option Icon */
    .option-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 107, 53, 0.1);
        border-radius: 12px;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .sheet-option.active .option-icon {
        background: rgba(255, 255, 255, 0.2);
    }

    .option-icon i {
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    .sheet-option.active .option-icon i {
        color: white;
    }

    /* Category-specific icon colors */
    .option-icon.webdev i {
        color: #FF6B35;
    }

    .option-icon.mobileapp i {
        color: #3b82f6;
    }

    .option-icon.automation i {
        color: #22c55e;
    }

    .option-icon.ads i {
        color: #fbbf24;
    }

    .option-icon.aiml i {
        color: #8b5cf6;
    }

    .sheet-option.active .option-icon.webdev i,
    .sheet-option.active .option-icon.mobileapp i,
    .sheet-option.active .option-icon.automation i,
    .sheet-option.active .option-icon.ads i,
    .sheet-option.active .option-icon.aiml i {
        color: white;
    }

    /* Option Text */
    .option-text {
        flex: 1;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .option-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .sheet-option.active .option-title {
        color: white;
    }

    .option-count {
        font-size: 0.85rem;
        color: var(--text-light);
    }

    .sheet-option.active .option-count {
        color: rgba(255, 255, 255, 0.8);
    }

    /* Check Icon */
    .option-check {
        font-size: 1.25rem;
        color: transparent;
        transition: all 0.3s ease;
    }

    .sheet-option.active .option-check {
        color: white;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet Spacing (991px) */
@media (max-width: 991px) {
    .projects-filter-section .container,
    .projects-grid-section .container,
    .testimonials-section .container,
    .freelance-cta .container {
        padding: 0 calc(20px + 1.5rem);
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

/* Mobile Spacing (768px) */
@media (max-width: 768px) {
    .projects-filter-section .container,
    .projects-grid-section .container,
    .testimonials-section .container,
    .freelance-cta .container {
        padding: 0 1.4rem;
    }
}

@media (max-width: 600px) {
    .image-modal__content {
        padding: 1.25rem;
        width: min(96vw, 900px);
    }

    .image-modal__close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .image-modal__hint {
        font-size: 0.8rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .projects-grid-section {
        overflow-x: hidden;
        padding: 2rem 1.4rem;
    }

    .projects-grid-section .container {
        padding: 0;
    }

    .filter-header h2 {
        font-size: 1.875rem;
    }

    .filter-tabs {
        gap: 0.75rem;
    }

    .filter-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .card-glass {
        min-height: unset;
        height: auto;
        width: 100%;
        margin: 0;
    }

    .card-image {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .card-overlay h3 {
        font-size: 1.3rem;
    }

    .project-card:not(.is-expanded) .card-overlay {
        padding-bottom: 1.5rem;
    }

    /* Mobile card expand/collapse */
    .project-card {
        cursor: pointer;
    }

    .card-subtitle {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .card-details {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-4px);
        transition:
            max-height 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
            opacity 0.18s ease,
            transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
            margin-top 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
        margin-top: 0;
        pointer-events: none;
    }

    .card-stats {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.65rem;
        margin-top: 0;
        min-height: 2.25rem;
        padding: 0.18rem 0.1rem 0.24rem;
        align-items: center;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .card-stats::-webkit-scrollbar {
        display: none;
    }

    .stat-pill {
        flex: 0 0 auto;
        white-space: nowrap;
        line-height: 1.15;
    }

    .project-card:not(.is-expanded) .card-badge {
        display: none;
    }

    .project-card:not(.is-expanded) .card-subtitle {
        display: none;
    }

    .card-overlay::after {
        content: "Tap to expand";
        display: block;
        margin-top: 0.75rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-light);
        text-align: center;
        opacity: 0.85;
    }

    .project-card.is-expanded .card-subtitle {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .project-card.is-expanded .card-details {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        margin-top: 0.35rem;
        overflow: visible;
    }

    .project-card.is-expanded .card-stats {
        display: flex !important;
        flex-wrap: nowrap;
        visibility: visible;
        opacity: 1;
    }

    .project-card.is-expanded .card-badge {
        display: inline-flex;
    }

    .project-card.is-expanded .card-overlay::after {
        content: "Tap to collapse";
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        justify-content: center;
    }

    /* Keep default shadow on touch; remove hover intensification */
    .project-card:hover .card-glass {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.18);
        transform: none;
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .project-card:hover .card-glow {
        opacity: 0;
    }
    .project-card:hover .card-glass {
        transform: none;
    }

    .stat-pill {
        font-size: 0.66rem;
    }
}

/* Small Mobile Spacing (480px) */
@media (max-width: 480px) {
    .projects-filter-section .container,
    .testimonials-section .container,
    .freelance-cta .container {
        padding: 0 1.4rem;
    }

    .projects-grid-section .container {
        padding: 0;
    }

    .projects-filter-section {
        margin-top: 1.6rem;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tab {
        justify-content: space-between;
    }
}

/* Large Desktop (> 1400px) */
@media (min-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .card-glass {
        min-height: 580px;
    }

    .card-image {
        height: auto;
        aspect-ratio: 3 / 2;
    }
}

/* Desktop alignment for testimonial author blocks */
@media (min-width: 768px) {
    .testimonial-card {
        display: flex;
        flex-direction: column;
    }

    .testimonial-author {
        margin-top: auto;
    }
}
