/* ============================================
   HELL GYM - SPLIT SCREEN LANDING PAGE
   Cehennem Temalı Premium Tasarım
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --hell-black: #0a0a0a;
    --hell-dark: #111111;
    --hell-red: #e01f1f;
    --hell-crimson: #b91c1c;
    --hell-orange: #f97316;
    --hell-amber: #fbbf24;
    --hell-ember: #ff4500;
    --hell-lava: #cc3300;
    --hell-ash: #1a1a1a;
    --hell-smoke: #2a2a2a;
    --hell-gray: #888888;
    --hell-white: #f5f5f5;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--hell-black);
    color: var(--hell-white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Ember Particle Canvas --- */
#ember-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Split Container --- */
.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 2;
}

/* --- Split Panel (Common) --- */
.split-panel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.split-panel:hover {
    flex: 1.15;
}

.split-panel:hover ~ .split-panel,
.split-panel:not(:hover) {
    /* Other panel shrinks */
}

/* Panel Overlay */
.panel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: var(--transition-smooth);
}

.left-panel .panel-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(30, 10, 10, 0.85) 50%,
        rgba(60, 15, 15, 0.78) 100%
    );
}

.right-panel .panel-overlay {
    background: linear-gradient(
        225deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(30, 10, 10, 0.85) 50%,
        rgba(60, 15, 15, 0.78) 100%
    );
}

.left-panel:hover .panel-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.80) 0%,
        rgba(60, 10, 10, 0.70) 50%,
        rgba(120, 20, 20, 0.55) 100%
    );
}

.right-panel:hover .panel-overlay {
    background: linear-gradient(
        225deg,
        rgba(10, 10, 10, 0.80) 0%,
        rgba(60, 10, 10, 0.70) 50%,
        rgba(120, 20, 20, 0.55) 100%
    );
}

/* Panel Smoke Effect */
.panel-smoke {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.08;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 69, 0, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(204, 51, 0, 0.2) 0%, transparent 50%);
    transition: opacity 0.6s ease;
}

.split-panel:hover .panel-smoke {
    opacity: 0.2;
    animation: smoke-drift 4s ease-in-out infinite;
}

@keyframes smoke-drift {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Panel Content */
.panel-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: translateY(0);
    transition: var(--transition-smooth);
}

.split-panel:hover .panel-content {
    transform: translateY(-10px);
}

/* Branch Logo */
.branch-logo {
    width: 280px;
    max-width: 80%;
    height: auto;
    filter: brightness(0.9) drop-shadow(0 0 10px rgba(224, 31, 31, 0.15));
    transition: var(--transition-smooth);
}

.split-panel:hover .branch-logo {
    filter: brightness(1.1) drop-shadow(0 0 30px rgba(224, 31, 31, 0.5));
    transform: scale(1.05);
}

/* Branch Divider */
.branch-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hell-red), var(--hell-orange), var(--hell-red), transparent);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.split-panel:hover .branch-divider {
    width: 100px;
    box-shadow: 0 0 15px rgba(224, 31, 31, 0.5);
}

/* Branch Tagline */
.branch-tagline {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.4em;
    color: rgba(245, 245, 245, 0.5);
    transition: var(--transition-smooth);
}

.split-panel:hover .branch-tagline {
    color: rgba(245, 245, 245, 0.9);
    letter-spacing: 0.6em;
}

/* CTA Button */
.branch-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border: 1px solid rgba(224, 31, 31, 0.3);
    border-radius: 50px;
    background: rgba(224, 31, 31, 0.05);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.split-panel:hover .branch-cta {
    opacity: 1;
    transform: translateY(0);
}

.branch-cta:hover {
    background: rgba(224, 31, 31, 0.2);
    border-color: var(--hell-red);
    box-shadow: 0 0 30px rgba(224, 31, 31, 0.3);
}

.cta-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--hell-white);
}

.cta-arrow {
    color: var(--hell-red);
    transition: transform 0.3s ease;
}

.split-panel:hover .cta-arrow {
    animation: arrow-pulse 1.5s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

/* Lava Glow Effect */
.lava-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--hell-ember) 20%, 
        var(--hell-orange) 40%,
        var(--hell-amber) 50%,
        var(--hell-orange) 60%,
        var(--hell-ember) 80%,
        transparent 100%
    );
    opacity: 0;
    transition: var(--transition-smooth);
    box-shadow: 
        0 0 20px rgba(255, 69, 0, 0.6),
        0 0 60px rgba(255, 69, 0, 0.3);
}

.split-panel:hover .lava-glow {
    opacity: 1;
    height: 6px;
    animation: lava-flow 3s ease-in-out infinite;
}

@keyframes lava-flow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.6), 0 0 60px rgba(255, 69, 0, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 40px rgba(255, 69, 0, 0.8), 0 0 100px rgba(255, 69, 0, 0.5);
    }
}

/* --- Center Logo --- */
.center-logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    pointer-events: none;
}

.center-logo {
    width: 170px;
    height: auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0 30px rgba(224, 31, 31, 0.5))
            drop-shadow(0 0 60px rgba(255, 69, 0, 0.3));
    animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}


.center-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 31, 31, 0.15) 0%, transparent 70%);
    z-index: 0;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.8);
        opacity: 0;
    }
}

/* --- Center Logo VANISH on panel hover (triggered via JS) --- */

/* VANISHING — hellfire combustion */
.center-logo-wrapper.vanishing {
    animation: hellfire-vanish 0.7s ease-in forwards;
    pointer-events: none;
}

