/* ══════════════════════════════════════════════════════════
   Home Page — Cerberus Development
   ══════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 191, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

.hero-glow {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: hero-pulse 8s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-meta-item i {
    color: var(--accent);
}

.hero-meta-item a {
    color: var(--text-muted);
}

.hero-meta-item a:hover {
    color: var(--accent);
}

.hero-3d-wrap {
    position: relative;
    max-width: 560px;
    min-height: 520px;
    margin-left: auto;
    transform: translateY(-28px);
    perspective: 1400px;
}

.hero-model-viewer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero-model-viewer.is-active {
    opacity: 1;
}

.hero-model-viewer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-3d-fallback {
    transition: opacity 0.3s ease;
}

.hero-3d-fallback.is-hidden {
    opacity: 0;
}

.pc-3d-scene {
    position: relative;
    width: 100%;
    min-height: 520px;
    transform-style: preserve-3d;
}

.workstation-3d {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 420px;
    height: 360px;
    transform-style: preserve-3d;
    transform-origin: 68% 58%;
    animation: workstation-spin 24s linear infinite;
}

.monitor-3d {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 260px;
    height: 170px;
    transform: translateZ(10px) rotateY(-12deg) rotateX(6deg);
}

.monitor-screen {
    position: absolute;
    inset: 0;
    border-radius: 0.95rem;
    border: 1px solid rgba(0, 191, 255, 0.34);
    background:
        linear-gradient(125deg, rgba(0, 191, 255, 0.22) 0%, rgba(0, 191, 255, 0.03) 40%, rgba(8, 10, 17, 0.86) 100%),
        repeating-linear-gradient(
            to bottom,
            rgba(143, 171, 255, 0.18) 0,
            rgba(143, 171, 255, 0.18) 2px,
            transparent 2px,
            transparent 6px
        );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.44),
        inset 0 0 22px rgba(0, 191, 255, 0.15);
    overflow: hidden;
}

.monitor-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
}

.monitor-stand-neck {
    position: absolute;
    width: 22px;
    height: 62px;
    left: 50%;
    bottom: -48px;
    transform: translateX(-50%);
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 191, 255, 0.2);
    background: linear-gradient(160deg, #1a1d29 0%, #0e1119 100%);
}

.monitor-stand-base {
    position: absolute;
    width: 124px;
    height: 16px;
    left: 50%;
    bottom: -64px;
    transform: translateX(-50%);
    border-radius: 999px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    background: linear-gradient(160deg, #1f2330 0%, #11131b 100%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.pc-3d {
    position: absolute;
    top: 48px;
    right: 16px;
    width: 190px;
    height: 292px;
    transform-style: preserve-3d;
    transform: rotateY(8deg);
}

.pc-face {
    position: absolute;
    border: 1px solid rgba(0, 191, 255, 0.28);
    background: linear-gradient(155deg, #181a24 0%, #10121a 100%);
    box-shadow: inset 0 0 24px rgba(0, 191, 255, 0.05);
}

.pc-front,
.pc-back {
    width: 190px;
    height: 292px;
}

.pc-front {
    transform: translateZ(40px);
}

.pc-back {
    transform: rotateY(180deg) translateZ(40px);
}

.pc-right,
.pc-left {
    width: 80px;
    height: 292px;
    left: 55px;
}

.pc-right {
    transform: rotateY(90deg) translateZ(95px);
}

.pc-left {
    transform: rotateY(-90deg) translateZ(95px);
}

.pc-top,
.pc-bottom {
    width: 190px;
    height: 80px;
    top: 106px;
}

.pc-top {
    transform: rotateX(90deg) translateZ(146px);
}

.pc-bottom {
    transform: rotateX(-90deg) translateZ(146px);
}

.pc-power-dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00bfff;
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.85);
}

.pc-drive-bay {
    position: absolute;
    top: 46px;
    right: 16px;
    width: 34px;
    height: 6px;
    border-radius: 4px;
    background: rgba(160, 170, 195, 0.55);
}

.pc-front-panel {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 96px;
    height: 250px;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 191, 255, 0.16);
    background: linear-gradient(180deg, rgba(24, 29, 41, 0.85) 0%, rgba(13, 17, 25, 0.45) 100%);
}

.pc-vent {
    position: absolute;
    left: 20px;
    bottom: 28px;
    width: 82px;
    height: 102px;
    border-radius: 0.35rem;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(92, 102, 126, 0.55) 0,
        rgba(92, 102, 126, 0.55) 2px,
        transparent 2px,
        transparent 6px
    );
}

.desk-slab {
    position: absolute;
    width: 318px;
    height: 12px;
    right: 18px;
    bottom: 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 191, 255, 0.18);
    background: linear-gradient(90deg, rgba(27, 33, 47, 0.9) 0%, rgba(13, 18, 27, 0.9) 100%);
    transform: translateZ(-10px) rotateX(70deg);
}

.pc-floor-glow {
    position: absolute;
    width: 310px;
    height: 64px;
    right: 8px;
    bottom: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.34) 0%, rgba(0, 191, 255, 0.03) 68%, transparent 100%);
    filter: blur(2px);
    animation: floor-pulse 6s ease-in-out infinite alternate;
}

.scene-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.26) 0%, rgba(0, 191, 255, 0.03) 58%, transparent 100%);
    pointer-events: none;
}

.orb-a {
    width: 120px;
    height: 120px;
    top: -8px;
    right: 110px;
    animation: orb-drift 8s ease-in-out infinite;
}

.orb-b {
    width: 82px;
    height: 82px;
    top: 132px;
    left: 8px;
    animation: orb-drift 10s ease-in-out infinite reverse;
}

.orb-c {
    width: 54px;
    height: 54px;
    right: 10px;
    bottom: 96px;
    animation: orb-drift 7.5s ease-in-out infinite;
}

@keyframes workstation-spin {
    0% { transform: rotateX(-8deg) rotateY(-4deg); }
    50% { transform: rotateX(-7deg) rotateY(10deg); }
    100% { transform: rotateX(-8deg) rotateY(356deg); }
}

@keyframes floor-pulse {
    0% { opacity: 0.55; transform: scale(0.95); }
    100% { opacity: 0.95; transform: scale(1.05); }
}

@keyframes orb-drift {
    0% { transform: translateY(0); opacity: 0.25; }
    50% { transform: translateY(-10px); opacity: 0.6; }
    100% { transform: translateY(0); opacity: 0.25; }
}

/* ── Service Cards ──────────────────────────────────────── */
.service-card {
    color: var(--text-primary);
}

