:root { --bg-color: #0c1317; --sidebar-bg: #111b21; --header-bg: #202c33; --active-chat: #2a3942; --text-primary: #e9edef; --text-secondary: #8696a0; --whatsapp-green: #00a884; --msg-incoming: #202c33; --msg-outgoing: #005c4b; --primary-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --heading-font: 'Outfit', sans-serif; } * { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--primary-font); } h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); } /* Custom Scrollbar for all overflow elements */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(134, 150, 160, 0.2); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: rgba(134, 150, 160, 0.4); } body { background-color: var(--bg-color); color: var(--text-primary); height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; } #app { width: 100%; height: 100%; display: flex; flex-direction: column; } /* Landing Page */ #landing-page { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; background: #0b141a; position: relative; overflow-x: hidden; overflow-y: auto; z-index: 10; } /* Top Navigation */ .top-nav { width: 100%; height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; position: fixed; top: 0; left: 0; background: rgba(11, 20, 26, 0.7); backdrop-filter: blur(15px); z-index: 100; border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .nav-logo { font-family: var(--heading-font); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); } .nav-login-btn { background: transparent; border: 2px solid var(--whatsapp-green); color: var(--whatsapp-green); font-family: var(--heading-font); font-size: 1rem; font-weight: 600; padding: 8px 24px; border-radius: 20px; cursor: pointer; transition: all 0.3s ease; } .nav-login-btn.user-name-display { border-color: rgba(0, 168, 132, 0.3); background: rgba(0, 168, 132, 0.05); padding: 8px 16px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; border-radius: 20px; } .nav-login-btn.user-name-display::after { content: '\f0d7'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.8em; } .nav-user-container { position: relative; display: inline-block; } .logout-menu { position: absolute; top: 110%; right: 0; background: var(--sidebar-bg); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; min-width: 150px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); display: none; z-index: 1001; overflow: hidden; } .logout-menu button { width: 100%; padding: 12px 15px; background: none; border: none; color: #ff5c5c; text-align: left; cursor: pointer; font-family: var(--heading-font); font-weight: 600; display: flex; align-items: center; gap: 10px; transition: background 0.2s; } .logout-menu button:hover { background: rgba(255, 92, 92, 0.1); } .nav-login-btn:hover { background: var(--whatsapp-green); color: var(--bg-color); } .landing-hero { min-height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; position: relative; z-index: 2; } .landing-content { display: flex; max-width: 1200px; width: 90%; z-index: 2; align-items: center; justify-content: space-between; gap: 40px; } .landing-text { flex: 1; color: var(--text-primary); opacity: 0; transform: translateY(30px); } .landing-title { font-size: 4em; font-weight: 700; margin-bottom: 20px; line-height: 1.1; } .highlight { color: var(--whatsapp-green); } .landing-subtitle { font-size: 1.25em; color: var(--text-secondary); margin-bottom: 40px; line-height: 1.5; max-width: 80%; } .landing-btn { padding: 16px 32px; font-family: var(--heading-font); font-size: 1.1em; font-weight: 600; color: #fff; background: var(--whatsapp-green); border: none; border-radius: 30px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 8px 15px rgba(0, 168, 132, 0.3); } .landing-btn:hover { background: #00bf96; transform: translateY(-2px); box-shadow: 0 12px 20px rgba(0, 168, 132, 0.4); } .landing-animation { flex: 1; display: flex; justify-content: center; opacity: 0; } #lottie-container { width: 500px; height: 500px; } /* Background Decorations */ .background-decorations { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden; } .blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; } .blob-1 { width: 600px; height: 600px; background: var(--whatsapp-green); top: -200px; right: -100px; } .blob-2 { width: 400px; height: 400px; background: #0a4d40; bottom: -100px; left: -100px; } .floating-shape { position: absolute; color: var(--whatsapp-green); opacity: 0.1; font-size: 3rem; z-index: 1; } .shape-1 { top: 20%; left: 10%; } .shape-2 { top: 60%; right: 15%; } .shape-3 { bottom: 10%; left: 20%; } /* Features Section */ .features-section { padding: 80px 20px; width: 100%; max-width: 1200px; z-index: 2; text-align: center; margin-bottom: 50px; } /* Auto-scrolling Marquee */ .marquee-section { width: 100%; background: var(--whatsapp-green); padding: 25px 0; min-height: 80px; overflow: hidden; white-space: nowrap; position: relative; z-index: 2; transform: rotate(-1deg) scale(1.05); margin-bottom: 40px; } .marquee-container { width: 100%; overflow: hidden; display: flex; white-space: nowrap; } .marquee-content { display: flex; flex-shrink: 0; animation: scroll-marquee 20s linear infinite; } .marquee-content span { font-family: var(--heading-font); font-weight: 700; font-size: 1.5rem; color: var(--bg-color); margin: 0 40px; letter-spacing: 2px; } @keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } } .features-title { font-size: 2.5rem; color: var(--text-primary); margin-bottom: 50px; } .features-container { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; } .feature-card { flex: 1; min-width: 300px; background: rgba(32, 44, 51, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 40px 30px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(40px); } .feature-card:hover { transform: translateY(-10px) rotateX(5deg) scale(1.02); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); background: rgba(32, 44, 51, 0.8); } .feature-icon { font-size: 3rem; color: var(--whatsapp-green); margin-bottom: 20px; } .feature-card h3 { color: var(--text-primary); font-size: 1.5rem; margin-bottom: 15px; } .feature-card p { color: var(--text-secondary); line-height: 1.6; } /* Login Page */ #login-page { flex: 1; display: none; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(180deg, var(--whatsapp-green) 0%, var(--whatsapp-green) 120px, var(--bg-color) 120px, var(--bg-color) 100%); position: relative; } .back-btn { position: absolute; top: 30px; left: 30px; background: rgba(0,0,0,0.2); color: white; border: none; border-radius: 8px; padding: 10px 20px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background 0.2s; } .back-btn:hover { background: rgba(0,0,0,0.4); } .login-card { background: var(--sidebar-bg); padding: 40px; border-radius: 8px; box-shadow: 0 17px 50px 0 rgba(0, 0, 0, .19), 0 12px 15px 0 rgba(0, 0, 0, .24); width: 380px; text-align: center; } .login-card h2 { margin-bottom: 20px; color: var(--text-primary); } .login-card input { width: 100%; padding: 12px; margin: 10px 0; background: var(--header-bg); border: 1px solid #313d45; border-radius: 6px; color: var(--text-primary); outline: none; } .login-card button { width: 100%; padding: 12px; margin-top: 20px; background: var(--whatsapp-green); border: none; border-radius: 6px; color: #fff; font-weight: bold; cursor: pointer; transition: background 0.3s; } .login-card button:hover { background: #008f71; } /* Chat Layout */ #chat-page { display: none; flex: 1; flex-direction: row; height: 100%; max-width: 1600px; margin: 0 auto; width: 100%; } .sidebar { width: 30%; min-width: 350px; background: var(--sidebar-bg); border-right: 1px solid rgba(134, 150, 160, 0.15); display: flex; flex-direction: column; } .main-chat { flex: 1; background: #0b141a; background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); display: flex; flex-direction: column; } /* Header */ header { height: 60px; background: var(--header-bg); display: flex; align-items: center; padding: 0 16px; justify-content: space-between; } .user-profile { display: flex; align-items: center; } .avatar { width: 40px; height: 40px; border-radius: 50%; background: #6a7175; margin-right: 12px; object-fit: cover; } /* Chat List */ .chat-list { flex: 1; overflow-y: auto; } .chat-item { padding: 12px 16px; display: flex; align-items: center; cursor: pointer; transition: background 0.2s; } .chat-item:hover { background: var(--header-bg); } .chat-item.active { background: var(--active-chat); } .chat-info { flex: 1; border-bottom: 1px solid rgba(134, 150, 160, 0.15); padding-bottom: 10px; } .chat-header { display: flex; justify-content: space-between; } .chat-name { font-weight: 500; } .unread-badge { background-color: var(--whatsapp-green); color: white; font-size: 0.75rem; font-weight: bold; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: flex; justify-content: center; align-items: center; margin-left: 8px; animation: badge-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); } @keyframes badge-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } } .last-msg { font-size: 0.9em; color: var(--text-secondary); margin-top: 4px; } /* Message Area */ .messages-container { flex: 1; overflow-y: auto; padding: 20px 40px; display: flex; flex-direction: column; } .message { max-width: 60%; padding: 8px 12px; border-radius: 8px; margin-bottom: 4px; position: relative; font-size: 0.95em; word-wrap: break-word; } .message.incoming { align-self: flex-start; background: var(--msg-incoming); } .message.outgoing { align-self: flex-end; background: var(--msg-outgoing); } .msg-content { white-space: pre-wrap; word-break: break-word; font-family: inherit; line-height: 1.5; } /* Code Highlights in Messages */ .msg-content code { background: rgba(0, 0, 0, 0.3); padding: 2px 5px; border-radius: 4px; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.9em; } .msg-content .code-block { background: #011627; padding: 12px; border-radius: 8px; margin: 8px 0; display: block; border: 1px solid rgba(255, 255, 255, 0.1); color: #d6deeb; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.85em; overflow-x: auto; } /* Copy Button */ .copy-btn { position: absolute; top: 5px; right: 5px; background: rgba(32, 44, 51, 0.8); border: none; color: #8696a0; width: 28px; height: 28px; border-radius: 6px; display: flex; justify-content: center; align-items: center; cursor: pointer; opacity: 0; transition: all 0.2s ease; z-index: 10; } .message:hover .copy-btn { opacity: 1; } .copy-btn:hover { color: var(--whatsapp-green); background: rgba(32, 44, 51, 1); } .copy-btn.copied { color: var(--whatsapp-green); } .avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: #2a3942; display: flex; justify-content: center; align-items: center; color: #8696a0; font-size: 1.2rem; } .avatar-small { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } .avatar-container { width: 40px; height: 40px; flex-shrink: 0; } .msg-sender { font-size: 0.8em; font-weight: bold; color: var(--whatsapp-green); margin-bottom: 4px; } /* Input Area */ .input-area { background: var(--header-bg); padding: 10px 16px; display: flex; align-items: flex-end; /* Align buttons to bottom of textarea */ } .input-area textarea { flex: 1; background: #2a3942; border: none; border-radius: 8px; padding: 10px 16px; color: var(--text-primary); margin: 0 10px; outline: none; resize: none; height: 40px; min-height: 40px; max-height: 200px; font-family: inherit; font-size: 0.95rem; line-height: 1.4; overflow-y: auto; } .send-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 5px; } .send-btn:hover { color: var(--text-primary); } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; z-index: 100; } .modal-content { background: var(--sidebar-bg); padding: 30px; border-radius: 10px; width: 400px; } /* Coding Community Styles */ .community-mobile-header, .close-sidebar-btn, .comm-toggle-btn { display: none; } #community-page { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; background: var(--bg-color); z-index: 1000; } .community-sidebar { width: 320px; background: var(--sidebar-bg); border-right: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; } .community-main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 20px; align-items: center; } .community-nav { padding: 10px; } .comm-nav-item { width: 100%; background: none; border: none; color: var(--text-secondary); padding: 12px 15px; text-align: left; font-size: 1.1rem; cursor: pointer; border-radius: 8px; display: flex; align-items: center; gap: 12px; transition: all 0.2s; } .comm-nav-item.active, .comm-nav-item:hover { background: var(--header-bg); color: var(--whatsapp-green); } .who-to-follow { padding: 20px; } .user-list-mini { margin-top: 15px; max-height: 300px; overflow-y: auto; padding-right: 5px; } .who-to-follow h4 { color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; } .suggested-user { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .community-feed-container { width: 100%; max-width: 700px; } /* Composer Links */ .composer-links .input-group { display: flex; align-items: center; gap: 12px; background: rgba(134, 150, 160, 0.05); padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(134, 150, 160, 0.1); } .composer-links input { width: 100%; background: transparent; border: none; color: var(--text-primary); outline: none; font-size: 0.95rem; } .composer-links i { color: var(--text-secondary); width: 20px; text-align: center; } .post-composer { background: var(--sidebar-bg); padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.05); } .composer-header { display: flex; gap: 15px; } .composer-header textarea { flex: 1; background: none; border: none; color: var(--text-primary); font-size: 1.1rem; resize: none; outline: none; } .code-textarea { width: 100%; background: #011627; color: #d6deeb; font-family: 'Courier New', Courier, monospace; padding: 15px; border-radius: 8px; border: 1px solid #1d3b53; margin-top: 10px; min-height: 150px; } .composer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; } .action-btn-text { background: none; border: none; color: var(--whatsapp-green); cursor: pointer; font-weight: 600; } .btn-primary-small { background: var(--whatsapp-green); color: white; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 600; cursor: pointer; } .post-card { background: var(--sidebar-bg); border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.05); } .post-header { display: flex; justify-content: space-between; margin-bottom: 15px; } .post-author { display: flex; align-items: center; gap: 12px; } .post-content { color: var(--text-primary); font-size: 1.1rem; line-height: 1.6; margin-bottom: 12px; white-space: pre-wrap; word-wrap: break-word; } .post-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; } .post-link-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(134, 150, 160, 0.1); color: var(--text-primary); text-decoration: none; border-radius: 20px; font-size: 0.9rem; font-weight: 500; border: 1px solid rgba(134, 150, 160, 0.1); transition: all 0.2s; } .post-link-btn:hover { background: rgba(134, 150, 160, 0.2); border-color: var(--whatsapp-green); transform: translateY(-2px); } .post-link-btn i { font-size: 1.1rem; } .code-block { background: #011627; padding: 15px; border-radius: 8px; margin-bottom: 15px; overflow-x: auto; position: relative; border: 1px solid #1d3b53; } .code-block pre { color: #d6deeb; font-family: 'Courier New', Courier, monospace; font-size: 0.9rem; } .post-actions { display: flex; gap: 20px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.05); } .action-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 1rem; } .action-btn:hover, .action-btn.active { color: var(--whatsapp-green); } .back-btn-small { background: var(--header-bg); border: none; color: var(--whatsapp-green); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; } /* Landing Buttons */ .landing-btns { display: flex; gap: 15px; } .community-btn-alt { background: transparent !important; border: 2px solid var(--whatsapp-green) !important; color: var(--whatsapp-green) !important; box-shadow: none !important; } .community-btn-alt:hover { background: rgba(0, 168, 132, 0.1) !important; color: white !important; } .btn-follow { background: var(--whatsapp-green); color: white; border: none; padding: 5px 12px; border-radius: 12px; font-size: 0.8rem; cursor: pointer; } .btn-follow.following { background: rgba(134, 150, 160, 0.2); color: var(--text-secondary); transition: all 0.2s; } .btn-follow.following:hover { background: rgba(255, 92, 92, 0.2); color: #ff5c5c; } /* Responsive Design */ @media (max-width: 900px) { .nav-logo { font-size: 1.2rem; } .nav-login-btn { padding: 6px 16px; font-size: 0.9rem; } .landing-content { flex-direction: column-reverse; text-align: center; margin-top: 100px; gap: 20px; } .landing-title { font-size: 2.8em; } .landing-subtitle { max-width: 100%; margin: 0 auto 30px auto; font-size: 1.1em; } .landing-btns { flex-direction: column; align-items: center; gap: 12px; } .landing-btn { width: 100%; justify-content: center; } #lottie-container { width: 100%; max-width: 350px; height: auto; } } @media (max-width: 768px) { /* Community Mobile Styles */ .community-mobile-header { display: flex; width: 100%; height: 60px; background: var(--header-bg); align-items: center; justify-content: space-between; padding: 0 15px; position: fixed; top: 0; left: 0; z-index: 1002; border-bottom: 1px solid rgba(255,255,255,0.05); } .sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: var(--header-bg); } .sidebar-header #community-back-btn { display: none; } .community-sidebar { position: fixed; top: 0; left: -320px; /* Hidden by default */ height: 100%; z-index: 2000; transition: left 0.3s ease; box-shadow: 10px 0 30px rgba(0,0,0,0.5); } .community-sidebar.active { left: 0; } .community-main { padding: 80px 15px 20px 15px; } .community-feed-container { max-width: 100%; } .comm-toggle-btn { background: none; border: none; color: var(--whatsapp-green); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } .close-sidebar-btn { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } .composer-header textarea { font-size: 1rem; } /* Original Chat Sidebar/Main */ .sidebar { width: 100%; min-width: 100%; border-right: none; display: flex; } .main-chat { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; } /* ... existing chat logic ... */ } @media (max-width: 480px) { header { padding: 0 10px; } .chat-info { padding-bottom: 5px; } } /* Front Page Mobile Refinements */ @media (max-width: 480px) { .landing-title { font-size: 1.8em !important; margin-bottom: 15px !important; } .landing-subtitle { font-size: 1rem !important; margin-bottom: 30px !important; } .hero-actions { margin-bottom: 40px !important; display: flex; flex-direction: column; gap: 15px; } .landing-btn { width: 100% !important; justify-content: center; } .marquee-section { padding: 25px 0 !important; margin: 40px 0 !important; transform: rotate(-1deg) scale(1.1) !important; } .marquee-content span { font-size: 1.1rem !important; } } /* Stylish Footer Branding */ .landing-footer { width: 100%; padding: 60px 20px; text-align: center; position: relative; z-index: 2; background: transparent; color: var(--text-secondary); font-family: var(--heading-font); font-size: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 40px; } .landing-footer p { display: flex; align-items: center; justify-content: center; gap: 10px; letter-spacing: 0.5px; opacity: 0.8; } .landing-footer .signature { color: var(--whatsapp-green); font-weight: 700; text-transform: uppercase; background: linear-gradient(90deg, #00a884, #00d2ad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; padding-bottom: 2px; } .landing-footer .signature::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--whatsapp-green); transform: scaleX(0); transform-origin: center; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); } .landing-footer:hover .signature::after { transform: scaleX(1); } .landing-footer:hover p { opacity: 1; transition: opacity 0.3s; } /* Ensure footer works on mobile */ @media (max-width: 480px) { .landing-footer { padding: 40px 20px; font-size: 0.85rem; } } /* Mobile Chat Navigation Fix */ @media (max-width: 768px) { .mobile-chat-active .sidebar { display: none !important; } .mobile-chat-active .main-chat { display: flex !important; } } /* Chat Back Button Styling for Mobile */ .chat-mobile-back { display: none; background: none; border: none; color: var(--text-secondary); font-size: 1.25rem; margin-right: 15px; cursor: pointer; align-items: center; justify-content: center; } @media (max-width: 768px) { .chat-mobile-back { display: flex !important; } } /* Refined Back Button UI */ .chat-mobile-back { display: none; background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: var(--text-secondary); width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); margin-right: 12px; } .chat-mobile-back:hover { background: rgba(255, 255, 255, 0.15) !important; color: var(--whatsapp-green); transform: translateX(-2px); } .chat-mobile-back:active { scale: 0.95; background: var(--whatsapp-green) !important; color: white; } @media (max-width: 768px) { .chat-mobile-back { display: flex !important; } }