/* CSS for the social and clock container */ .social-container { opacity: 0; } .clock-container { opacity: 0; } .animate-glow { animation: glow 2s infinite alternate; } /* Rainbow Animation */ @keyframes rainbow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .animate-rainbow { background-image: linear-gradient(to right, red, orange, yellow, green, cyan); background-size: 300% 300%; background-clip: text; -webkit-background-clip: text; /* For WebKit browsers */ color: transparent; /* Ensures text takes on the gradient */ animation: rainbow 10s ease infinite; } .container-shape { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; background: black; color: white; overflow: hidden; isolation: isolate; /* Ensures pseudo-elements stack properly */ } .container-shape::before, .container-shape::after { content: ""; position: absolute; border: 2px solid cyan; /* Neon border */ border-radius: 0; /* Optional, depends on desired style */ box-shadow: 0 0 20px cyan; transition: all 0.3s ease-in-out; } .container-shape::before { top: -4px; left: -4px; width: calc(100% + 8px); height: calc(100% + 8px); clip-path: polygon( 10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10% ); } .container-shape::after { top: 4px; left: 4px; width: calc(100% - 8px); height: calc(100% - 8px); clip-path: polygon( 10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10% ); } .container-shape:hover::before, .container-shape:hover::after { transform: scale(1.02); } .animate-glow { animation: glow 2s infinite alternate; } @keyframes glow { from { filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.7)); } to { filter: drop-shadow(0 0 16px rgba(0, 255, 255, 1)); } } /* Ensure the flex container for large screens still keeps the elements stacked vertically */ @media (min-width: 1024px) { #home { flex-direction: column !important; /* Force column layout for larger screens */ } }