* { margin: 0; padding: 0; box-sizing: border-box; transition: all 0.3s ease; scroll-behavior: smooth; } body { font-family: 'Courier New', Courier, monospace; background-color: rgb(36, 41, 46); } body.light-mode { background-color: #eeeeee; } /* HEADER */ header { background-color: rgb(31, 36, 40); padding: 0px 32px; position: fixed; top: 0; width: 100%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.075); } body.light-mode header { background-color: #ffffff; } header.scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); } .logo a { color: #5865f2; text-decoration: none; font-size: 32px; font-weight: bold; } nav { display: flex; align-items: center; justify-content: flex-start; position: relative; padding: 20px 0px; max-width: 1200px; margin: 0 auto; } nav ul { list-style: none; display: flex; gap: 20px; position: absolute; left: 50%; transform: translateX(-50%); } nav ul li a { color: white; text-decoration: none; font-size: 18px; padding: 0px 12px; } nav ul li a:hover { color: #6d6d6d; } body.light-mode nav ul li a { color: #222222; } body.light-mode nav ul li a:hover { color: #a0a0a0; } .dark-mode-toggle { margin-left: auto; display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; background-color: rgb(40, 45, 48); color: white; font-size: 24px; border: none; border-radius: 50%; } .dark-mode-toggle:hover { background-color: rgb(28, 33, 37); } body.light-mode .dark-mode-toggle { color: #242424; background-color: #f7f7f7; } body.light-mode .dark-mode-toggle:hover { background-color: #e0e0e0; } /* FOOTER */ footer { background-color: rgb(27, 31, 34); padding: 48px 0px; width: 100%; border-top: 1px solid #222222; margin-top: 5rem; text-align: center; } body.light-mode footer { background-color: #eeeeee; border-top: 1px solid #d8d8d8; } footer .links { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; } footer a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background-color: rgb(39, 44, 48); color: white; font-size: 20px; border: none; border-radius: 50%; text-decoration: none; transition: color 0s; transition: transform 0.15s ease; } footer a:hover { background-color: #5865f2; transform: translateY(-3px); } body.light-mode footer a { background-color: rgb(231, 231, 231); color: rgb(29, 29, 29); } body.light-mode footer a:hover { color: white; background-color: #5865f2; } footer p { color: rgb(216, 216, 216); text-decoration: none; font-size: 14px; justify-self: center; } body.light-mode footer p { color: #242424; } /* MAIN */ main { max-width: 1200px; padding-top: 32px; margin: 72px auto 0 auto; } /* Home Section */ .home-container { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; text-align: center; color: rgb(216, 216, 216); } .home-container h1 { font-size: 3.5rem; } .home-container h2 { margin-top: 0.5rem; font-size: 2rem; } .home-container p { margin-top: 2.5rem; font-size: 1rem; } .home-container span { color: #5865f2; } body.light-mode .home-container h1 { color: #3a3a3a; } body.light-mode .home-container h2 { color: rgb(43, 43, 43); } body.light-mode .home-container p { color: rgb(43, 43, 43); } .home-container .links { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 2rem; margin-bottom: 24px; } .home-container a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background-color: rgb(44, 49, 54); color: white; font-size: 20px; border: none; border-radius: 50%; text-decoration: none; transition: color 0s; transition: transform 0.15s ease; } .home-container a:hover { background-color: #5865f2; transform: translateY(-3px); } body.light-mode .home-container a { background-color: rgb(231, 231, 231); color: rgb(29, 29, 29); } body.light-mode .home-container a:hover { color: white; background-color: #5865f2; } /* projects Section */ .projects-container { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; color: rgb(216, 216, 216); } body.light-mode .projects-container { color: rgb(216, 216, 216); } .projects-container h1 { font-size: 2rem; margin-bottom: 2rem; color: rgb(216, 216, 216); } body.light-mode .projects-container h1 { color: #3a3a3a; } .projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); grid-gap: 2rem; } .project { padding: 2rem; margin: 0 auto; text-align: center; background-color: rgb(33, 37, 41); border-radius: 4px; box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2); } body.light-mode .project { background-color: #eeeeee; color: rgb(43, 43, 43); } .project h1 { margin-bottom: 1.25rem; font-size: 1.5rem; color: rgb(216, 216, 216); } body.light-mode .project h1 { color: #3a3a3a; } .project p { color: rgb(216, 216, 216); } body.light-mode .project p { color: #3a3a3a; } .project ul { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; list-style: none; } .project li { margin: 0.5em; font-size: 0.85rem; color: rgb(216, 216, 216); } body.light-mode .project li { color: #3a3a3a; } .project a { display: inline-flex; align-items: center; justify-content: center; margin-top: 1.5rem; width: 42px; height: 42px; background-color: rgb(44, 49, 54); color: white; font-size: 20px; border: none; border-radius: 50%; text-decoration: none; transition: color 0s; transition: transform 0.15s ease; } .project a:hover { background-color: #5865f2; transform: translateY(-3px); } body.light-mode .project a { background-color: rgb(231, 231, 231); color: rgb(29, 29, 29); } body.light-mode .project a:hover { color: white; background-color: #5865f2; } /* skills Section */ .skills-container { margin-top: 6rem; display: flex; flex-direction: column; align-items: center; color: rgb(216, 216, 216); } body.light-mode .skills-container { color: rgb(216, 216, 216); } .skills-container h1 { font-size: 2rem; margin-bottom: 2rem; color: rgb(216, 216, 216); } body.light-mode .skills-container h1 { color: #3a3a3a; } .skills-container ul { margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; list-style: none; gap: 1em; } .skills-container li { padding: 1rem; background-color: #5660ca; border-radius: 0.5rem; box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2); } .skills-container li:hover { background-color: #3b43a0; transform: translateY(-3px); } /* contact Section */ .contact-container { margin-top: 6rem; display: flex; flex-direction: column; align-items: center; color: rgb(216, 216, 216); } body.light-mode .contact-container { color: rgb(216, 216, 216); } .contact-container h1 { font-size: 2rem; margin-bottom: 2rem; color: rgb(216, 216, 216); } body.light-mode .contact-container h1 { color: #3a3a3a; } .contact-container a { padding: 1rem; background-color: #5660ca; border-radius: 0.5rem; box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2); text-decoration: none; align-items: center; color: rgb(216, 216, 216); } .contact-container a:hover { background-color: #3b43a0; transform: translateY(-3px); } /* transition fix */ .project a, .home-container a, footer a { transition: background-color 0.3s ease, transform 0.15s ease; } /* Mobile Compat */ .mobile-nav, .mobile-nav-toggle { display: none; } @media (max-width: 768px) { /* Nav Bar */ nav ul { display: none; } .dark-mode-toggle { display: none; } header { z-index: 100; } .mobile-nav-toggle { display: block; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; font-size: 24px; color: white; background: none; border: none; } body.light-mode .mobile-nav-toggle { color: rgb(28, 33, 37); } .mobile-nav { display: block; position: fixed; right: -18rem; width: 18rem; height: 100vh; background-color: rgb(34, 40, 44); box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2); z-index: 50; } body.light-mode .mobile-nav { background-color: #ffffff; } .mobile-nav.active { right: 0; } .mobile-nav ul { width: 100%; margin-top: 2.5rem; list-style: none; display: flex; flex-direction: column; } .mobile-nav li { margin-left: 2rem; } .mobile-nav .links { margin-left: auto; margin-right: auto; margin-top: 1.5rem; } .mobile-nav .links a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background-color: rgb(44, 49, 54); color: white; font-size: 20px; border: none; border-radius: 50%; text-decoration: none; transition: color 0s; transition: transform 0.15s ease; } .mobile-nav .links a:hover { background-color: #5865f2; transform: translateY(-3px); } body.light-mode .mobile-nav .links a { background-color: #f7f7f7; color: rgb(29, 29, 29); } body.light-mode .mobile-nav .links a:hover { color: white; background-color: #5865f2; } .dark-mode-toggle-mobile { width: 48px; height: 48px; align-items: center; justify-content: center; background-color: rgb(40, 45, 48); color: white; font-size: 24px; border: none; border-radius: 50%; } .dark-mode-toggle-mobile:hover { background-color: rgb(28, 33, 37); } body.light-mode .dark-mode-toggle-mobile { color: #242424; background-color: #f7f7f7; } body.light-mode .dark-mode-toggle-mobile:hover { background-color: #e0e0e0; } /* Content */ .home-container h1 { font-size: 2rem; } .home-container h2 { font-size: 1.5rem; } .home-container p { font-size: 1rem; margin-top: 1.5rem; } .projects-container h1 { font-size: 1.75rem; } .projects { padding-left: 1.5rem; padding-right: 1.5rem; } .project h1 { font-size: 1.5rem; } .project li { font-size: 0.90rem; } .skills-container h1 { font-size: 1.75rem; } .skills-container ul { padding-left: 0.5rem; padding-right: 0.5rem; } .contact-container { padding-left: 1.5rem; padding-right: 1.5rem; text-align: center; } .contact-container h1 { font-size: 1.75rem; } }