/* === Base Card Flip Logic === */
.card {
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* === Card Faces === */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  backface-visibility: hidden;
  background: linear-gradient(to bottom, #1b263b, #0d1b2a);
  color: #E6F1FF; /* soft bright text for titles */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.8s ease, box-shadow 0.3s ease, background 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-front:hover,
.card-back:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

/* === Back face rotation === */
.card-back {
  transform: rotateY(180deg);
}

/* === Page Background === */
body {
  background: radial-gradient(circle at top left, #0d1b2a, #0b132b 40%, #000814 90%);
  color: #E6F1FF;
  font-family: "Inter", sans-serif;
}

/* === Text Styling on Cards === */
.card h3 {
  color: #E6F1FF; /* title */
}

.card p {
  color: #B0C4DE; /* readable light gray-blue for description */
}

.card span {
  background-color: rgba(255, 255, 255, 0.08);
  color: #B0C4DE;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}

/* === Links on the back side === */
.card-back a {
  color: #4FC3F7; /* soft cyan link */
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-back a:hover {
  color: #76E2F4;
  text-decoration: underline;
}

/* === Optional Glow for Titles on Hover === */
.card:hover h3 {
  text-shadow: 0 0 6px rgba(79, 195, 247, 0.4);
}

/* === Optional: Slight glass effect for elegance === */
.card-front,
.card-back {
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(27, 38, 59, 0.85), rgba(13, 27, 42, 0.95));
}

/* === Portfolio Header Styling === */
header h1,
h1 {
  color: #E6F1FF; /* Bright white-blue for the main title */
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

header h2,
h2 {
  color: #A9B9D2; /* Softer gray-blue for subtitle */
  font-weight: 400;
  text-align: center;
  margin-top: 0.5rem;
}

.about-me {
  font-family: "Inter", sans-serif;
  color: #a9b9d2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  line-height: 1.7;
  font-size: 1rem;
}

#cookie-banner {
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