.service-card h3 {
    transition: color var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--accent);
}

.service-card p {
    color: var(--text-secondary);
}

/* ── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
}

.testimonial-card blockquote p {
    color: var(--text-primary);
}

.carousel-indicators {
    position: relative;
    margin-top: 2rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    opacity: 0.5;
}

.carousel-indicators button.active {
    background: var(--accent);
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.carousel-control-prev { left: -24px; }
.carousel-control-next { right: -24px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    border-color: var(--accent);
}

/* ── CTA Card ───────────────────────────────────────────── */
.cta-card {
    border: 1px solid var(--border-accent);
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.05) 0%, var(--bg-glass) 100%);
}

/* ── Service Area Cards ─────────────────────────────────── */
.service-area-card {
    border: 1px solid var(--border-accent);
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.04) 0%, var(--bg-glass) 100%);
    transition: all 0.3s ease;
    color: inherit;
}

.service-area-card:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.08) 0%, rgba(0, 191, 255, 0.04) 100%);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 191, 255, 0.15);
}

.service-area-card h3 {
    color: #fff;
    font-weight: 600;
}

.service-area-card p {
    color: #aaa;
    font-size: 0.9rem;
}

.service-area-card:hover p {
    color: #bbb;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.8rem; }
    .hero-section { min-height: auto; padding: 90px 0 40px; }
    .carousel-control-prev,
    .carousel-control-next { display: none; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2.2rem; }
    .hero-meta { flex-direction: column; gap: 0.75rem; }
    .stats-grid { gap: 1rem; }
    .stat-number { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .workstation-3d {
        animation: none;
        transform: rotateX(-8deg) rotateY(25deg);
    }

    .pc-floor-glow,
    .scene-orb {
        animation: none;
    }
}
