/* Agora Page Specific Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Override body for Agora page only */
body.page-template-page-agora {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: none;
    height: 100%;
}

html, body.page-template-page-agora {
    height: 100%;
    overflow: hidden; /* Prevents scrolling */
}

/* Hide WordPress default content on Agora page */
body.page-template-page-agora .site-main {
    display: none;
}

/* Universal custom cursor (desktop only) */
@media (hover: hover) and (pointer: fine) {
    body.page-template-page-agora * {
        cursor: none !important;
    }
}

/* Hide cursor elements on mobile */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .cursor-trail,
    .cursor-trail-2,
    .cursor-trail-3,
    .cursor-trail-4 {
        display: none !important;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    transform: translateZ(0);
}

.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    transform: translateZ(0);
}

.cursor-trail-2 {
    position: fixed;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    will-change: transform;
    transform: translateZ(0);
}

.cursor-trail-3 {
    position: fixed;
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9996;
    will-change: transform;
    transform: translateZ(0);
}

.cursor-trail-4 {
    position: fixed;
    width: 1px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    will-change: transform;
    transform: translateZ(0);
}

/* Loading state - hide everything initially */
body.page-template-page-agora.loading {
    overflow: hidden;
}

body.page-template-page-agora.loading * {
    pointer-events: none;
}

.loading .fade-in {
    opacity: 0;
}

