* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050812;
    --bg2: #080d19;
    --card: rgba(13, 20, 37, 0.82);
    --border: rgba(0, 229, 255, 0.15);
    --primary: #00e5ff;
    --primary2: #0077ff;
    --text: #ffffff;
    --muted: #9aa7bd;
    --danger: #ff4d67;
    --success: #00d68f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(0, 229, 255, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0, 119, 255, 0.08),
            transparent 30%
        ),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}


/* =========================================================
   LOADER
========================================================= */

#loader {
    position: fixed;
    inset: 0;
    background: #03050b;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.loader-spinner {
    width: 42px;
    height: 42px;
    margin: 25px auto 15px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-content p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   PROGRESS
========================================================= */

#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--primary2)
    );
    z-index: 10000;
}


/* =========================================================
   PARTICLES
========================================================= */

#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.35;
    animation: floatParticle linear infinite;
}


/* =========================================================
   MOUSE GLOW
========================================================= */

.mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(0,229,255,0.08),
        transparent 65%
    );
    z-index: 0;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    transition: 0.3s;
}

.navbar.scrolled {
    background: rgba(5, 8, 18, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: min(1180px, 92%);
    margin: auto;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

.logo small {
    color: white;
    font-size: 12px;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: #c6cfdd;
    font-size: 14px;
    transition: 0.25s;
}

nav a:hover {
    color: var(--primary);
}

.auth-area {
    position: relative;
}

.nav-login-btn {
    padding: 10px 19px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(0,229,255,0.08);
    color: var(--primary);
    transition: 0.25s;
}

.nav-login-btn:hover {
    background: rgba(0,229,255,0.15);
    box-shadow: 0 0 20px rgba(0,229,255,0.12);
}

.profile-button {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: white;
    padding: 7px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-avatar {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary2)
    );
    color: #001018;
    font-weight: 800;
    font-size: 12px;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 230px;
    padding: 10px;
    background: #0c1324;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.profile-dropdown-header {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 6px;
}

.profile-dropdown-header strong {
    display: block;
    font-size: 14px;
}

.profile-dropdown-header span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
    word-break: break-all;
}

.profile-dropdown button {
    width: 100%;
    padding: 11px;
    border: none;
    background: transparent;
    color: #dce4ef;
    text-align: left;
    border-radius: 8px;
}

.profile-dropdown button:hover {
    background: rgba(255,255,255,0.06);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: transparent;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 110px 0;
    position: relative;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 55px;
}

.section-heading > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-heading h2 {
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.15;
    margin: 12px 0;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 130px;
}

.hero-content {
    width: min(900px, 92%);
    margin: auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--border);
    background: rgba(0,229,255,0.06);
    border-radius: 30px;
    color: var(--primary);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(45px, 8vw, 85px);
    line-height: 1;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: var(--primary);
    text-shadow: 0 0 35px rgba(0,229,255,0.22);
}

.hero p {
    max-width: 650px;
    margin: 30px auto;
    color: var(--muted);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    border-radius: 10px;
    padding: 13px 23px;
    border: 1px solid var(--border);
    font-size: 13px;
    transition: 0.25s;
}

.primary-btn {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary2)
    );
    color: #001018;
    font-weight: 700;
    border: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,229,255,0.2);
}

.secondary-btn {
    background: rgba(255,255,255,0.04);
    color: white;
}

.secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-top: 70px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    color: var(--primary);
    font-size: 20px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    background: rgba(255,255,255,0.015);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-card {
    padding: 30px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 16px;
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,229,255,0.35);
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 10px;
}

.about-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 17px;
    padding: 27px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0,229,255,0.35);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0,229,255,0.08);
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 9px;
}

.service-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    min-height: 60px;
}

.service-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
}

.service-price {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.order-service-btn {
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    background: rgba(0,229,255,0.1);
    color: var(--primary);
    font-size: 11px;
}

.order-service-btn:hover {
    background: var(--primary);
    color: #001018;
}

.service-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 50px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto auto 15px;
}


/* =========================================================
   PROCESS
========================================================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-card {
    position: relative;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--card);
}

.process-number {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 25px;
}

.process-card h3 {
    margin-bottom: 10px;
    font-size: 17px;
}

.process-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   ORDERS
========================================================= */

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 14px;
}

.order-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.order-number {
    color: var(--primary);
    font-size: 12px;
}

.order-service {
    font-size: 17px;
    font-weight: 600;
    margin-top: 5px;
}

