/* Explain: Base reset, typography defaults, and utility classes for glassmorphism. */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    padding-bottom: 90px;
}

/* Liquid Glass / Mesh Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -10;
    background: var(--background-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 122, 255, 0.08), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(90, 200, 250, 0.12), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 45, 85, 0.05), transparent 40%);
    pointer-events: none;
}

/* Premium Glassmorphism & Liquid Glass iOS 2026 */
.glass-premium {
    background: var(--surface-color);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

/* Glass Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    outline: none;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Buttons Micro-interactions */
.btn-interactive {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.btn-interactive:active {
    transform: scale(0.95);
}

/* Animations fixes & enhancements */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Cursor (Desktop only) */
.custom-cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    background: rgba(0, 122, 255, 0.3); border: 1px solid rgba(0,122,255,0.5);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    display: none;
}
@media (pointer: fine) {
    .custom-cursor { display: block; }
}
.custom-cursor.hover {
    width: 45px; height: 45px; background: rgba(0, 122, 255, 0.1);
}

/* Splash Screen Animation */
.splash-screen {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.splash-logo {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    color: #000000;
    letter-spacing: -2px;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    animation: splashAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes splashAnim {
    0% { opacity: 0; transform: scale(0.9); filter: blur(10px); }
    30% { opacity: 1; transform: scale(1.05); filter: blur(0); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}