/**
 * Fronteam Shared Split Layout
 * Used by all pages except pricing.
 * Left: background image with overlay
 * Right: scrollable content
 */

/* ==================== */
/* SPLIT CONTAINER      */
/* ==================== */
.split-container {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

/* ==================== */
/* LEFT SIDE - IMAGE    */
/* ==================== */
.image-side {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0f;
    z-index: 0;
}

/* Background video inside image-side */
.image-side .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Gradient overlay */
.image-side .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.9) 100%
    );
    z-index: 1;
}


/* Color tint overlay */
.image-side .color-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(233, 30, 99, 0.2) 0%,
        rgba(156, 39, 176, 0.15) 50%,
        rgba(0, 188, 212, 0.2) 100%
    );
    mix-blend-mode: overlay;
    z-index: 2;
}

/* Animated glow line at edge */
.image-side .glow-edge {
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #E91E63,
        #00BCD4,
        #9C27B0,
        transparent
    );
    z-index: 20;
    animation: glowPulse 3s ease-in-out infinite;
}


@keyframes glowPulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 20px #E91E63; }
    50% { opacity: 1; box-shadow: 0 0 40px #E91E63; }
}

/* Floating quote on image side */
.image-quote {
    position: absolute;
    bottom: 60px;
    left: 40px;
    right: 40px;
    z-index: 10;
    color: white;
}

html[dir="rtl"] .image-quote {
    text-align: right;
}

.image-quote .quote-text {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
}

.image-quote .quote-author {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ===================== */
/* RIGHT SIDE - CONTENT  */
/* ===================== */
.content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 40px 40px;
    background: #0a0a0f;
    position: relative;
    overflow-y: auto;
    margin-left: 50%;
}

/* Subtle gradient overlay */
.content-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(233, 30, 99, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(0, 188, 212, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.content-side > * {
    position: relative;
    z-index: 1;
}

/* Page content area */
.page-content {
    max-width: 700px;
    width: 100%;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #E91E63, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #E91E63;
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #00BCD4;
}

.page-content p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.page-content ul, .page-content ol {
    margin: 1rem 0;
    padding-inline-start: 1.5rem;
}

html[dir="ltr"] .page-content ul, html[dir="ltr"] .page-content ol {
    padding-left: 1.5rem;
    padding-right: 0;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.page-content a {
    color: #00BCD4;
    text-decoration: none;
    transition: color 0.3s;
}

.page-content a:hover {
    color: #E91E63;
}

.page-content strong {
    color: white;
    font-weight: 600;
}

/* Notice boxes */
.important-notice {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.15));
    border: 1px solid rgba(233, 30, 99, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.important-notice h3 {
    margin-top: 0;
    color: #E91E63;
}

.contact-info {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-info h3 {
    margin-top: 0;
}

/* About image */
.about-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading state */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #E91E63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==================== */
/* SHARED FOOTER        */
/* ==================== */
.shared-footer {
    width: 100%;
    max-width: 700px;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.shared-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 10px;
}

.shared-footer .footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.shared-footer .footer-links a:hover {
    color: #E91E63;
}

.shared-footer .copyright {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column !important;
        position: relative;
        min-height: 100vh;
    }

    /* Image as fullscreen background */
    .image-side {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        z-index: 0;
    }

    .image-side .overlay {
        background: linear-gradient(
            to bottom,
            rgba(10, 10, 15, 0.4) 0%,
            rgba(10, 10, 15, 0.85) 50%,
            rgba(10, 10, 15, 0.95) 100%
        );
    }

    .image-side .glow-edge {
        display: none;
    }

    .image-quote {
        display: none;
    }

    /* Content on top of the background */
    .content-side {
        position: relative;
        z-index: 1;
        padding: 80px 30px 40px;
        flex: none;
        background: transparent;
        min-height: 100vh;
        margin-left: 0;
        margin-right: 0;
    }

    .content-side::before {
        display: none;
    }

    .shared-footer {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 600px) {
    .content-side {
        padding: 70px 20px 30px;
    }

    .page-content h1 {
        font-size: 1.6rem;
    }

    .shared-footer .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}
