@import "animate.css";

* {
  margin: 0;
  top: 0;
  box-sizing: border-box;
}

body {
  background-color: antiquewhite;
  font-family: "Oswald", sans-serif;
  background-image: url(https://images.unsplash.com/photo-1532467411038-57680e3dc0f1?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
  color: white;
}

/* Navbar styles */
.corexbar {
  width: 100%;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: rgba(90, 89, 85, 0.38);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  border: 1px solid rgba(90, 89, 85, 0.38);
  font-family: "Oswald", sans-serif;
  position: relative;
  z-index: 10;
}

.corexbar .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.corexbar .logo a {
  color: white;
  text-decoration: none;
  font-size: 2.5em;
  font-weight: bold;
}

.corexbar .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.corexbar .nav-links li {
  margin-left: 20px;
}

.corexbar .nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  transition: text-shadow 0.3s ease;
}

.corexbar .nav-links a:hover {
  text-shadow: 0 0 5px #7e7e7e;
}

.corexbar .menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.corexbar .menu-icon span {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}


/* Media Queries */
@media (max-width: 768px) {
  .corexbar .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(90, 89, 85, 0.9);
    border-radius: 16px;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .corexbar .nav-links li {
    margin: 15px 0;
  }

  .corexbar .nav-links.active {
    max-height: 500px; 
  }

  .corexbar .menu-icon {
    display: flex;
  }

  .corexbar .logo a {
    font-size: 2em;
  }
}







/* catogory tab */
.Corex-Wall {
  margin-bottom: 20px;
  text-align: center;
}

.catogory {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 2rem;
  text-shadow: 2px 2px 5px rgba(119, 119, 119, 0.8);
}

/* card layout */
.gridlayout {
  margin-top: 15px;
  display: grid;
  grid-template-areas: "one two three";
  justify-content: center;
  gap: 60px;
}

.pattern {
  margin: 5px;
}

.catogory-card {
  width: 200px;
  padding: 20px;
}

img {
  width: 100px;
  height: 100px;
}

.card h1,
.card p {
  color: white;
  text-shadow: 2px 5px 5px rgba(20, 20, 20, 0.8);
}
.card {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.card p {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.barstonepattern:hover .card,
.classicstonepattern:hover .card,
.crystallisedobsidianpattern:hover .card,
.pebblestonepattern:hover .card,
.perfectpattern:hover .card,
.randomizedpattern:hover .card {
  padding: 20px 20px 60px;
}

.barstonepattern:hover,
.classicstonepattern:hover,
.crystallisedobsidianpattern:hover,
.pebblestonepattern:hover,
.perfectpattern:hover,
.randomizedpattern:hover {
  transform: scale(1.1);
}

.barstonepattern,
.classicstonepattern,
.crystallisedobsidianpattern,
.pebblestonepattern,
.perfectpattern,
.randomizedpattern {
  transition: ease-in-out 0.2s;
}

.barstonepattern:hover p,
.classicstonepattern:hover p,
.crystallisedobsidianpattern:hover p,
.pebblestonepattern:hover p,
.perfectpattern:hover p,
.randomizedpattern:hover p {
  display: block;
  opacity: 1;
}

.barstonepattern {
  background: url(assets/barstonepattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.classicstonepattern {
  background: url(assets/classicstonepattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.crystallisedobsidianpattern {
  background: url(assets/crystallisedobsidianpattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.pebblestonepattern {
  background: url(assets/pebblestonepattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.perfectpattern {
  background: url(assets/perfectpattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.randomizedpattern {
  background: url(assets/randomizedpattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

/* Media Query for Mobile  */
@media (max-width: 768px) {
  .gridlayout {
    grid-template-areas: "one" "two" "three";
  }
}

/* card layout */
.gridlayout {
  margin-top: 15px;
  display: grid;
  gap: 20px;
  justify-content: center;
}

.pattern {
  margin: 5px;
}

.catogory-card {
  width: 200px;
  padding: 20px;
}

img {
  width: 100px;
  height: 100px;
}

.card h1,
.card p {
  color: white;
  text-shadow: 2px 5px 5px rgba(20, 20, 20, 0.8);
}

.card {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.card p {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.barstonepattern:hover .card,
.classicstonepattern:hover .card,
.crystallisedobsidianpattern:hover .card,
.pebblestonepattern:hover .card,
.perfectpattern:hover .card,
.randomizedpattern:hover .card {
  padding: 20px 20px 60px;
}

.barstonepattern:hover,
.classicstonepattern:hover,
.crystallisedobsidianpattern:hover,
.pebblestonepattern:hover,
.perfectpattern:hover,
.randomizedpattern:hover {
  transform: scale(1.1);
}

.barstonepattern,
.classicstonepattern,
.crystallisedobsidianpattern,
.pebblestonepattern,
.perfectpattern,
.randomizedpattern {
  transition: ease-in-out 0.2s;
}

.barstonepattern:hover p,
.classicstonepattern:hover p,
.crystallisedobsidianpattern:hover p,
.pebblestonepattern:hover p,
.perfectpattern:hover p,
.randomizedpattern:hover p {
  display: block;
  opacity: 1;
}

.barstonepattern {
  background: url(assets/barstonepattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.classicstonepattern {
  background: url(assets/classicstonepattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.crystallisedobsidianpattern {
  background: url(assets/crystallisedobsidianpattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.pebblestonepattern {
  background: url(assets/pebblestonepattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.perfectpattern {
  background: url(assets/perfectpattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}

.randomizedpattern {
  background: url(assets/randomizedpattern.webp);
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  border-radius: 20px;
}









/* footer */
.footer {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: 30px 0;
}

.container {
  max-width: 1170px;
  margin: auto;
  padding: 0 15px; 
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; 
}

.footer-col {
  width: 25%;
  padding: 0 15px; 
  box-sizing: border-box; 
}

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: #d82662;
  height: 2px;
  box-sizing: border-box;
  width: 50px;
}

.footer-col ul {
  padding: 0; 
  margin: 0; 
  list-style: none;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  text-transform: capitalize;
  color: #f0f0f0; 
  text-shadow: 2px 2px 5px rgba(119, 119, 119, 0.8);
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 8px; /*  hover  */
}
/* Add this animation keyframes */
@keyframes lightning {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.925);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.466);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Apply the animation to the social links */
.footer-col .social-links a {
  display: inline-block;
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  color: #ffffff;
  transition: all 0.5s ease;
  border-radius: 20px; /* Adjust the border radius to make it a curved rectangle */
  padding: 0 15px; /* Add padding to make the button wider */
  position: relative; /* Add this */
  text-decoration: none;
}

.footer-col .social-links a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #f00, #ff0, #0f0, #00f, #f0f, #f00);
  background-size: 400% 400%;
  border-radius: 20px; /* Adjust the border radius */
  z-index: -1;
  animation: lightning 2s infinite; /* Apply the lightning animation */
}

.footer-col .social-links a:hover {
  color: #24262b;
  background-color: #ffffff;
}


@media (max-width: 768px) {
  .footer-col {
    width: 50%; 
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .footer-col {
    width: 100%; 
  }
}
