/* Portfolio Page CSS */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background-color: var(--primary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.portfolio-section {
    padding: 100px 0;
}

.filter-buttons {
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 10px 25px;
    margin: 0 5px 10px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.portfolio-item {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 20px;
    text-align: center;
    color: white;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-content h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-content p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.portfolio-tags {
    margin-bottom: 20px;
}

.portfolio-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0 5px 5px 0;
}

.portfolio-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: var(--secondary);
    margin: 0 10px;
    transition: all 0.3s ease;
}

.portfolio-actions a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
}

.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%233498db" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%233498db" opacity="0.03"/><circle cx="50" cy="50" r="1" fill="%233498db" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: rgba(52, 152, 219, 0.1);
    font-family: Georgia, serif;
    z-index: 1;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.02) 0%, rgba(0, 221, 253, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card .mb-4 {
    position: relative;
    z-index: 2;
}

.testimonial-card p {
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.testimonial-card:hover p {
    color: #2c3e50;
    transform: translateX(5px);
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.testimonial-card .client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.testimonial-card:hover .client-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.testimonial-card .client-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 20px;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.testimonial-card:hover .client-initials {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.testimonial-card h5 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.testimonial-card:hover h5 {
    color: var(--secondary);
    transform: translateX(3px);
}

.testimonial-card .text-muted {
    transition: all 0.3s ease;
}

.testimonial-card:hover .text-muted {
    color: #6c757d !important;
    transform: translateX(3px);
}

/* Star rating animation */
.testimonial-card .fa-star {
    transition: all 0.3s ease;
    transform-origin: center;
}

.testimonial-card:hover .fa-star {
    transform: scale(1.2) rotate(72deg);
}

.testimonial-card:hover .fa-star:nth-child(2) {
    transform: scale(1.2) rotate(144deg);
}

.testimonial-card:hover .fa-star:nth-child(3) {
    transform: scale(1.2) rotate(216deg);
}

.testimonial-card:hover .fa-star:nth-child(4) {
    transform: scale(1.2) rotate(288deg);
}

.testimonial-card:hover .fa-star:nth-child(5) {
    transform: scale(1.2) rotate(360deg);
}

/* Glow effect for testimonials */
.testimonial-card.glow-effect {
    animation: testimonialGlow 2s ease-in-out infinite alternate;
}

@keyframes testimonialGlow {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
    100% {
        box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2), 0 0 30px rgba(52, 152, 219, 0.1);
    }
}

.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.stats-section .section-title {
    color: white;
    margin-bottom: 30px;
}

.stats-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #007bff);
    border-radius: 2px;
}

.stat-item {
    padding: 30px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    display: block;
    line-height: 1.2;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.stat-item:hover p {
    color: white;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
}

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

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    border-color: var(--secondary);
    color: var(--secondary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta-section {
    padding: 80px 0;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer {
    background-color: var(--dark);
    color: white;
    padding: 70px 0 20px;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for testimonials */
.testimonial-card {
    opacity: 0;
    transform: translateY(50px) rotateX(-10deg);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.testimonial-card:nth-child(1) { transition-delay: 0.1s; }
.testimonial-card:nth-child(2) { transition-delay: 0.2s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }
.testimonial-card:nth-child(4) { transition-delay: 0.4s; }
.testimonial-card:nth-child(5) { transition-delay: 0.5s; }
.testimonial-card:nth-child(6) { transition-delay: 0.6s; }

/* Testimonial Slider Styles (same as welcome page) */
.testimonial-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonial-slider {
    overflow: hidden;
    border-radius: 15px;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide .row {
    margin: 0 -15px;
}

.testimonial-slide .col-lg-4,
.testimonial-slide .col-md-6 {
    padding: 0 15px;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3498db, #0dd9fd);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.testimonial-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.testimonial-nav.prev {
    left: -25px;
}

.testimonial-nav.next {
    right: -25px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #3498db;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: linear-gradient(135deg, #3498db, #0dd9fd);
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background: rgba(52, 152, 219, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments for testimonial slider */
@media (max-width: 991px) {
    .testimonial-slider-container {
        padding: 0 50px;
    }
    
    .testimonial-slide .col-md-6 {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .testimonial-slider-container {
        padding: 0 40px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .testimonial-nav.prev {
        left: -20px;
    }
    
    .testimonial-nav.next {
        right: -20px;
    }
    
    .testimonial-slide .col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .testimonial-slider-container {
        padding: 0 30px;
    }
    
    .testimonial-slide .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }
}