/* Custom styles for Bimbel Prestasi */

:root {
    --primary-color: #0d6efd;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-image {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}



/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Gallery Items */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.feature-card h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.border-success {
    border-color: var(--success-color) !important;
    position: relative;
}

.pricing-card.border-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), #20c997);
}

.price {
    color: var(--primary-color);
    font-weight: 700;
}

.pricing-card .card-header {
    border-bottom: none;
    padding: 1.5rem;
}

.pricing-card .card-body {
    padding: 2rem;
}

.pricing-card .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card .list-unstyled li:last-child {
    border-bottom: none;
}

/* Contact Items */
.contact-item {
    padding: 2rem;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-item h5 {
    color: white;
    font-weight: 600;
}

.contact-item .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Avatar Placeholder */
.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.avatar-placeholder::before {
    content: "S";
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-bottom: 3rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .feature-card,
    .contact-item {
        padding: 1.5rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Light theme enhancements */
body {
    background-color: #fafafa;
    color: #333;
}

.testimonial-card .card {
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.testimonial-card .fas.fa-quote-left {
    color: #667eea;
}

.section-title {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-section .col-lg-6:first-child {
    animation: slideInLeft 1s ease-out;
}

.hero-section .col-lg-6:last-child {
    animation: slideInRight 1s ease-out;
}

.gallery-item:nth-child(odd) {
    animation: fadeInUp 1s ease-out 0.1s both;
}

.gallery-item:nth-child(even) {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Enhanced section backgrounds */
#gallery {
    background: #ffffff;
}

#pricing {
    background: #f8f9ff;
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Enhanced button styling */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #48bb78, #38a169);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    background: linear-gradient(45deg, #38a169, #2f855a);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* Typography improvements */
.display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
    color: #666;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
}

.text-muted {
    color: #6c757d !important;
}

/* Contact section styling - Force white text */
#contact h2,
#contact h2.display-5,
#contact .display-5 {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#contact h5,
#contact .contact-item h5,
.bg-primary h5,
section.bg-primary h5 {
    color: #ffffff !important;
    font-weight: 600 !important;
}

#contact .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Improve contact section background contrast */
#contact.bg-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%) !important;
    position: relative;
}

#contact.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

#contact .container {
    position: relative;
    z-index: 1;
}

/* Footer styling - ensure all text is white/light */
footer h5,
footer h6 {
    color: #ffffff !important;
}

footer .text-muted {
    color: #ffffff !important;
}

/* Social links */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Final overrides - ensure white text visibility */
section#contact h5,
section#contact .contact-item h5,
section#contact div h5 {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

footer.bg-dark h5,
footer.bg-dark h6,
footer.bg-dark .text-muted {
    color: white !important;
}
