header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: linear-gradient(135deg, #1a1a1a, #222);
    position: fixed;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 255, 255, 0.2);
    border-radius: 12px;
}

body {
    background-color: #0b0b0b;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: cyan;
    text-shadow: 0px 0px 10px cyan;
    white-space: nowrap;
}

.gear-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gear {
    font-size: 20px;
    color: cyan;
    margin-right: 5px;
    animation: rotateGear 4s linear infinite;
}

@keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 12px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease-in-out;
    white-space: nowrap;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: cyan;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: cyan;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        right: 5%;
        background: #222;
        flex-direction: column;
        width: 180px;
        text-align: center;
        padding: 10px 0;
        border-radius: 8px;
        box-shadow: 0px 4px 10px rgba(0, 255, 255, 0.2);
        z-index: 999;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        padding: 10px 0;
    }
    .menu-toggle {
        display: block;
    }
}

.hero {
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.3), transparent);
}
.hero h1 {
    font-size: 32px;
    font-weight: bold;
}
.hero h1 span {
    color: cyan;
    text-shadow: 0px 0px 20px cyan;
}

/* 🔥 SERVICE CARDS 🔥 */
.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 5%;
}
.service-card {
    background: #111;
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(0, 255, 255, 0.15);
    text-align: center;
    width: 180px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    border: 1px solid transparent;
    position: relative;
}
.service-card:hover {
    border: 1px solid cyan;
    box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-6px);
}
.service-icon {
    font-size: 22px;
    margin-bottom: 5px;
    color: cyan;
}
@media (max-width: 768px) {
    .services-container {
        gap: 10px;
    }
    .service-card {
        width: 160px;
        height: 80px;
        font-size: 12px;
    }
    .service-icon {
        font-size: 18px;
    }
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 5%;
}
.feature-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s, background 0.3s;
    cursor: pointer;
    width: 250px;
}
.feature-card:hover {
    background: cyan;
    color: black;
    transform: scale(1.05);
}
/* Popup form */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.3);
    text-align: center;
    width: 300px;
    z-index: 999;
}
.popup input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 6px;
    background: #222;
    color: #fff;
}
.popup button {
    padding: 12px;
    background: cyan;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
}
.popup button:hover {
    background: rgba(0, 255, 255, 0.8);
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: white;
    cursor: pointer;
}

#successMessage {
    position: fixed; /* Ensure it stays in front */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 0px 10px cyan;
    z-index: 9999; /* Ensure it's on top */
    width: 80%;
    max-width: 400px;
}