:root {
  --bg: #fff8f0;
  --text: #333;
  --accent: #ff6f61;
  --muted: #888;  
  --card: #ffe5b4;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

#header-content {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#header-content.fade-out {
  opacity: 0;
  transform: scale(0.95); /* Optional zoom-out effect */
  pointer-events: none;
}

header {
  padding: 1.3rem 1rem;
  text-align: center;
}

header h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 3rem;
  color: var(--accent);
}

header h2{
  text-align: center;
  font-size: 32px;
  
}

/* Gallery */

.gallery {
  max-width: 1500px;
  margin:  auto;
  margin: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.card {
  background: var(--card);
  border-radius: 20px;
  /* border: 4px solid #333; */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 5px 5px 0 #333;
  perspective: 900px;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  position: relative;
}

.card-inner {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.card img {
  width: 100%;
  display: block;
  filter: brightness(0.9) contrast(1.1);
}

.card-content {
  padding: 1.5rem;
}

.card-content h2 {
  font-family: 'DM Serif Text', serif;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.card-content p {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* .card:hover {
  transform: scale(3);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
} */

.card:hover {
  transform: scale(1.1);
  box-shadow: 10px 10px 0 #333;
}

.content--reveal.active ~ .connect {
  display: run-in;
}




/* LINK BUTTONS */

.connect {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  gap: 20px;
  position: relative;
  z-index: 999;
}

.linkbtns {
  text-align: center;
}

.learn-more {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  color: #382b22;
  text-transform: uppercase;
  padding: 1.25em 2em;
  background: #fff0f0;
  border: 2px solid #b18597;
  border-radius: 0.75em;
  position: relative;
  cursor: pointer;
  outline: none;
  font-size: 1rem;
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
  transform-style: preserve-3d;
}

.learn-more::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #f9c4d2;
  border-radius: inherit;
  box-shadow: 0 0 0 2px #b18597, 0 0.625em 0 0 #ffe3e2;
  transform: translate3d(0, 0.75em, -1em);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
  z-index: -1;
}

.learn-more:hover {
  background: #ffe9e9;
  transform: translate(0, 0.25em);
}

.learn-more:hover::before {
  box-shadow: 0 0 0 2px #b18597, 0 0.5em 0 0 #ffe3e2;
  transform: translate3d(0, 0.5em, -1em);
}

.learn-more:active {
  background: #ffe9e9;
  transform: translate(0, 0.75em);
}

.learn-more:active::before {
  box-shadow: 0 0 0 2px #b18597, 0 0 #ffe3e2;
  transform: translate3d(0, 0, -1em);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

header h1 {
  animation: bounce 2s infinite;
  color: var(--accent);
  font-size: 3rem;
}



body.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.cert-card {
  cursor: pointer;
  display: inline-block;
  padding: 1rem;
  text-align: center;
  background: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 1rem;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: scale(1.05);
}

.cert-card img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}



/* Modals  */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 2rem;
  width: 100%;
  max-width: 650px;
  border-radius: 10px;
  transform: scale(0.8);
  opacity: 0;
}
.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
}

.modal-content a {
  display: inline-block;
  margin-top: 1rem;
  color: #007bff;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.overlay {
  border-radius: 8px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  height: auto;
  position: absolute;
  max-width: 100%;
  height: auto;
  margin-top: 9rem;
  margin-bottom: 9rem;
  opacity: 0;
  transition: .5s ease;
  backdrop-filter: blur(2px);
}
.container:hover .overlay {
  opacity: 1;
}
.text {
  font-weight: 700;
  color: rgb(0, 0, 0);
  font-size: 25px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

