* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --bright-orange: #FF8C42;
    --dark-orange: #E85A2B;
    --primary-red: #FF3B3B;
    --dark-red: #D32F2F;
    --accent-orange: #FFA726;
    --white: #FFFFFF;
    --dark-bg: #0A0E27;
    --darker-bg: #050810;
    --gradient-start: rgba(255, 107, 53, 0.15);
    --gradient-end: rgba(255, 59, 59, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.splash-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Animated Background */
.background-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-orange) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: 4s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--bright-orange) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 8s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.4;
    }
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.08;
    animation: shapeRotate 20s linear infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--bright-orange), var(--primary-red));
    top: 70%;
    right: 15%;
    animation-delay: 2s;
    animation: shapeRotateSquare 15s ease-in-out infinite;
}

@keyframes shapeRotateSquare {
    0% {
        transform: rotate(45deg) translate(0, 0);
    }
    25% {
        transform: rotate(135deg) translate(20px, -20px);
    }
    50% {
        transform: rotate(225deg) translate(0, 0);
    }
    75% {
        transform: rotate(315deg) translate(-15px, 15px);
    }
    100% {
        transform: rotate(405deg) translate(0, 0);
    }
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-orange));
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-orange), var(--primary-orange));
    top: 10%;
    right: 25%;
    animation-delay: 6s;
    animation: shapeRotateSquare 12s ease-in-out infinite;
}

.shape-5 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-orange), var(--bright-orange));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 50%;
    left: 5%;
    animation-delay: 8s;
}

@keyframes shapeRotate {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }
    25% {
        transform: rotate(90deg) translate(20px, -20px);
    }
    50% {
        transform: rotate(180deg) translate(-15px, 15px);
    }
    75% {
        transform: rotate(270deg) translate(10px, 20px);
    }
    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

/* Grid Lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    opacity: 0.3;
    animation: gridPulse 4s ease-in-out infinite;
}

.line-h-1 {
    width: 100%;
    height: 1px;
    top: 33%;
    left: 0;
    animation-delay: 0s;
}

.line-h-2 {
    width: 100%;
    height: 1px;
    bottom: 33%;
    left: 0;
    animation-delay: 1s;
}

.line-v-1 {
    width: 1px;
    height: 100%;
    left: 33%;
    top: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 59, 59, 0.1), transparent);
    animation-delay: 2s;
}

.line-v-2 {
    width: 1px;
    height: 100%;
    right: 33%;
    top: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    animation-delay: 3s;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

/* Main Content */
.splash-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    animation: slideUp 0.8s ease-out 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Container */
.logo-container {
    margin-bottom: 60px;
    animation: logoScale 1.2s ease-out 0.5s both;
}

@keyframes logoScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(255, 107, 53, 0.6));
    animation: logoGlow 2.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 25px rgba(255, 107, 53, 0.6)) drop-shadow(0 0 40px rgba(255, 59, 59, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(255, 107, 53, 0.9)) drop-shadow(0 0 50px rgba(255, 59, 59, 0.5));
    }
}


/* Loading Indicator */
.loading-indicator {
    margin-top: 20px;
    animation: fadeIn 1s ease-out 1s both;
}

.loading-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 25px rgba(255, 59, 59, 0.4);
    animation: bounce 1.4s ease-in-out infinite;
}

.dot-1 {
    animation-delay: 0s;
}

.dot-2 {
    animation-delay: 0.2s;
}

.dot-3 {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    40% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .logo {
        max-width: 180px;
    }
    
    .logo-container {
        margin-bottom: 50px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
    .logo {
        max-width: 150px;
    }
    
    .logo-container {
        margin-bottom: 40px;
    }
    
    .shape {
        transform: scale(0.8);
    }
    
    .orb-1, .orb-2, .orb-3 {
        filter: blur(60px);
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .loading-dots {
        gap: 10px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .logo {
        max-width: 120px;
    }
    
    .logo-container {
        margin-bottom: 35px;
    }
    
    .splash-content {
        padding: 15px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .logo-container {
        margin-bottom: 25px;
    }
    
    .logo {
        max-width: 120px;
    }
}

/* Fade Out Animation */
.splash-screen.fade-out {
    animation: fadeOut 0.5s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}
