:root {
    /* Brand Colors derived from BurjMart Logo */
    --primary-blue: #28166f;
    --primary-purple: #5a23c8;
    --primary-pink: #d9149a;
    --primary-orange: #f47b20;
    --primary-red: #e31e5f;
    
    /* Neutral Colors */
    --bg-color: #fdfdfd;
    --text-main: #333333;
    --text-muted: #666666;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden; /* Prevent scrolling */
    height: 100vh; /* Full viewport height exactly */
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   PRELOADER ANIMATION SEQUENCE
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-sequence {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo {
    position: absolute;
    width: 400px;
    max-width: 80%;
    opacity: 0;
    animation: splashSeq 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    mix-blend-mode: multiply;
}

.main-loader-elements {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    position: absolute;
    animation: mainLoaderSeq 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 2.2s; /* Trigger after splash logo fades out */
}

.loader-icon {
    width: 90px;
    height: auto;
    animation: pulseIcon 2s infinite ease-in-out;
    margin-bottom: 1.5rem;
    mix-blend-mode: multiply;
}

.loader-text-logo {
    width: 220px;
    height: auto;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    animation-delay: 2.5s;
    mix-blend-mode: multiply;
}

.progress-bar {
    width: 220px;
    height: 4px;
    background: rgba(90, 35, 200, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink), var(--primary-orange));
    animation: loadProgress 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 2.5s;
}

@keyframes splashSeq {
    0% { opacity: 0; transform: scale(0.85); }
    15% { opacity: 1; transform: scale(1); }
    85% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); }
}

@keyframes mainLoaderSeq {
    0% { opacity: 0; transform: scale(0.95); }
    10% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes loadProgress {
    0% { width: 0%; }
    40% { width: 70%; }
    100% { width: 100%; }
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(10px); }
}

.hide-loader {
    opacity: 0 !important;
    visibility: hidden !important;
}


/* =========================================
   BACKGROUND & AMBIENT SHAPES
   ========================================= */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    /* CSS transitioned parallax handled in JS */
    will-change: transform;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
}

.shape-2 {
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
}

.shape-3 {
    top: 35%;
    left: 35%;
    width: 30vw;
    height: 30vw;
    background: linear-gradient(135deg, rgba(40, 22, 111, 0.15), transparent);
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%2328166f' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 50px;
    pointer-events: none;
}

/* =========================================
   MAIN LAYOUT (FREE FLOATING - NO CARDS)
   ========================================= */
.container {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.free-content {
    text-align: center;
    max-width: 850px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-wrapper {
    margin-bottom: 2.5rem;
}

.main-logo {
    max-width: 260px;
    height: auto;
    object-fit: contain;
    /* Added mix-blend-mode to try to hide black backgrounds if the image file has one */
    mix-blend-mode: multiply;
}

.badge {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, rgba(90,35,200,0.05), rgba(217,20,154,0.05));
    color: var(--primary-purple);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(90, 35, 200, 0.15);
    box-shadow: 0 10px 25px rgba(90, 35, 200, 0.05);
}

.title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3.5rem;
    max-width: 650px;
}

/* Coding Loading Indicator */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    font-family: 'Courier New', Courier, monospace; /* Coding font */
}

.coding-loader {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(40, 22, 111, 0.03);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    border: 1px solid rgba(40, 22, 111, 0.1);
}

.code-bracket {
    color: var(--primary-pink);
    font-weight: bold;
    margin: 0 0.3rem;
}

.code-text {
    letter-spacing: 0.5px;
    color: var(--primary-purple);
}

.dots {
    display: inline-block;
    width: 24px;
    text-align: left;
    color: var(--primary-orange);
    font-weight: bold;
}

.dots::after {
    content: '';
    animation: dots-anim 1.5s infinite step-start;
}

@keyframes dots-anim {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Floating Illustrations */
.floating-illustrations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.float-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    border-radius: 20px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(40, 22, 111, 0.08);
    font-size: 2rem;
    will-change: transform;
}

.float-item i {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Entrance Animations */
.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .title { font-size: 3.5rem; }
    .main-logo { max-width: 220px; }
}

@media (max-width: 768px) {
    .title { font-size: 2.8rem; }
    .description { font-size: 1.1rem; }
    .main-logo { max-width: 180px; }
    .float-item { width: 50px; height: 50px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .title { font-size: 2.2rem; }
    .splash-logo { max-width: 250px; }
}
