/* Custom Properties / Variables */
:root {
    --bg-main: #121212;
    --bg-darker: #0a0a0a;
    --bg-card: #1e1e1e;
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --accent-orange: #ff6b00;
    --accent-hover: #e65c00;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

.accent-text {
    color: var(--accent-orange);
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
}

.btn-secondary:hover {
    background-color: var(--accent-orange);
    color: #fff;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

/* Navigation */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/electrician.jpg') center/cover no-repeat;
    margin-top: 0;
    padding-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Grid Layouts */
.grid-layout {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-left: 4px solid var(--accent-orange);
}

/* Services */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-bottom: 3px solid var(--accent-orange);
}

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Why Us */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item .icon-placeholder {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--accent-orange);
    margin: 0 auto 20px auto;
    font-size: 2.5rem;
}

/* Our Work */
.work-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.work-img-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.work-img-wrapper img {
    width: 100%;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.work-img-wrapper:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Contact */
.contact-container {
    max-width: 800px;
}

.contact-subtitle {
    margin-bottom: 40px;
}

.contact-info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top: 4px solid var(--accent-orange);
}

.contact-details p {
    margin-bottom: 20px;
    color: var(--text-main);
}

.contact-details p strong {
    color: var(--accent-orange);
}

.contact-actions {
    min-width: 250px;
}

/* Footer */
footer {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid #222;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .about-container, .contact-info-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-actions {
        width: 100%;
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: rgba(18, 18, 18, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
}
@media screen and (max-width: 400px) {
    
    .contact-actions .btn {
        white-space: normal; 
        word-break: break-word; 
        overflow-wrap: break-word;
        font-size: 0.9rem; 
        padding: 12px 10px; 
        line-height: 1.4; 
        height: auto; 
        margin-bottom: 15px; 
    }
}