:root {
    --bg-primary: #030307;
    --card-bg: rgba(10, 10, 18, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --text-gradient: linear-gradient(135deg, #ffffff 30%, #c7d2fe 70%, #818cf8 100%);
    --button-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --button-hover-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    touch-action: manipulation;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

.site-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px); /* Reduced blur to save GPU memory on iOS */
    z-index: 0;
    opacity: 0.35; /* Adjusted opacity for smaller blur */
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    /* Soft gradient makes it look blurred without requiring heavy CPU/GPU filters */
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
    bottom: -150px;
    right: -100px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.02) 50%, rgba(0, 0, 0, 0) 70%);
    top: 35%;
    left: 45%;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 10;
}

/* Glassmorphic Card Layout */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px); /* Reduced blur to prevent WebKit process crashes */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 40px var(--accent-glow);
    overflow: hidden;
    position: relative;
    transform: translate3d(0, 0, 0); /* Isolate in hardware layer */
    -webkit-transform: translate3d(0, 0, 0);
}

/* Content Side styling */
.content-side {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #a5b4fc;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 10px #a855f7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px #c084fc; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Multilingual Text Containers */
.lang-content {
    opacity: 0;
    transform: translateY(10px);
    display: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lang-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.main-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Graphic Side styling */
.graphic-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-graphic {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 2;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.glow-underlay {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(15px); /* Optimized blur radius */
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite alternate;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes glowPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Footer Styling */
.footer {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px 40px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .glass-card {
        grid-template-columns: 1fr;
    }
    
    .content-side {
        padding: 40px;
        align-items: center;
        text-align: center;
        min-height: auto;
    }
    
    .header-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .graphic-side {
        padding: 40px;
        order: -1; /* Place image on top for mobile views */
    }
    
    .main-graphic {
        max-width: 70%;
    }
    
    .footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .content-side {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
}
