@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Custom Scrollbar with RGB Gradient */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #4acfee, #53f8c9, #6070fd, #5bbdff, #4acfee);
  border-radius: 10px;
  background-size: 200% 200%;
  animation: gradient-animation 5s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

body {
  position: relative;
  height: fit-content;
  width: 100%;
  height: 100vh;
  /* overflow: hidden; */
  display: flex;
  padding: 30px 0;
  justify-content: center;
  align-items: center;
}

.back-vid {
  position: fixed;
  left: 0;
  top: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
  background-color: #000;
}

.audio {
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 10px #4acfee, 0 0 20px #4acfee;
  border-radius: 29px;
  will-change: transform;
}

@media (max-width: 768px) {
  .back-vid {
    position: fixed;
    width: auto;
    height: 100vh;
    min-height: 100%;
    object-position: center;
  }
  
  body {
    background-color: #000;
  }
}

.main-section {
  width: 90%;
  height: 90%;
  background-color: #4ad0ee1b;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 5px 5px 20px 1px #4acfee;
  overflow-y: auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
}

nav h1 {
  color: white;
  font-size: 30px;
  font-weight: 900;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: 0.2s;
  padding: 0px 25px;
}

nav a:hover,
.active {
  color: #4acfee;
  text-decoration: underline;
}

@media (max-width: 1040px) {
  nav {
    padding: 12px 20px;
  }

  nav.sticky {
    padding: 10px 20px;
  }

  nav h1 {
    font-size: 24px;
  }

  .navigation {
    display: none;
  }

  .navigation.active {
    z-index: 889;
    position: fixed;
    background: rgba(20, 10, 30, 0.82); /* darker glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(190, 2, 159, 0.25);
    border-radius: 20px 0 0 20px;
    transition: 0.3s ease;
    will-change: transform, opacity;
  }

  .navigation a {
    color: white;
    font-size: 1.2em;
    margin: 10px;
    padding: 10px 40px;
    border-radius: 5px;
    background: rgba(74, 207, 238, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: 0.3s ease;
  }

  .navigation a:hover {
    background: rgba(74, 207, 238, 0.2);
    color: #4acfee;
    transition: 0.3s ease;
  }

  .menu-btn {
    position: absolute;
    background-image: url(images/menu.png);
    background-position: center;
    background-size: 30px;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    right: 0;
    margin: 0 20px;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 888;
    display: block;
  }
  
  .menu-btn.active {
    z-index: 999;
    background-image: url(images/close.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25px;
    transition: 0.3s ease;
    filter: invert(1);
  }
}

@media (max-width: 1200px) {
  .hero {
    padding: 0 4%;
  }
  
  .hero h1 {
    font-size: 50px;
  }
}

@media (max-width: 980px) {
  body {
    height: fit-content;
    overflow: auto;
    padding: 20px 0;
  }
  
  .main-section {
    overflow-y: auto;
    height: auto;
  }
  
  .hero {
    flex-direction: column-reverse;
    height: auto;
    padding: 20px 5%;
    gap: 30px;
  }
  
  .hero-info {
    text-align: center;
    width: 100%;
  }
  
  .hero-img {
    width: 300px;
    height: 300px;
    align-items: center;
  }
  .hero-img picture,
  .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .hero h2 {
    font-size: 25px;
  }
  
  .Buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {
  .Buttons {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
  }
}

  .audio {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .main-section {
    width: 95%;
    border-radius: 30px;
  }
  
  nav {
    padding: 20px 30px;
  }
  
  nav h1 {
    font-size: 25px;
  }
  
  .hero h1 {
    font-size: 35px;
  }
  
  .hero-img {
    width: 250px;
    height: 250px;
    align-items: center;
  }
  .hero-img picture,
  .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
  }
  
  .navigation.active {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px 0;
  }
  
  .main-section {
    width: 95%;
    border-radius: 20px;
  }
  
  nav {
    padding: 15px 20px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero h2 {
    font-size: 20px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .hero-img {
    width: 200px;
    height: 200px;
    align-items: center;
    border-radius: 50%; /* always a circle */
    overflow: hidden;
  }
  .hero-img picture,
  .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
  }
  
  .ul-icons a {
    padding: 6px;
    font-size: 16px;
  }
}

.hero {
  display: flex;
  align-items: center;
  height: 70%;
  padding: 0 10%;
  color: white;
  justify-content: space-between;
}

.hero h1 {
  font-size: 60px;
}

