@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800;900&display=swap');

:root {
    --bg-base: #030305;
    --primary: #ff2e63;
    --primary-glow: rgba(255, 46, 99, 0.6);
    --accent: #8e2de2;
    --passion-red: #ff0055;
    --ease-premium: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== GLOBAL RESET FOR ALL DEVICES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    background: #020204;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal overflow on ALL elements */
main, section, div, footer, header {
    max-width: 100vw;
}

/* ===== BACKGROUND MESH (simplified for mobile perf) ===== */
.mesh-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.mesh-1 {
    background: radial-gradient(circle at 100% 0%, hsla(343, 100%, 59%, 0.18) 0%, transparent 60%);
    animation: pulse-slow 8s ease-in-out infinite alternate;
}

.mesh-2 {
    background: radial-gradient(circle at 0% 100%, hsla(320, 80%, 50%, 0.15) 0%, transparent 60%);
    animation: pulse-slow 12s ease-in-out infinite alternate-reverse;
}

.mesh-scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, hsla(343, 100%, 50%, 0.12) 0%, transparent 50%);
    z-index: -1;
}

@keyframes pulse-slow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* ===== BUTTONS ===== */
.download-trigger {
    background: linear-gradient(135deg, #ff4c7d 0%, #ff2e63 100%);
    border-radius: 24px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: white;
    cursor: pointer;
    box-shadow: 0 15px 40px -10px var(--primary-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.download-trigger::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.download-trigger:hover::before { opacity: 1; }

.download-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px -15px var(--primary-glow);
}

.download-trigger:active {
    transform: scale(0.97);
}

/* ===== GLASS CARDS ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Use backdrop-filter only if supported */
@supports (backdrop-filter: blur(10px)) {
    .glass-card {
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.05em !important;
}

/* ===== IMAGES — critical for mobile ===== */
img {
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
}

/* Profile card images need to fill their container */
.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BREATHING ANIMATION (simplified) ===== */
.sexy-breath {
    animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

/* ===== HEART PULSE ===== */
.heart-pulse {
    animation: heart-pulse 1.5s ease-in-out infinite;
}

@keyframes heart-pulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1.05); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== HEADER ===== */
header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 1000000 !important;
    pointer-events: none;
}

/* ===== PASSION GLOW ===== */
.passion-glow {
    text-shadow: 0 0 20px rgba(255, 46, 99, 0.8), 0 0 40px rgba(255, 46, 99, 0.4);
}

/* ===== PROFILE CARD GLOW ON TOUCH/HOVER ===== */
.profile-card {
    position: relative;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    box-shadow: inset 0 0 40px rgba(255, 46, 99, 0);
    transition: box-shadow 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.profile-card:hover::after,
.profile-card:active::after {
    box-shadow: inset 0 0 50px rgba(255, 46, 99, 0.35);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 10px; }

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating { animation: float 6s ease-in-out infinite; }

/* ===== SHIMMER for buttons ===== */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== MOBILE-SPECIFIC FIXES ===== */

/* Safe area insets for notched phones (iPhone X+, etc.) */
@supports (padding: env(safe-area-inset-bottom)) {
    #sticky-bar {
        padding-bottom: calc(env(safe-area-inset-bottom) + 16px) !important;
    }
}

/* Reduce heavy effects on low-power devices */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Small phones (< 375px) */
@media screen and (max-width: 374px) {
    h1 {
        font-size: 42px !important;
    }
    .profile-card {
        border-radius: 24px !important;
    }
    .profile-card::after {
        border-radius: 24px !important;
    }
}

/* Fix for older Android WebView */
@media screen and (max-width: 640px) {
    .backdrop-blur-xl,
    .backdrop-blur-2xl,
    .backdrop-blur-3xl {
        background-color: rgba(10, 10, 15, 0.85);
    }
}
