/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #222;
}

/* ================= HEADER ================= */
header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 5px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 1px;
	position: relative;
	text-aling: left;
	margin-left: 0px;
	padding-left: 0px;
	border-radius: 25%;
}


.logo img{
	display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* ================= SECTIONS ================= */
.section {
    min-height: 100vh;
    padding: 90px 30px;
    text-align: center;
}

.section h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.section-intro {
    max-width: 750px;
    margin: 0 auto 50px;
    font-size: 17px;
    opacity: 0.9;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(120deg, #b7b3f2, #9aa5ff);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0px;
    position: relative;
    z-index: 2;
	margin-left: 0px;
	padding-left: 0px;
	text-align: center;
}

.hero h1 {
    font-size: 46px;
    margin-bottom: 25px;
	
}

.hero p {
    font-size: 19px;
    margin-bottom: 35px;
}

/* CTA Button */
.btn {
    display: inline-block;
    padding: 14px 34px;
    background: #0f3d4c;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #082a35;
}

/* Decorative Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
}

.shape1 {
    width: 320px;
    height: 320px;
    background: #ffffff;
    top: -90px;
    right: -90px;
}

.shape2 {
    width: 220px;
    height: 220px;
    background: #0f3d4c;
    bottom: -70px;
    left: -70px;
}

.electrical {
    background: #4d4e70;
    color: #fff;
}

/* ================= SERVICES ================= */
.services {
    background: #8b0038;
    color: #fff;
}

.cards {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.card h3 {
    margin: 15px 0 12px;
    font-size: 20px;
}

/* ================= ABOUT ================= */
.about {
    background: #1de0d6;
}

.about .card {
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* ================= CONTACT ================= */
.contact {
    background: #162c3c;
    color: #fff;
}

.contact-box {
    margin-top: 30px;
    background: rgba(255,255,255,0.12);
    padding: 30px 35px;
    border-radius: 12px;
    display: inline-block;
    text-align: left;
}

.contact-box p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* ================= FOOTER ================= */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 18px;
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    nav ul {
        gap: 18px;
    }

    .hero h1 {
        font-size: 34px;
        position: fixed;
    }

    .hero p {
        font-size: 17px;
    }

    .section h2 {
        font-size: 28px;
    }

    .section {
        padding: 70px 20px;
    }
}


/* ===== HERO SLIDER BACKGROUND ===== */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider img {
    position: absolute;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

/* Dark overlay for readability */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

/* Keep text above slider */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: auto;
}

/* Shapes above overlay */
.shape {
    z-index: 3;
}

/* ===== HERO 50/50 LAYOUT ===== */
.hero-layout {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
}

.hero-text {
    width: 50%;
    text-align: left;
}

.hero-text h1 {
    font-size: 46px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-right {
    width: 50%;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-right {
        width: 100%;
    }

    .hero-text {
        text-align: center;
    }
}

@media screen{
.logo-only {
}

}

/* Target specific card using ID */
#card1 {
    position: relative;
    overflow: hidden;
    height: 400px; /* Set card height */
}

/* All images stacked */
#card1 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlide 9s infinite;
}

/* Delay each image */
#card1 img:nth-child(1) {
    animation-delay: 0s;
}

#card1 img:nth-child(2) {
    animation-delay: 3s;
}

#card1 img:nth-child(3) {
    animation-delay: 6s;
}

/* Animation */
@keyframes fadeSlide {
    0% { opacity: 0; }
    5% { opacity: 1; }
    30% { opacity: 1; }
    35% { opacity: 0; }
    100% { opacity: 0; }
}

