/* General Reset */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; } body { background: linear-gradient(120deg, #0f0f1f, #1a1a2e); color: #ffffff; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; } /* Navbar Styles */ .navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2.5rem; background-color: #1a1a2e; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); position: sticky; top: 0; z-index: 1000; border-radius: 15px; transition: all 0.4s ease; } .navbar:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); transform: translateY(-5px); } .navbar-brand { display: flex; align-items: center; text-decoration: none; color: #ffffff; font-size: 1.8rem; font-weight: bold; transition: transform 0.3s ease, color 0.3s ease; } .navbar-brand img { height: 50px; margin-right: 15px; transition: transform 0.3s ease; } .navbar-brand span { font-size: 1.4rem; font-weight: bold; transition: color 0.3s ease; } .navbar-links { list-style: none; display: flex; gap: 2rem; margin-left: auto; } .navbar-links li { position: relative; } .navbar-links a { text-decoration: none; color: #ffffff; font-weight: bold; font-size: 1.1rem; transition: color 0.4s ease, transform 0.3s ease; position: relative; } .navbar-links a:hover { color: #1e90ff; transform: translateY(-6px) scale(1.1); text-shadow: 0 6px 10px rgba(0, 0, 0, 0.4); } .navbar-links a:before { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 2px; background-color: #1e90ff; transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease; } .navbar-links a:hover:before { transform: scaleX(1); transform-origin: bottom left; } .navbar-links li:hover { transform: translateY(-4px); } /* Promo Notification */ .promo-notification { display: flex; align-items: center; background-color: #333d4d; /* Stronger background color */ margin: 1.5rem auto; padding: 1.2rem; border-radius: 10px; box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6); /* Stronger shadow */ max-width: 800px; width: 90%; animation: promoAnimation 1.5s ease-out; /* New animation for a stronger effect */ } .promo-notification img { height: 100px; /* Larger image */ margin-right: 1.5rem; border-radius: 8px; transition: transform 0.3s ease; } .promo-notification:hover img { transform: scale(1.1); /* Slight zoom effect on hover */ } .promo-text { flex: 1; } .promo-text h5 { font-size: 1.8rem; color: #f39c12; /* Bright and engaging color */ font-weight: bold; } .promo-text p { font-size: 1.2rem; color: #ffffff; } .btn-buy { background-color: #e74c3c; /* Strong red color for action */ color: #ffffff; padding: 0.6rem 1.2rem; border-radius: 8px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease, transform 0.3s ease; display: inline-block; } .btn-buy:hover { background-color: #c0392b; /* Darker red on hover */ transform: scale(1.1); } /* New Animation */ @keyframes promoAnimation { 0% { opacity: 0; transform: translateY(-20px); } 50% { opacity: 1; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } } /* Welcome Section */ .welcome-section { text-align: center; padding: 2rem; } .welcome-section h1 { font-size: 2.5rem; margin-bottom: 1rem; } .welcome-section p { font-size: 1.2rem; margin-bottom: 2rem; color: #b0b0b0; } /* Tombol Container */ .btn-container { display: flex; flex-direction: column; /* Menyusun tombol secara vertikal */ gap: 1rem; /* Jarak antar tombol */ align-items: center; /* Agar tombol ditengah */ margin-top: 2rem; } /* Tombol */ .btn-container a { display: inline-block; background-color: #1e90ff; color: #ffffff; padding: 0.8rem 1.2rem; margin: 0.5rem; border-radius: 5px; text-decoration: none; font-weight: bold; transition: transform 0.3s ease, background-color 0.3s ease; width: 100%; /* Membuat tombol mengambil lebar penuh */ max-width: 300px; /* Atur ukuran maksimal tombol */ } /* Hover effect */ .btn-container a:hover { background-color: #2980b9; transform: scale(1.1); } /* Footer */ footer { background-color: #0f0f1f; color: #ffffff; text-align: center; padding: 1rem; margin-top: auto; font-size: 0.9rem; } footer a { text-decoration: none; color: #1e90ff; font-weight: bold; } footer a:hover { text-decoration: underline; } /* Animations */ .navbar, .promo-notification, .welcome-section, footer { animation: fadeIn 1s ease forwards; opacity: 0; } .btn-container a { animation: slideIn 1.2s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Responsive Styles */ @media screen and (max-width: 768px) { .navbar { padding: 1rem; flex-direction: column; align-items: flex-start; } .navbar-links { flex-direction: column; margin-top: 1rem; } .navbar-links li { margin: 0.5rem 0; } .promo-notification { flex-direction: column; align-items: flex-start; width: 100%; padding: 1rem; } .promo-notification img { height: 60px; margin-right: 1rem; } .welcome-section h1 { font-size: 2rem; } .welcome-section p { font-size: 1rem; } .btn-container a { font-size: 0.9rem; } } /* For small mobile screens */ @media screen and (max-width: 480px) { .navbar { padding: 0.8rem; } .navbar-links { margin-top: 0.5rem; } .navbar-links li { margin: 0.5rem 0; } .promo-notification { flex-direction: column; text-align: center; padding: 0.8rem; width: 95%; } .promo-notification img { height: 50px; margin-bottom: 1rem; } .btn-container a { font-size: 0.8rem; padding: 0.7rem 1rem; } } /* Hamburger Menu */ .hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; } .hamburger span { width: 30px; height: 3px; background-color: #ffffff; border-radius: 5px; } /* Mobile View */ @media screen and (max-width: 768px) { .navbar { padding: 1rem; flex-direction: column; align-items: flex-start; } .navbar-links { flex-direction: column; margin-top: 1rem; display: none; width: 100%; text-align: center; } .navbar-links.active { display: block; } .navbar-links li { margin: 0.5rem 0; } .hamburger { display: flex; } } .ai-chat-button-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; } .ai-chat-button { background: linear-gradient(45deg, #6a5af9, #5efc8d); color: #fff; border: none; border-radius: 50px; padding: 15px 25px; font-size: 18px; font-weight: bold; cursor: pointer; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 12px; transform: translateY(0); outline: none; } .ai-chat-button:hover { background: linear-gradient(45deg, #5efc8d, #6a5af9); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); transform: scale(1.1) translateY(-4px); } .ai-chat-button:active { transform: scale(1) translateY(2px); } .ai-chat-button::before { content: '🤖'; font-size: 24px; transition: transform 0.3s ease; } .ai-chat-button:hover::before { transform: rotate(20deg); } .ai-chat-button span { font-size: 18px; font-weight: bold; transition: transform 0.3s ease; } .ai-chat-button:hover span { transform: translateX(5px); }