:root {
    --bg-main: #f0f4f2;
    --gradient: radial-gradient(circle at 80% 20%, #d1fae5 0%, transparent 50%), radial-gradient(circle at 20% 80%, #ecfdf5 0%, transparent 50%), radial-gradient(circle at 50% 50%, #ffffff 100%);
    --plag-gold: #b48a04;
    --text-color: #052c1e;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --btn-text: #ffffff;
    --btn-bg: #052c1e;
}

[data-theme="dark"] {
    --bg-main: #052c1e;
    --gradient: radial-gradient(circle at 80% 20%, #1a5d3b 0%, transparent 50%), radial-gradient(circle at 20% 80%, #0a402d 0%, transparent 50%), radial-gradient(circle at 50% 50%, #052c1e 100%);
    --plag-gold: #fccb05;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --nav-bg: rgba(5, 44, 30, 0.8);
    --btn-text: #052c1e;
    --btn-bg: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    background-image: var(--gradient);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text-color);
    transition: background 0.5s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-sizing: border-box;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 600;
        font-size: 0.9rem;
        display: inline-block;
        transition: color 0.3s ease;
    }

.btn-donate {
    background: var(--plag-gold);
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 8px;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
}

#scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    perspective: 1500px;
}

/* Floating Image Containers */
.float-item {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
    z-index: 10;
}

    .float-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: opacity 0.5s ease;
    }

/* Sizes */
.size-lg {
    width: 300px;
    height: 200px;
}

.size-md {
    width: 220px;
    height: 150px;
}

.size-sq {
    width: 180px;
    height: 180px;
}

.size-sm {
    width: 140px;
    height: 100px;
}

/* Positions */
.pos-1 {
    top: 12%;
    left: 8%;
}

.pos-2 {
    top: 15%;
    right: 10%;
}

.pos-3 {
    top: 55%;
    left: 5%;
}

.pos-4 {
    bottom: 12%;
    left: 8%;
}

.pos-5 {
    bottom: 10%;
    right: 12%;
}

.pos-6 {
    top: 40%;
    right: 5%;
}

.pos-7 {
    top: 5%;
    left: 45%;
}

.pos-8 {
    bottom: 8%;
    right: 40%;
}

/* Modal */
.main-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    padding: 60px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.plag-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ce1126, #fccb05, #009460);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    margin: 0 auto 20px;
}

.next-btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 16px 70px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .float-item {
        transform: scale(0.6) !important;
    }

    .pos-2, .pos-7, .pos-8 {
        display: none;
    }

    .main-modal {
        padding: 40px 20px;
    }

    h1 {
        font-size: 1.8rem;
    }
}
