/* References Page Specific Styles */

/* Hero Section */
.references-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.references-hero::before,
.references-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.references-hero::before {
    background-image: url('../images/slider1.png');
    animation: referencesSlideshow1 15s infinite;
}

.references-hero::after {
    background-image: url('../images/slider2.png');
    animation: referencesSlideshow2 15s infinite;
    opacity: 0;
}

@keyframes referencesSlideshow1 {
    0%, 30% { opacity: 1; }
    33%, 36% { opacity: 0; }
    64%, 67% { opacity: 0; }
    70%, 100% { opacity: 1; }
}

@keyframes referencesSlideshow2 {
    0%, 30% { opacity: 0; }
    33%, 36% { opacity: 1; }
    64%, 67% { opacity: 1; }
    70%, 100% { opacity: 0; }
}

.references-hero .slider3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/slider3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: referencesSlideshow3 15s infinite;
    z-index: 0;
}

@keyframes referencesSlideshow3 {
    0%, 64% { opacity: 0; }
    67%, 70% { opacity: 1; }
    97%, 100% { opacity: 0; }
}

.references-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.7) 0%, rgba(217, 119, 6, 0.6) 100%);
    z-index: 1;
}

.references-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
}

.references-hero .hero-content.hero-centered {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.references-hero .hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.references-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: #ffffff;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.references-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.references-hero .stat-item {
    text-align: center;
    min-width: 120px;
}

.references-hero .stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

.references-hero .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.2;
}



/* Project Categories */
.project-categories {
    padding: 80px 0;
}

.category-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(40, 167, 69, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.category-card:hover .category-info {
    transform: translateY(0);
}

.category-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-info p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Featured Projects */
.featured-projects {
    padding: 80px 0;
}

.project-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(40, 167, 69, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-details {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .project-details {
    transform: translateY(0);
}

.project-details h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-specs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-specs span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-benefits {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.benefit-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonial-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-image-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

.author-name {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.author-location {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}



/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .references-hero {
        min-height: 60vh;
    }
    
    .references-hero .hero-title {
        font-size: 2.8rem;
    }
    
    .references-hero .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .references-hero .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .references-hero .stat-item {
        min-width: 120px;
        padding: 1.5rem 1rem;
    }
    
    .references-hero .stat-number {
        font-size: 2rem;
    }
    
    .project-specs {
        gap: 0.5rem;
    }
    
    .project-specs span {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .references-hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .references-hero .hero-title {
        font-size: 2.8rem;
    }
    
    .references-hero .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .references-hero .hero-stats {
        gap: 40px;
    }
    
    .references-hero .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .references-hero {
        min-height: 50vh;
    }
    
    .references-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .references-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .references-hero .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .references-hero .stat-number {
        font-size: 2rem;
    }
    
    .project-image,
    .category-image {
        height: 200px;
    }
    
    .project-categories,
    .featured-projects,
    .testimonials {
        padding: 60px 0;
    }
    
    .benefit-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}