/* Portfolio Page Specific Styles */

/* Portfolio Header Section */
.portfolio-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("images/construction-site-cranes.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 215, 0, 0.1) 100%);
    z-index: 1;
}

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

.portfolio-header h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}

.breadcrumb i {
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

/* Portfolio Gallery Section */
.portfolio-gallery {
    background-color: var(--white);
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: var(--white);
    border: 3px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-yellow);
}

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

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
    padding: 40px 25px 25px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-yellow);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.portfolio-overlay p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content .btn-primary {
    background: linear-gradient(45deg, var(--primary-yellow), #ffed4e);
    color: var(--black);
    border: none;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-content .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-content .btn-primary:hover::before {
    left: 100%;
}

.cta-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #ffed4e, var(--primary-yellow));
}

/* Success Rate Section - Portfolio Version */
.success-rate {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
        url("images/construction-sunset.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.success-rate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(255, 215, 0, 0.1) 100%);
    z-index: 1;
}

.success-rate .container {
    position: relative;
    z-index: 2;
}

.success-rate h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out;
}

.success-rate .underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), #ffed4e);
    margin: 20px auto 60px;
    border-radius: 2px;
    animation: slideInUp 1s ease-out 0.2s both;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out 0.4s both;
}

.stat-item:nth-child(2) {
    animation-delay: 0.6s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.8s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-yellow);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-number.animated {
    color: var(--primary-yellow);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: glow 2s infinite alternate;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.3);
    }
}

/* Responsive Design for Portfolio */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .cta-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .portfolio-header h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-item img {
        height: 250px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content .btn-primary {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .success-rate h2 {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        padding: 60px 0;
    }
    
    .portfolio-header h1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 1rem;
    }
    
    .portfolio-gallery {
        padding: 60px 0;
    }
    
    .cta-banner {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .success-rate {
        padding: 60px 0;
    }
    
    .success-rate h2 {
        font-size: 1.8rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Portfolio Item Hover Effects */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* Loading Animation for Portfolio Items */
.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }
.portfolio-item:nth-child(9) { animation-delay: 0.9s; }

/* Footer Override for Portfolio Page - Make it Black */
.footer {
    background-color: var(--black) !important;
}
