/* Freelance Projects Page Styles */

/* General Layout */
.freelance-projects-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #d9dcd6 0%, #ffffff 50%, #d9dcd6 100%);
    min-height: 100vh;
}

/* Section Title Styling */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #051923;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #00A6FB 0%, #0582CA 100%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: #003554;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Project Content */
.project-content {
    padding: 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    color: #051923;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-subtitle {
    color: #00A6FB;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 1.2rem;
}

/* Project Images */
.main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.main-image:hover {
    transform: scale(1.03);
}

.project-description {
    color: #003554;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Modal Enhancements */
.modal-content.bg-transparent {
    background: rgba(0, 0, 0, 0.9) !important;
    border: none;
}

.modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    .freelance-projects-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.3rem;
        height: auto;
    }
    
    .main-image {
        height: 160px;
    }
    
    .project-description {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .project-content {
        padding: 18px;
    }
    
    .project-title {
        font-size: 1.2rem;
        height: auto;
    }
    
    .main-image {
        height: 140px;
    }
    
    .project-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .project-subtitle {
        font-size: 0.75rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

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

/* Custom Preloader */
.devops-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.gear {
    animation: spin 2s linear infinite;
    margin: 0 10px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.preloader-text {
    margin-top: 20px;
    color: #00A6FB;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Contact CTA Section */
.contact-cta-section {
    margin-top: 60px;
    padding: 40px 0;
}

.contact-cta-card {
    background: linear-gradient(135deg, #00A6FB 0%, #0582CA 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 166, 251, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 2;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.btn-contact-primary {
    background: white;
    color: #00A6FB;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-contact-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #0582CA;
}

.btn-contact-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-contact-secondary:hover {
    background: white;
    color: #00A6FB;
    transform: translateY(-3px);
}

.contact-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-cta-card {
        padding: 40px 30px;
        margin: 0 15px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-contact-primary,
    .btn-contact-secondary {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .contact-stats {
        gap: 25px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .contact-cta-card {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-stats {
        flex-direction: column;
        gap: 20px;
    }
}
