*{
  margin:0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background-image: url("https://wallpapershome.com/images/pages/ico_h/26418.jpg");
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-size: cover;
  background-position: center;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif ;
  color: lightgray;
  min-height: 100vh;
  line-height: 3.0;
  overflow-x: hidden;
}

/* Make all images responsive by default */
img {
  max-width: 100%;
  height: auto;
}

/* Ensure content doesn't overflow */
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.image-gradient{
  position:absolute;
  top: 0;
  right: 0;
  opacity: 0.5;
  z-index: -1;
}

.layer-blur{
  height: 0;
  width:30rem;
  position:absolute;
  top: 20%;
  right: 0;
  box-shadow: 0 0 700px 15px white;
  rotate: -30deg;
  z-index: -1;
}

marquee, .WARNING {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.content {
  max-width: 100%;
  width: 100%;
  padding: 0 1rem;
}

h1{
  font-family: 'Times New Roman', Times, serif;
  color: rgb(119, 205, 219);
}

h2{
  text-align: center;
  font-family: monospace;
  color: rgb(207, 118, 118);
}

h4{
  text-align: center;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  color:beige;
}

p{
  text-align: center;
  line-height: 2.5;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: rgb(235, 189, 132);
}

pre{
  text-align: center;
  line-height: 2.5;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: rgb(235, 189, 132);
}

/* CONTACT FORM STYLES */
.contact-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(119, 205, 219, 0.3);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: rgb(235, 189, 132);
  font-weight: 500;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(119, 205, 219, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: lightgray;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: rgb(119, 205, 219);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(119, 205, 219, 0.3);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(235, 189, 132, 0.6);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background: linear-gradient(to right, #656565,#7f42a7,#6600c5,#5300a0,#757575,#656565);
  background-size: 200%;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: animationGradient 2.5s linear infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  margin-top: 1rem;
}

@keyframes animationGradient {
  to {
    background-position: 200%;
  }
}

.form-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(119, 205, 219, 0.6);
}

.form-submit:active {
  transform: scale(0.98);
}

/* SUCCESS POPUP STYLES */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popup-content {
  background: linear-gradient(135deg, rgba(26, 10, 10, 0.95), rgba(10, 5, 21, 0.95));
  border: 2px solid rgb(119, 205, 219);
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 50px rgba(119, 205, 219, 0.5);
  animation: popIn 0.4s ease;
  position: relative;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #00ff88, rgb(119, 205, 219));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  animation: checkPulse 1s ease infinite;
}

@keyframes checkPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.popup-content h2 {
  color: rgb(119, 205, 219);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Times New Roman', Times, serif;
}

.popup-content p {
  color: rgb(235, 189, 132);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.popup-subtext {
  font-size: 0.95rem;
  color: rgba(235, 189, 132, 0.8);
  margin-bottom: 2rem;
}

.popup-close {
  background: linear-gradient(to right, #656565,#7f42a7,#6600c5,#5300a0,#757575,#656565);
  background-size: 200%;
  color: white;
  padding: 0.8rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: animationGradient 2.5s linear infinite;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-close:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(119, 205, 219, 0.4);
}

.popup-close:active {
  transform: scale(0.98);
}

/* Old form class for backwards compatibility */
.form{
  position:absolute;
  width: 18rem;
  height: 2.5rem;
  border-radius:50px ;
  background: linear-gradient(to right, #656565,#7f42a7,#6600c5,#5300a0,#757575,#656565);
  background-size:200%;
  animation: animationGradient 2.5s linear infinite;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.list{
  color: antiquewhite;
  text-align: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: rgb(235, 189, 132)
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 100%;
  width: 100%;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-card:hover img {
  transform: scale(1.1);
}

.caption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 1.1rem;
  color: #f0f0f0;
  transition: background 0.3s ease;
}

.image-card:hover .caption {
  background: rgba(0, 0, 0, 0.8);
}

/* Video styling and hover effect */
video {
  width: 80%;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

video:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

/* PDF iframe styling and hover effect */
iframe {
  width: 90%;
  max-width: 1200px;
  height: 700px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  margin: 20px auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

iframe:hover {
  transform: scale(1.01);
  box-shadow: 0 0 30px rgba(119, 205, 219, 0.5);
}

/* AOS animation overrides (optional for smoother transitions) */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 1s;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* PAGE IMAGES WITH HOVER EFFECTS */
.page-link {
  display: inline-block;
  text-decoration: none;
  margin: 1rem 0;
}

.page-image {
  max-width: 90%;
  width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.page-image:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(119, 205, 219, 0.6), 
              0 0 30px rgba(207, 118, 118, 0.4);
  border-color: rgba(119, 205, 219, 0.6);
}

/* LAB WORKS BUTTON */
.cool-button {
  background-color:black; /* Primary blue */
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
.cool-button:hover {
  background-color:darkgray; /* Darker blue on hover */
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* LAPTOP/DESKTOP LARGER SCREENS */
@media (min-width: 1200px) {
  iframe {
    max-width: 1400px;
    height: 800px;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  iframe {
    width: 85%;
    max-width: 1000px;
    height: 650px;
  }
}

/* ON PHONE */
@media (max-width: 768px) {
  body {
    line-height: 2.0;
    background-attachment: scroll;
    padding: 1rem;
  }

  .layer-blur {
    width: 80vw;
    top: 30%;
    box-shadow: 0 0 300px 10px white;
    rotate: -20deg;
  }

  .contact-container {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-input, .form-textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .form-submit {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }

  .form {
    width: 90%;
    max-width: 18rem;
    height: 2.5rem;
    position: relative;
    left: auto;
    transform: none;
    margin: 0 auto;
  }

  h1{
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  h2{
    font-size: 1.3rem;
    padding: 0 1rem;
  }

  h4{
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  p, pre{
    padding: 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
  }

  .image-gradient {
    display: none;
  }

  .list{
    text-align: center;
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
  }

  /* Fix images to be responsive */
  img {
    max-width: 100%;
    height: auto !important;
    width: auto !important;
  }

  center img {
    max-width: 100%;
    height: auto !important;
    width: 100% !important;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
  }

  .image-card {
    border-radius: 8px;
  }

  .caption {
    font-size: 0.9rem;
    padding: 8px;
  }

  video {
    width: 95%;
    max-width: 100%;
  }

  iframe {
    width: 95%;
    max-width: 100%;
    height: 400px;
  }

  .cool-button {
    padding: 12px 24px;
    font-size: 14px;
    width: auto;
    max-width: 90%;
    display: block;
    margin: 1rem auto;
    text-align: center;
  }

  center {
    max-width: 100%;
    overflow: hidden;
    padding: 0 0.5rem;
  }

  br {
    display: block;
    margin: 0.5rem 0;
  }

  .page-image {
    max-width: 95%;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  }

  .page-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(119, 205, 219, 0.5);
  }

  ul {
    padding-left: 1.5rem;
    padding-right: 1rem;
  }

  li {
    margin-bottom: 1rem;
  }

  marquee {
    font-size: 0.9rem;
  }

  .WARNING {
    font-size: 0.85rem;
  }

  .content {
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .content main {
    padding: 0.5rem;
  }

  hr {
    margin: 1rem 0;
    width: 90%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 1rem;
  }

  p, pre {
    font-size: 0.8rem;
    padding: 0 0.25rem;
  }

  .list {
    font-size: 0.75rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }

  iframe {
    height: 300px;
  }

  video {
    width: 100%;
  }

  .content {
    padding: 0.25rem;
  }

  .content main {
    padding: 0.25rem;
  }

  .cool-button {
    padding: 10px 20px;
    font-size: 13px;
    max-width: 95%;
  }

  h4 {
    font-size: 0.95rem;
  }

  .page-image {
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
  }

  .page-image:hover {
    transform: translateY(-3px) scale(1.01);
  }

  .contact-container {
    margin: 0.5rem;
    padding: 1rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-input, .form-textarea {
    padding: 0.7rem;
    font-size: 0.85rem;
  }

  .form-submit {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .popup-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .popup-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .popup-content h2 {
    font-size: 1.5rem;
  }

  .popup-content p {
    font-size: 0.95rem;
  }

  .popup-subtext {
    font-size: 0.85rem;
  }

  .popup-close {
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
  }
}

img, .container {
  max-width: 100%;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
