/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  width: 100%;
  height: 100vh;
  margin: 0;
  animation: subtleShift 5s infinite alternate;
}

/* Slight “breathing” */
@keyframes subtleShift {
  from { background-color: #fefefe; }  
  to   { background-color: #f9fbff; } 
}


/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,0.95);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 16px;
}

/* LOGO */
.site-logo {
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* NAV LINKS */
.left-nav {
  display: flex;
}

.right-nav {
  display: flex;
  margin-left: auto;
  flex-wrap: wrap;
}

.right-nav a {
  margin-left: 15px;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.right-nav a:hover {
  background: gray;
  color: white;
  padding: 4px 6px;
  border-radius: 4px;
}




/* HERO IMAGE */
.hero {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills and crops */
  object-position: 50% 75%; /* focus point */
}






/* Tablet */
@media (max-width: 1024px) {
  .hero img {
    object-position: center 0% ;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero img {
    object-position: center 0%;
  }
}



@font-face {
  font-family: 'MyFont';
  src: url('../fonts/MyFont-Regular.woff2') format('woff2'),
       url('../fonts/MyFont-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* improves performance */
}

@font-face {
  font-family: 'MyFont';
  src: url('../fonts/MyFont-Bold.woff2') format('woff2'),
       url('../fonts/MyFont-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}







/* Container for the 3 columns */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Individual card (box) */
.card {
  background-color: white;
  border: 2px solid black;
  border-radius: 4px;
  flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
  max-width: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

/* Image inside the card */
.card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Summary text */
.card p {
  margin-top: 10px;
  text-align: center;
  color: #333;
}

/* Responsive fallback for small screens */
@media (max-width: 900px) {
  .card {
    max-width: 48%;
  }
}

@media (max-width: 600px) {
  .card {
    max-width: 100%;
  }
}








/* Modal Container */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.7);
}

/* Modal Content */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 1rem;
  border-radius: 8px;
  width: 80%;
  max-width: 700px;
  position: relative;
}

/* Close Button */
.close {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}







video {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 8px;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
}

.openVideoBtn {
  background: linear-gradient(45deg, #48c6ef, #6f86d6);
  box-shadow: 0 0 20px rgba(111, 134, 214, 0.3);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  animation: float 3s ease-in-out infinite, glow 2s alternate infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.openVideoBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(111, 134, 214, 0.6);
}

.openVideoBtn:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(111, 134, 214, 0.3);
}


/* Soft glowing animation */
@keyframes glow {
  0% {
    box-shadow: 0 0 8px rgba(102, 217, 232, 0.3),
                0 0 16px rgba(102, 217, 232, 0.2);
  }
  100% {
    box-shadow: 0 0 20px rgba(102, 217, 232, 0.6),
                0 0 40px rgba(102, 217, 232, 0.4);
  }
}


/* Gentle hover effect */
button2:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(102, 217, 232, 0.5),
              0 0 50px rgba(102, 217, 232, 0.4);
}


/* GRID INFO */
.responsive-grid {
  display: grid;
  /* 3 columns on large screens, but shrink automatically */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  padding: 15px;
}

.responsive-grid > div {
  background-color: #f0f0f0;
  padding: 20px;
  border: 1px solid #ccc;
}


/* FOOTER SOCIAL ICONS */
.footer {
  display: block;
  max-width: 10;
  height: auto;
  position: relative;
  bottom: 1000;
}

.footer img {
  max-width: 7.5rem;
  padding: .5rem;
  align-items: center;
  justify-content: space-between;
}




@media (max-width: 480px) {
  .site-logo {
    height: 40px;
  }

  h1 {
    font-size: 1.6rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-logo {
    height: 40px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .site-logo {
    height: 50px;
  }
}

/* Mobile Navbar Fix */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    text-align: center;
    padding: 10px;
  }

  .right-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .right-nav a {
    margin: 5px 10px;
    font-size: 14px;
  }
}
