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

:root {
    --midnight-blue: #0B0E14; --midnight-light: #151A25;
    --primary-orange: #FF6B00; --primary-red: #E60000;
    --text-main: #f5f5f7; --text-muted: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--midnight-blue); color: var(--text-main); overflow-x: hidden; }

/* NAVBAR & PROFILE */
.glass-nav { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 5vw; background: rgba(11, 14, 20, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); z-index: 1000; height: 75px;}
.logo-container { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 35px; width: auto; } 
.logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; color: white; white-space: nowrap; }
.gradient-text { background: linear-gradient(90deg, var(--primary-orange), var(--primary-red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.liquid-link { color: var(--text-muted); text-decoration: none; font-weight: 400; font-size: 0.9rem; transition: color 0.3s ease; position: relative;}
.liquid-link:hover { color: var(--text-main); }

.nav-action-area { display: flex; align-items: center; justify-content: flex-end; }
.profile-container { position: relative; }
.profile-avatar { width: 40px; height: 40px; border-radius: 50%; background: transparent; display: flex; justify-content: center; align-items: center; color: var(--text-main); cursor: pointer; transition: 0.3s; border: 1px solid transparent; }
.profile-avatar:hover { background: rgba(255, 255, 255, 0.1); }

/* PROFILE MENU */
.profile-menu { 
    position: absolute; top: 60px; right: 0; width: 250px; padding: 20px; display: flex; flex-direction: column; gap: 15px; 
    background: rgba(15, 18, 25, 0.98) !important; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; box-shadow: 0 20px 50px rgba(0,0,0,0.9) !important; border-radius: 16px; opacity: 1; transform: translateY(0); transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); transform-origin: top right; z-index: 3000;
}
.profile-menu.hidden { opacity: 0; transform: translateY(-15px) scale(0.95); pointer-events: none; }
.profile-header { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; margin-bottom: 2px;}
#profile-email { display: block; width: 100%; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-weight: 600; font-size: 0.95rem; color: white; line-height: 1.4;}
.profile-balance { font-size: 0.95rem; line-height: 1.4; margin-bottom: 5px;}
.profile-options { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.profile-btn { background: transparent; border: none; color: var(--text-main); text-align: left; padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-size: 0.9rem; display: flex; align-items: center;}
.profile-btn:hover { background: rgba(255,255,255,0.1); }

/* FIXED HERO SECTION (No jumping up) */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at center, var(--midnight-light) 0%, var(--midnight-blue) 100%); padding: 100px 20px 50px; }
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 800px; } 
.motion-blur-text { font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 900; letter-spacing: -2px; margin-bottom: 15px; opacity: 0; animation: motionBlurIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; line-height: 1.1;}
.fade-up-text { font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--text-muted); margin-bottom: 40px; opacity: 0; animation: fadeUpIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s; font-weight: 300; line-height: 1.5;}
.hero-buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 100%; opacity: 0; animation: fadeUpIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;}
.liquid-btn { background: linear-gradient(135deg, var(--primary-orange), var(--primary-red)); color: white; padding: 16px 40px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; text-decoration: none; border: none; cursor: pointer; transition: all 0.4s ease; box-shadow: 0 10px 30px rgba(230, 0, 0, 0.2); display: inline-flex; justify-content: center; align-items: center; margin: 0 auto;}
.liquid-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4); }
.secondary-auth-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; text-decoration: none;}
.secondary-auth-btn:hover { color: var(--primary-orange); }

@keyframes motionBlurIn { 0% { filter: blur(20px); transform: scale(1.05) translateY(-20px); opacity: 0; } 100% { filter: blur(0px); transform: scale(1) translateY(0); opacity: 1; } }
@keyframes fadeUpIn { 0% { transform: translateY(20px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* SERVICES SECTION */
.services-section { padding: 100px 5vw; background-color: var(--midnight-blue); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 15px; line-height: 1.2;}
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.glass-card { background: var(--midnight-light); border: 1px solid var(--glass-border); border-radius: 24px; padding: 35px 25px; transition: all 0.4s ease; text-align: left; cursor: pointer;}
.glass-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.08); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.glass-card h3 { font-size: 1.3rem; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; color: white; line-height: 1.3;}
.glass-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;}
.service-icon-svg { width: 40px; height: 40px; color: var(--primary-orange); flex-shrink: 0;}

/* FIXED: SERVICE DETAIL MODAL (No Overlapping at all) */
.service-detail-wrapper { 
    width: 100%; max-width: 800px; margin: auto; padding: 40px; 
    border-radius: 24px; background: var(--midnight-light); border: 1px solid var(--glass-border); 
    display: flex; flex-direction: column; max-height: 90vh; overflow-y: auto;
}
.detail-back-container { width: 100%; margin-bottom: 20px; display: flex; align-items: center; }
.detail-back-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center; font-weight: 600; padding: 10px 0;}
.detail-hero { display: flex; flex-direction: column; align-items: center; text-align: center; border-bottom: 1px solid var(--glass-border); padding-bottom: 30px; }
.detail-icon-large svg { width: 70px; height: 70px; color: var(--primary-orange); margin-bottom: 20px; display: block; }
.detail-title { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 900; color: white; margin-bottom: 20px; line-height: 1.2; word-wrap: break-word; width: 100%;}
.detail-price-badge { background: rgba(255, 107, 0, 0.1); color: var(--primary-orange); padding: 12px 30px; border-radius: 30px; font-weight: 800; border: 1px solid rgba(255, 107, 0, 0.3); font-size: 1.2rem; display: inline-block;}
.detail-content-body { color: var(--text-main); line-height: 1.8; font-size: 1.05rem; padding: 30px 0; word-wrap: break-word;}
.detail-content-body img { max-width: 100%; border-radius: 16px; margin: 20px 0; border: 1px solid var(--glass-border); }
.detail-msg-box { margin-top: 20px; text-align: left; background: rgba(0,0,0,0.3); padding: 25px; border-radius: 16px; border: 1px solid var(--glass-border);}
.detail-msg-box label { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; display: block; font-weight: 600;}
.detail-msg-box textarea { width: 100%; padding: 15px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: white; border-radius: 12px; outline: none; font-family: 'Inter', sans-serif; resize: vertical; font-size: 1rem;}
.detail-msg-box textarea:focus { border-color: var(--primary-orange); background: rgba(255,255,255,0.1); }
.detail-buy-btn { width: 100%; margin-top: 30px; padding: 20px; font-size: 1.2rem; border-radius: 16px;}

