/* Portfolio Hero Section */
.portfolio-hero {
    background: radial-gradient(ellipse at top left, rgb(13 143 208 / 15%) 0%, transparent 40%),
        radial-gradient(ellipse at top right, rgb(217 111 13 / 18%) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgb(11 101 147 / 12%) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgb(131 67 6 / 15%) 0%, transparent 40%),
        linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 25%, #1a2030 50%, var(--dark-bg-secondary) 75%, var(--dark-bg-primary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 15% 20%, rgba(13, 159, 232, 0.1), transparent),
        radial-gradient(1px 1px at 85% 30%, rgba(237, 131, 33, 0.08), transparent),
        radial-gradient(1px 1px at 25% 80%, rgba(13, 159, 232, 0.06), transparent),
        radial-gradient(1px 1px at 70% 70%, rgba(237, 131, 33, 0.1), transparent);
    background-size: 400px 300px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(5px) translateY(-10px); }
    75% { transform: translateX(-5px) translateY(5px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--dark-text-primary);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-highlight {
    font-weight: 500;
    background: linear-gradient(135deg, #0d9fe8 0%, #ed8321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--dark-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Header Section */
.portfolio-header {
    padding: 40px 0 40px;
    background: #ffffff;
}

.portfolio-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.portfolio-title-section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
}

.portfolio-count {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 16px;
    font-weight: 400;
}

.portfolio-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
    min-width: 160px;
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-button {
    /* width: 100%; */
    width: 250px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    min-height: 44px;
}

.select-button:hover {
    border-color: var(--brand-blue-text);
    /* background: #f8f9fa; */
}

.select-button.active {
    border-color: var(--brand-orange-text);
    background: #fff3e0;
}
.select-button.active .selected-text{
    color:black;
}

.select-button i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.select-button.active i {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    max-height: 300px;
    overflow: hidden;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.select-dropdown.show {
    display: block;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    outline: none;
    font-size: 14px;
    background: #fafbfc;
}

.search-input:focus {
    background: #ffffff;
    border-bottom-color: var(--brand-blue-text);
}

.select-options {
    max-height: 240px;
    overflow-y: auto;
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.select-option:hover {
    background: #f8f9fa;
}

.select-option input[type="checkbox"] {
    margin: 0;
    accent-color: var(--brand-orange-text);
    width: 16px;
    height: 16px;
}

.select-option label {
    flex: 1;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Portfolio Section */
.portfolio-section {
    padding: 40px 0 60px;
    background: #ffffff;
}

/* Results Count */
.results-info {
    margin-bottom: 40px;
    text-align: left;
    font-size: 16px;
    color: var(--text-secondary);
}

.count-number {
    font-weight: 600;
    color: var(--text-primary);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Project Card Design*/
.project-card {
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.project-card:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #e1e5e9; */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Image Container */
.card-image-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.image-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

/* Card Content */
.card-content {
    padding: 16px 4px 0;
}

.card-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-orange-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    position: relative;

}

.card-category::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-orange-text);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    top: -2px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.card-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Technology Tags */
.tech-stack {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    line-height: 1;
}

.tech-tag {
    background: rgba(13, 159, 232, 0.1);
    color: var(--brand-blue-text);
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
    display: none;
}

.btn-primary {
    background: var(--brand-orange-text);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    background: #e8640f;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: #f8f9fa;
    text-decoration: none;
}

/* Statistics Counter Section */
.stats-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    /*  padding: 60px 0; */
	padding: 50px 0 120px;
    background: #f8f9fa;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--brand-orange-text);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #e8640f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 116, 22, 0.3);
    text-decoration: none;
    color: white;
}

.cta-button-secondary {
    background: transparent;
    color: var(--text-primary) !important;
    border: 2px solid #e9ecef;
}

.cta-button-secondary:hover {
    border-color: var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.no-results p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-header-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .portfolio-title-section h2 {
        font-size: 2rem;
    }
    
    .portfolio-filters {
        justify-content: center;
        width: 100%;
    }
    
    .filter-group {
        min-width: 200px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .portfolio-title-section h2 {
        font-size: 1.75rem;
    }
    
    .portfolio-filters {
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        flex: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button,
    .cta-button-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cta-section {
/*         padding: 64px 0; */
    }
}

@media (max-width: 550px) {
    .filter-group {
        min-width: 100%;
    }
    .select-button{
        width: 100%;
    }
}

@media (max-width: 480px) {
    .portfolio-title-section h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}



@media (prefers-reduced-motion: reduce) {
    .project-card,
    .card-image,
    .select-button i {
        animation: none !important;
        transition: none !important;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .project-card {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .project-card {
        border: 2px solid #333;
    }
    
    .select-button {
        border: 2px solid #333;
    }
}

/* Custom scrollbar for dropdowns */
.select-options::-webkit-scrollbar {
    width: 6px;
}

.select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.select-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
a.portfolio-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

