* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --biro-blue: #0000FF;
    --sky-blue: #87CEEB;
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --black: #000000;
    --black-bg: #0a0a0a;
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--black-bg) 0%, var(--dark-bg) 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.1), rgba(135, 206, 235, 0.1));
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: min(500px, 50vw);
    height: min(500px, 50vw);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: min(600px, 60vw);
    height: min(600px, 60vw);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: min(400px, 40vw);
    height: min(400px, 40vw);
    top: 20%;
    right: 5%;
    animation-delay: -10s;
}

.shape-4 {
    width: min(350px, 35vw);
    height: min(350px, 35vw);
    bottom: 10%;
    left: 5%;
    animation-delay: -15s;
}

/* Particles Effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(135deg, var(--gold), var(--biro-blue));
    border-radius: 50%;
    animation: particleFloat 10s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Main Container */
.loading-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem 1rem;
}

/* Logo Wrapper */
.logo-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glow Effect */
.logo-glow {
    position: absolute;
    width: min(400px, 50vw);
    height: min(400px, 50vw);
    background: radial-gradient(circle, rgba(0, 0, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    filter: blur(30px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Secondary glow for gold effect */
.logo-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: goldPulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes goldPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

/* Image Container */
.image-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.centered-image {
    width: 100%;
    max-width: 300px; /* Fixed size for laptop */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(255, 215, 0, 0.3));
    animation: rotateLogo 10s ease-in-out infinite;
}

@keyframes rotateLogo {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    25% {
        transform: perspective(1000px) rotateY(3deg);
    }
    75% {
        transform: perspective(1000px) rotateY(-3deg);
    }
    100% {
        transform: perspective(1000px) rotateY(0deg);
    }
}

/* Loading Section */
.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8vh;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Facebook-style Loading Dots */
.facebook-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dot-loader {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--biro-blue), var(--gold));
    animation: facebookLoader 1.2s ease-in-out infinite;
}

.dot-loader:nth-child(1) {
    animation-delay: 0s;
}

.dot-loader:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-loader:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes facebookLoader {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    30% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    min-width: 200px;
    background: linear-gradient(135deg, var(--sky-blue), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Simple Footer */
.loading-footer {
    width: 100%;
    text-align: center;
    margin-bottom: 3vh;
    padding: 0 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.footer-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-text span {
    background: linear-gradient(135deg, var(--gold), var(--biro-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-5%) rotate(120deg);
    }
    66% {
        transform: translateY(5%) rotate(240deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade out effect */
body.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Laptop (992px to 1199px) - Primary target */
@media (min-width: 992px) and (max-width: 1199px) {
    .centered-image {
        max-width: 280px;
    }
    
    .logo-glow {
        width: 350px;
        height: 350px;
    }
    
    .dot-loader {
        width: 12px;
        height: 12px;
    }
    
    .loading-text {
        font-size: 13px;
    }
}

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    .centered-image {
        max-width: 320px;
    }
    
    .logo-glow {
        width: 400px;
        height: 400px;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .centered-image {
        max-width: 250px;
    }
    
    .logo-glow {
        width: 320px;
        height: 320px;
    }
    
    .dot-loader {
        width: 11px;
        height: 11px;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .centered-image {
        max-width: 200px;
    }
    
    .logo-glow {
        width: 280px;
        height: 280px;
    }
    
    .dot-loader {
        width: 10px;
        height: 10px;
    }
    
    .loading-text {
        font-size: 12px;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .centered-image {
        max-width: 180px;
    }
    
    .logo-glow {
        width: 240px;
        height: 240px;
    }
    
    .dot-loader {
        width: 8px;
        height: 8px;
        gap: 6px;
    }
    
    .loading-text {
        font-size: 11px;
        min-width: 150px;
    }
    
    .loading-section {
        margin-bottom: 6vh;
    }
}

/* Short Screens (height <= 600px) */
@media (max-height: 600px) {
    .centered-image {
        max-width: 150px;
    }
    
    .logo-glow {
        width: 200px;
        height: 200px;
    }
    
    .loading-section {
        margin-bottom: 4vh;
    }
    
    .dot-loader {
        width: 8px;
        height: 8px;
    }
    
    .loading-text {
        font-size: 11px;
    }
}

/* 4K and Ultra-wide screens */
@media (min-width: 1600px) {
    .centered-image {
        max-width: 400px;
    }
    
    .logo-glow {
        width: 500px;
        height: 500px;
    }
    
    .dot-loader {
        width: 16px;
        height: 16px;
    }
    
    .loading-text {
        font-size: 16px;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .dot-loader {
        animation: facebookLoader 1.2s ease-in-out infinite;
    }
}

/* Additional color accents for hover states */
@media (hover: hover) {
    .centered-image:hover {
        filter: drop-shadow(0 20px 40px rgba(255, 215, 0, 0.5));
        transition: filter 0.3s ease;
    }
}

/* Sky blue accent for particles */
.particle:nth-child(3n) {
    background: linear-gradient(135deg, var(--sky-blue), var(--biro-blue));
}

.particle:nth-child(3n+1) {
    background: linear-gradient(135deg, var(--gold), var(--sky-blue));
}

.particle:nth-child(3n+2) {
    background: linear-gradient(135deg, var(--biro-blue), var(--gold));
}