@import url("https://fonts.googleapis.com/css2?family=Audiowide&display=swap");

body {
  font-family: "Audiowide", sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  color: white;
  background: linear-gradient(
    0deg,
    #000f1e,
    #001e3d,
    #158bcb,
    #001e3d,
    #000f1e
  );
  background-size: cover;
}

::-webkit-scrollbar {
  background: transparent;
  width: 0.3rem;
  height: 0.3rem;
}
::-webkit-scrollbar-thumb {
  background-color: #3c3f58;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.events {
  text-align: center;
  padding: 1.25rem;
}

.events h1 {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  margin-top: 0.6rem;
}

.events h2 {
  font-size: 2rem;
  margin-top: 1.9rem;
  margin-bottom: 1.25rem;
}

.title-box {
  color: transparent;
  -webkit-text-stroke: 1px white;
  transition: 0.5s;
}

/*  */
/* Hackathon section as image dimensions are different */
/* Hackathon section styles */
.hackathon-section {
  margin: 2rem auto;
  padding: 2rem;
  border: 0.3rem solid aliceblue;
  border-radius: 1.5rem;
  max-width: 96%;
  animation: borderGlow 3s infinite alternate;
  background: rgba(0, 15, 30, 0.4);
}

@keyframes borderGlow {
  0% {
    border-color: aliceblue;
    box-shadow: 0 0 10px rgba(240, 248, 255, 0.5);
  }
  50% {
    border-color: #158bcb;
    box-shadow: 0 0 20px rgba(21, 139, 203, 0.7);
  }
  100% {
    border-color: #001e3d;
    box-shadow: 0 0 15px rgba(0, 30, 61, 0.6);
  }
}

.hackathon-grid {
  display: flex;
  /* justify-content: center; */
  align-items: center;
  gap: 6rem;
  margin: 1rem auto;
}

.hackathon-card {
  /* position: relative; */
  width: 50%;
  /* max-width: 40rem; */
  height: auto;
  aspect-ratio: 16/9; 
  border-radius: 1.25rem;
  overflow: hidden;
  border: 0.3rem solid aliceblue; 
  transition: transform 0.6s;
  margin: 0;
}

.hackathon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.8rem;
} 

.hackathon-info {
  /* width: 22rem; */
  width: 50%;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hackathon-info p {
  margin: 0.25rem 0;
  font-size: 1.2rem;
}

.register-btn-container {
  margin-top: 1rem;
}

.hackathon-link:visited {
    color: white;
}

.hackathon-info .register-btn {
  font-family: "Audiowide", sans-serif;
  padding: 0.75rem 1.5rem;
  border: 0.15rem solid #158bcb;
  background: linear-gradient(45deg, #000f1e, #001e3d);
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  width: fit-content;
  z-index: 1;
  text-transform: uppercase;
}

.hackathon-info .register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #158bcb;
  transition: all 0.4s ease;
  z-index: -1;
}

.hackathon-info .register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(21, 139, 203, 0.4);
}

.hackathon-info .register-btn:hover::before {
  width: 100%;
}

.hackathon-info .register-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(21, 139, 203, 0.4);
}

/* Timer Section Style Starts */

.timer-section {
  width: 60%;
  height: 160px;
  margin: 3rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 2px solid black; */
}

.timer-section > * {
  width: 160px;
  height: fit-content;
  padding: 32px 0px;
  /* border: 2px solid green; */
}

.colon-section {
  width: 24px;
  font-size: 2rem;
  border: none;
}

.count-section, .text-section {
  margin: auto;
  font-size: 1.2rem;
  text-align: center;
  /* border: 2px solid red; */
}

.count-section {
  font-size: 3rem;
}

.text-section {
  font-size: 1rem;
  margin-top: auto;
}

/* Timer Section Style Ends */

/* Horizontal Rule Styling */
hr {
  margin: 3rem 0; /* Add more vertical spacing around horizontal rules */
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 204, 255, 0), rgba(0, 204, 255, 0.75), rgba(0, 204, 255, 0));
}

/* -----------Prize Styling----------- */
/* Prize Container */
.prize_container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-top: 2rem; /* Add top margin for more space */
  margin-bottom: 3rem; /* Add bottom margin for more space */
}

