/* ───────────────────────────────────────────────────────────────
   0. SERVICES HERO (Grid & Glow Orb)
───────────────────────────────────────────────────────────────── */
/* ── Services Hero ── */
.services-hero {
  position: relative;
  min-height: 100svh; /* ΑΛΛΑΓΗ ΕΔΩ: από 60vh σε 100svh για full screen */
  display: flex;
  flex-direction: column; /* Προσθήκη για σωστή στοίχιση */
  justify-content: center; /* Προσθήκη για κάθετο κεντράρισμα */
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
  width: 100%;
}

/* decorative grid lines */
.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* radial fade over grid */
.services-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, var(--bg-base) 100%);
    pointer-events: none;
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 24px;
}

.services-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.4em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(16px);
    animation: svcFadeUp 0.6s cubic-bezier(.16,1,.3,1) 0.3s forwards;
}
.services-hero-eyebrow::before,
.services-hero-eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--teal);
}

.services-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 10rem);
    line-height: 0.88;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(24px);
    animation: svcFadeUp 0.7s cubic-bezier(.16,1,.3,1) 0.5s forwards;
}

.services-hero-title em {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 300;
    font-size: 0.5em;
    color: var(--text-muted);
    display: block;
    letter-spacing: 0;
    margin: 8px 0;
}

.services-hero-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(16px);
    animation: svcFadeUp 0.6s cubic-bezier(.16,1,.3,1) 0.7s forwards;
}

/* teal glow orb behind the title */
.hero-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,202,183,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

@keyframes svcFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .services-hero { min-height: 100vh; padding-top: 120px; }
}

/* ═══════════════════════════════════════════════════════════════
   FLOWGEEK — services.css
   Specific styles for the Services Page layouts
   ═══════════════════════════════════════════════════════════════ */

.section-padding {
    padding: 100px 0;
}

/* ───────────────────────────────────────────────────────────────
   1. NEXUS SHOWCASE (Interactive Hero)
───────────────────────────────────────────────────────────────── */
.nexus-unified-card {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.nexus-grid-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 400px;
}

/* Sidebar Menu */
.nexus-sidebar {
    padding: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border);
}
.nexus-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.nexus-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nexus-option:hover {
    background: rgba(255, 255, 255, 0.03);
}
.nexus-option.active {
    background: var(--teal-faint);
    border-color: var(--border-teal);
    box-shadow: var(--shadow-teal);
}
.nexus-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    margin-top: 6px;
    flex-shrink: 0;
    transition: all 0.3s;
}
.nexus-option.active .nexus-dot {
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
}
.nexus-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.nexus-info p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Main Display Screen */
.nexus-main-display {
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.nexus-screen {
    background: rgba(7, 7, 10, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.nexus-window-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.nexus-controls {
    display: flex;
    gap: 6px;
}
.nexus-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.nexus-controls span:nth-child(1) { background: #ff5f57; }
.nexus-controls span:nth-child(2) { background: #ffbd2e; }
.nexus-controls span:nth-child(3) { background: #28c840; }

.nexus-url {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0 auto;
    padding-right: 40px; /* Offset for perfect visual center */
    letter-spacing: 0.05em;
}

.nexus-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}
.nexus-main-icon {
    font-size: 3.5rem;
    color: var(--teal);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px rgba(99, 202, 183, 0.4));
}

/* Compatibility Classes for HTML dynamically injected by main.js */
.font-headers { font-family: var(--font-display); }
.text-2xl { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
.font-body { font-family: var(--font-body); }
.text-gray-300 { color: var(--text-secondary); line-height: 1.6; }
.mt-4 { margin-top: 1rem; }
.max-w-sm { max-width: 400px; }
.mx-auto { margin-left: auto; margin-right: auto; }

@keyframes slide-in {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────────────────────────────────────────
   2. SERVICES GRID & FILTERS
───────────────────────────────────────────────────────────────── */
.services-filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* Overriding default ghost button slightly for filters */
.filter-btn {
    border-radius: 100px;
    padding: 12px 28px;
    cursor: pointer;
}
.filter-btn i {
    margin-right: 8px;
    color: inherit;
}
.filter-btn.active {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
    color: var(--bg-base) !important;
    box-shadow: 0 0 20px rgba(99, 202, 183, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--teal-faint);
    border: 1px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--teal);
    margin: 0 auto 24px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}
.service-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.service-list li i {
    color: var(--teal);
    font-size: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ───────────────────────────────────────────────────────────────
   3. BLUEPRINT GRID
───────────────────────────────────────────────────────────────── */
.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 32px 20px;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal-glow);
    line-height: 1;
    margin-bottom: 16px;
}

.step-icon {
    width: 48px;
    height: 48px;
    color: var(--teal);
    margin-bottom: 24px;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ───────────────────────────────────────────────────────────────
   4. RESPONSIVE DESIGN
───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nexus-grid-layout { grid-template-columns: 1fr; }
    .nexus-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
    .blueprint-grid { grid-template-columns: repeat(2, 1fr); }
    /* Make the 5th item span 2 columns to center it nicely */
    .step-card:nth-child(5) { grid-column: span 2; }
}

@media (max-width: 768px) {
    .blueprint-grid { grid-template-columns: 1fr; }
    .step-card:nth-child(5) { grid-column: auto; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────────────────────
   ISO CUBE GRID (Services Hero Background)
───────────────────────────────────────────────────────────────── */
.iso-grid-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none; /* Allows you to click the text above it */
    opacity: 0.6; /* Dims the grid slightly so the text stays readable */
}

.iso-svg {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 600px;
}

/* Coloring the individual faces of the cubes */
.cube-top {
    fill: var(--teal-dim);
    stroke: var(--border-teal);
    stroke-width: 1;
    transition: fill 0.3s, stroke 0.3s;
}
.cube-left {
    fill: rgba(0, 0, 0, 0.4);
    stroke: var(--border);
    stroke-width: 1;
}
.cube-right {
    fill: rgba(0, 0, 0, 0.6);
    stroke: var(--border);
    stroke-width: 1;
}

/* The glowing center cube */
.iso-cube--featured .cube-top {
    fill: var(--teal);
    filter: url(#glow-filter);
    stroke: #fff;
}