/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* ========== Header ========== */
header {
    background: #1e3a8a; /* Navy blue */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    float: left;
    font-size: 1.8rem;
    font-weight: bold;
}

nav {
    float: right;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #facc15; /* Yellow accent */
}

/* Clear floats */
header::after {
    content: "";
    display: table;
    clear: both;
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 58, 138, 0.7)),
                url("https://source.unsplash.com/1600x600/?technology,network") center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
}

/* ========== Sections ========== */
section {
    padding: 60px 20px;
    background: #fff;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1e3a8a;
    text-align: center;
}

section p {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

/* Services List */
#services ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 0;
}

#services ul li {
    background: #f3f4f6;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
}

#services ul li:hover {
    transform: translateY(-5px);
    background: #e0e7ff;
}

/* ========== Contact Form ========== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

form label {
    font-weight: 600;
    margin-bottom: 5px;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form button {
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

form button:hover {
    background: #facc15;
    color: #1e3a8a;
}

/* ========== Footer ========== */
footer {
    background: #111827;
    color: #d1d5db;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    header h1 {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }

    nav {
        float: none;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}
/* Service Cards with Background Images */
.service {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 50px 20px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Dark overlay for readability */
.service::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.service:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

/* Text stays above overlay */
.service {
    position: relative;
    z-index: 1;
}

/* Background images for each service */
.consulting {
    background-image: url("https://source.unsplash.com/600x400/?business,consulting");
}

.network {
    background-image: url("https://source.unsplash.com/600x400/?network,technology");
}

.cloud {
    background-image: url("https://source.unsplash.com/600x400/?cloud,computing");
}

.cctv {
    background-image: url("https://source.unsplash.com/600x400/?cctv,security");
}

.support {
    background-image: url("https://source.unsplash.com/600x400/?technical,support");
}
