/* GLOBAL */
html {
    scroll-behavior: smooth; /* Smooth scrolling */
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0f1115;
    color: #ffffff;
}

/* HEADER */
header {
    background-color: #1a1c22;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;        /* Sticky header */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

nav a {
    color: #ffffff;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #00aaff;
}

.logo {
    height: 80px;
}

/* HERO */
.hero {
    background: url('qsys-core24f.png') no-repeat center center;
    background-size: cover;
    position: relative;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 20px;
}

/* Dark gradient overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.7)
    );
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    color: #dddddd;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* SERVICES GRID */
.services .service h3 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.icon-inline {
    width: 24px;
    height: 24px;
    display: block;
}

.services {
    display: grid;
    gap: 30px;
    padding: 60px 20px;
    background-color: #181a1f;
    grid-template-columns: repeat(4, 1fr);
}

.service {
    background-color: #22252b;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle hover animation */
.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.service h3 {
    color: #00aaff;
}

/* CERTIFICATION */
.certification {
    text-align: center;
    padding: 40px 20px;
}

/* CONTACT */
.contact {
    padding: 60px 20px;
    background-color: #1a1c22;
}

.contact form {
    max-width: 500px;
    margin: auto;
}

.success {
    background-color: #0f3d2e;
    padding: 12px;
    border-radius: 6px;
}

.error {
    background-color: #3d0f0f;
    padding: 12px;
    border-radius: 6px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    background-color: #2a2d33;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
}

.contact label {
    display: block;
    margin-bottom: 5px;
    color: #cccccc;
    font-size: 0.9rem;
}

.contact button {
    background-color: #00aaff;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.contact button:hover {
    background-color: #0088cc;
}

/* FOOTER */
footer {
    background-color: #111317;
    padding: 30px 20px;
    text-align: center;
    color: #888;
    border-top: 1px solid #222;
}

footer p {
    margin: 6px 0;
    font-size: 0.95rem;
}

/* TABLET */
@media (max-width: 1200px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE — MUST COME LAST */
@media (max-width: 1024px) {

    .icon-inline {
        width: 26px;
        height: 26px;
    }

    .services {
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }

    .service {
        padding: 48px 40px;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    nav {
        margin-top: 10px;
    }

    .logo {
        height: 100px;
    }

    .service h3 {
        font-size: 1.4rem;
    }

    .service p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .hero h2 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .contact input,
    .contact textarea {
        font-size: 1.1rem;
        padding: 14px;
    }

    .contact button {
        font-size: 1.1rem;
        padding: 14px;
    }
}