.order-date {
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}

.order-status {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    background: rgba(0,229,255,0.08);
    color: var(--primary);
}

.status-completed {
    color: var(--success);
    background: rgba(0,214,143,0.08);
}

.status-cancelled {
    color: var(--danger);
    background: rgba(255,77,103,0.08);
}

.order-bottom {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    justify-content: space-between;
}

.order-bottom span {
    color: var(--muted);
    font-size: 12px;
}

.order-bottom strong {
    color: white;
}

.loading-box {
    padding: 50px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 15px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: rgba(255,255,255,0.015);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    min-width: 170px;
    text-align: center;
    padding: 13px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
}

.contact-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 35px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
    width: min(1100px, 92%);
    margin: auto;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.footer-logo span {
    color: white;
}

.footer-content p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 8px;
}


/* =========================================================
   MODALS
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    position: relative;
    width: min(450px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border: 1px solid var(--border);
    background: #0a1121;
    border-radius: 18px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.5);
}

.order-modal {
    width: min(500px, 100%);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 17px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: white;
    font-size: 22px;
}

.modal-close:hover {
    background: rgba(255,77,103,0.12);
    color: var(--danger);
}

.modal-header {
    margin-bottom: 25px;
}

.modal-header > span {
    color: var(--primary);
    font-size: 10px;
    letter-spacing: 2px;
}

.modal-header h2 {
    font-size: 29px;
    margin: 6px 0;
}

.modal-header p {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   INPUTS
========================================================= */

.input-group {
    margin-bottom: 17px;
}

.input-group label {
    display: block;
    color: #d6deea;
    font-size: 11px;
    margin-bottom: 7px;
}

.input-group input {
    width: 100%;
    padding: 12px 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 9px;
    outline: none;
    color: white;
    font-size: 13px;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.06);
}

.input-group input::placeholder {
    color: #647188;
}

.form-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary2)
    );
    color: #001018;
    font-weight: 700;
    transition: 0.25s;
}

.form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0,229,255,0.15);
}

.form-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.form-switch {
    text-align: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11px;
}

.form-switch button {
    border: none;
    background: none;
    color: var(--primary);
    font-size: inherit;
}


/* =========================================================
   ORDER FORM
========================================================= */

.selected-service-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    background: rgba(0,229,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 22px;
}

.selected-service-price span {
    color: var(--muted);
    font-size: 11px;
}

.selected-service-price strong {
    color: var(--primary);
    font-size: 18px;
}

.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 18px;
}

.quantity-row > label {
    color: #d6deea;
    font-size: 11px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-control button {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: white;
}

.quantity-control button:hover {
    background: rgba(0,229,255,0.1);
    color: var(--primary);
}

.quantity-control input {
    width: 40px;
    height: 35px;
    border: none;
    background: transparent;
    color: white;
    text-align: center;
    outline: none;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 5px;
    margin-bottom: 17px;
}

.order-total span {
    color: var(--muted);
}

.order-total strong {
    color: var(--primary);
    font-size: 21px;
}


/* =========================================================
   NOTIFICATION
========================================================= */

.notification {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    max-width: 350px;
    padding: 14px 18px;
    background: #0d1729;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    transform: translateY(120px);
    opacity: 0;
    transition: 0.3s;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    border-color: rgba(0,214,143,0.35);
}

.notification.error {
    border-color: rgba(255,77,103,0.35);
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatParticle {
    from {
        transform: translateY(100vh);
    }

    to {
        transform: translateY(-10vh);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    nav {
        position: absolute;
        top: 75px;
        left: 4%;
        width: 92%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: #0a1121;
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 13px;
        border-radius: 7px;
    }

    nav a:hover {
        background: rgba(255,255,255,0.04);
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .auth-area {
        order: 3;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        gap: 30px;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 85px 0;
    }

    .nav-container {
        gap: 10px;
    }

    .logo {
        font-size: 21px;
    }

    .profile-button #profileName {
        display: none;
    }

    .about-grid,
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 47px;
    }

    .hero p {
        font-size: 12px;
    }

    .hero-stats {
        gap: 25px;
        margin-top: 50px;
    }

    .hero-stats strong {
        font-size: 17px;
    }

    .modal {
        padding: 25px 20px;
    }

    .order-top {
        flex-direction: column;
    }

    .order-status {
        align-self: flex-start;
    }

    .order-bottom {
        gap: 10px;
    }
}