/* Prize Card (Bigger & Responsive) */
.prize_card {
  background: linear-gradient(to bottom, #0e2954, #153464);
  padding: 50px 80px;
  border-radius: 15px;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: white;
  font-family: 'Space Mono', monospace;
  width: 100%;
}

/* Large Trophy Icon */
.prize_icon {
  font-size: 5rem;
  color: #FFD700;
  margin-bottom: 20px;
}

/* Title Section with Target Icon */
.prize_title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
}

.prize_title i {
  font-size: 2rem;
  margin-right: 15px;
  color: #FF4500;
}

/* Prize Amount */
.prize_amount {
  font-size: 4rem;
  font-weight: bold;
  color: #FFD700;
  margin: 30px 0;
}

/* Description */
.prize_desc {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .prize_card {
      padding: 40px;
      max-width: 90%;
  }
  .prize_icon {
      font-size: 4rem;
  }
  .prize_title {
      font-size: 2rem;
  }
  .prize_title i {
      font-size: 1.5rem;
  }
  .prize_amount {
      font-size: 3rem;
  }
  .prize_desc {
      font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .prize_card {
      padding: 30px;
  }
  .prize_icon {
      font-size: 3rem;
  }
  .prize_title {
      font-size: 1.5rem;
  }
  .prize_title i {
      font-size: 1.2rem;
  }
  .prize_amount {
      font-size: 2.5rem;
  }
  .prize_desc {
      font-size: 1rem;
  }
}

/* Responsive Style Starts */

@media (max-width: 800px) {

  .title-box {
    font-size: 2rem;
    margin-bottom: 2rem !important;
  }

  .hackathon-section {
    width: 96vw;
    padding: 0;
    margin: auto;
  }

  .hackathon-grid {
    display: flex;
    flex-direction: column;
    padding: 32px 0px;
    gap: 2rem;
  }

  .hackathon-card {
    width: 80%;
    margin: auto;
  }

  .hackathon-info {
    width: 80%;
    text-align: justify;
    font-size: 1rem;
  }

  .hackathon-card > img {
    width: 100%;
  }

  .hackathon-info .register-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .register-btn-container {
    width: fit-content;
    margin: 16px auto;
  }

  .timer-section {
    width: 100%;
    margin: 2rem auto; /* Added proper vertical margins */
    height: fit-content;
  }

  .timer-section > * {
    padding: 12px 8px;
    border: none;
  }

  hr {
    margin: 2.5rem 0; /* Slightly reduced margin for mobile but still maintains good spacing */
  }

  .prize_container {
    margin-top: 1.5rem; /* Adjusted for mobile */
    margin-bottom: 2.5rem; /* Adjusted for mobile */
  }

  .count-section {
    font-size: 2rem;
  }

  .text-section {
    font-size: 0.75rem;
  }

  .colon-section {
    width: 16px;
    font-size: 1.8rem;
    padding: 0px;
  }

}

/* 

@media (max-width: 1200px) {
  .hackathon-section {
    max-width: 90%;
  }
}

@media (max-width: 1000px) {
  .hackathon-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .hackathon-info {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hackathon-section {
    max-width: 95%;
    padding: 1.5rem;
  }

  .hackathon-card,
  .hackathon-info {
    width: 20rem;
  }

  .hackathon-card {
    height: 28rem;
  }
}

@media (max-width: 500px) {
  .hackathon-section {
    padding: 1rem;
  }

  .hackathon-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem; 
    margin: 1rem auto;
  }

  .hackathon-card,
  .hackathon-info {
    width: 16rem;
  }

  .hackathon-card {
    height: 24rem;
  }

  .hackathon-info h3 {
    font-size: 1.5rem;
  }

  .hackathon-info p {
    font-size: 1rem;
  }

  .hackathon-info .register-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}






 */



 .event-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(2, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 1.25rem;
  justify-items: center;
  padding: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 1320px) {
  .event-grid {
    grid-template-columns: repeat(3, 1fr); /* Creating a 3-column grid */
    grid-auto-flow: dense; /* Let grid items fill available spaces */
  }

  .event-card:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
}

@media (max-width: 1000px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}


.event-card {
  position: relative;
  width: 25rem;
  height: 25rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 0.3rem solid aliceblue;
  transition: transform 0.6s;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: filter 0.6s;
}

.event-card:hover img {
  filter: blur(0.3rem);
}

.event-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  color: white;
  text-align: center;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.event-card:hover .event-info {
  transform: translateY(0);
  opacity: 1;
}

.event-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.event-info p {
  margin: 0.3rem 0;
}

.register-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  background-color: aliceblue;
  color: black;
  border-radius: 0.3125rem;
  cursor: pointer;
  font-size: 1rem;
}

