/* Additional styles for developer projects */

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bars */
.progress-section {
    margin: 40px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-bar-custom {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #e9ecef;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 1s ease-in-out;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #3498db;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #3498db;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.comparison-table .highlight {
    background: #e3f2fd;
    position: relative;
}

.comparison-table .highlight::after {
    content: '✓';
    position: absolute;
    right: 10px;
    color: #2ecc71;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        height: 300px !important;
    }

    .sticky-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .gallery-item {
        height: 150px;
    }
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Advanced Landing Page Styles */
.hero-section {
    /* Background set inline or via JS */
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-section>.container {
    position: relative;
    z-index: 1;
}

.sticky-sidebar {
    position: sticky;
    top: 90px;
    /* Adjust based on header height */
    z-index: 90;
}

.nav-pills .nav-link {
    color: #333;
    font-weight: bold;
}

.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.2s;
    height: 200px;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.amenity-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-left: 4px solid var(--bs-primary);
    transition: background 0.3s;
}

.amenity-item:hover {
    background: #e9ecef;
}

.spec-table th {
    width: 40%;
    background-color: #f8f9fa;
}