@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #050015;
    color: white;
    overflow-x: hidden;
}

/* ----- Background Stars ----- */
canvas#bg {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* ----- HERO ----- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 120px 20px 80px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 300px;
    min-width: 280px;
}

.hero h1 {
    font-size: 4rem;
    color: #c084fc;
    text-shadow: 0 0 20px #a855f7;
}

.subtitle {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.85;
}

.hero-body {
    margin-top: 20px;
    opacity: 0.85;
    line-height: 1.6;
}

.hero-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-size: 0.85rem;
}

.hero-avatar {
    flex: 0 0 260px;
    display: flex;
    justify-content: center;
}

.hero-avatar img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.9);
    border: 3px solid rgba(248, 250, 252, 0.15);
}

/* ----- SECTIONS ----- */
.section {
    max-width: 900px;
    margin: 70px auto;
    padding: 0 20px;
    text-align: center;
}

.section h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #d8b4fe;
    text-shadow: 0 0 10px #a855f7;
}

.section p {
    opacity: 0.88;
    margin-bottom: 25px;
}

/* ----- PILL ROW (STACK) ----- */
.pill-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.pill {
    background: rgba(255, 255, 255, 0.06);
    padding: 18px 20px;
    border-radius: 16px;
    text-align: left;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.25);
}

.pill h3 {
    color: #e9d5ff;
    margin-bottom: 8px;
}

/* ----- CARDS (SERVICES) ----- */
.card-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.7);
}

/* ----- WORKFLOW ----- */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.step {
    position: relative;
    padding: 20px 18px 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.5);
    text-align: left;
}

.step-number {
    position: absolute;
    top: -14px;
    left: 16px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.step h3 {
    margin-left: 0;
    margin-bottom: 8px;
    color: #e9d5ff;
}

/* ----- IMAGE GRID ----- */
.image-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.img-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
    display: flex;
    flex-direction: column;
}

.img-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.img-card span {
    padding: 10px 12px 12px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ----- CONTACT BUTTON ----- */
.contact-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s ease;
}

.contact-btn:hover {
    box-shadow: 0 0 20px #a855f7;
    transform: scale(1.05);
}

.contact-large {
    margin-top: 5px;
}

/* ----- ANIMATIONS ----- */
.fade-in {
    animation: fade 1s ease forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeUp 1.3s ease forwards;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .hero {
        padding-top: 90px;
    }

    .hero h1 {
        font-size: 3rem;
        text-align: center;
    }

    .subtitle,
    .hero-body {
        text-align: center;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-avatar {
        margin-top: 20px;
    }
}


/* ----- TOP NAVIGATION ----- */
.top-nav {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.nav-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.nav-logo {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e5e7eb;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 999px;
    color: #e5e7eb;
    opacity: 0.9;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
    background: rgba(148, 163, 184, 0.16);
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.7);
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-inner {
        gap: 18px;
        padding-inline: 18px;
    }

    .nav-logo {
        display: none;
    }
}

/* ----- REVIEWS PAGE ----- */
.leave-review-btn {
    margin-top: 16px;
    margin-bottom: 18px;
}

.review-form {
    display: none;
    margin-top: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
}

.review-form-visible {
    display: block;
}

.review-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.review-form label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.review-form input,
.review-form textarea,
.review-form select {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    font-size: 0.9rem;
    outline: none;
}

.review-form input:focus,
.review-form textarea:focus,
.review-form select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.8);
}

.submit-review-btn {
    margin-top: 4px;
}

.review-grid {
    margin-top: 18px;
}

.review-card {
    border-radius: 18px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.review-title {
    font-weight: 600;
}

.review-rating {
    font-size: 0.9rem;
    color: #fbbf24;
}

.review-text {
    margin: 6px 0 10px;
    line-height: 1.5;
}

.review-meta {
    font-size: 0.8rem;
    opacity: 0.75;
}

.empty-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ----- ADMIN PANEL ----- */
.review-card .admin-title-input,
.review-card .admin-message-input,
.review-card .admin-rating-select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.9rem;
    outline: none;
    margin-top: 4px;
}

.review-card .admin-message-input {
    min-height: 90px;
    resize: vertical;
}
