/* ============================
   GLOBAL LAYOUT
============================ */
body {
    font-family: 'Segoe UI', Calibri, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #f5f5f5;
    line-height: 1.6;
}

h1, h2 {
    font-weight: 700;
    letter-spacing: 1px;
}

/* ============================
   HEADER
============================ */
.site-header {
    position: relative;
    background:
        linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.20)),
        url('images/network-cables.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 50px 20px 60px;
    overflow: hidden;
}

.site-header .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
}

.header-content {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.logo {
    font-size: 52px;
    margin: 0;
    color: #fff;
}

.tagline {
    font-size: 18px;
    color: #ddd;
    margin-top: 8px;
}

/* ============================
   SECTIONS (Shared)
============================ */
.section,
#about,
#services,
#contact {
    max-width: 900px;
    margin: 40px auto;
    background-color: #2c2c2c;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    text-align: center;
    padding: 25px 30px 55px;
}

.section h2 {
    color: #fff;
    text-align: center;
    margin: 0 auto 25px;
    position: relative;
    display: block;
    font-size: 26px;
}

/* Red underline accent */
.section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ff4040;
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 64, 64, 0.6);
}

/* Paragraph styling */
#about p, #contact p {
    color: #ddd;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================
   SERVICES
============================ */
.services-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: fit-content; /* keeps the list centered regardless of row count */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px 40px; /* horizontal & vertical spacing */
    text-align: center;
}


.services-list li {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px 25px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;              /* <-- clearly clickable */
}

.services-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Icon colors */
.services-list i {
    font-size: 36px;
    margin-bottom: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.services-list li:nth-child(1) i { color: #00bfff; }  /* blue */
.services-list li:nth-child(2) i { color: #ffa500; }  /* orange */
.services-list li:nth-child(3) i { color: #32cd32; }  /* green */
.services-list li:nth-child(4) i { color: #ff4040; }  /* red */
.services-list li:nth-child(5) i { color: #9370db; }  /* purple */

.services-list li:hover i {
    transform: scale(1.1);
    filter: brightness(1.3);
}

/* ============================
   CONTACT FORM
============================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 20px auto;
}

.contact-form input,
.contact-form textarea {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form button {
    background: #ff4040;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button:hover {
    background: #d92d2d;
}

.email-note {
    text-align: center;
    margin-top: 20px;
    color: #ccc;
}

/* ===== SERVICE MODAL FIX ===== */
.modal {
    display: none;                   /* ✅ hide initially */
    position: fixed;
    z-index: 9999;                   /* ✅ above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
}

.modal.show {                        /* class toggled by JS */
    display: flex;
}

.modal-content {
    background-color: #2c2c2c;
    padding: 25px 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 85%;
    text-align: left;
    color: #f5f5f5;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    position: relative;
    animation: fadeIn 0.25s ease;
}

.modal-content h3 {
    margin-top: 0;
    color: #ff4040;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============================
   FOOTER
============================ */
.site-footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 14px;
}