.hero h2 {
  margin-top: 20px;
  font-size: 30px;
  text-transform: uppercase;
  background: linear-gradient(to right, #4acfee, #53f8c9, #6070fd, #5bbdff, #4acfee);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
  will-change: background-position;
}

.hero p {
  max-width: 450px;
  margin-top: 7px;
  margin-bottom: 20px;
}

@keyframes animate-gradient {
  to {
    background-position: 200%;
  }
}

.Buttons {
  display: flex;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #4acfee;
  border: 2px solid #4acfee;
  border-radius: 40px;
  box-shadow: 0 0 10px #4acfee;
  font-size: 16px;
  font-weight: 900;
  color: #0e1217;
  cursor: pointer;
  margin-right: 15px;
  transition: 0.3s;
  text-wrap: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn-funky {
  background: linear-gradient(90deg, #a259f7, #6a30c9, #d16ff7, #a259f7);
  background-size: 300% 300%;
  color: #fff;
  font-family: 'Comic Sans MS', 'Poppins', cursive, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 30px;
  border: none;
  padding: 0.75em 2em;
  margin-left: 12px;
  box-shadow: 0 0 24px 8px #a259f7, 0 0 32px #d16ff777;
  letter-spacing: 2px;
  animation: funky-gradient 3s ease-in-out infinite, funky-glow 2s infinite alternate, funky-wiggle 2.2s infinite linear;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.3s;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 8px #fff, 0 0 12px #a259f7, 0 0 20px #d16ff7;
  filter: brightness(1.2) saturate(1.3);
}

@keyframes funky-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes funky-glow {
  0% {
    box-shadow: 0 0 16px 4px #a259f7, 0 0 32px #d16ff777;
    text-shadow: 0 0 8px #fff, 0 0 12px #a259f7, 0 0 20px #d16ff7;
  }
  100% {
    box-shadow: 0 0 40px 16px #6a30c9, 0 0 48px #d16ff799;
    text-shadow: 0 0 16px #fff, 0 0 32px #6a30c9, 0 0 40px #d16ff7;
  }
}

.btn.resume-btn {
  background-color: #f130e1;
  border: 2px solid #f130e1;
  box-shadow: 0 0 10px #f130e1;
  color: #fff;
  margin-right: 0;
  margin-left: 0;
  animation: pulse-resume 2s infinite;
  position: relative;
  overflow: hidden;
  text-wrap: nowrap;
}

.btn.resume-btn:hover {
  background-color: transparent;
  color: #f130e1;
  box-shadow: none;
}

.btn.resume-btn i {
  margin-right: 8px;
  animation: bounce 1s ease infinite;
}

@keyframes pulse-resume {
  0% {
    box-shadow: 0 0 10px #f130e1;
  }
  50% {
    box-shadow: 0 0 20px #f130e1, 0 0 30px #f130e1;
  }
  100% {
    box-shadow: 0 0 10px #f130e1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

@media (max-width: 768px) {
  .btn.resume-btn {
    display: inline-block !important;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 200px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn.resume-btn {
    font-size: 14px;
    padding: 10px 20px;
    width: 100%;
    min-width: 0;
  }
}

.btn:hover {
  background-color: transparent;
  box-shadow: none;
  color: #4acfee;
}

.ul-icons {
  display: flex;
  align-items: center;
}

.ul-icons li {
  list-style: none;
  margin-left: 10px;
}

.ul-icons a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #4acfee;
  border-radius: 50%;
  font-size: 20px;
  color: #4acfee;
  text-decoration: none;
  margin: 0 7px;
  transition: 0.3s;
}

.ul-icons a:hover {
  background: #4acfee;
  color: #0e1217;
  box-shadow: 0 0 10px #4acfee;
}

.hero-img {
  width: 400px;
  height: 400px;
  background-color: none;
  position: relative;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 10px #4eddfd;
  transition: 0.5s;
  margin: 0 auto 32px auto;
}

@media (max-width: 980px) {
  .hero-img {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .hero-img {
    width: 200px;
    height: 200px;
  }
}

.hero-img picture,
.hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin: 0;
  box-shadow: none;
}

.hero-img:hover {
  box-shadow: 0 0 25px #4acfee;
}

.hero-img img {
  transform: scale(1.1);
  /* Adjust the scale value as needed */
}

.info-sec {
  display: flex;
  width: 100%;
  gap: 20px;
  padding: 0 10%;
  flex-wrap: wrap;
  justify-content: space-between;

}

.info-card {
  display: flex;
  width: 100%;
  align-items: center;
  max-width: fit-content;
}

.info-sec h1 {
  font-size: 55px;
  text-transform: uppercase;
  background: linear-gradient(to right, #4acfee, #53f8c9, #6070fd, #5bbdff, #4acfee);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
  margin-right: 10px;
}

.info-sec p {
  color: white;
  font-size: 20px;
}

@media (min-width: 1220px) {
  body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .info-sec {
    margin-top: 30px;
  }
}

@media (max-width: 980px) {
  body {
    height: fit-content;
    overflow: auto;
  }

  .main-section nav ul {
    display: none;
  }

  .Buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-img {
    width: 400px;
    height: 400px;
    margin: 20px 0;
    align-items: center;
  }
  .hero-img picture,
  .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
  }

}

@media (max-width:440px) {
  .hero-img {
    width: 350px;
    align-items: center;
  }
  .hero-img picture,
  .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
  }

  .hero h1 {
    font-size: 40px;
  }
}

/* Glowing text effect for main heading */
.glow-text {
  position: relative;
  color: #fff;
  text-shadow: 0 0 10px rgba(74, 207, 238, 0.7),
               0 0 20px rgba(74, 207, 238, 0.7),
               0 0 30px rgba(74, 207, 238, 0.7),
               0 0 40px rgba(74, 207, 238, 0.5),
               0 0 70px rgba(74, 207, 238, 0.5);
  background: linear-gradient(90deg, #4acfee, #fff, #4acfee);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 5s ease-in-out infinite;
}

.glow-text::after {
  content: "Hi, I'm Ayushman Ghosh.";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  color: transparent;
  text-shadow: 0 0 15px rgba(74, 207, 238, 0.7),
               0 0 25px rgba(74, 207, 238, 0.7),
               0 0 35px rgba(74, 207, 238, 0.7);
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}