css
/* Use a CSS reset or normalize.css for consistent baseline */
html, body {
  padding: 0;
  margin: 0;
  font-family: sans-serif;
  font-size: 1.2rem;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* CSS custom properties for repeated colors */
:root {
  --primary-color: #dc2f55;
  --form-bg: #15172b;
  --input-bg: #303245;
  --text-light: #eee;
  --about-bg: #151823;
  --about-text: #252B37;
  --about-glow1: #0fffc1;
  --about-glow2: #7e0fff;
  --about-glow3: #ffab91;
  --about-glow4: #90caf9;
  --about-glow5: #ffcc80;
  --interests-bg: #efecdb;
  --interests-text: #dc2f55;
  --navbar-bg: black;
  --navbar-text: white;
}

html {
  scroll-behavior: smooth;
}

section {
  min-height: 100vh;
  padding: 5rem 0 1.25rem 0;
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  font-family: sans-serif;
  padding: 0.625rem 0;
}

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-content {
  max-width: 50rem;
  margin: 0 auto;
  padding: 1.25rem;
}
/*--------------------------------------------------------------------------------------------------*/
.hoverable{
  display:inline-block;
  backface-visibility: hidden;
  position:relative;
  vertical-align: baseline;
  box-shadow: 0 0 1px rgba(0,0,0,0);
  transform: translateZ(0);
  transition-duration: .3s;
  font-size: 1.25rem;
  transition-property:transform;
}
.navbar .hoverable.active {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.hoverable:before,
.hoverable:active:before{
  position:absolute;
  pointer-events: none;
  z-index:-1;
  content: '';
  top: 100%;
  left: 5%;
  height:0.625rem;
  width:90%;
  opacity:0;
  background: -webkit-radial-gradient(center, ellipse, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 80%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 80%);
  /* W3C */
  transition-duration: 0.3s;
  transition-property: transform, opacity;
}

.hoverable:hover, .hoverable:active, .hoverable:focus{
  transform: translateY(-0.3125rem);
  
}
.hoverable:hover:before, .hoverable:active:before, .hoverable:focus:before{
  opacity: 1;
  transform: translateY(-0.3125rem);
}



@keyframes bounce-animation {
  16.65% {
    -webkit-transform: translateY(0.5rem);
    transform: translateY(0.5rem);
  }

  33.3% {
    -webkit-transform: translateY(-0.375rem);
    transform: translateY(-0.375rem);
  }

  49.95% {
    -webkit-transform: translateY(0.25rem);
    transform: translateY(0.25rem);
  }

  66.6% {
    -webkit-transform: translateY(-0.125rem);
    transform: translateY(-0.125rem);
  }

  83.25% {
    -webkit-transform: translateY(0.0625rem);
    transform: translateY(0.0625rem);
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

.bounce {
  animation-name: bounce-animation;
  animation-duration: 2s;
}



/*everything below here is just setting up the page, so dont worry about it */


@media (min-width: 768px) {
  .navbar{
    text-align: center;
    float: none;
    display: inline-block;
  }
}

body {
  background-color: black;
  font-weight:600;
  text-align:center;
  color: var(--navbar-text);
}
nav {
  background: var(--navbar-bg);
  text-transform:uppercase;
  font-family:sans-serif;
}
/* Desktop styles */
/* For screens larger than 769px */
@media (min-width: 769px) {
  .navbar-nav {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Space between the left and right parts */
  }

  /* Left part (Home) */
  #len1 {
    flex: 0 2 40em; /* flex-grow: 0, flex-shrink: 2, flex-basis: 40em */
    margin-left: 2em;
    min-width: 100px; /* Minimum width before other items start shrinking */
    font-size: 1.5rem;
    white-space: nowrap;
  }

  /* Right part (About, Interests, Portfolio, Contact) */
  #len2, #len3, #len4, #len5 {
    flex: 0 1 auto; /* flex-grow: 0, flex-shrink: 1, flex-basis: auto */
    margin-left: 2em;
    margin-right: 1em;
    font-size: 1.1rem;
    white-space: nowrap;
  }
}

/* Mobile Navigation Styles */

@media (max-width: 768px) {
  /* Reset and hide default navigation */
  .scroll-timer {
    display: none !important;
  }
  .navbar-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #252839;
    z-index: 999;
  }

  /* Toggle Button Styles */
  .navbar-toggle {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.625rem;
  }

  .navbar-toggle span,
  .navbar-toggle span:before,
  .navbar-toggle span:after {
    width: 100%;
    height: 0.1875rem;
    background-color: #fff;
    transition: all 0.3s;
    backface-visibility: hidden;
    border-radius: 2px;
    position: absolute;
    left: 0px;
  }

  .navbar-toggle span {
    top: 50%;
    transform: translateY(-50%);
  }

  .navbar-toggle span:before {
    content: "";
    top: -0.5rem;
  }

  .navbar-toggle span:after {
    content: "";
    bottom: -0.5rem;
  }

  /* Active Toggle States */
  .navbar-toggle.active span {
    background-color: transparent;
  }

  .navbar-toggle.active span:before {
    transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
    background-color: #fff;
  }

  .navbar-toggle.active span:after {
    transform: rotate(-45deg) translate(0.4375rem, -0.5rem);
    background-color: #fff;
  }

  /* Active Menu States */
  .navbar-menu.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: menuFadeIn 0.3s ease forwards;
  }

  /* Center navigation items */
  .navbar-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* Increased gap for better tap targets */
    padding: 0;
    margin: 0;
    height: 100%; /* Full height */
    width: 100%; /* Full width */
  }

  /* Improve tap targets */
  .navbar-nav li {
    width: 80%; /* Wider clickable area */
    max-width: 18.75rem; /* Maximum width for larger screens */
    text-align: center;
    opacity: 0;
    transform: translateY(1.25rem);
  }

  .navbar-nav a {
    display: block; /* Full width clickable area */
    padding: 0.9375rem 1.25rem; /* Larger tap target */
    font-size: 1.5em; /* Slightly smaller font for better fit */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
  }

  /* Center the toggle button */
  .navbar-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.625rem;
    z-index: 1000;
  }

  /* Active states remain the same */
  .navbar-menu.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Animation delays for staggered entrance */
  .navbar-menu.active .navbar-nav li {
    animation: fadeInUp 0.5s ease forwards;
  }

  .navbar-nav li:nth-child(1) { animation-delay: 0.1s; }
  .navbar-nav li:nth-child(2) { animation-delay: 0.2s; }
  .navbar-nav li:nth-child(3) { animation-delay: 0.3s; }
  .navbar-nav li:nth-child(4) { animation-delay: 0.4s; }
  .navbar-nav li:nth-child(5) { animation-delay: 0.5s; }
}