/* FOOTER */
.premium-footer { background: var(--midnight-light); padding: 60px 5vw 30px; text-align: center; border-top: 1px solid var(--glass-border); }
.footer-content h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; line-height: 1.2;}
.footer-content p { color: var(--text-muted); margin-bottom: 40px; }
.contact-info { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap;}
.contact-info span { background: var(--glass-bg); padding: 10px 20px; border-radius: 20px; border: 1px solid var(--glass-border); font-size: 0.9rem;}
.copyright { color: #555; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(11, 14, 20, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 1; transition: 0.4s ease; padding: 20px;}
.modal-overlay.hidden { opacity: 0; pointer-events: none; visibility: hidden;}
.auth-box { width: 100%; max-width: 400px; position: relative; padding: 40px 30px; background: var(--midnight-light); border: 1px solid var(--glass-border); border-radius: 24px;}
.close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: 0.3s; z-index: 10;}
.close-btn:hover { color: white; }

/* CHAT WIDGET & BUBBLES */
.glass-chat-btn { position: fixed; bottom: 30px; right: 30px; background: rgba(255, 107, 0, 0.9); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 12px 25px; border-radius: 30px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(230, 0, 0, 0.4); z-index: 999; display: flex; align-items: center;}
.chat-widget { position: fixed; bottom: 20px; right: 20px; width: calc(100% - 40px); max-width: 380px; height: 550px; max-height: calc(100vh - 40px); background: rgba(15, 18, 25, 0.98); backdrop-filter: blur(25px); border: 1px solid var(--glass-border); border-radius: 20px; display: flex; flex-direction: column; z-index: 1000; box-shadow: 0 20px 50px rgba(0,0,0,0.8); overflow: hidden; transition: 0.4s ease;}
.chat-widget.hidden { transform: translateY(30px) scale(0.95); opacity: 0; pointer-events: none; }
.chat-header { background: rgba(255,255,255,0.05); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; border-bottom: 1px solid var(--glass-border);}
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.message { padding: 12px 18px; border-radius: 18px; max-width: 85%; font-size: 0.95rem; line-height: 1.4; word-wrap: break-word; width: fit-content; display: inline-block; white-space: pre-wrap; }
.msg-user { background: linear-gradient(135deg, var(--primary-orange), var(--primary-red)); align-self: flex-end; margin-left: auto; border-bottom-right-radius: 4px; color: white;}
.msg-admin { background: rgba(255,255,255,0.1); align-self: flex-start; margin-right: auto; border-bottom-left-radius: 4px; color: white;}

/* FIXED MOBILE SQUished INPUTS */
.chat-input-area { display: flex; flex-direction: row; padding: 15px; border-top: 1px solid var(--glass-border); gap: 10px; background: rgba(0,0,0,0.5); align-items: center; width: 100%; box-sizing: border-box;}
.chat-input-area input { flex: 1 1 auto; min-width: 0; padding: 12px 15px; border: none; border-radius: 20px; background: rgba(255,255,255,0.08); color: white; outline: none; font-family: 'Inter', sans-serif;}
.chat-input-area button { flex: 0 0 auto; padding: 0; border: none; background: var(--text-main); color: black; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; width: 45px; height: 45px;}
#send-btn svg, #send-btn path, #send-btn polygon { pointer-events: none !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; } 
    .glass-nav { padding: 15px 20px; height: 65px;} 
    .logo-text { font-size: 1rem; } 
    .nav-logo { height: 28px; }
    .services-section { padding: 80px 20px; }
    .profile-menu { width: 230px; top: 65px; right: 10px;}
    .service-detail-wrapper { border-radius: 16px; padding: 25px 20px; border: 1px solid var(--glass-border); margin-top: 10px;}
}