body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0a0f24;
    color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #10142d;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { height: 50px; }

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a, nav button {
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background: #00b4ff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #0093d1;
    transform: scale(1.05);
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #0a0f24, #1a1f36);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px auto;
    width: 90%;
}

.service-card {
    background: transparent;
    perspective: 1000px;
    height: 180px;
}

.service-card div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #1a1f36;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    backface-visibility: hidden;
    position: absolute;
}

.card-front { font-size: 18px; font-weight: bold; }
.card-back { transform: rotateY(180deg); font-size: 14px; flex-direction: column; }

.service-card.flipped .card-front { transform: rotateY(180deg); }
.service-card.flipped .card-back { transform: rotateY(360deg); }

.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: rgba(20, 24, 48, 0.95);
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    animation: slideDown 0.4s ease;
}

.popup input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: none;
    font-size: 14px;
}

.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
}

@keyframes slideDown {
    from {opacity: 0; transform: translateY(-40px);}
    to {opacity: 1; transform: translateY(0);}
}
