@font-face {
    font-family: "Nexa";
    src: url("Fonts/Nexa-heavy.ttf") format("ttf");
    font-weight:400;
    font-style:normal;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 20px 20px;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;

}
.services-grid::before {
    content: "";
    position: absolute;
    inset: 0px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;

    background-image:
        linear-gradient(90deg, transparent 48%, #35d0ba 49%, #35d0ba 50%, transparent 51%),
        linear-gradient(0deg, transparent 48%, #4169ff 49%, #4169ff 50%, transparent 51%),
        radial-gradient(circle, #72aaff 2px, transparent 3px);

    background-size: 60px 60px, 60px 60px, 60px 60px;
}

.services-grid > .service-card {
    position: relative;
    z-index: 1;
}
.service-card {
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    padding: 28 24px;
    border: 1px solid #303949;
    border-radius: 16px;
    background: #191f2b;
    color: #f0f2f5;
    overflow:hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 0 18px rgba(65, 105, 255, 0.18);
    transition: box-shadow 0.3s ease;
}
.service-card:hover .card-front,
.service-card:hover .card-back {
    box-shadow: 0 0 25px rgba(65, 105, 255, 0.4);
}
.card-front h2,
.card-back h2 {
    color: #0475f7;
    margin-top: 0;
}

.card-front span,
.card-back span {
    margin-top: auto;
    font-size: 0.85rem;
    opacity: 0.7;
}

.card-back {
    transform: rotateY(180deg);
}

.service-card.flipped .card-inner {
    transform: rotateY(180deg);
}


@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 16px;
    }

    .service-card {
        width: 100%;
        height: 300px;
        box-sizing: border-box;
    }

    .card-front,
    .card-back {
        box-sizing: border-box;
        min-width: 0;
    }

    .service-title h2 {
        font-size: 1.2rem;
    }

    .service-title .service-icon {
        width: 50px;
        height: 50px;
    }
}


.service-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 6px #35d0ba66);
    transition:transform 0.3s ease, filter 0.3s ease;
}
.service-card:hover .service-icon {
    filter: drop-shadow(0 0 12px #0b07fc);
    transform: scale(1.08);
}
header h1 {
    text-align:left;
}

.service-price {
    display: block;
    color: #72aaff;
    font-size: 1.35rem;
    margin: 0 0 18px 0;
    text-shadow: 0 0 10px rgba(65, 105, 255, 0.25);
    font-weight:700;
}

.price-note {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b9c5d8;
    margin: 12px 0;
}

.service-contact {
    display: inline-block;
    padding: 10px 18px;
    margin: 8px 0 12px;
    border: 1px solid #4169ff;
    border-radius: 6px;
    background: #0475f7;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.service-contact:hover {
    background: #4169ff;
    box-shadow: 0 0 16px rgba(65, 105, 255, 0.4);
}

.service-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom:16px;
}

.service-title h2 {
    margin: 0;
    font-size:1.25rem;
    color: #00c3ff;
}

.service-title .service-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin: 0;
    
}

.card-back {
    box-sizing: border-box;
    padding: 18px;
    overflow-y: auto;
    justify-content: flex-start;
}

.card-back h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.3;
}


/* Mobile glow effect */
@media (hover: none) {
    .service-card .card-front,
    .service-card .card-back {
        box-shadow: 0 0 25px rgba(65, 105, 255, 0.4);
    }

    .service-card .service-icon {
        filter: drop-shadow(0 0 12px #0066ff);
    }
}

.assembly-card h2 {
    font-size:1.9rem;
    white-space:nowrap;
}
.newpc-card h2{
    font-size:1.4rem;
    white-space:nowrap;
}
.console-card h2 {
    font-size:1.6rem;
    white-space:nowrap;
}
/* ========== PAGE HEADER (used on Services, About, etc.) ========== */
.page-header {
    padding: 70px 20px 50px;
    text-align: center;
    background: linear-gradient(180deg, #0d121c 0%, #10131a 100%);
    border-bottom: 1px solid #1e2636;
}

.page-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 42px);
    color: #ffffff;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.page-header p {
    color: #b9c5d8;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 50px 20px 40px;
    }
}
.card-front p {
    color:#b9c5d8;
    font-size:15px;
    line-height: 1.55;
    margin: 0 0 16px 0;
}
/* Force proper padding inside all service cards */
.service-card .card-front,
.service-card .card-back {
    padding: 28px 26px !important;
    box-sizing: border-box;
}

.service-card .service-title {
    margin-bottom: 14px;
}

.service-card .card-front p {
    margin: 0 0 14px 0;
}

.service-card .service-price {
    margin: 0 0 16px 0;
}
.card-back h2 {
    font-size: 1.2rem;
    margin: 0 0 14px 0;
    color: #00c3ff;
}

.card-back ul {
    margin: 0 0 16px 0;
    padding-left: 18px;
}

.card-back li {
    margin-bottom: 6px;
    color: #b9c5d8;
    font-size: 14px;
    line-height: 1.45;
}

.card-back .price-note {
    font-size: 13px;
    color: #8b95a8;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.card-back .service-contact {
    margin-bottom: 14px;
}

.card-back span {
    font-size: 0.8rem;
    color: #8b95a8;
}