/* Hero Section Styles */
/* .hero-section, .hero-image, .hero-overlay, .hero-content { ... } dihapus dari file ini */

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.projects-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.projects-header p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.9;
}

/* Project Cards */
.project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.project-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover .project-image .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    /* margin-bottom: 1rem; */
}

.project-client,
.project-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.4;
}

.meta-label {
    font-weight: 500;
    color: #444;
    min-width: 45px;
}

.meta-value {
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.project-client i,
.project-location i {
    color: #0066cc;
    font-size: 0.85rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.project-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description {
    font-size: 0.95rem;
    color: #555;
    /* margin-bottom: 1.5rem; */
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-content .btn {
    margin-top: auto;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.project-content .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Featured Projects Section */
.featured-projects {
    background: #fff;
}

.featured-projects h2 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.featured-projects h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #4fc3f7);
    border-radius: 2px;
}

/* Other Projects Section */
.other-projects {
    background: #f8f9fa;
}

.other-projects h2 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.other-projects h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #4fc3f7);
    border-radius: 2px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #142850 0%, #4fc3f7 100%) !important;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons .btn-primary {
    background-color: #fff;
    border-color: #fff;
    color: #142850;
}

.cta-buttons .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-outline-primary {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.cta-buttons .btn-outline-primary:hover {
    background-color: #fff;
    color: #142850;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-content h4 {
        font-size: 1.1rem;
        min-height: 2.4rem;
    }
}

@media (max-width: 768px) {
    .project-card {
        margin-bottom: 1rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-content h4 {
        font-size: 1rem;
        min-height: auto;
        margin-bottom: 0.5rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 3;
    }
    
    .project-meta {
        margin-bottom: 0.75rem;
    }
    
    .project-client,
    .project-location {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .project-image { 
        height: 150px; 
    }
    
    .featured-projects h2,
    .other-projects h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .project-card {
        margin-bottom: 1rem;
    }
    
    .project-content {
        padding: 0.875rem;
    }
    
    .project-content h4 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .project-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .featured-projects h2,
    .other-projects h2 {
        font-size: 1.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .project-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    .project-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .project-card:hover .project-image img {
        transform: none;
    }
    
    .project-card:hover .project-image .project-overlay {
        opacity: 0;
    }
}

/* Loading States */
.project-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.project-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility Improvements */
.project-card:focus-within {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .cta-section {
        display: none;
    }
    
    .project-image {
        height: 120px;
    }
} 