/* ========================================
   ANSWER ELECTRIC PAGES CSS - Dark Mode Styles
   ======================================== */

/* Navigation Styles - Dark Mode */
.navbar-custom {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1030;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.navbar-custom .navbar-brand img {
    max-height: 80px;
    width: auto;
}

.navbar-custom .nav-link {
    color: #f9fafb;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 0.75rem 1.5rem !important;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fbbf24;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 80%;
}

/* Contact button styling - Dark Mode */
.navbar-custom .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: 1.25rem;
}

.navbar-custom .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Contact button active state - Dark Mode */
.navbar-custom .btn[data-page="contact"].active {
    background-color: #34d399 !important;
    border-color: #34d399 !important;
    color: #0f172a !important;
}

.navbar-custom .btn[data-page="contact"].active:hover {
    background-color: #10b981 !important;
    border-color: #059669 !important;
}

/* Navbar Toggler - Dark Mode */
.navbar-toggler {
    border: 1px solid #334155;
    color: #f9fafb;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28249, 250, 251, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section Styles - Dark Mode */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
    z-index: -1;
}

/* Service Cards Enhanced - Dark Mode */
.service-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #334155;
    overflow: visible;
    background: #1e293b;
    position: relative;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.service-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: #60a5fa;
}

.service-card-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
    border: 3px solid #1e293b;
    transition: none;
}

.service-card:hover .service-card-icon {
    transform: translateX(-50%);
}

.service-card-icon i {
    font-size: 1.5rem;
    color: #fbbf24 !important;
}

/* Center the last service card */
#services .row .col-lg-4:last-child {
    text-align: center;
}

#services .row .col-lg-4:last-child .service-card {
    margin: 0 auto;
    display: inline-block;
    text-align: left;
    width: 100%;
}

/* QR Code Section */
.qr-section {
    margin-top: 2rem;
    padding-top: 0;
}

.qr-code-container {
    text-align: center;
}

.qr-code-box {
    display: inline-block;
    background: transparent;
    padding: 8px;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.qr-code-img {
    width: 220px;
    height: 220px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    border: 3px solid #fbbf24;
    padding: 8px;
}

.qr-text {
    color: #d1d5db;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.qr-text i {
    color: #f9fafb;
    font-size: 1rem;
}

/* Contact Form Styles - Dark Mode */
.contact-form {
    background: #1e293b;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #334155;
}

.contact-info-card {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

/* Accordion Styles - Dark Mode - Override Bootstrap */
.accordion-item {
    border: 1px solid #334155 !important;
    border-radius: 10px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #1e293b !important;
}

.accordion-button {
    background: #1e293b !important;
    border: none !important;
    font-weight: 600;
    color: #f9fafb !important;
    padding: 1rem 1.5rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: #334155 !important;
    color: #60a5fa !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25) !important;
    border-color: #60a5fa !important;
}

.accordion-button::after {
    filter: brightness(0) invert(1) !important;
}

.accordion-body {
    background: #1e293b !important;
    color: #d1d5db !important;
    padding: 1.5rem;
    border-top: 1px solid #334155 !important;
}

/* Force dark theme on FAQ section */
.faq-section {
    background: #0f172a !important;
    color: #f9fafb !important;
}

.faq-section .section-title {
    color: #f9fafb !important;
}

.faq-section .section-subtitle {
    color: #d1d5db !important;
}

.faq-section .section-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1f2937 !important;
}

/* Button Styles - Dark Mode */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #0f172a;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Form Styles - Dark Mode */
.form-control {
    border: 2px solid #334155;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: #1e293b;
    color: #f9fafb;
}

.form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
    background: #334155;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Responsive Design - Dark Mode */
@media (max-width: 768px) {
    .navbar-custom .navbar-brand img {
        max-height: 60px;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-custom .navbar-brand img {
        max-height: 50px;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .service-card-content {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
}

/* Services Section Container - Ensure icons are visible */
.services-section {
    padding-top: 3rem;
    margin-top: 2rem;
    overflow: visible;
}

.services-grid {
    margin-top: 2rem;
    padding-top: 2rem;
    overflow: visible;
}

.services-grid .row {
    overflow: visible;
}

.services-grid .col-lg-4 {
    overflow: visible;
}

/* FAQ Section - Dark Theme */
.faq-section {
    background: #0f172a;
    padding: 4rem 0;
}

.faq-section .section-title {
    color: #f9fafb;
}

.faq-section .section-subtitle {
    color: #d1d5db;
}

/* Accordion Hover Effects */
.accordion-button:hover {
    background: #334155;
    color: #60a5fa;
}

.accordion-button:hover::after {
    filter: brightness(0) invert(1);
}

/* FAQ Container */
.faq-container {
    background: #1e293b;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
