/* ========================================
   ANSWER ELECTRIC THEME - DARK MODE STYLESHEET
   ======================================== */

:root {
    /* Dark Color Variables */
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #1f2937;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --white: #111827;
    --black: #ffffff;
    
    /* Typography */
    --font-family: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 15px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
    
    /* Border Radius */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 50px;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: #0f172a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========================================
   SECTIONS
   ======================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.services-grid {
    margin-top: 2rem;
    padding-top: 2rem;
}

.services-grid .row {
    margin-bottom: 1rem;
}

.services-grid .col-lg-4 {
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========================================
   SERVICE CARDS
   ======================================== */

.service-card {
    background: #1e293b;
    border-radius: var(--border-radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #334155;
    position: relative;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.service-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.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;
}

.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;
}

.service-card-content {
    padding: 1.5rem 1.5rem 2rem;
    margin-top: 0.5rem;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
    background: #1e293b;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #334155;
}

.contact-info-card {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    color: white;
    box-shadow: var(--shadow-lg);
}

.contact-info-header {
    margin-bottom: 2rem;
}

.contact-info-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.1rem;
    color: white;
}

.contact-details h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-details a:hover {
    color: white;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 50px 0 30px;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #fbbf24;
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #fbbf24;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -12px;
}

.footer-contact .contact-item {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.footer-contact .contact-item i {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-contact .contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-contact .contact-item a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 1.1rem;
}

.footer-tagline {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #fbbf24;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
    border-width: 1px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

.legal-link:hover {
    color: white;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.legal-link:hover::after {
    width: 100%;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 25px;
    }
    
    .footer-social {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-logo {
        max-width: 120px;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-contact .contact-item a {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    .footer-tagline p {
        font-size: 0.85rem;
    }
}