:root { --bg-color: #181818; --text-color: #f0f0f0; --accent-color: rgba(0, 255, 255, 0.5); /* Cyan glow */ --accent-color-solid: #00ffff; /* Solid cyan for borders */ --button-bg-start: #2a2a3a; --button-bg-end: #4a4a5a; --invalid-border: #ff4d4d; /* Red for invalid inputs */ --error-glow: rgba(255, 77, 77, 0.5); /* Red glow for errors */ --success-glow: rgba(46, 204, 113, 0.5); /* Green glow for success */ } .inter-body-font { font-family: "Inter", sans-serif; font-optical-sizing: auto; font-weight: 300; font-style: normal; } .montserrat-body-font { font-family: "Montserrat", sans-serif; font-optical-sizing: auto; font-weight: 300; font-style: normal; } body { font-family: "Inter", Arial, sans-serif; margin: 0; background: var(--bg-color); color: var(--text-color); overflow: hidden; } #page-wrapper { height: 100vh; display: grid; place-items: center; margin: 0; padding: 0; box-sizing: border-box; } #main-page, #contact-page { display: none; max-width: 600px; width: 100%; text-align: center; transform: translateY(-5vh); /* Slight upward shift */ } #main-page.active, #contact-page.active { display: block; animation: fadeIn 0.3s ease-in; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } #main-page h1, #contact-page h1 { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 2.2rem; margin: 0 0 0.5rem 0; text-shadow: 0 0 10px var(--accent-color); } #main-page p, #contact-page p { font-size: 1rem; line-height: 1.4; margin: 0 0 0.8rem 0; } .contact-container { max-width: 400px; margin: 0 auto; text-align: center; } #contact-page form { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 500px; width: 100%; } #contact-page input, #contact-page textarea { font-family: "Inter", sans-serif; font-size: 0.9rem; background: #2a2a2a; color: var(--text-color); border: 1px solid var(--accent-color); border-radius: 6px; padding: 8px 16px; /* More side padding */ width: 100%; box-sizing: border-box; transition: box-shadow 0.3s ease, border-color 0.3s ease; text-align: left; } #contact-page input:focus, #contact-page textarea:focus { background-color: #2a2a2a; outline: none; box-shadow: 0 0 8px var(--accent-color); border-color: var(--accent-color-solid); } #contact-page input:invalid, #contact-page textarea:invalid { border-color: var(--invalid-border); } #contact-page input:-webkit-autofill, #contact-page input:-webkit-autofill:hover, #contact-page input:-webkit-autofill:focus, #contact-page input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important; -webkit-text-fill-color: var(--text-color) !important; } #contact-page textarea { height: 100px; resize: none; overflow-y: auto; scrollbar-width: auto; scrollbar-color: #4a4a4a #2a2a2a; } #contact-page textarea::-webkit-scrollbar { width: 8px; } #contact-page textarea::-webkit-scrollbar-track { background: #2a2a2a; } #contact-page textarea::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 4px; } #contact-page textarea::-webkit-scrollbar-thumb:hover { background: #6a6a6a; } .button-group { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } #main-page button, #contact-page button { background: #2a2a2a; border: 1px solid #2a2a2a; color: var(--text-color); padding: 10px 16px; border-radius: 6px; cursor: pointer; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1rem; transition: border 0.3s ease, box-shadow 0.3s ease; } #main-page button:hover, #contact-page button:hover { border: 1px solid var(--accent-color-solid); box-shadow: 0 0 15px var(--accent-color); } .alert { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #2a2a2a; color: var(--text-color); border: 1px solid var(--accent-color); border-radius: 6px; padding: 10px 20px; box-shadow: 0 0 10px var(--accent-color); z-index: 1000; animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-out 2.7s; } .alert.error { border: 1px solid var(--error-glow); box-shadow: 0 0 10px var(--error-glow); } .alert.success { border: 1px solid var(--success-glow); box-shadow: 0 0 10px var(--success-glow); } @keyframes slideIn { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @media (max-width: 600px) { #main-page h1, #contact-page h1 { font-size: 1.6rem; } #main-page p, #contact-page p { font-size: 0.9rem; margin-bottom: 0.6rem; } #main-page button, #contact-page button { font-size: 0.8rem; padding: 8px 12px; } #main-page, #contact-page { padding: 10px; } #contact-page input, #contact-page textarea { font-size: 0.8rem; padding: 6px 12px; /* Adjusted for mobile */ } .contact-container { max-width: 90%; } }
