.name {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 350%;
  text-shadow: 0 0 8px rgba(119,248,255,0.2);
  color: white;
}

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

.container {
  color: #00656b;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

body {
  /* Enhanced underwater background with subtle animation */
  background: linear-gradient(180deg, 
    rgba(2,0,36,1) 0%, 
    rgba(9,41,84,1) 20%, 
    rgba(11,130,207,1) 60%, 
    rgba(119,248,255,1) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}


/* Bubble styling for dynamically generated bubbles */
.bubble {
  position: fixed;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(119,248,255,0.6), rgba(119,248,255,0.2));
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Fish styling for swimming fish background animations */
.fish {
  position: fixed;
  pointer-events: none;
  z-index: -2;
  opacity: 0.8;
  width: 120px;
  height: 90px;
  background-image: url('img/gen-red-fish.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 8px rgba(255,0,0,0.3));
}

.fish.small {
  width: 84px;
  height: 63px;
}

.fish.large {
  width: 168px;
  height: 126px;
}

.fish.orange {
  filter: drop-shadow(0 0 8px rgba(255,140,66,0.3)) hue-rotate(15deg) saturate(1.2);
}

.fish.green {
  filter: drop-shadow(0 0 8px rgba(144,238,144,0.4)) hue-rotate(120deg) saturate(0.8) brightness(1.2);
}

.fish.blue {
  filter: drop-shadow(0 0 8px rgba(74,144,226,0.3)) hue-rotate(200deg) saturate(1.1);
}

.fish.purple {
  filter: drop-shadow(0 0 8px rgba(147,112,219,0.3)) hue-rotate(280deg) saturate(1.3);
}

.fish.yellow {
  filter: drop-shadow(0 0 8px rgba(255,223,0,0.3)) hue-rotate(60deg) saturate(1.4) brightness(1.1);
}

.bubble.small {
  width: 2px;
  height: 2px;
  background: radial-gradient(circle, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
}

.bubble.large {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(119,248,255,0.5), rgba(119,248,255,0.1));
}

@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.5);
  }
  10% {
    opacity: 1;
    transform: translateY(-10vh) translateX(0) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(var(--drift)) scale(1.2);
  }
}

@keyframes fishSwimHorizontal {
  0% {
    opacity: 0;
    transform: translateX(var(--start-x)) translateY(var(--start-y)) scaleX(-1);
  }
  5% {
    opacity: 0.7;
  }
  25% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.25)) translateY(calc(var(--start-y) + var(--wave-offset))) scaleX(-1);
  }
  50% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.5)) translateY(var(--start-y)) scaleX(-1);
  }
  75% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.75)) translateY(calc(var(--start-y) - var(--wave-offset))) scaleX(-1);
  }
  95% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--end-x)) translateY(var(--end-y)) scaleX(-1);
  }
}

@keyframes fishSwimReverse {
  0% {
    opacity: 0;
    transform: translateX(var(--start-x)) translateY(var(--start-y)) scaleX(1);
  }
  5% {
    opacity: 0.7;
  }
  25% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.25)) translateY(calc(var(--start-y) + var(--wave-offset))) scaleX(1);
  }
  50% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.5)) translateY(var(--start-y)) scaleX(1);
  }
  75% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.75)) translateY(calc(var(--start-y) - var(--wave-offset))) scaleX(1);
  }
  95% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--end-x)) translateY(var(--end-y)) scaleX(1);
  }
}

