/* Reset basic styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;

}



/* Core grid layout */
.main {
  display: grid;
  grid-template-areas:
    "nav nav"
    "header header"
    "curve curve"
    "title title"
    "left contact"
    "footer footer";
  grid-template-columns: repeat(2, 1fr);
  background: #4B0082;
  width: 100%;
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
  .main {
    grid-template-areas:
      "nav"
      "header"
      "curve"
      "title"
      "left"
      "contact"
      "footer";
    grid-template-columns: 1fr;
  
  }
  .left,
  .contact {
    grid-column: 1 / -1;
  }
}

/* Desktop-specific settings */
@media (min-width: 769px) {
  .main > div.contact {
    z-index: 10000;
    min-height: 100vh;
  }
}

/* Navbar */
.main > div.nav {
  grid-area: nav;
  background-color: #f4f6f8;
  overflow: hidden;
}

.main > div.nav a {
  float: left;
  display: block;
  color: #333;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.main > div.nav a:hover {
  background-color: #e5a3d2;
  color: black;
}

.main > div.nav a.active {
  background-color: #333;
  color: white;
}

.main > div.nav .icon {
  display: none;
}

.g-recaptcha {
	z-index: 1000;
}

/* Responsive nav menu */
@media (max-width: 600px) {
  .main > div.nav a:not(:first-child) {
    display: none;
  }
  .main > div.nav a.icon {
    float: left;
    display: block;
  }
  .main > div.nav.responsive {
    position: relative;
  }
  .main > div.nav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .main > div.nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .main > div.header h1 {
    font-size: 44px;
    padding: 10px;
  }
}

/* Sections */
.main > div.header {
  position: relative;
  overflow: hidden;
  grid-area: header;
  background: #360761;
  color: white;
  height: 20rem;
  padding-top: 7em;
}

.header h1 {
  margin: 0;
  text-align: center;
  z-index: 1000;
  font-family: "Cinzel Decorative", serif;
  font-style: normal;
  font-size: 4em;
}

.wave {
  position: relative; /* Positioning for the glow effect */
  filter: drop-shadow(0px 10px 20px rgba(255, 9, 214, 0.8)); /* Purple glow effect */
}

.main > div.title {
  overflow: hidden;
  grid-area: title;
  text-align: center;
  padding-bottom: 5em;
  color: whitesmoke;
}

.main > div.left {
  overflow: hidden;
  grid-area: left;
  padding-left: 7em;
  color: whitesmoke;
}

.main > div.contact {
  overflow: hidden;
  grid-area: contact;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 7em;
}

.main > div.footer {
  overflow: hidden;
  grid-area: footer;
  background-color: #111;
  color: whitesmoke;
  height: 200px;
  padding: 5em;
}

/* Other utilities */
.sublist {
  padding-left: 2rem;
}

h2 {
  text-align: center;
}

.warning {
  padding: 90px;
  color: whitesmoke;
}

/* Card styles */
.card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.card .box {
  position: relative;
  width: 420px;
  height: 500px;
  margin: 90px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: consolas;
  font-size: 1.5em;
  transition: 0.5s;
}

.card .box::before,
.card .box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 90px;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
}

.card .box::after {
  filter: blur(30px);
}

.card .box:hover::before,
.card .box:hover::after {
  transform: skewX(0deg);
  left: 20px;
  width: calc(100% - 90px);
}

.card .box:nth-child(1)::before,
.card .box:nth-child(1)::after {
  background: linear-gradient(315deg, #4dff03, #00d0ff);
}

.card .box span {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.card .box span::before,
.card .box span::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.5s;
  animation: animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card .box:hover span::before {
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.card .box:hover span::after {
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

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

.card .box .content {
  position: relative;
  left: 0;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: black;
  z-index: 10000;
}

.card .box:hover .content {
  left: -25px;
  padding: 60px 40px;
}

.card .box .content h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.card .box .content p {
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.4em;
}

.card .box .content a {
  display: inline-block;
  font-size: 1.1em;
  color: #111;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 5px;
}

.card .box .content a:hover {
  background: #ffcf4d;
  border: 1px solid rgba(255, 0, 88, 0.4);
  box-shadow: 0 1px 15px rgba(1, 1, 1, 0.2);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #4B0082;
  color: white;
}

.spacer {
  height: 100vh;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.domain-section {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  z-index: 10;
  transition: all 0.4s ease;
}

.au {
  width: 220px;
  height: 120px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.au::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 15px rgba(255,255,255,0.1);
  pointer-events: none;
}

.info {
  position: absolute;
  bottom: -90px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.15);
  padding: 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.au.info-open {
  z-index: 11;
}

.au.info-open .info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

 /* Mobile Styles */
 @media (max-width: 768px) {
  .domain-section, .domain-section.nav-mode {
    flex-direction: column;
    align-items: center;
    position: static;
  }

  .au {
    width: 90%;
    height: auto;
    transform: none !important;
  }

  .info {
    position: static;
    opacity: 1;
    transform: none;
    padding-top: 10px;
  }
}