* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    padding: 40px; /* gives space on very wide screens */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {  /* Box that is in the middle of the website*/
    width: 100%;
    max-width: 900px;
    padding: 40px;
    position: relative;
    z-index: 10;
    perspective: 1000px;
}

/* Actual visual box */
.form-box {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow:
        0 0 80px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    opacity: 0;
    transform: rotateX(20deg) translateY(100px);
    animation: formEntrance 1.5s ease forwards;
}

/*Using scale makes my content appear on the screen, instead of dragging from bottom to top */
@keyframes formEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/*Rule for H1 heading "Welcome */

h1 {
    color: #41FF00;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Gill Sans Extrabold', serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: glow 2s infinite alternate;
    font-size: 20px;
}

h2 {
    color: #41FF00;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Gill Sans Extrabold', serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: glow 2s infinite alternate;
    font-size: 42px;
}

/* Modal overlay */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); /* semi-transparent overlay */
  backdrop-filter: blur(2px);
}

/* Modal content box */
.modal-content {
  background-color: #000000;
  margin: 15% auto; /* Center vertically */
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.modal-content a {
  display: block;
  margin: 1rem 0;
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}

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

/* Close button */
.close {
  color: #ffffff;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.tagline {
    font-size: 20px;
}

.about-section {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
}

/*Actual font and color of text content*/
p {
    color: rgba(65, 255, 0, 0.7);
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Social Links Styling */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem; /* space between icons */
  margin: 2rem 0;
}

/* Layout and stacking */
.social-icon {
  display: flex;
  flex-direction: column; /* stack icon and label vertically */
  align-items: center;
  text-decoration: none;
}

/* Icon mods */
.social-icon i {
  font-size: 3.5rem; /* bigger icons */
  color: #fff;
  transition: all 0.3s ease-in-out;
}

/* For icon glowing */
.social-icon:hover i {
  color: #f7ff00; /* neon yellow */
  text-shadow: 
    0 0 1px #f7ff00,
    0 0 2px #f7ff00,
    0 0 4px #f7ff00;
  transform: scale(1); /* subtle pop */
}

/* For icon labels */
.social-icon:hover .icon-label {
  color: #f7ff00; /* neon yellow */
  text-shadow: 
    0 0 1px #f7ff00,
    0 0 2px #f7ff00,
    0 0 4px #f7ff00;
}

.icon-label{
  margin-top: 0.3rem; /* space between icon and text */
  font-size: 0.9rem;
  color: #fff;
  transition: all 0.3s ease-in-out; /* smooth animation */
}

.glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.5), 
        #ffd700, 
        rgba(255, 215, 0, 0.5), 
        transparent);
    transition: 0.4s;
    z-index: 0;
}

/* Responsive adjustments (Made for smaller screens like smartphones */ 
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .form-box {
        padding: 25px 20px;
    }
}

/* 3D hover effect for the entire form */
.form-box:hover {
    transform: rotateY(2deg) translateY(-10px) scale(1.03);
    box-shadow:
        0 0 80px rgba(212, 175, 55, 0.6), /* outer gold glow stronger */
        inset 0 0 40px rgba(212, 175, 55, 0.4); /* inner glow brighter */
    border: 1px solid rgba(255, 215, 100, 0.7); /* more vibrant gold border */
    animation: formEntrance 1.5s ease forwards, pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow:
            0 0 40px rgba(212, 175, 55, 0.3),
            inset 0 0 15px rgba(212, 175, 55, 0.2);
        border-color: rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow:
            0 0 90px rgba(212, 175, 55, 0.6),
            inset 0 0 40px rgba(212, 175, 55, 0.4);
        border-color: rgba(255, 215, 100, 0.7);
    }
    100% {
        box-shadow:
            0 0 40px rgba(212, 175, 55, 0.3),
            inset 0 0 15px rgba(212, 175, 55, 0.2);
        border-color: rgba(212, 175, 55, 0.3);
    }
}