.register-btn:hover {
  background-color: rgb(185, 215, 250);
}

@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .event-card {
    width: 18rem;
    height: 18rem;
  }

  .event-card img {
    border-radius: 0.75rem;
  }

  .event-info h3 {
    font-size: 1.2rem;
  }

  .register-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 380px) {
  .event-card {
    width: 15rem;
    height: 15rem;
  }

  .event-card img {
    border-radius: 0.65rem;
  }

  .event-info h3 {
    font-size: 1rem;
  }

  .register-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* NEW STYLING STARTS HERE */

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

body {
  background: linear-gradient(0deg, #000f1e, #001e3d, #158bcb, #001e3d, #000f1e);
  background-size: cover;
  font-family: 'Audiowide', sans-serif;
  color: white;
  height: 100%;
  width: 100%;
}

.navbar {
  width: 100%;
  height: 100px !important;
}

::-webkit-scrollbar {
  background: transparent;
  width: 0.3rem;
  height: 0.3rem;
}

::-webkit-scrollbar-thumb {
  background-color: #3c3f58;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.main {
  background: #000307;
  height: 80vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main .hero img.ripplegui {
  width: 60vw;
  /* Scales for larger screens */
  max-width: 780px;
  /* Bigger size on large screens */
  height: auto;
  /* Maintain aspect ratio */
}

.gif-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Center the text */
  width: 60%;
  /* Adjust width to be relative to ripplegui */
  height: auto;
  /* Maintain aspect ratio */
  max-width: 400px;
  /* Limit max size */
}

@media (max-width: 768px) {
  .main .hero img.ripplegui {
    width: 50vw;
    /* Adjust for smaller screens */
    max-width: 300px;
    /* Keep the GIF smaller for small screens */
  }

  .gif-text {
    width: 50%;
    /* Adjust text image for smaller screens */
    max-width: 150px;
    /* Prevent .gif-text from getting too large */
  }

  #space {
    margin-bottom: 24%;
  }
}

@media (max-width: 1300px) {
  .main .hero img.ripplegui {
    width: 60vw;
    /* Adjust for smaller screens */
    max-width: 780px;
    /* Keep the GIF smaller for small screens */
  }

  .gif-text {
    width: 30%;
    /* Adjust text image for smaller screens */
    max-width: 400px;
    /* Prevent .gif-text from getting too large */
  }
}

@media (max-width: 500px) {
  .main .hero img.ripplegui {
    width: 90vw;
    /* Adjust for smaller screens */
    max-width: 700px;
    /* Keep the GIF smaller for small screens */
  }

  .gif-text {
    width: 80%;
    /* Adjust text image for smaller screens */
    max-width: 150px;
    /* Prevent .gif-text from getting too large */
  }
}

/* Timeline Section */
.timeline {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 50px 0;
}

.timeline .head {
  font-size: 29px;
  color: #00ccff;
  position: relative;
  margin-bottom: 100px;
  font-weight: 500;
}

.timeline .head::after {
  content: " ";
  color: #000307;
  position: absolute;
  width: 50%;
  height: 3px;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  background-image: linear-gradient(to right,#00CCFF, #00FF66);
}

/* Timeline Items */
.container {
  width: 70%;
  margin: auto;
  position: relative;
}

.container ul {
  list-style: none;
}

.container ul::after {
  content: " ";
  position: absolute;
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.767), rgba(3, 97, 100, 0.747));
  z-index: 1; /* Ensure the line is visible behind circles */
}

.container ul li {
  width: 47%;
  padding: 15px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.218);
  position: relative;
  margin-bottom: 50px; /* Increased from 30px for more consistent spacing */
}

.container ul li:nth-child(4) {
  margin-bottom: 50px; /* Consistent with other cards now */
}

