/*
 * PROFESSIONAL COMPONENTS CSS
 * ============================
 * Komponen modern dan profesional untuk website PDAM
 */

/* ===== MODERN CARDS ===== */
.modern-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44, 90, 160, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.12);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(44, 90, 160, 0.15);
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card .card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 24px;
}

.modern-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modern-card .card-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modern-card .card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.modern-card .card-link:hover {
    color: var(--primary-blue-dark);
    transform: translateX(4px);
}

/* ===== MODERN BUTTONS ===== */
.btn-modern {
    padding: 12px 32px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    box-shadow: 0 4px 16px rgba(44, 90, 160, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 90, 160, 0.4);
    color: white;
}

.btn-modern-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.1);
}

.btn-modern-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-modern-ghost {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid rgba(44, 90, 160, 0.3);
}

.btn-modern-ghost:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ===== MODERN HERO SECTION ===== */
.modern-hero {
    background: linear-gradient(135deg, 
        var(--primary-blue) 0%, 
        var(--primary-blue-light) 50%, 
        var(--secondary-teal) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 40px 40px;
}

.modern-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.modern-hero .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.modern-hero .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== MODERN SECTIONS ===== */
.modern-section {
    padding: 100px 0;
    position: relative;
}

.modern-section.bg-light {
    background: linear-gradient(180deg, var(--gray-100) 0%, rgba(248, 249, 250, 0.5) 100%);
}

.modern-section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.modern-section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ===== MODERN GRID ===== */
.modern-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modern-grid.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.modern-grid.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modern-grid.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== MODERN STATS ===== */
.modern-stats {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(44, 90, 160, 0.1);
    border: 1px solid rgba(44, 90, 160, 0.08);
}

.modern-stats .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.modern-stats .stat-label {
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* ===== MODERN TESTIMONIALS ===== */
.modern-testimonial {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(44, 90, 160, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.06);
}

.modern-testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 2rem;
    font-size: 4rem;
    color: var(--primary-blue);
    font-family: serif;
    line-height: 1;
}

.modern-testimonial .testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.modern-testimonial .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modern-testimonial .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.modern-testimonial .author-info h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.modern-testimonial .author-info p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== MODERN TIMELINE ===== */
.modern-timeline {
    position: relative;
    padding-left: 2rem;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-blue), var(--secondary-teal));
}

.modern-timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(44, 90, 160, 0.08);
    margin-left: 2rem;
}

.modern-timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-blue);
}

.modern-timeline-item .timeline-date {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.modern-timeline-item .timeline-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.modern-timeline-item .timeline-content {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .modern-card {
        padding: 1.5rem;
    }
    
    .modern-hero {
        padding: 80px 0;
    }
    
    .modern-section {
        padding: 60px 0;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-stats {
        padding: 2rem;
    }
    
    .modern-timeline {
        padding-left: 1rem;
    }
    
    .modern-timeline-item {
        margin-left: 1.5rem;
        padding: 1.5rem;
    }
    
    .modern-timeline-item::before {
        left: -2.5rem;
    }
}

@media (max-width: 480px) {
    .btn-modern {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .modern-card .card-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .modern-testimonial {
        padding: 1.5rem;
    }
}