/* Enhanced Portfolio Styles */

.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Hero Section Enhancements */
.hero-logo {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Statistics Section Styles */
.stat-icon {
    transition: transform 0.3s;
}

.stat-icon:hover {
    transform: translateY(-5px);
}

.counter {
    font-weight: 700;
    transition: color 0.3s;
}

.counter:hover {
    color: #ed2b29 !important;
}

/* Testimonial Section Styles */
.testimonial-card {
    transition: all 0.3s;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 100px;
    color: rgba(237, 43, 41, 0.1);
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-left-color: #ed2b29;
}

.testimonial-rating {
    color: #ffc107;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    color: #555;
    position: relative;
    z-index: 1;
}

.author-avatar {
    flex-shrink: 0;
}

.author-name {
    color: #2d3748;
}

.author-company {
    color: #718096;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Search and Filter Styles */
.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-container .form-control {
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.2rem;
    transition: all 0.3s;
}

.search-container .form-control:focus {
    border-color: #ed2b29;
    box-shadow: 0 0 0 0.2rem rgba(237, 43, 41, 0.25);
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.portfolio-filters .btn {
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.portfolio-filters .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.portfolio-filters .btn:hover::before {
    left: 100%;
}

.portfolio-filters .btn.active {
    background-color: #ed2b29 !important;
    border-color: #ed2b29 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(237, 43, 41, 0.3);
}

.sort-options .form-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.results-counter {
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Enhanced Portfolio Cards */
.portfolio-card-enhanced {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: white;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 43, 41, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.portfolio-card-enhanced:hover::before {
    opacity: 1;
}

.portfolio-card-enhanced:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(237, 43, 41, 0.15);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 16px 16px 0 0;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card-enhanced:hover .portfolio-image {
    transform: scale(1.15) rotate(2deg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.portfolio-card-enhanced:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    background: #ed2b29;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(237, 43, 41, 0.3);
}

.portfolio-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    position: relative;
}

.portfolio-header h5 {
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.4;
}

.portfolio-tech {
    margin-top: 0.5rem;
}

.portfolio-tech .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
    border-radius: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.portfolio-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.portfolio-stats small {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #718096;
}

/* View Details Button */
.view-details {
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.view-details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.view-details:hover::before {
    width: 300px;
    height: 300px;
}

.view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(237, 43, 41, 0.3);
}

/* Modal Enhancements */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.modal-body {
    padding: 2rem;
}

/* Animation for portfolio items */
.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item.animate-in {
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badge */
.hero-badge {
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-text {
    animation: fadeInUpText 1s ease-out 0.3s both;
}

.animate-text-delay {
    animation: fadeInUpText 1s ease-out 0.6s both;
}

@keyframes fadeInUpText {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* WhatsApp and Back to Top */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #ed2b29;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .portfolio-filters .btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