.container ul li:last-child {
  margin-bottom: 20px; /* Less space at the bottom of the list */
}

.container ul li .circle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #00ff66;
  top: 50%; /* Changed from 'top: 0' to center vertically */
  display: grid;
  place-items: center;
  box-shadow: 0px 0px 5px #00FF66, 0px 0px 10px #00FF66; /* Neon Glow */
  animation: pulseGlow 1.5s infinite alternate ease-in-out;
  transform: translateY(-50%); /* Added to ensure perfect vertical centering */
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
  z-index: 2; /* Ensure the circles appear above the line */
}

.circle::after {
  content: ' ';
  width: 12px;
  height: 12px;
  background-color: #00ccff;
  border-radius: 50%;
  box-shadow: 0px 0px 5px #00CCFF, 0px 0px 10px #00CCFF; /* Inner Glow */
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0px 0px 5px #00FF66, 0px 0px 10px #00FF66;
    }
    50% {
        box-shadow: 0px 0px 8px #00FF66, 0px 0px 15px #00FF66;
    }
    100% {
        box-shadow: 0px 0px 5px #00FF66, 0px 0px 10px #00FF66;
    }
}

/* Add spacing to the odd items (left side) */
.container ul li:nth-child(odd) {
  float: left;
  clear: right;
  margin-right: 15px; /* Add space to the right of the card */
}

/* Circle positioning for odd items */
.container ul li:nth-child(odd) .circle {
  right: -31px; /* Adjusted by 1px for perfect alignment */
  transform: translate(50%, -50%); /* Keep 50% horizontal translation to center on the line */
}

/* Date positioning for odd items */
.container ul li:nth-child(odd) .date {
  right: 20px;
}

/* Add spacing to the even items (right side) */
.container ul li:nth-child(even) {
  float: right;
  clear: left;
  margin-left: 15px; /* Add space to the left of the card */
}

/* Circle positioning for even items */
.container ul li:nth-child(even) .circle {
  left: -31px; /* Adjusted by 1px for perfect alignment */
  transform: translate(-50%, -50%); /* Keep -50% horizontal translation to center on the line */
}

.container ul li .date {
  position: absolute;
  width: 130px;
  height: 33px;
  background-image: linear-gradient(to right, #00CCFF, #00FF66);
  border-radius: 15px;
  top: -45px;
  display: grid;
  place-items: center;
  color: #551a8b;
  font-size: 13px;
  box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.318);
}

.container ul li .heading {
  font-size: 17px;
  color: rgb(91, 14, 216);
  cursor: pointer;
}

ul li p {
  font-size: 13px;
  color: #666;
  line-height: 18px;
  margin: 6px 0 4px;
  cursor: pointer;
}

ul li a {
  font-size: 13px;
  text-decoration: none;
  color: rgb(18, 54, 214);
  transition: all 0.3s ease;
}

.zoom {
  transition: transform .2s;
  /* Animation */
}

.zoom:hover {
  transform: scale(1.1);
}

.zoom:hover .circle {
  display: none;
}

/* Responsive Timeline Styles */
@media only screen and (max-width: 798px) {
  .container {
    width: 70%;
    transform: translateX(20px);
  }

  .container ul::after {
    left: -40px;
    transform: none; /* Remove transform since position is absolute */
  }

  .container ul li {
    width: 100%;
    float: none;
    margin-bottom: 60px; /* Increased for more spacing */
    margin-left: 0; /* Reset any horizontal margins */
    margin-right: 0; /* Reset any horizontal margins */
    cursor: pointer;
  }

  .container ul li .circle {
    left: -40px;
    transform: translate(0, -50%); /* Align directly on the timeline */
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
  }

  .container ul li:hover .container ul li {
    transform: translate(0, -50%) scale(1.2);
  }

  .container ul li .date {
    left: 20px;
  }

  .container ul li:nth-child(odd) {
    transform: translateX(0px);
    text-align: left;
    margin-right: 0; /* Reset margin */
  }

  .container ul li:nth-child(even) {
    transform: translateX(0px);
    margin-left: 0; /* Reset margin */
  }

  /* Reset specific positioning for circles in mobile view */
  .container ul li:nth-child(odd) .circle,
  .container ul li:nth-child(even) .circle {
    left: -40px;
    right: auto;
    transform: translate(0, -50%);
  }

  /* Keep last item spacing consistent */
  .container ul li:last-child {
    margin-bottom: 30px;
  }

  .ripplegui {
    height: 200px;
    width: 200px;
  }
}