/* Fade in animation for page load */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Buttons fade in first */
.nav-container {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* All elements start hidden with IDENTICAL timing */
.crosshair-horizontal, .crosshair-vertical, .crosshair-diagonal, .center-video, .crosshair-center, .wireframe-circle, .wireframe-oval {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

/* Manual direction control - no automatic animations */

/* Manual direction control - only changes during fade */
.diagonal-direction-1 .crosshair-diagonal {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.diagonal-direction-2 .crosshair-diagonal {
    transform: translate(-50%, -50%) rotate(45deg);
}

.circle-direction-1 .wireframe-circle {
    transform: translate(-50%, -50%) rotate(0deg) scaleX(1);
}

.circle-direction-2 .wireframe-circle {
    transform: translate(-50%, -50%) rotate(0deg) scaleX(-1);
}

.oval-direction-1 .wireframe-oval {
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
}

.oval-direction-2 .wireframe-oval {
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(-1);
}

/* Ensure all elements are hidden during loading - but allow individual reveals */
.loading .crosshair-horizontal,
.loading .crosshair-vertical,
.loading .crosshair-diagonal,
.loading .center-video,
.loading .crosshair-center {
    opacity: 0;
}

/* When loading is complete, fade in buttons first */
body:not(.loading) .nav-container {
    opacity: 1;
}

/* Ensure Vimeo iframe also fades in */
.loading .center-video iframe {
    opacity: 0;
}

body:not(.loading) .center-video iframe {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* Sequential fade-in for all elements - each line individually with higher specificity */
body.line1-ready .crosshair-horizontal {
    opacity: 1 !important;
}
body.line2-ready .crosshair-vertical {
    opacity: 1 !important;
}
body.line3-ready .crosshair-diagonal {
    opacity: 1 !important;
}
body.circle1-ready .crosshair-center {
    opacity: 1 !important;
}

body.circle1-ready .wireframe-circle,
body.circle1-ready .wireframe-oval {
    opacity: 1 !important;
}
body.video-ready .center-video {
    opacity: 1 !important;
}

/* Ensure Vimeo iframe also fades in */
.loading .center-video iframe {
    opacity: 0;
}


/* Crosshair Lines */
.crosshair {
    position: fixed;
    z-index: 1000;
    will-change: opacity, transform;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.crosshair-horizontal {
    top: 50%;
    left: 50%;
    width: 200%;
    height: 1.2px;
    background: repeating-linear-gradient(
        to right,
        #fff 0px,
        #fff 4.8px,
        transparent 4.8px,
        transparent 9.6px
    );
    transform: translate(-50%, -50%);
    animation: moveHorizontal 2s linear infinite;
    transition: opacity 1s ease-in-out;
}

.crosshair-horizontal:hover {
    opacity: 0;
}

.crosshair-vertical {
    left: 50%;
    top: 50%;
    width: 1.2px;
    height: 200%;
    background: repeating-linear-gradient(
        to bottom,
        #fff 0px,
        #fff 4.8px,
        transparent 4.8px,
        transparent 9.6px
    );
    transform: translate(-50%, -50%);
    animation: moveVertical 2s linear infinite, verticalDirection 10s step-start infinite 0s;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.crosshair-vertical:hover {
    opacity: 0;
}

.crosshair-diagonal {
    left: 50%;
    top: 50%;
    width: 200%;
    height: 1.2px;
    background: repeating-linear-gradient(
        to right,
        #fff 0px,
        #fff 4.8px,
        transparent 4.8px,
        transparent 9.6px
    );
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: moveDiagonal 2s linear infinite;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.crosshair-diagonal:hover {
    opacity: 0;
}

.crosshair-center {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    z-index: 1001;
    /* Removed synchronizedFade animation - handled by JavaScript */
    perspective: 2400px;
}

/* Wireframe circle - draws itself starting from vertical crosshair line */
.wireframe-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    animation: moveCircular 2s linear infinite;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.wireframe-circle:hover {
    opacity: 0;
}

.wireframe-circle circle {
    stroke-dasharray: 4.8 4.8;
    stroke-dashoffset: 0;
    animation: moveCircular 2s linear infinite;
}

/* Oval circle - rotates around diagonal axis for 3D effect */
.wireframe-oval {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: moveCircular 2s linear infinite;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.wireframe-oval:hover {
    opacity: 0;
}

.wireframe-oval ellipse {
    stroke-dasharray: 4.8 4.8;
    stroke-dashoffset: 0;
    animation: moveCircular 2s linear infinite;
}

/* Center Video */
.center-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 10;
    border-radius: 50%;
    overflow: hidden;
    /* Removed videoFade animation - handled by JavaScript */
}

.center-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 50%;
    transition: opacity 1s ease-in-out;
}

/* Video Fade Animation - Removed, handled by JavaScript */

/* Synchronized Fade Animation - Removed, handled by JavaScript */

/* Navigation Menu */
.nav-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.nav-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 12px;
    color: #fff;
    padding: 24px 40px;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 88px;
    position: relative;
    overflow: hidden;
    will-change: transform, background-color;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Removed glassy effects - ::before and ::after pseudo-elements */

.nav-button:hover,
.nav-button:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    color: #000;
}

/* Touch support for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-button:active {
        background-color: rgba(255, 255, 255, 0.9);
        border-color: #fff;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
        color: #000;
    }
}

.nav-button:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Back Arrow */
.back-arrow {
    position: fixed;
    top: calc(50% - 202px);
    left: calc(50% + 195px);
    transform: translateY(-50%) scale(0.8);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-arrow:hover,
.back-arrow:focus {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.back-arrow:hover svg,
.back-arrow:focus svg {
    color: #000;
}

/* Touch support for back arrow on mobile */
@media (hover: none) and (pointer: coarse) {
    .back-arrow:active {
        background-color: rgba(255, 255, 255, 0.9);
        transform: scale(1.1);
    }
    
    .back-arrow:active svg {
        color: #000;
    }
}

.back-arrow.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.back-arrow svg {
    color: #fff;
    width: 20px;
    height: 20px;
}

/* Button animations */
.nav-button.expandable {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.nav-button.expandable.show {
    opacity: 1;
    transform: scale(1);
    display: flex;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        padding: 20px;
        max-width: 100vw;
        max-height: 100vh;
        overflow: hidden;
    }
    
    /* Background elements scaled for mobile - 30% zoom out */
    .crosshair-horizontal {
        transform: translate(-50%, -50%) scale(0.7);
    }
    
    .crosshair-vertical {
        transform: translate(-50%, -50%) scale(0.7);
    }
    
    .crosshair-diagonal {
        transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
    }
    
    .crosshair-center {
        transform: translate(-50%, -50%) scale(0.7);
    }
    
    .wireframe-circle {
        transform: translate(-50%, -50%) scale(0.7);
    }
    
    .wireframe-oval {
        transform: translate(-50%, -50%) scale(0.7);
    }
    
    .nav-button {
        width: 260px;
        height: 78px;
        font-size: 26px;
        padding: 16px 26px;
        min-width: 208px;
    }
    
    .nav-menu {
        gap: 8px;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-row {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    
    .back-arrow {
        top: 32px;
        right: 20px;
        left: auto;
        transform: none;
        scale: 0.8;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 15px;
    }
    
    .nav-button {
        width: 208px;
        height: 65px;
        font-size: 21px;
        padding: 10px 21px;
        min-width: 182px;
    }
    
    .nav-menu {
        gap: 6px;
    }
    
    .nav-row {
        gap: 6px;
    }
    
    .back-arrow {
        top: 25px;
        right: 15px;
        scale: 0.7;
    }
}

@media (max-width: 360px) {
    .nav-button {
        width: 182px;
        height: 59px;
        font-size: 18px;
        padding: 8px 16px;
        min-width: 156px;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-row {
        gap: 4px;
    }
}

/* Stripe animation */
@keyframes moveStripes {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(4px);
    }
}

/* All missing animations from standalone HTML */
@keyframes moveHorizontal {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 9.6px 0;
    }
}

@keyframes moveVertical {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 9.6px;
    }
}

@keyframes moveDiagonal {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 9.6px 0;
    }
}

@keyframes verticalDirection {
    0% {
        transform: translate(-50%, -50%) scaleY(-1);
    }
    49.99% {
        transform: translate(-50%, -50%) scaleY(-1);
    }
    50% {
        transform: translate(-50%, -50%) scaleY(1);
    }
    99.99% {
        transform: translate(-50%, -50%) scaleY(1);
    }
    100% {
        transform: translate(-50%, -50%) scaleY(-1);
    }
}

@keyframes diagonalDirection {
    0% {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    49.99% {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    99.99% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

@keyframes circularDirection {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scaleX(1);
    }
    49.99% {
        transform: translate(-50%, -50%) rotate(0deg) scaleX(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(0deg) scaleX(-1);
    }
    99.99% {
        transform: translate(-50%, -50%) rotate(0deg) scaleX(-1);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scaleX(1);
    }
}

@keyframes ovalDirection {
    0% {
        transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
    }
    49.99% {
        transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg) scaleX(-1);
    }
    99.99% {
        transform: translate(-50%, -50%) rotate(45deg) scaleX(-1);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
    }
}

@keyframes moveCircular {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -9.6;
    }
}
