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

html {
    width: 100%;
    background-color: #04140c;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    overflow-x: hidden;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Gold Text Gradient with High Contrast Backing */
.gold-text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f7e6b5 40%, #e2bd74 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Fixed Background Canvas */
#frame-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85; /* Soft contrast for canvas */
}

/* React Root App Overlay */
#root {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* Glassmorphism Section Card Styling - High Opacity for Maximum Legibility */
.glass-panel {
    background: rgba(4, 20, 12, 0.93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(226, 189, 116, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.glass-panel-subtle {
    background: rgba(4, 20, 12, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(226, 189, 116, 0.3);
}

/* Preloader Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #04140c;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(226, 189, 116, 0.2);
    border-radius: 50%;
    border-top-color: #e2bd74;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar-container {
    width: 240px;
    height: 4px;
    background: rgba(226, 189, 116, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #e2bd74;
    transition: width 0.1s linear;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #04140c;
}

::-webkit-scrollbar-thumb {
    background: #e2bd74;
    border-radius: 5px;
    border: 2px solid #04140c;
}

::-webkit-scrollbar-thumb:hover {
    background: #f7e6b5;
}