@keyframes hellfire-vanish {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 20px rgba(224, 31, 31, 0.3));
    }
    25% {
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
        opacity: 1;
        filter: brightness(2.5) drop-shadow(0 0 60px rgba(255, 69, 0, 0.9)) 
                drop-shadow(0 0 120px rgba(251, 191, 36, 0.6));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5) rotate(-8deg);
        opacity: 0.7;
        filter: brightness(4) drop-shadow(0 0 80px rgba(255, 200, 0, 1));
    }
    75% {
        transform: translate(-50%, -50%) scale(0.4) rotate(15deg);
        opacity: 0.3;
        filter: brightness(3) drop-shadow(0 0 40px rgba(224, 31, 31, 0.5));
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(30deg);
        opacity: 0;
        filter: brightness(1);
    }
}

/* Hide rings and pulse instantly during vanish */
.center-logo-wrapper.vanishing .center-pulse {
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* RETURNING — materialize from embers */
.center-logo-wrapper.returning {
    animation: hellfire-return 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes hellfire-return {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-20deg);
        opacity: 0;
        filter: brightness(3) drop-shadow(0 0 60px rgba(255, 69, 0, 0.8));
    }
    30% {
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
        opacity: 0.4;
        filter: brightness(2) drop-shadow(0 0 40px rgba(224, 31, 31, 0.6));
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1) rotate(3deg);
        opacity: 0.9;
        filter: brightness(1.3) drop-shadow(0 0 30px rgba(224, 31, 31, 0.4));
    }
    80% {
        transform: translate(-50%, -50%) scale(0.95) rotate(-1deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 0px transparent);
    }
}

/* Pulse fades back in during return */
.center-logo-wrapper.returning .center-pulse {
    opacity: 1;
    transition: opacity 0.5s ease 0.3s;
}

/* --- Vertical Divider --- */
.vertical-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    z-index: 5;
    overflow: hidden;
}

.vertical-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(224, 31, 31, 0.1) 15%,
        rgba(224, 31, 31, 0.3) 35%,
        transparent 48%,
        transparent 52%,
        rgba(224, 31, 31, 0.3) 65%,
        rgba(224, 31, 31, 0.1) 85%,
        transparent 100%
    );
}

.divider-flame {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--hell-amber), var(--hell-orange), var(--hell-red), transparent);
    border-radius: 2px;
    animation: flame-drop 3s ease-in infinite;
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

@keyframes flame-drop {
    0% { 
        top: -30px;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% { 
        top: 100%;
        opacity: 0;
    }
}

/* --- Bottom Bar --- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    padding: 12px;
    background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.9));
    pointer-events: auto;
}

.bottom-bar p {
    font-size: 0.72rem;
    color: rgba(245, 245, 245, 0.4);
    letter-spacing: 0.15em;
    font-weight: 300;
}

.bottom-bar .designer-link {
    color: #ff3b30;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bottom-bar .designer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.8);
}

/* --- Page Load Animation --- */
@keyframes page-reveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.split-container {
    animation: page-reveal 1.2s ease-out;
}

.left-panel .panel-content {
    animation: slide-in-left 1s ease-out 0.3s both;
}

.right-panel .panel-content {
    animation: slide-in-right 1s ease-out 0.3s both;
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.center-logo-wrapper {
    animation: center-logo-reveal 1.2s ease-out 0.6s both;
}

@keyframes center-logo-reveal {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
    }

    .split-panel {
        flex: 1;
    }

    .split-panel:hover {
        flex: 1.1;
    }

    .branch-logo {
        width: 200px;
    }

    .branch-tagline {
        font-size: 1.1rem;
        letter-spacing: 0.3em;
    }

    .center-logo-wrapper {
        width: 160px;
        height: 160px;
    }

    .center-logo {
        width: 120px;
    }


    .vertical-divider {
        width: 100%;
        height: 2px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .vertical-divider::before {
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(224, 31, 31, 0.1) 15%,
            rgba(224, 31, 31, 0.3) 35%,
            transparent 48%,
            transparent 52%,
            rgba(224, 31, 31, 0.3) 65%,
            rgba(224, 31, 31, 0.1) 85%,
            transparent 100%
        );
    }

    .divider-flame {
        width: 30px;
        height: 4px;
        top: 50%;
        left: -30px;
        transform: translateY(-50%);
        background: linear-gradient(90deg, transparent, var(--hell-red), var(--hell-orange), var(--hell-amber));
        animation: flame-slide 3s ease-in infinite;
    }

    @keyframes flame-slide {
        0% { left: -30px; opacity: 0; }
        10% { opacity: 0.8; }
        90% { opacity: 0.8; }
        100% { left: 100%; opacity: 0; }
    }

    .left-panel .panel-content {
        animation-name: slide-in-up;
    }

    .right-panel .panel-content {
        animation-name: slide-in-down;
    }

    @keyframes slide-in-up {
        from { opacity: 0; transform: translateY(-30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes slide-in-down {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .lava-glow {
        bottom: auto;
        top: 0;
        height: 3px;
        width: 100%;
    }

    .right-panel .lava-glow {
        top: auto;
        bottom: 0;
    }
}

@media (max-width: 480px) {
    .branch-logo {
        width: 160px;
    }

    .branch-tagline {
        font-size: 0.9rem;
    }

    .branch-cta {
        padding: 10px 24px;
    }

    .cta-text {
        font-size: 0.9rem;
    }

    .center-logo-wrapper {
        width: 130px;
        height: 130px;
    }

    .center-logo {
        width: 95px;
    }



    .panel-content {
        gap: 12px;
    }
}
