/* Coaching2100.com - Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0a0a0a;
    background: radial-gradient(ellipse at center, #0f0f0f 0%, #050505 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

/* Diamond Core Structure - FIXED ROTATION DIRECTION */
.diamond-core {
    position: relative;
    width: 500px;
    height: 500px;
    transform-style: preserve-3d;
    animation: rotateForward 30s linear infinite; /* CORRECTED: Forward rotation */
    margin: 150px;
}

/* Forward rotation animation */
@keyframes rotateForward {
    0% { transform: rotateY(0deg) rotateX(5deg); }
    100% { transform: rotateY(360deg) rotateX(5deg); } /* Positive rotation = forward */
}

/* Pause rotation on hover for better interaction */
.diamond-core:hover {
    animation-play-state: paused;
}

/* Central Q-RIX Coaching Core */
.quantum-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #fff 0%, #0bb1bb 30%, #42216b 70%);
    border-radius: 50%;
    box-shadow: 
        0 0 40px #0bb1bb,
        0 0 80px rgba(11, 177, 187, 0.4),
        inset 0 0 40px rgba(66, 33, 111, 0.3);
    animation: gentlePulse 4s ease-in-out infinite;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.quantum-core::after {
    content: "START\ACOACHING";
    white-space: pre;
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
}

@keyframes gentlePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Gateway Rings - More subtle */
.gateway-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid;
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: 0 0 15px currentColor;
}

.ring-1 {
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%) rotateX(90deg);
    border-color: rgba(11, 177, 187, 0.6);
    animation: ring1 10s ease-in-out infinite;
}

.ring-2 {
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%) rotateY(90deg);
    border-color: rgba(93, 193, 185, 0.4);
    animation: ring2 12s ease-in-out infinite;
}

.ring-3 {
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%) rotateZ(45deg) rotateX(45deg);
    border-color: rgba(66, 33, 111, 0.3);
    animation: ring3 14s ease-in-out infinite;
}

@keyframes ring1 {
    0%, 100% { transform: translate(-50%, -50%) rotateX(90deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotateX(90deg) scale(1.1); }
}

@keyframes ring2 {
    0%, 100% { transform: translate(-50%, -50%) rotateY(90deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotateY(90deg) scale(1.08); }
}

@keyframes ring3 {
    0%, 100% { transform: translate(-50%, -50%) rotateZ(45deg) rotateX(45deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotateZ(45deg) rotateX(45deg) scale(1.06); }
}

/* THINNER, More Elegant Coaching Nodes */
.coaching-node {
    position: absolute;
    width: 35px;  /* THINNER - reduced from 45px */
    height: 35px; /* THINNER - reduced from 45px */
    background: rgba(11, 177, 187, 0.08);
    border: 1px solid rgba(11, 177, 187, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px; /* Smaller text for thinner nodes */
    text-align: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    backdrop-filter: blur(3px);
    z-index: 10;
    box-shadow: 0 0 10px rgba(11, 177, 187, 0.15);
}

.coaching-node:hover {
    background: rgba(11, 177, 187, 0.15);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(11, 177, 187, 0.3);
    z-index: 50;
}

/* RIGHT-SIDE Panel - Slides out to the right for perfect readability */
.coaching-node.active {
    width: 420px;
    height: 320px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid #0bb1bb;
    box-shadow: 0 0 50px rgba(11, 177, 187, 0.6), 
                0 0 100px rgba(11, 177, 187, 0.2);
    z-index: 1000;
    font-size: 14px;
    animation: expandedPulse 3s ease-in-out infinite;
    /* FIXED POSITION - Always slides to right side of screen */
    position: fixed !important;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) !important;
    left: auto !important;
}

@keyframes expandedPulse {
    0%, 100% { 
        border-color: #0bb1bb;
        box-shadow: 0 0 50px rgba(11, 177, 187, 0.6), 
                   0 0 100px rgba(11, 177, 187, 0.2);
    }
    50% { 
        border-color: #5dc1b9;
        box-shadow: 0 0 70px rgba(11, 177, 187, 0.8), 
                   0 0 120px rgba(11, 177, 187, 0.4);
    }
}

/* Interface Content - Better organized */
.coaching-content {
    display: none;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    overflow-y: auto;
}

.coaching-node.active .coaching-content {
    display: block;
}

.coaching-label {
    color: #0bb1bb;
    font-size: 7px; /* Smaller for thinner nodes */
    text-align: center;
    pointer-events: none;
    font-weight: 500;
    /* TEXT FLIP LOGIC - Always readable from viewer perspective */
    transform: rotateY(0deg);
    transition: transform 0.3s ease;
}

/* Flip text when node is on back side (rotated more than 90°) */
.coaching-node[data-back-side="true"] .coaching-label {
    transform: rotateY(180deg);
}

.coaching-node.active .coaching-label {
    display: none;
}

.content-header {
    font-size: 1.3rem;
    color: #0bb1bb;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(11, 177, 187, 0.3);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: #0bb1bb;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(11, 177, 187, 0.2);
    transform: scale(1.1);
}

.coaching-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.stat-box {
    background: rgba(11, 177, 187, 0.1);
    border: 1px solid rgba(11, 177, 187, 0.2);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    color: #0bb1bb;
    font-weight: 300;
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.2rem;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.action-btn {
    flex: 1;
    background: linear-gradient(135deg, #0bb1bb, #0998a3);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 177, 187, 0.3);
}

.action-btn.secondary {
    background: rgba(11, 177, 187, 0.1);
    border: 1px solid rgba(11, 177, 187, 0.3);
    color: #0bb1bb;
}

/* Particles - More subtle */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #0bb1bb;
    border-radius: 50%;
    box-shadow: 0 0 8px #0bb1bb;
}

/* Top branding */
.top-brand {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    text-align: center;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 200;
    background: linear-gradient(135deg, #0bb1bb, #5dc1b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    color: #888;
    font-size: 1rem;
    font-weight: 300;
}

/* Bottom info panel */
.bottom-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(11, 177, 187, 0.2);
    backdrop-filter: blur(10px);
}

.pricing-info {
    color: #0bb1bb;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.features-list {
    color: #ccc;
    font-size: 0.9rem;
}

/* Floating words - more coaching focused */
.floating-word {
    position: absolute;
    color: rgba(11, 177, 187, 0.8);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transition: all 1s ease;
    white-space: nowrap;
    transform: scale(0.8) rotate(-3deg);
}

.floating-word.visible {
    opacity: 1;
    animation: floatUpCoaching 6s ease-out forwards;
}

@keyframes floatUpCoaching {
    0% {
        transform: translateY(0) scale(0.8) rotate(-3deg);
        opacity: 0;
    }
    10% {
        transform: translateY(-10px) scale(1) rotate(1deg);
        opacity: 1;
    }
    90% {
        transform: translateY(-50px) scale(1) rotate(-1deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-70px) scale(0.9) rotate(2deg);
        opacity: 0;
    }
}

/* Footer container positioning */
#footer-container {
    width: 100%;
    margin-top: auto;
    z-index: 300;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .diamond-core {
        width: 400px;
        height: 400px;
        margin: 100px;
    }
    
    .coaching-node.active {
        width: 320px;
        height: 280px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
}
