/* Services 3D Experience - Cinematic v5.0 */

:root {
    --s-bg-color: #050607;
    --s-text-primary: #ffffff;
    --s-text-secondary: rgba(255, 255, 255, 0.65);
    --s-highlight: #b26e63;
    --s-accent: #5e748a;
    --s-glass: rgba(255, 255, 255, 0.03);
    --s-glass-border: rgba(255, 255, 255, 0.1);
    --s-glow: 0 0 40px rgba(178, 110, 99, 0.15);
}

body.services-3d-active {
    background: var(--s-bg-color);
    color: var(--s-text-primary);
    overflow-x: hidden;
}

#services-canvas-container {
    position: fixed;
    inset: 0;
    z-index: 1; /* Behind content but above some bg elements */
    pointer-events: none;
}

/* Watermark - More subtle and larger */
.s-watermark {
    position: fixed;
    font-size: 35vh;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    letter-spacing: -0.05em;
}

/* HUD Enhancements */
.s-hud {
    position: fixed;
    inset: 1.5rem;
    z-index: 100;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.s-hud__top-left, .s-hud__top-right, .s-hud__bottom-left, .s-hud__bottom-right {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--s-highlight);
}

.s-hud__top-left { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.s-hud__top-right { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.s-hud__bottom-left { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.s-hud__bottom-right { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Sections */
.s-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 6vw;
}

/* Hero - The Epic Entrance */
.s-hero {
    align-items: center;
    text-align: center;
    padding-top: 0;
}

.s-hero__content {
    max-width: 1100px;
}

.s-hero .s-title {
    font-size: clamp(3.5rem, 12vw, 10rem);
    line-height: 0.85;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
    filter: drop-shadow(0 0 20px rgba(178, 110, 99, 0.3));
}

.s-hero .s-title span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.4);
    background: linear-gradient(180deg, var(--s-highlight) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards - Floating Modules */
.s-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 4rem;
    width: 100%;
}

.s-card {
    background: rgba(10, 12, 14, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid var(--s-glass-border);
    padding: 4rem;
    border-radius: 2px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.s-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--s-highlight), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.s-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    border-color: var(--s-highlight);
    background: rgba(178, 110, 99, 0.05);
}

.s-card:hover::before {
    opacity: 1;
}

.s-card__icon {
    font-size: 3rem;
    color: var(--s-highlight);
    margin-bottom: 2.5rem;
    display: block;
    filter: drop-shadow(0 0 10px var(--s-highlight));
}

.s-card__eyebrow {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: var(--s-accent);
    margin-bottom: 1rem;
}

.s-card__title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.s-card__desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--s-text-secondary);
}

/* Metrics - Tactical Grid */
.s-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
}

.s-metric__value {
    font-size: 4rem;
    font-family: monospace;
    color: var(--s-highlight);
    line-height: 1;
}

/* Process Step Refinement */
.s-process-step__content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem;
    backdrop-filter: blur(30px);
    max-width: 900px;
}

.s-btn-glow {
    background: var(--s-highlight);
    border: none;
    padding: 1.5rem 4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.s-btn-glow:hover {
    transform: scale(1.05);
    background: #fff;
    color: var(--s-bg-color);
    box-shadow: 0 0 50px rgba(255,255,255,0.4);
}