/* Jellyfish styling for swimming jellyfish background animations */
.jellyfish {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  width: 120px;
  height: 150px;
  background-image: url('img/jellyfish.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 12px rgba(147, 112, 219, 0.4));
}

.jellyfish.small {
  width: 90px;
  height: 112px;
}

.jellyfish.large {
  width: 150px;
  height: 187px;
}

.jellyfish.blue {
  filter: drop-shadow(0 0 12px rgba(74, 144, 226, 0.4)) hue-rotate(200deg) saturate(1.1);
}

.jellyfish.pink {
  filter: drop-shadow(0 0 12px rgba(255, 182, 193, 0.4)) hue-rotate(320deg) saturate(1.2);
}

.jellyfish.green {
  filter: drop-shadow(0 0 12px rgba(144, 238, 144, 0.4)) hue-rotate(120deg) saturate(0.8) brightness(1.2);
}

.jellyfish.purple {
  filter: drop-shadow(0 0 12px rgba(147, 112, 219, 0.4));
}

@keyframes jellyfishFrames {
  0%, 49% {
    background-image: url('img/jellyfish.png');
  }
  50%, 100% {
    background-image: url('img/jellyfish_all_tent.png');
  }
}

/* Seaweed styling for bottom anchored seaweed */
.seaweed {
  position: fixed;
  bottom: 50px;
  width: 40px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  pointer-events: none;
  z-index: -2;
  filter: brightness(0.8) hue-rotate(60deg); /* Base green tint */
}

.seaweed.small {
  width: 30px;
  height: 90px;
}

.seaweed.large {
  width: 50px;
  height: 150px;
}

/* Green color variations */
.seaweed.light-green {
  filter: brightness(1.1) hue-rotate(80deg) saturate(1.2);
}

.seaweed.medium-green {
  filter: brightness(0.9) hue-rotate(60deg) saturate(1.0);
}

.seaweed.dark-green {
  filter: brightness(0.7) hue-rotate(40deg) saturate(1.3);
}

.seaweed.forest-green {
  filter: brightness(0.6) hue-rotate(50deg) saturate(1.4);
}

/* Seaweed animation cycling through 3 frames */
@keyframes seaweedFrames {
  0%, 33% {
    background-image: url('img/seaweed1.png');
  }
  34%, 66% {
    background-image: url('img/seaweed2.png');
  }
  67%, 100% {
    background-image: url('img/seaweed3.png');
  }
}

/* Gentle swaying animation */
@keyframes seaweedSway {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes jellyfishFloat {
  0% {
    opacity: 0;
    transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg);
  }
  10% {
    opacity: 0.7;
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.1)) translateY(calc(var(--start-y) + var(--wave-offset) * 0.3)) rotate(8deg);
  }
  25% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.25)) translateY(calc(var(--start-y) + var(--wave-offset) * 0.8)) rotate(-5deg);
  }
  50% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.5)) translateY(calc(var(--start-y) - var(--wave-offset))) rotate(12deg);
  }
  75% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.75)) translateY(calc(var(--start-y) + var(--wave-offset) * 0.5)) rotate(-7deg);
  }
  90% {
    opacity: 0.7;
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.9)) translateY(calc(var(--start-y) - var(--wave-offset) * 0.7)) rotate(3deg);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(0deg);
  }
}

@keyframes jellyfishFloatFlipped {
  0% {
    opacity: 0;
    transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg) scaleX(-1);
  }
  10% {
    opacity: 0.7;
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.1)) translateY(calc(var(--start-y) + var(--wave-offset) * 0.3)) rotate(8deg) scaleX(-1);
  }
  25% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.25)) translateY(calc(var(--start-y) + var(--wave-offset) * 0.8)) rotate(-5deg) scaleX(-1);
  }
  50% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.5)) translateY(calc(var(--start-y) - var(--wave-offset))) rotate(12deg) scaleX(-1);
  }
  75% {
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.75)) translateY(calc(var(--start-y) + var(--wave-offset) * 0.5)) rotate(-7deg) scaleX(-1);
  }
  90% {
    opacity: 0.7;
    transform: translateX(calc(var(--start-x) + (var(--end-x) - var(--start-x)) * 0.9)) translateY(calc(var(--start-y) - var(--wave-offset) * 0.7)) rotate(3deg) scaleX(-1);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(0deg) scaleX(-1);
  }
}



  
.background {
  max-width: 100%;
  position: static;
  
}

.heading {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 120px;
  font-size: 180%;
  text-shadow: 0 0 6px rgba(119,248,255,0.15);
  color: white;
}


#canvasHolder {
  width:100%;
  height: 150px;
}


.topText {
  color: white;
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  filter: drop-shadow(0 0 3px rgba(119,248,255,0.15));
}

.project {
    background-color: #defdff; /* Changing background color */
    border-radius: 20px; /* Making border radius */
    width: auto; /* Making auto-sizable width */
    height: auto; /* Making auto-sizable height */
    padding: 5px 20px 5px 20px; /* Making space around letters */
    font-size: 18px; /* Changing font size */
    margin-bottom: 30px;
    margin-left: 40px;
    margin-right: 40px;
}

.projectText {
  color: #00656b;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  text-shadow: 0 1px 3px rgba(119,248,255,0.2);
  transition: all 0.3s ease;
}

.projectText a {
  color: #007f8a;
  text-decoration: none;
  border-bottom: 1px dotted #007f8a;
  transition: all 0.3s ease;
}

.projectText a:hover {
  color: #00a8b5;
  border-bottom: 1px solid #00a8b5;
  text-shadow: 0 0 8px rgba(0,168,181,0.4);
} 

 /* Style the button that is used to open and close the collapsible content */
