body, html {
    margin: 0;
    padding: 0;
    background-color: hsl(0, 0%, 7%);
    overscroll-behavior-y: none; 
}

body {
    overflow-x: hidden; 
}


#content {
    color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    z-index: 1;
    min-height: calc(100dvh - 50px); 
    box-sizing: border-box;
    width: 100%;
}

.page {
    display: none;
    animation: fadeIn 0.3s;
    width: 100%;
}

.page.active {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: auto 0; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-card {
    background-color: hsla(0, 0%, 100%, 0.09);
    border-radius: 20px;
    padding: 40px 50px;
    width: fit-content; 
    max-width: 90%;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.8);
    text-align: center;
    color: hsla(0, 0%, 100%, 0.95);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

#email-phone-gap { margin-right: 50px; }
#contact-us { margin-bottom: 50px; }

@media (max-width: 768px) {
    .content-card { padding: 20px !important; }
    #content { padding: 10px; }
}

/* Pull to Refresh */
#pull-refresh-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    margin-left: -20px; /* FIX 1: Centers it without using translateX, allowing perfect center scaling! */
    transform: translateY(-60px); 
    width: 40px;
    height: 40px;
    background-color: hsla(0, 0%, 100%, 0.1);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #06abfe;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    pointer-events: none;
    transform-origin: center center;
}

#pull-refresh-icon {
    display: block; /* FIX 3: Ensures font-awesome icons rotate flawlessly on all mobile browsers */
    transform-origin: center center;
}

.light-mode #pull-refresh-indicator {
    background-color: hsla(0, 0%, 100%, 0.9);
    border-color: hsla(0, 0%, 0%, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Visual Haptic State */
.refresh-ready {
    background-color: rgba(6, 171, 254, 0.2) !important; 
    border-color: rgba(6, 171, 254, 0.5) !important;
    animation: hapticPulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.5) forwards;
}

.light-mode .refresh-ready {
    background-color: rgba(6, 171, 254, 0.15) !important;
}

@keyframes hapticPulse {
    0% { scale: 1; }
    50% { scale: 1.25; } 
    100% { scale: 1.1; } 
}