/* 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;
}

/* Clean Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -10;
    background: var(--background-color);
    pointer-events: none;
}

/* Premium Clean Surfaces */
.glass-premium {
    background: var(--surface-color);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

/* 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;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}
.splash-logo-img {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: splashFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.splash-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
    text-align: center;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    animation: splashFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
@keyframes splashFadeIn {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}