.button {
  background: linear-gradient(135deg, #defdff 0%, #b3f0f5 100%);
  color: #00656b;
  cursor: pointer;
  padding: 18px;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  display: flex;
  border-radius: 15px;
  box-shadow: 
    0 4px 15px rgba(119,248,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(119,248,255,0.3);
}

/* Enhanced hover and active states with underwater bubble effect */
.active, .button:hover {
  background: linear-gradient(135deg, #a9e6eb 0%, #7dd3da 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(119,248,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 0 20px rgba(119,248,255,0.2);
}

.button:active {
  transform: translateY(0px);
  box-shadow: 
    0 2px 10px rgba(119,248,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Enhanced underwater content styling */
.content {
  padding: 18px;
  display: none;
  overflow: hidden;
  background: linear-gradient(135deg, #defdff 0%, #f0fdff 100%);
  border-radius: 15px;
  border: 1px solid rgba(119,248,255,0.3);
  box-shadow: inset 0 2px 5px rgba(119,248,255,0.1);
  backdrop-filter: blur(3px);
  animation: contentRipple 0.5s ease-out;
  margin-top: 5px;
}

@keyframes contentRipple {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Me Section Styling */
.about-heading {
  text-align: center;
  font-size: 180%;
  text-shadow: 0 0 6px rgba(119,248,255,0.15);
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  color: white;
}

.about-section {
  margin: 10px auto 20px auto;
  max-width: 800px;
  padding: 20px;
  text-align: center;
}

.about-item {
  background: rgba(2,0,36,0.9);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 8px 25px rgba(2,0,36,0.3),
    inset 0 1px 0 rgba(119,248,255,0.2);
  border: 1px solid rgba(2,0,36,0.5);
  backdrop-filter: blur(5px);
  animation: projectFloat 8s ease-in-out infinite;
}

.about-text {
  color: white;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 3px rgba(119,248,255,0.3);
}

/* Education Section Styling */
.education-section {
  margin: 0px auto 40px auto;
  max-width: 800px;
  padding: 20px;
}

.education-item {
  background: linear-gradient(135deg, #defdff 0%, #b3f0f5 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 8px 25px rgba(119,248,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.4);
  border: 1px solid rgba(119,248,255,0.3);
  backdrop-filter: blur(5px);
  animation: projectFloat 8s ease-in-out infinite;
}

.school-name {
  color: #00656b;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(119,248,255,0.3);
  text-align: center;
}

.graduation-date, .major {
  color: #00656b;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(119,248,255,0.2);
}

.courses-heading {
  color: #00656b;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(119,248,255,0.2);
}

.courses-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.courses-list li {
  color: #00656b;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin-bottom: 5px;
  text-shadow: 0 1px 2px rgba(119,248,255,0.15);
}

.projects-heading {
  text-align: center;
  font-size: 180%;
  text-shadow: 0 0 6px rgba(119,248,255,0.15);
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  color: white;
}

/* Education Section Heading */
.education-heading {
  text-align: center;
  font-size: 180%;
  text-shadow: 0 0 6px rgba(119,248,255,0.15);
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  color: white;
}

/* Contact Section Styling */
.contact-heading {
  text-align: center;
  font-size: 180%;
  text-shadow: 0 0 6px rgba(119,248,255,0.15);
  margin-top: 60px;
  margin-bottom: 20px;
  position: relative;
  color: white;
}

.contact-section {
  margin: 20px auto 60px auto;
  max-width: 600px;
  padding: 20px;
  text-align: center;
}

.contact-item {
  background: linear-gradient(135deg, #defdff 0%, #b3f0f5 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 8px 25px rgba(119,248,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.4);
  border: 1px solid rgba(119,248,255,0.3);
  backdrop-filter: blur(5px);
  animation: projectFloat 8s ease-in-out infinite;
}

.contact-label {
  color: #00656b;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 20px;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(119,248,255,0.2);
}

.contact-email {
  color: #007f8a;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px dotted #007f8a;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(119,248,255,0.2);
}

.contact-email:hover {
  color: #00a8b5;
  border-bottom: 1px solid #00a8b5;
  text-shadow: 0 0 8px rgba(0,168,181,0.4);
}

/* Section Divider Styling */
.section-divider {
  width: 80%;
  margin: 20px auto;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(119,248,255,0.6) 20%, 
    rgba(119,248,255,0.8) 50%, 
    rgba(119,248,255,0.6) 80%, 
    transparent 100%);
  box-shadow: 0 0 10px rgba(119,248,255,0.3);
} 

.headingContainter {
}

.openableProject {
  margin-left: 15%;
  margin-right: 15%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  margin-bottom: 0px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
  animation: projectFloat 8s ease-in-out infinite;
}

.openableProject:nth-child(even) {
  animation-delay: -4s;
}

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

.right {
  justify-content: flex-end;
}

.lineLeftRight {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(119,248,255,0.3));
  /* animation: seaweedSway 12s ease-in-out infinite; */
}

@keyframes seaweedSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1deg); }
  75% { transform: rotate(-1deg); }
}

.lineRightLeft {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: drop-shadow(0 2px 8px rgba(119,248,255,0.3));
  /* animation: seaweedSway 12s ease-in-out infinite reverse; */
}

.compSci {
  width: 15%;
}

.clickMe {
  position: absolute;
  left: -10vw;
  bottom: 0px;
  width: 10vw;
  filter: drop-shadow(0 0 10px rgba(119,248,255,0.4));
  animation: fishSwim 4s ease-in-out infinite;
}

@keyframes fishSwim {
  0%, 100% { transform: translateX(0px) translateY(0px); }
  50% { transform: translateX(5px) translateY(-3px); }
}

/* Responsive Design for Underwater Theme */
@media (max-width: 768px) {
  .name {
    font-size: 200%;
    top: 30px;
  }
  
  .heading {
    top: 120px;
    font-size: 150%;
    transform: translateX(-50%);
  }
  
  .openableProject {
    margin-left: 5%;
    margin-right: 5%;
    flex-direction: column;
  }
  
  .openableProject.right {
    flex-direction: column-reverse;
  }
  
  .clickMe {
    left: -15vw;
    width: 15vw;
  }
  
  .lineLeftRight, .lineRightLeft {
    width: 80%;
  }
  
  .fish {
    width: 84px;
    height: 63px;
  }
  
  .fish.small {
    width: 60px;
    height: 45px;
  }
  
  .fish.large {
    width: 108px;
    height: 81px;
  }
  
  .about-heading {
    font-size: 150%;
    margin-top: 20px;
  }
  
  .about-section {
    margin: 10px auto 20px auto;
    padding: 15px;
  }
  
  .about-item {
    padding: 20px;
  }
  
  .about-text {
    font-size: 16px;
  }
  
  .education-section {
    margin: 0px auto 40px auto;
    padding: 15px;
  }
  
  .education-item {
    padding: 20px;
  }
  
  .school-name {
    font-size: 24px;
  }
  
  .courses-heading {
    font-size: 18px;
  }
  
  .education-heading {
    font-size: 150%;
    margin-top: 20px;
  }
  
  .projects-heading {
    font-size: 150%;
    margin-top: 30px;
  }
  
  .contact-heading {
    font-size: 150%;
    margin-top: 40px;
  }
  
  .contact-section {
    margin: 15px auto 40px auto;
    padding: 15px;
  }
  
  .contact-item {
    padding: 20px;
  }
  
  .contact-label {
    font-size: 18px;
  }
  
  .contact-email {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 150%;
    top: 20px;
  }
  
  .heading {
    top: 100px;
    font-size: 120%;
    transform: translateX(-50%);
  }
  
  .button {
    padding: 12px;
    font-size: 14px;
  }
  
  .content {
    padding: 12px;
  }
  
  .about-heading {
    font-size: 120%;
    margin-top: 15px;
  }
  
  .about-section {
    margin: 5px auto 15px auto;
    padding: 10px;
  }
  
  .about-item {
    padding: 15px;
  }
  
  .about-text {
    font-size: 14px;
  }
  
  .education-section {
    margin: 0px auto 30px auto;
    padding: 10px;
  }
  
  .education-item {
    padding: 15px;
  }
  
  .school-name {
    font-size: 20px;
  }
  
  .courses-heading {
    font-size: 16px;
  }
  
  .graduation-date, .major {
    font-size: 14px;
  }
  
  .education-heading {
    font-size: 120%;
    margin-top: 15px;
  }
  
  .projects-heading {
    font-size: 120%;
    margin-top: 25px;
  }
  
  .contact-heading {
    font-size: 120%;
    margin-top: 30px;
  }
  
  .contact-section {
    margin: 10px auto 30px auto;
    padding: 10px;
  }
  
  .contact-item {
    padding: 15px;
  }
  
  .contact-label {
    font-size: 16px;
  }
  
  .contact-email {
    font-size: 14px;
  }
}

