/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: monospace;
  margin: 0;
  padding: 0;
  background-color: #f9eadb;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  padding: 20px 0;
  background: #f9eadb;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  background: #f9eadb;
}

nav .logo {
  font-size: 40px;
  font-weight: bold;
  background: linear-gradient(45deg, #dc3545, #5db1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 80px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-size: 20px;
  position: relative;
  color: #dc3545;
  text-decoration: none;
}

nav ul li a.active,
nav ul li a:hover {
  color: #5db1ff;
  position: relative;
  text-decoration: none;
}

nav ul li a.active::after,
nav ul li a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(45deg, #dc3545, #5db1ff);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

nav ul li a.active:hover::after,
nav ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle i {
  font-size: 20px;
  background: linear-gradient(45deg, #dc3545, #5db1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.menu-toggle .bar {
  background-color: #dc3545;
  height: 3px;
  width: 25px;
  margin: 3px 0;
  transition: 0.3s;
}

/* Main content styling */
main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 40px 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  flex: 1 1 auto;
  min-height: 400px;
  max-height: 80vh;
}

.intro {
  max-width: 600px;
  text-align: left;
}

.intro h2 {
  font-size: 36px;
  margin: 0;
  color: #333333;
}

.intro h2 span.h2 {
  font-size: 66px;
  margin: 0;
  background: linear-gradient(120deg, #dc3545, #5db1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.intro h2 span.h22 {
  font-size: 66px;
  margin: 0;
  background: linear-gradient(120deg, #5db1ff, #dc3545);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.typing-container {
  font-family: monospace;
  font-size: 24px;
  white-space: nowrap;
  display: inline-block;
}

.typing {
  display: inline;
  border-right: 2px solid #6c757d;
  padding-right: 5px;
}

.cta-button {
  padding: 10px 20px;
  background: linear-gradient(45deg, #dc3545, #5db1ff);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, #5db1ff, #dc3545, #5db1ff);
  z-index: 0;
  transition: all 0.4s ease;
  transform: scale(1.5);
}

.cta-button:hover::before {
  left: 0;
  transform: scale(1);
}

.cta-button:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.cta-button span {
  position: relative;
  z-index: 1;
}

/* Profile picture container */
.profile-pic-container {
  background: linear-gradient(120deg, #5db1ff, #dc3545, #5db1ff);
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  max-width: 100%;
}

.profile-pic img {
  width: 450px;
  height: 450px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: 50%;
  max-width: 100%;
}

.profile-pic img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}
.speech-bubble {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ebd270;
  padding: 15px 48px;
  border-radius: 20px;
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 260px;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* .gradient-text {
  background: linear-gradient(to right, blue, red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
} */

#speechBubble.loading {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
#speechBubble {
  transition: opacity 0.3s ease;
}



.speech-bubble.loading {
  opacity: 0.5; /* Dimmed effect during loading */
}

.speech-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #ebd270;
}

/* Footer styles */
footer {
  width: 100%;
  padding: 10px;
  text-align: center;
  background: #f9eadb;
}

footer p {
  margin: 0;
  color: #6c757d;
}

.social-links {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links i {
  width: 20px;
  height: 20px;
  color: black;
}

.social-links i:hover {
  background: linear-gradient(120deg, #5db1ff, #dc3545);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

footer p:last-of-type {
  color: rgb(0, 0, 0);
  font-weight: bold;
}

/* Responsive styles */

/* Small screens (up to 480px, mobile) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  header {
    padding: 10px 0;
  }

  nav {
    flex-wrap: wrap;
    padding: 0 20px;
  }

  nav .logo {
    font-size: 38px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 50px;
    right: 10px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(100% - 20px);
    max-width: 200px;
    z-index: 1000;
  }

  nav ul.active {
    display: flex;
  }

  nav .menu-toggle {
    display: flex;
    gap: 5px;
  }

  nav .menu-toggle .bar {
    width: 20px;
    height: 2px;
  }

  nav ul li a {
    font-size: 14px;
  }

  main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    gap: 40px;
    min-height: 300px;
    max-height: none;
  }

  .intro {
    max-width: 100%;
    padding: 0 10px;
  }

  .intro h2 {
    font-size: 20px;
  }

  .intro h2 span.h2,
  .intro h2 span.h22 {
    font-size: 32px;
  }

  .intro p {
    font-size: 12px;
  }

  .typing-container {
    font-size: 16px;
  }

  .profile-pic-container {
    padding: 3px;
    max-width: 300px;
  }

  .profile-pic img {
    width: 100%;
    max-width: 300px;
    max-height: 300px;
  }

  .speech-bubble {
    top: -30px;
    font-size: 16px;
    padding: 8px 15px;
    max-width: 150px;
  }

  .speech-bubble::after {
    border: 6px solid transparent;
    border-top-color: #ebd270;
  }

  .cta-button {
    font-size: 12px;
    padding: 8px 16px;
    margin-top: 10px;
  }

  footer {
    padding: 20px;
    font-size: 10px;
  }

  .social-links {
    gap: 15px;
  }

  .social-links i {
    font-size: 20px;
  }

  .intro-container {
    height: 100vh;
    padding: 0 10px;
  }

  .intro-content h1 {
    font-size: 24px;
  }

  .intro-content p {
    font-size: 14px;
    margin: 10px 0;
  }

  .skip-intro a {
    font-size: 14px;
  }
}

/* Medium screens (481px to 768px, tablets) */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  nav .logo {
    font-size: 28px;
  }

  nav ul {
    gap: 30px;
  }

  nav ul li a {
    font-size: 16px;
  }

  main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 15px;
    gap: 15px;
    min-height: 350px;
    max-height: none;
  }

  .intro {
    max-width: 80%;
  }

  .intro h2 {
    font-size: 24px;
  }

  .intro h2 span.h2,
  .intro h2 span.h22 {
    font-size: 40px;
  }

  .intro p {
    font-size: 14px;
  }

  .typing-container {
    font-size: 18px;
  }

  .profile-pic-container {
    padding: 4px;
    max-width: 250px;
  }

  .profile-pic img {
    width: 100%;
    max-width: 250px;
    max-height: 250px;
  }

  .speech-bubble {
    top: -35px;
    font-size: 14px;
    padding: 10px 20px;
    max-width: 180px;
  }

  .speech-bubble::after {
    border: 8px solid transparent;
    border-top-color: #e5e5ea;
  }

  .cta-button {
    font-size: 14px;
    padding: 10px 18px;
  }

  footer {
    padding: 15px;
    font-size: 12px;
  }

  .social-links {
    gap: 12px;
  }

  .social-links i {
    font-size: 14px;
  }

  .intro-container {
    height: 100vh;
    padding: 0 15px;
  }

  .intro-content h1 {
    font-size: 32px;
  }

  .intro-content p {
    font-size: 16px;
    margin: 12px 0;
  }

  .skip-intro a {
    font-size: 15px;
  }
}

/* Large screens (769px to 1024px, small laptops) */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  nav .logo {
    font-size: 32px;
  }

  nav ul {
    gap: 50px;
  }

  nav ul li a {
    font-size: 18px;
  }

  main {
    flex-direction: row;
    align-items: center;
    padding: 30px 20px;
    gap: 20px;
    min-height: 400px;
    max-height: 80vh;
  }

  .intro {
    max-width: 50%;
  }

  .intro h2 {
    font-size: 28px;
  }

  .intro h2 span.h2,
  .intro h2 span.h22 {
    font-size: 48px;
  }

  .intro p {
    font-size: 15px;
  }

  .typing-container {
    font-size: 20px;
  }

  .profile-pic-container {
    padding: 4px;
    max-width: 350px;
  }

  .profile-pic img {
    width: 100%;
    max-width: 350px;
    max-height: 350px;
  }

  .speech-bubble {
    font-size: 15px;
    padding: 12px 25px;
    max-width: 220px;
  }

  .intro-container {
    height: 100vh;
    padding: 0 20px;
  }

  .intro-content h1 {
    font-size: 36px;
  }

  .intro-content p {
    font-size: 18px;
  }

  .skip-intro a {
    font-size: 16px;
  }

  footer {
    padding: 15px;
    font-size: 12px;
  }
}