﻿/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9fafc;
    scroll-behavior: smooth;
}

/* ===== HERO SECTION ===== */
.electrical-hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1581092334512-1e7d5f2fdb59') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.55);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1.2s ease;
    padding-top: 100px;
}

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

.btn-primary {
    background: #ffb703;
    color: #222;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

    .btn-primary:hover {
        background: #ffa500;
    }

/* ===== SERVICES SECTION ===== */
.electrical-services {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
}

    .electrical-services h2 {
        font-size: 2.4rem;
        margin-bottom: 40px;
        color: #1a1a1a;
        position: relative;
    }

        .electrical-services h2::after {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            background: #ffb703;
            margin: 10px auto;
        }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .service-card h3 {
        font-size: 1.4rem;
        margin: 15px 0 10px;
        color: #333;
    }

    .service-card p {
        font-size: 1rem;
        padding: 0 15px 20px;
        color: #666;
    }

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    }

/* ===== CALL TO ACTION SECTION ===== */
.call-to-action {
    background: linear-gradient(135deg, #ffb703, #ff8800);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 50px;
}

    .call-to-action .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .call-to-action .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

.call-btn {
    background: #fff;
    color: #ff8800;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .call-btn:hover {
        background: #ffe4b5;
    }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .electrical-services h2 {
        font-size: 2rem;
    }

    .service-card img {
        height: 180px;
    }

    .call-to-action .cta-content h2 {
        font-size: 1.6rem;
    }
}