/* Add touch-friendly active states */
@media (hover: none) {
  .navbar-nav a:active::before {
    width: 100%;
    filter: drop-shadow(0 0 25px var(--clr));
  }
}

  /* Animations */
  @keyframes menuFadeIn {
    from {
      opacity: 0;
      transform: translateX(-100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(1.25rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


.page-title {
  opacity: .75;
}

a{
  text-decoration: none;
}
.sidetitle {
  cursor: pointer; /* Makes it look clickable */
  background-color: #f0f0f0; /* Light background */
  font-size: 1rem; /* Adjusts font size */
}

.sidetitle:hover {
  background-color: var(--primary-color); /* Slightly darker on hover */
}



/* For contact Me */
/* ----------------------------------------------------------------------------------------------- */
.form {
  background-color: var(--form-bg);
  border-radius: 1.25rem;
  height: 37.5rem;
  padding: 1.25rem;
  width: 25rem;
}

.title {
  color: var(--primary-color);
  font-family: sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  margin-top: 1.875rem;
  text-align: center;
}

.subtitle {
  color: var(--text-light);
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.625rem;
  text-align: center;
}

.input-container {
  height: 3.125rem;
  position: relative;
  width: 100%;
}

.ic1 {
  margin-top: 2.5rem;
}

.ic2 {
  margin-top: 1.875rem;
}

.input {
  background-color: var(--input-bg);
  border-radius: 0.75rem;
  border: 0;
  color: var(--text-light);
  font-size: 1.125rem;
  height: 100%;
  outline: 0;
  padding: 0.25rem 1.25rem 0;
  width: 100%;
}

.cut {
  background-color: var(--form-bg);
  border-radius: 0.625rem;
  height: 1.25rem;
  left: 1.25rem;
  position: absolute;
  top: -1.25rem;
  transform: translateY(0);
  transition: transform 200ms;
  width: 4.75rem;
}

.cut-short {
  width: 3.125rem;
}

.input:focus ~ .cut,
.input:not(:placeholder-shown) ~ .cut {
  transform: translateY(0.5rem);
}

.placeholder {
  color: #65657b;
  font-family: sans-serif;
  left: 1.25rem;
  line-height: 0.875rem;
  pointer-events: none;
  position: absolute;
  transform-origin: 0 50%;
  transition: transform 200ms, color 200ms;
  top: 1.25rem;
}

.input:focus ~ .placeholder,
.input:not(:placeholder-shown) ~ .placeholder {
  transform: translateY(-1.875rem) translateX(0.625rem) scale(0.75);
}

.input:not(:placeholder-shown) ~ .placeholder {
  color: #808097;
}

.input:focus ~ .placeholder {
  color: var(--primary-color);
}

.button-89 {
  margin-top: 4.375rem;/* this displace downward from the top*/
  width: 70%;
  position: relative;
  --b: 3px;   /* border thickness */
  --s: .45em; /* size of the corner */
  --color: var(--primary-color);
  
  padding: calc(.5em + var(--s)) calc(.9em + var(--s));
  color: var(--color);
  --_p: var(--s);
  background:
    conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0)
    var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
  transition: .3s linear, color 0s, background-color 0s;
  outline: var(--b) solid #0000;
  outline-offset: .6em;
  font-size: 1.25rem;

  border: 0;

  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-89:hover,
.button-89:focus-visible{
  --_p: 0px;
  outline-color: var(--color);
  outline-offset: .05em;
}

.button-89:active {
  background: var(--color);
  color: #fff;
}
/* ------------------------------------------------------------------------------------------------------------------ */
/* Clock*/
/* Timer Component Styles */
:root {
  --color-bg: #000000;
  --color-text: var(--primary-color);
  --color-theme: var(--primary-color);
  --color-theme-accent: #fed7aa;
}

@property --progress {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

.scroll-timer {
  --size: 6.25rem; /* Smaller fixed size for corner placement */
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  display: grid;
  grid-template-areas:
    "timer"
    "caption";
  place-items: center;
  place-content: center;
  gap: 0.2em;
}

.timer-wrapper {
  grid-area: timer;
  display: grid;
  place-items: center;
  place-content: center;
  grid-template-areas: "container";
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    var(--color-theme-accent) calc(var(--progress) * 1%),
    transparent 0
  );
}

.timer-wrapper > * {
  grid-area: container;
}

.timer {
  width: calc(var(--size) / 1.2);
  height: calc(var(--size) / 1.2);
}

.caption {
  grid-area: caption;
  font-size: 1.5rem;
  color: var(--color-text);
}

.caption::before,
.caption::after {
  margin-inline: auto;
  content: counter(progress);
  font-weight: bold;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.caption::after {
  content: "%";
}

@supports (animation-timeline: scroll()) {
  .scroll-timer,
  .timer-wrapper,
  .timer,
  .timer-hand,
  .timer-switch {
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-timeline: scroll();
  }

  .scroll-timer {
    animation-name: progress;
    animation-range: 0 100%;
    counter-reset: progress var(--progress);
  }

  .timer-hand {
    transform-origin: 50%;
    rotate: calc((var(--progress) / 100) * 360deg);
    animation-name: progress;
    animation-range: 0 100%;
  }

  @keyframes progress {
    to {
      --progress: 100;
    }
  }
}
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*Aout me page animations*/
/* About Page with Backlit Glow Effect */
/* About Page with Adjusted Backlit Glow Effect */
/* About Page with Floating Backlit Effect */
.about-page {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  font-family: monospace;
  justify-content: center;
  background-color: #1e2330;
  padding: 2rem;
}

.about-container {
  position: relative;
  width: min(80vw, 50rem);
  padding: 2rem;
  text-align: center;
  color: var(--about-text);
  background-color: var(--about-bg);
  animation: textColor 10s ease infinite;
  border-radius: 8px;
  z-index: 1;
  text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.3); /* Soft base glow */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Outward Backlit Glow Effect */
.about-container::before {
  content: "";
  position: absolute;
  inset: -0.3125rem;  /* Creates a small gap for the border glow */
  background: black;
  border-radius: inherit;
  z-index: -2;
  animation: animateGlow 10s ease infinite;
}
.about-container h1{
  font-size: 1.875rem;
  color: var(--primary-color);
}
.about-container::after {
  content: "";
  position: absolute;
  inset: -0.9375rem;  /* Extends beyond the container */
  z-index: -1;
  opacity: 1;  /* Adjusted glow intensity */
  background: linear-gradient(270deg, var(--about-glow1), var(--about-glow2), var(--about-glow3), var(--about-glow4), var(--about-glow5));
  background-size: 400% 400%;
  filter: blur(1.875rem);
  border-radius: inherit;
  animation: animateGlow 50s ease infinite;
  z-index: -5;
}

/* Text Animation */
@keyframes textColor {
  0%   { color: #b388eb; }  /* Soft Lavender */
  10%  { color: #9fa8da; }  /* Muted Blue */
  20%  { color: #80cbc4; }  /* Soft Teal */
  30%  { color: #a5d6a7; }  /* Pastel Green */
  40%  { color: #ffcc80; }  /* Warm Peach */
  50%  { color: #ffab91; }  /* Soft Coral */
  60%  { color: #f48fb1; }  /* Light Pink */
  70%  { color: #ce93d8; }  /* Muted Purple */
  80%  { color: #90caf9; }  /* Baby Blue */
  90%  { color: #b0bec5; }  /* Light Gray Blue */
  100% { color: #b388eb; }  /* Back to Lavender */
}

/* Glow Animation */
@keyframes animateGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes textGlow {
  0%   { text-shadow: 0px 0px 15px #b388eb; }
  20%  { text-shadow: 0px 0px 15px #80cbc4; }
  40%  { text-shadow: 0px 0px 15px #ffab91; }
  60%  { text-shadow: 0px 0px 15px #90caf9; }
  80%  { text-shadow: 0px 0px 15px #ffcc80; }
  100% { text-shadow: 0px 0px 15px #b388eb; }
}
/* Content Styling */
.about-container p {
  color: white;
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-container {
    width: 90vw;
    padding: 1.5rem;
  }
  
  .about-container::after {
    inset: -0.625rem;
    filter: blur(0.9375rem);
  }
}
/* ------------------------------------------------------------------------------------------------*/
/*Interest Pics*/

  #Interests {
    position: relative;
    min-height: 50vh;
    background: var(--interests-bg);
    color: var(--interests-text);
    padding-top: 5rem; /* Padding space */
  }
  

#Interests .external {
  position: relative;
  overflow: hidden;
  height: 50vh;
  width: 100%;
}

.horizontal-scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50vh;
  transform: rotate(-90deg) translate3d(0,-50vh,0);
  transform-origin: right top;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  height: 100vw;
  perspective: 1px;
  transform-style: preserve-3d;
  padding-bottom: 10rem;
}

.img-wrapper {
  transform: rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  transform-origin: 50% 50%;
  transform: rotate(90deg) translateZ(.1px) scale(0.9) translateX(0px) translateY(-3vh);
  transition: 1s;
}

.img-wrapper:hover {
  min-height: 65vh;
}

.slower {
  transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(0%) translateY(-10vh);
}

.slower1 {
  transform: rotate(90deg) translateZ(-.25px) scale(1.05) translateX(0%) translateY(8vh);
}

.slower2 {
  transform: rotate(90deg) translateZ(-.3px) scale(1.3) translateX(0%) translateY(2vh);
}

.slower-down {
  transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(0%) translateY(16vh);
}

.faster {
  transform: rotate(90deg) translateZ(.15px) scale(0.8) translateX(0%) translateY(14vh);
}

.faster1 {
  transform: rotate(90deg) translateZ(.05px) scale(0.8) translateX(0%) translateY(10vh);
}

.vertical {
  transform: rotate(90deg) translateZ(-.15px) scale(1.15) translateX(0%) translateY(0%);
}

.last {
  transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(25vh) translateY(-8vh);
}

.img-wrapper a {
  overflow: hidden;
  display: block;
  padding: 1vh;
  background: var(--interests-bg);
  box-shadow: 0 10px 50px #5f2f1182;
}

.img-wrapper img {
  max-width: 45vh;
  max-height: 50vh;
  transition: .5s;
  vertical-align: top;
  filter: saturate(40%) sepia(30%) hue-rotate(5deg);
}

.img-wrapper a:hover img {
  filter: none;
}

#Interests .scroll-info {
  position: absolute;
  top: 0.625rem; /* Adjust this to be inside padding but above images */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #5D4037;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(239, 236, 219, 0.8); /* Same as your background color but with opacity */
  padding: 0.625rem 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#Interests .icon svg {
  width: 1.875rem;
  height: 1.875rem;
  fill: currentColor;
}
/* Add these for smoother scrolling */
::-webkit-scrollbar {
  width: 0.0625rem;
  height: 0.0625rem;
}

::-webkit-scrollbar-button {
  width: 0.0625rem;
  height: 0.0625rem;
}

/*-----------------------------------------------------------------------------------------------*/
/* Add to your existing CSS */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

#home {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#home .bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradientAnimation 12s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/*-----------------------------------------------------------------------------------------------*/
/*HomePage Frame*/
#projects {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background-color: #1a202c;
}

#projects .bg-gray-800 {
  background-color: #2d3748;
}

#projects .text-white {
  color: #fff;
}

#projects h2, 
#projects h3, 
#projects h4 {
  text-align: center;
  margin-bottom: 1.25rem;
}

#projects .bg-blue-500:hover {
  background-color: #3182ce;
}

#projects iframe {
  border: none;
  width: 100%;
  height: 25rem;
}

@media (max-width: 768px) {
  #projects {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  #projects iframe {
    height: 18.75rem;
  }
}
/*------------------------------------------------------------------------------------------*/
/* Portfolio Cards*/
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100rem;
  padding: 2rem;
  margin: 0 auto;
}

.container .card {
  box-sizing: border-box;
  min-width: 15rem;
}

.container .card .face {
  width: 100%;
  height: 25rem;
  padding: 0; /* Ensure no extra padding */
  margin: 0; /* Ensure no extra margins */
}


.container .card .face.face1 {
  position: relative;
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: translateY(6.25rem);
}

.container .card:hover .face.face1 {
  transform: translateY(0);
  box-shadow:
    inset 0 0 60px whitesmoke,
    inset 20px 0 80px #f0f,
    inset -20px 0 80px #0ff,
    inset 20px 0 300px #f0f,
    inset -20px 0 300px #0ff,
    0 0 50px #fff,
    -10px 0 80px #f0f,
    10px 0 80px #0ff;
}

.container .card .face.face1 .content {
  opacity: 0.2;
  transition: 0.5s;
  text-align: center;
  width: 100%;
  padding: 1.25rem;
}

.container .card:hover .face.face1 .content {
  opacity: 1;
}

.container .card .face.face1 .content i {
  font-size: 3em;
  color: white;
  display: inline-block;
}

.container .card .face.face1 .content h3 {
  font-size: 2em;
  color: white;
  text-align: center;
  margin-top: 0.625rem;
}

.container .card .face.face2 {
  position: relative;
  background: whitesmoke;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0,0,0,.8);
  transform: translateY(-18.75rem);
}

.container .card:hover .face.face2 {
  transform: translateY(0);
}

.container .card .face.face2 .content {
  padding: 1.25rem;
  text-align: center;
}

.container .card .face.face2 .content p {
  font-size: 0.625rem;
  margin: 0;
  padding: 0;
  color: #333;
}

.container .card .face.face2 .content a {
  text-decoration: none;
  color: black;
  box-sizing: border-box;
  outline: 1px dashed #333;
  padding: 0.625rem;
  margin: 0.9375rem 0 0;
  display: inline-block;
}

.container .card .face.face2 .content a:hover {
  background: #333;
  color: whitesmoke;
  box-shadow: inset 0px 0px 10px rgba(0,0,0,0.5);
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
  }
}

@media (max-width: 768px) {
  .container {
    gap: 1.25rem;
    grid-template-columns: 1fr; /* 1 card per row */
  }
}