@media only screen and (max-width: 550px) {
  .container {
    width: 80%;
  }

  .container ul::after {
    left: -20px;
    transform: none; /* Remove transform since position is absolute */
  }

  .container ul li {
    margin-bottom: 50px; /* Slightly less spacing on smaller screens */
  }

  .container ul li .circle {
    left: -20px;
    transform: translate(0, -50%); /* Align directly on the timeline */
  }

  /* Reset specific positioning for circles in mobile view */
  .container ul li:nth-child(odd) .circle,
  .container ul li:nth-child(even) .circle {
    left: -20px;
    right: auto;
    transform: translate(0, -50%);
  }
}

/* Applying CSS to sphere */
.tagcloud {
  display: inline-block;
  top: 100px;
  left: 32%;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
}

.tagcloud--item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.tagcloud--item img:hover {
  transform: scale(1.3);
}

.gif-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.gif-container img {
  width: 90%;
  height: auto;
}

.event_timeline {
  position: relative;
  top: -40px;
}

/* sponsors */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 7));
  }
}

/* -----------DOMAINS STYLING --------- */
/* General Styling */

/* Import a Space-Like Font */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');

/* Domains Section */
.domains {
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 30px;
}

/* Title */
.domains h2 {
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 40px;
    color: #00CCFF;
    font-family: 'Audiowide', sans-serif;
    position: relative;
}

/* Title underline - matches the timeline heading style */
.domains h2::after {
    content: " ";
    position: absolute;
    width: 150px;
    height: 3px;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    background-image: linear-gradient(to right, #00CCFF, #00FF66);
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

/* Apply different animation delays to create a staggered effect */
.grid-container .domain-box:nth-child(1) {
    animation-delay: 0s;
}

.grid-container .domain-box:nth-child(2) {
    animation-delay: 0.5s;
}

.grid-container .domain-box:nth-child(3) {
    animation-delay: 1s;
}

.grid-container .domain-box:nth-child(4) {
    animation-delay: 1.5s;
}

.grid-container .domain-box:nth-child(5) {
    animation-delay: 2s;
}

.grid-container .domain-box:nth-child(6) {
    animation-delay: 2.5s;
}

/* Domain Box */
.domain-box {
    background: linear-gradient(135deg, #001e3d, #0e2954);
    padding: 25px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Audiowide', sans-serif;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: domainPulse 3s infinite alternate;
    
    /* Perfect centering styles */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px; /* Set a consistent height */
    line-height: 1.4; /* Improve line spacing for multi-line text */
    word-wrap: break-word; /* Ensure text wraps properly */
    padding: 20px; /* Consistent padding all around */
    letter-spacing: 0.5px; /* Slightly improve letter spacing for readability */
    hyphens: auto; /* Allow hyphenation for better text wrapping */
}

/* For domain names with many words that need to wrap */
.domain-box span {
    display: inline-block; /* Better text wrapping */
    width: 100%;
}

/* Pulse animation for domain boxes */
@keyframes domainPulse {
    0% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 
                    0 0 8px rgba(0, 204, 255, 0.2);
        border-color: rgba(0, 204, 255, 0.2);
    }
}

/* Domain Box hover effect */
.domain-box:hover {
    transform: translateY(-7px);
    border-color: rgba(0, 204, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(0, 204, 255, 0.3);
    animation: none; /* Stop the pulse animation on hover */
}

/* Glow effect on hover */
.domain-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(0, 204, 255, 0.1) 0%,
                rgba(0, 255, 102, 0.05) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.domain-box:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 700px;
    }
    
    .domain-box {
        padding: 20px 15px;
        font-size: 1.1rem;
        min-height: 100px; /* Slightly shorter on tablets */
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .domains h2 {
        font-size: 1.8rem;
    }
    
    .domain-box {
        padding: 18px 15px;
        font-size: 1rem;
        min-height: 90px; /* Slightly shorter on phones */
    }
}
