/* === SERVICES PAGE COMPLETE STYLES === */
/* Ez a fájl tartalmazza az ÖSSZES szükséges stílust a szolgáltatások oldalhoz */
/* Header és footer stílusok: menu.css */
/* Ez az oldal önállóan működik, nem kell hozzá a style.css */

/* --- BETŰTÍPUSOK --- */
@font-face {
    font-family: 'DIN Pro';
    src: url('../fonts/DIN Pro 400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Pro';
    src: url('../fonts/DIN Pro Bold 700.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Pro Condensed';
    src: url('../fonts/DIN Pro Condensed Regular 400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Pro Condensed Bold';
    src: url('../fonts/DIN Pro Condensed Bold 700.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- CSS VÁLTOZÓK --- */
:root {
    --lime: #ecffad;
    --lime-strong: #d1fa31;
    --lilac: #d8cae4;
    --lilac-strong: #9d81fc;
    --rose: #ff71bd;
    --rose-soft: #ffcde7;
    --pink: var(--lilac);
    --pink-strong: var(--lilac-strong);
    --purple: var(--lime);
    --deep: #1b1537;
    --surface: #14102d;
    --ink: #050505;
    --text-light: rgba(255, 255, 255, 0.92);
    --text-dim: rgba(216, 202, 228, 0.68);
    --panel: rgba(216, 202, 228, 0.08);
    --panel-strong: rgba(157, 129, 252, 0.18);
    --stroke: rgba(216, 202, 228, 0.22);
    --font-display: 'DIN Pro', sans-serif;
    --font-tech: 'DIN Pro Condensed', sans-serif;
    --font-subtitle: 'DIN Pro Condensed Bold', sans-serif;
    --gutter: 2rem;
    --radius-sm: 6px;
    --radius-md: 7px;
    --radius-lg: 7px;
    --radius-pill: 999px;
}

/* --- ALAPOK --- */
::selection {
    background-color: var(--lime-strong);
    color: var(--deep);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    font-family: var(--font-tech);
    font-weight: 400;
    overflow-x: hidden;
}

body {
    background-color: var(--deep);
    background-image: radial-gradient(circle at top right, rgba(157, 129, 252, 0.16), transparent 34%), linear-gradient(180deg, #211a43 0%, var(--deep) 58%, var(--surface) 100%);
    color: var(--text-light);
    font-family: var(--font-tech);
    font-weight: 400;
    min-height: 100vh;
    position: relative;
}

/* Zaj textúra és háttér glow */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 99;
}
.ambient-glow {
    position: fixed; top: -20%; right: -20%; width: 80vw; height: 80vw;
    background: radial-gradient(circle, var(--purple) 0%, transparent 60%);
    opacity: 0.4; filter: blur(80px); z-index: -1;
}

/* --- OLDAL FEJLÉC --- */
.page-header {
    padding: clamp(2rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 6vw, 4rem);
    text-align: center;
    margin-top: 70px;
}
.sub-label {
    display: block; 
    font-family: var(--font-tech); 
    color: var(--lime);
    margin-bottom: 1rem; 
    letter-spacing: clamp(1px, 1vw, 2px);
    font-size: clamp(0.7rem, 1vw, 0.9rem);
}
.page-header h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    margin: 0; 
    line-height: 1; 
    text-transform: uppercase;
    background: var(--lime);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
}
.intro-text {
    font-family: var(--font-subtitle);
    max-width: 600px; 
    margin: 1.5rem auto 0;
    color: rgba(255,255,255,0.6); 
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* --- SZOLGÁLTATÁS RÁCS (GRID) --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: clamp(1.5rem, 6vw, 3rem) clamp(1rem, 4vw, 4rem);
    max-width: 1800px;
    margin: 0 auto;
}

/* Reszponzív átállás */
@media (max-width: 1400px) {
    .services-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .services-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        padding: clamp(1rem, 4vw, 2rem);
        gap: clamp(1rem, 3vw, 1.5rem);
    }

    .page-header {
        padding: clamp(1.5rem, 6vw, 4rem) 1rem clamp(1.5rem, 4vw, 3rem);
    }

    .page-header h1 {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .page-header {
        padding: 1.5rem 1rem;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: clamp(1.3rem, 4.5vw, 2.2rem);
    }

    .intro-text {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .service-card {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .services-container {
        grid-template-columns: 1fr;
        padding: 1rem 0.8rem;
        gap: 1rem;
    }

    .page-header {
        padding: 1.2rem 0.8rem;
    }

    .service-card {
        height: 200px;
    }

    .card-front {
        padding: 1rem;
    }

    .icon-zone lottie-player {
        width: 60px;
        height: 60px;
    }

    .card-text h3 {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }
}

@media (max-width: 480px) {
    .services-container {
        grid-template-columns: 1fr;
        padding: 0.8rem 0.6rem;
        gap: 0.8rem;
    }

    .page-header {
        padding: 1rem 0.6rem;
    }

    .page-header h1 {
        font-size: clamp(1rem, 4vw, 1.6rem);
    }

    .sub-label {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .intro-text {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }

    .service-card {
        height: 180px;
    }

    .card-front {
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .card-text h3 {
        font-size: 0.9rem;
    }
}

/* --- KÁRTYA STÍLUS (Szögletes & Tech) --- */
.service-card {
    background-color: transparent;
    height: 280px; /* Fix magasság - egyenlő mind az előlap, mind a hátlap */
    perspective: 1000px; /* A 3D forgatáshoz kell */
    cursor: pointer;
    position: relative;
}

.card-click-target {
    position: absolute;
    inset: 0;
    z-index: 8;
    border-radius: var(--radius-sm);
    display: block;
}

.details-btn {
    position: relative;
    z-index: 9;
}

/* A forgó belső rész */
.card-inner {
    position: relative;
    width: 100%; 
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); /* Snappy animáció */
    transform-style: preserve-3d;
}

/* Hover effekt: Forgatás */
.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Közös stílus az elő- és hátlapnak */
.card-face {
    position: absolute;
    inset: 0;
    width: 100%; 
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex; 
    flex-direction: column;
}

/* --- ELŐLAP (FRONT) --- */
.card-front {
    background-color: var(--panel);
    border: 1px solid var(--stroke);
    justify-content: space-between;
    padding: 1.5rem;
    transition: border-color 0.3s;
    gap: 0.8rem;
}

.service-card:hover .card-front {
    border-color: var(--pink-strong);
    box-shadow: 0 20px 40px rgba(20, 16, 45, 0.26);
}

/* Tech Dekoráció felül */
.card-top-deco {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.service-id {
    font-family: var(--font-tech); 
    color: rgba(255,255,255,0.3); 
    font-size: 0.8rem;
}
.status-dot {
    width: 6px; 
    height: 6px; 
    background-color: var(--lime-strong);
    border-radius: 50%; 
    box-shadow: 0 0 8px var(--lime-strong);
}

/* Ikon / Lottie zóna */
.icon-zone {
    flex-grow: 1;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 1rem;
}
.icon-zone lottie-player {
    width: 80px; 
    height: 80px;
    opacity: 0.9; 
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

/* Szöveg */
.card-text h3 {
    margin: 0; 
    font-size: 1.4rem; 
    text-transform: uppercase;
    text-align: left; 
    line-height: 1.1; 
    color: white;
    font-family: var(--font-display);
}
.tech-line {
    width: 40px; 
    height: 2px; 
    background: var(--stroke); 
    margin-top: 10px;
}

.hover-hint {
    font-family: var(--font-tech); 
    font-size: 0.7rem; 
    color: var(--pink);
    text-align: right; 
    opacity: 0; 
    transform: translateY(10px);
    transition: 0.3s;
}
.service-card:hover .hover-hint { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- HÁTLAP (BACK) --- */
.card-back {
    background-color: #000;
    color: white;
    transform: rotateY(180deg);
    position: relative;
    border: 1px solid var(--pink);
}

.back-bg {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover; 
    background-position: center;
    filter: grayscale(100%) brightness(0.6);
    opacity: 1; 
    z-index: 1;
}

.back-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(27, 21, 55, 0.4) 0%,
        rgba(157, 129, 252, 0.3) 50%, 
        rgba(27, 21, 55, 0.6) 100%);
    z-index: 2;
}

.back-content {
    position: relative; 
    z-index: 3;
    height: 100%;
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center; 
    padding: 2rem 1.5rem;
    gap: 0.8rem;
}

.back-content h3 {
    font-size: 1.5rem; 
    text-transform: uppercase; 
    margin: 0;
    text-shadow: 0 0 10px black;
    font-family: var(--font-display);
}

.back-content p {
    font-family: var(--font-tech); 
    font-size: 1rem; 
    margin: 0;
    color: rgba(255,255,255,0.85);
}

.details-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--lime-strong);
    color: white; 
    text-decoration: none;
    font-family: var(--font-tech); 
    font-size: 1rem;
    background: rgba(236, 255, 173, 0.08);
    transition: 0.3s;
    margin-top: 0.5rem;
}
.details-btn:hover {
    background: var(--lime-strong); 
    color: black;
    box-shadow: 0 0 18px rgba(209, 250, 49, 0.24);
}
