body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent; /* Blackish grey background */
  cursor: crosshair;
}

::selection {
  background-color: none;
  color: yellow; /* Optional: Change text color */
}

/* TEXT TYPES */
._text {
  color: #fff6;
  font-family: Diatype Mono, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  position: static;
}

._12text {
  color: #fff6;
  font-family: Diatype Mono, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 18px;
  position: static;
}

._12text.loc {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between icon and text */
}

.location-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Noise Effect */
#noise {
  position: fixed; /* Position canvas behind the content */
  top: 0;
  left: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  z-index: -1000; /* Far below all content to ensure it stays behind */
  pointer-events: none; /* Prevent interference with clicks */
}

/* Main Content */
.content {
  position: relative;
  z-index: 10; /* Higher z-index to ensure all content is above noise canvas */
  font-family: Arial, sans-serif;
}

/* complete speaker */
.speaker-container {
  position: fixed;
  top: 170px; /* Distance from the top */
  right: 0;
  padding-right: 30px;
  margin-right: 120px;
  transition: transform 0.3s ease;
  z-index: 1000; /* Ensure it hovers over other elements */
  cursor: pointer;
}

.speaker-wrapper {
  position: relative;
  display: flex;
  justify-content: center; /* Center the text image */
  align-items: center; /* Center vertically */
}

.text-speaker {
  width: 310px;
  height: 310px;
  animation: rotate 30s linear infinite;
}

.speaker {
  position: absolute;
  width: 238px;
  height: 238px;
  transition: 0.5s ease;
}

.speaker:hover {
  width: 220px;
  height: 220px;
}

/* Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg); /* Rotate anti-clockwise */
  }
}

/* NAVBAR */

.nav-bar {
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 40px;
  width: 100%;
}

.nameinfo {
  flex: 1;
  font-size: 17px;
  color: white;
  padding: 5px;
}

.nameinfo {
  flex: 1;
  font-size: 17px;
  color: white;
  padding: 5px;
}

#plus-img {
  transform: rotate(0deg);
  transition: transform 0.4s ease-in-out;
  transform-style: preserve-3d;
}

/* Social Links */
.socials {
  color: #fff6;
  font-family: Diatype Mono, sans-serif;
  font-size: 12px;
  font-weight: 250;
  line-height: 18px;
  display: flex;
  align-items: center;
  gap: 8px; /* Space between elements */
}

.socials img:first-child {
  /* For the business icon */
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.social-link {
  color: #fff6; /* Default color for links */
  text-decoration: none;
  font-family: Diatype Mono, sans-serif;
  font-size: 14px;
  display: inline-block;
}

.social-link.active {
  color: white; /* Highlighted color for active link */
}

.socialsholder {
  opacity: 0;
  display: none;
  transition: opacity 0.4s ease-in-out;
  color: #fff6;
  font-family: Diatype Mono, sans-serif;
  font-size: 10px;
  font-weight: 250;
  line-height: 18px;
  position: absolute;
}

.socialsholder a {
  color: #7c7c83;
  text-decoration: none;
}

.socials.active + .socialsholder {
  display: block;
  opacity: 1;
}

.socials.active #plus-img {
  transform: rotate(90deg); /* Rotate the plus sign by 90 degrees */
}

/* ABOUT */

.about {
  flex: 1;
  text-align: left;
  margin-left: 0;
  padding-left: 60px;
}

.about-1 {
  color: #fff;
  font-family: Diatype Mono, sans-serif;
  font-size: 16px;
  font-weight: 300;
  white-space: nowrap;
}

/* RESUME */
.resumeholder {
  margin-left: 0;
  margin-right: 40px;
  text-align: right;
}

.resume {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

/* BIGSTUFF */
.big-stuff {
  color: #fff;
  display: flex;
  margin-top: 120px;
  margin-left: 120px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  white-space: nowrap;
  position: relative;
  gap: 15px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.big-name {
  font-size: 70px;
  font-family: "PPMori-SemiBold";
  font-weight: normal;
  text-shadow: 0 0 1px #ffffff;
}

.sanskrit {
  margin-top: 0;
  padding-top: 0;
  margin-left: 70px;
  font-size: 50px;
}

.buffon {
  font-size: 25px;
}

.buffon2 {
  margin-left: 40px;
  font-size: 30px;
}

/* Japanese Character and Smoke Animation */
.japanese-character-container {
  position: relative;
  margin-left: -10px;
  margin-top: -20px;
  z-index: 5;
  flex-shrink: 0;
}

.japanese-character {
  height: 400px; /* Tall enough to cover from name to buffoonery */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.japanese-character:hover {
  transform: scale(1.05);
}

/* Smoke Container positioned near cigarette */
.smoke-container {
  position: absolute;
  top: 60px; /* Adjust based on cigarette position */
  left: 60px; /* Move to left side of character (cigarette hand) */
  width: 80px;
  height: 150px;
  pointer-events: none;
  z-index: 3;
}

/* Individual Smoke Particles */
.smoke {
  position: absolute;
  width: 18px;
  height: 10px;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(230, 230, 230, 0.6) 30%,
    rgba(200, 200, 200, 0.4) 60%,
    rgba(170, 170, 170, 0.2) 80%,
    transparent 100%
  );
  border-radius: 50% 30% 40% 60%;
  opacity: 0;
  animation-iteration-count: infinite;
  animation-timing-function: ease-out;
  filter: blur(3px);
}

.smoke1 {
  left: 5px;
  animation: smokeRise1 4s infinite;
  animation-delay: 0s;
}

.smoke2 {
  left: 10px;
  animation: smokeRise2 4.5s infinite;
  animation-delay: 0.3s;
}

.smoke3 {
  left: 15px;
  animation: smokeRise3 5s infinite;
  animation-delay: 0.6s;
}

.smoke4 {
  left: 8px;
  animation: smokeRise1 4.2s infinite;
  animation-delay: 0.9s;
}

.smoke5 {
  left: 12px;
  animation: smokeRise2 4.8s infinite;
  animation-delay: 1.2s;
}

.smoke6 {
  left: 6px;
  animation: smokeRise3 4.3s infinite;
  animation-delay: 1.5s;
}

.smoke7 {
  left: 14px;
  animation: smokeRise1 4.6s infinite;
  animation-delay: 1.8s;
}

.smoke8 {
  left: 9px;
  animation: smokeRise2 4.1s infinite;
  animation-delay: 2.1s;
}

/* Realistic Smoke Animation Keyframes */
@keyframes smokeRise1 {
  0% {
    transform: translateY(0) translateX(0) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) translateX(20px) scale(1.3) rotate(90deg);
    opacity: 0;
  }
}

@keyframes smokeRise2 {
  0% {
    transform: translateY(0) translateX(0) scale(0.9) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110px) translateX(-15px) scale(1.2) rotate(-60deg);
    opacity: 0;
  }
}

@keyframes smokeRise3 {
  0% {
    transform: translateY(0) translateX(0) scale(0.7) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120px) translateX(10px) scale(1.4) rotate(120deg);
    opacity: 0;
  }
}

/* Story Section Styling */
.story-section {
  padding: 80px 40px;
  margin: 60px 0;
  position: relative;
  z-index: 10;
}

.story-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 100px;
  padding-left: 40px;
}

.story-image-container {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-image {
  width: 350px;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.story-text-container {
  flex: 1;
  max-width: 600px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

/* Animated states when in view */
.story-image-container.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.story-text-container.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.story-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f5f5dc;
  margin-bottom: 20px;
  font-family: "PP Mori", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  hyphens: auto;
}

.story-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0e8;
  font-family: "PP Editorial New", Georgia, serif;
  text-align: justify;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Medium screens - specific fix for div5/timecapsule */
@media (max-width: 1024px) {
  .div5 {
    margin: 50px auto !important;
    margin-left: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .div5 .yellow {
    width: 85% !important;
    max-width: 400px !important;
    height: 420px !important;
    margin: 0 auto !important;
  }

  .div5 .display-text {
    text-align: center !important;
    margin: 20px 0 !important;
    padding: 0 20px !important;
    width: 100% !important;
  }
}

/* Responsive Design for Story Section */
@media (max-width: 1199px) {
  .story-container {
    gap: 80px;
    padding-left: 30px;
  }

  .story-image {
    width: 300px;
    height: 430px;
  }

  .story-title {
    font-size: 1.6rem;
  }

  .story-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .story-section {
    padding: 60px 20px;
    margin: 40px 0;
  }

  .story-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .story-image {
    width: 280px;
    height: 400px;
  }

  .story-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .story-description {
    font-size: 0.9rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .story-section {
    padding: 40px 15px;
  }

  .story-image {
    width: 250px;
    height: 350px;
  }

  .story-title {
    font-size: 1.3rem;
  }

  .story-description {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* DISPLAYPROJS */

.display {
  margin-top: 200px;
}

.flexcontainer {
  display: flex;
  flex-direction: row;
}

.div1 {
  margin-top: 180px;
  position: relative;
  margin-left: 40px;
}

.gradient {
  background: linear-gradient(to bottom left, #a855f7, #ec4899, #fbbf24);
  width: 400px;
  height: 450px;
  border-radius: 30px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.white-div {
  background-color: white;
  height: 400px;
  width: 230px;
  border-radius: 15px;
  position: absolute;
  z-index: 10;
  top: 25px;
  left: 80px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  align-items: center;
  justify-items: center;
  justify-content: center;
  cursor: alias;
  overflow: hidden;
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
}

/* Handle both video and image elements with project-video class */
img.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  display: block; /* Remove any inline spacing */
}

/* iPhone container and image styling */
.iphone-container {
  background-color: transparent !important; /* Remove white background */
  padding: 0 !important;
  overflow: hidden;
  width: 320px !important; /* Wider than default white-div */
  height: 450px !important; /* Full height to show all image content */
  left: 60px !important; /* Adjust position to center horizontally */
  top: 0px !important; /* Align with blue container */
  transform: translateY(-12px) !important; /* Fine-tune vertical centering */
}

.iphone-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Use cover instead of fill to maintain aspect ratio */
  border-radius: 15px;
  cursor: pointer;
  display: block;
  margin: 0;
  padding: 0;
}

/* Logo stack positioning */
.logo-stack {
  position: absolute;
  right: 50px; /* Position within the blue container */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 30;
}

.superteam-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  cursor: pointer;
  filter: drop-shadow(
    0 2px 4px rgba(0, 0, 0, 0.3)
  ); /* Add shadow for visibility */
}

.plus-sign {
  color: white;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow for visibility */
}

.telegram-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  cursor: pointer;
  filter: drop-shadow(
    0 2px 4px rgba(0, 0, 0, 0.3)
  ); /* Add shadow for visibility */
}

.display-text {
  color: #fff;
  font-size: 15px;
  margin-left: 17px;
  margin-top: 15px;
}

.div2 {
  margin-top: 185px;
  position: relative;
  margin-left: 40px;
}
.blue {
  background-color: rgb(65, 103, 227);
  opacity: 0.8;
  border-radius: 60px;
  width: 600px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.div3 {
  margin-top: 80px;
  position: relative;
  margin-left: 45px;
}

.bigwhite-div {
  background-color: #fff;
  opacity: 1;
  border-radius: 60px;
  width: 1120px;
  height: 400px;
  position: relative;
  z-index: 10;
  overflow: hidden; /* Hide iframe corners */
  cursor: alias; /* Change cursor on hover */
}

.bigwhite-div > div {
  width: 100%;
  height: 100% !important; /* Override inline padding */
  position: static !important; /* Override relative positioning */
}

.bigwhite-div iframe {
  position: static !important; /* Override absolute positioning */
  width: 100%;
  height: 100%;
  border-radius: 60px; /* Match parent's border radius */
}

/* Create clickable overlay */
.bigwhite-div::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.div4 {
  margin-left: 30px;
  margin-top: 80px;
  position: relative;
}

.div5 {
  margin-top: 80px;
  margin-left: 30px;
  position: relative;
  z-index: 100; /* Create stacking context above noise */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.yellow {
  background-color: #fff30e;
  opacity: 0.7;
  border-radius: 30px;
  width: 400px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 50; /* Higher z-index within the content stacking context */
}

/* Ensure video in yellow container is on top */
.yellow .white-div {
  z-index: 1000 !important; /* Much higher than noise canvas (z-index: 0) */
  background-color: transparent !important;
  /* Ensure video stays within container */
  width: 220px !important; /* Reduced to prevent overflow */
  height: 380px !important; /* Reduced to prevent overflow */
  top: 35px !important; /* Better centered vertically */
  left: 90px !important; /* Better centered horizontally */
  max-width: 220px !important;
  max-height: 380px !important;
}

.yellow .project-video {
  z-index: 1001 !important; /* Highest z-index to be above everything */
  border-radius: 15px;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* Show complete video content without cropping */
  /* Ensure no borders are cut */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============ ADVANCED ANIMATION SYSTEM ============ */

/* Core animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes projectReveal {
  from {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes videoReveal {
  from {
    opacity: 0;
    transform: scale(0.85) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

/* gentleFloat removed - preserving original speaker scroll behavior */

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  }
}

/* Animation classes */
.animate-in {
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

.animate-in.fadeInUp {
  animation-name: fadeInUp;
}

.animate-in.slideInLeft {
  animation-name: slideInLeft;
}

.animate-in.slideInRight {
  animation-name: slideInRight;
}

.animate-in.heroReveal {
  animation-name: heroReveal;
  animation-duration: 1.2s;
}

.animate-in.projectReveal {
  animation-name: projectReveal;
  animation-duration: 1s;
}

.animate-in.videoReveal {
  animation-name: videoReveal;
  animation-duration: 0.9s;
}

.animate-in.textReveal {
  animation-name: textReveal;
  animation-duration: 0.7s;
}

/* Enhanced hover effects */
.enhanced-hover {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.enhanced-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Optimized performance for animations */
.animate-in,
.enhanced-hover,
.logo-stack img {
  will-change: transform, opacity;
}

/* Loading state animations */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Entrance animations for different elements */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.stagger-children > *:nth-child(1) {
  animation-delay: 0.1s;
}
.stagger-children > *:nth-child(2) {
  animation-delay: 0.2s;
}
.stagger-children > *:nth-child(3) {
  animation-delay: 0.3s;
}
.stagger-children > *:nth-child(4) {
  animation-delay: 0.4s;
}
.stagger-children > *:nth-child(5) {
  animation-delay: 0.5s;
}

/* Advanced project container effects */
.project-container {
  position: relative;
  overflow: hidden;
}

.project-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
}

.project-container:hover::before {
  left: 100%;
}

/* Navbar scroll effects */
.nav-bar {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1000;
}

.nav-bar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Microinteractions */
.micro-interaction {
  transition: all 0.2s ease;
}

.micro-interaction:hover {
  transform: scale(1.05);
}

.micro-interaction:active {
  transform: scale(0.98);
}

/* Focus states for accessibility */
.focusable:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Cursor effects */
.cursor-alias {
  cursor: alias;
}

.cursor-pointer {
  cursor: pointer;
}

/* FOOTER */

.footer {
  margin-top: 200px;
  color: #fff;
  border-top: 0.1px solid #7c7c83;
  padding: 5px;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee {
  animation: marquee 10s linear infinite; /* Animation settings */
  font-size: 15px;
  width: fit-content;
  display: flex;
  align-items: center;
  white-space: nowrap; /* Prevents line breaks in marquee content */
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  } /* Start at the beginning */
  100% {
    transform: translateX(-100%);
  } /* Move left by half the total width */
}

@media screen and (max-width: 1600px) {
  .nav-bar {
    padding: 15px;
  }
  .about {
    margin-left: 200px;
  }
  .resumeholder {
    margin-left: 200px;
  }
  .big-stuff {
    margin-left: 80px;
    gap: 15px;
  }
  .bigwhite-div {
    width: 900px;
  }
  .speaker-container {
    margin-right: 80px;
  }
}

@media screen and (max-width: 1199px) {
  /* Navbar adjustments */
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    justify-content: center;
    align-items: center;
  }

  .name {
    text-align: center;
  }

  .nameinfo {
    margin-bottom: 15px;
  }

  .about {
    margin-left: 5px;
    padding-left: 0;
    margin-bottom: 15px;
    transition: transform 0.4s ease-in-out;
  }

  .loc {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .resumeholder {
    margin: 0;
  }

  /* Center big-stuff section */
  .big-stuff {
    margin: 80px auto 0;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    flex-direction: column;
    gap: 15px;
  }

  .hero-content {
    order: 1;
  }

  .japanese-character-container {
    order: 2;
    margin: 20px 0;
  }

  .japanese-character-container {
    order: 2;
    margin: 20px 0 0 0;
    align-self: center;
  }

  .japanese-character {
    height: 250px;
  }

  .smoke-container {
    top: 40px;
    left: 45px;
  }

  .big-name {
    margin: 0;
  }

  .sanskrit {
    margin: 10px 0;
  }

  .buffon,
  .buffon2 {
    margin: 5px 0;
  }

  /* Adjust CD player position */
  .speaker-container {
    position: static !important;
    top: auto;
    right: auto;
    margin: 30px auto;
    padding: 0;
    display: flex;
    justify-content: center;
    transform: none !important;
    order: 3;
  }

  /* Center all display sections */
  .display {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .flexcontainer {
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin: 0;
  }

  .div1,
  .div2,
  .div3,
  .div4 {
    margin: 40px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* div5 gets special treatment - already handled above */
  .div5 {
    margin: 40px auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .gradient,
  .blue,
  .yellow {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .white-div {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: 80% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  .project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .bigwhite-div {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
  }

  .display-text {
    text-align: center;
    margin: 15px 0;
    padding: 0 20px;
    width: 100%;
  }

  .socialsholder {
    margin-bottom: 0;
    transition: margin-bottom 0.4s ease-in-out;
  }

  /* When dropdown is active, add margin to push content down */
  .socials.active + .socialsholder {
    margin-bottom: 90px; /* Adjust this value based on your dropdown height */
  }

  .nameinfo:has(.socials.active) + .about {
    transform: translateY(90px); /* Match with margin-bottom above */
  }
}

/* Additional adjustments for smaller screens */
@media screen and (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    justify-content: center;
    align-items: center;
  }

  .loc {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .resumeholder {
    margin: 0;
  }

  .big-name {
    font-size: 40px;
  }

  .sanskrit {
    font-size: 30px;
  }

  .buffon {
    font-size: 20px;
  }

  .buffon2 {
    font-size: 24px;
  }

  .japanese-character {
    height: 200px;
  }

  .smoke-container {
    top: 30px;
    left: 35px;
    width: 30px;
    height: 60px;
  }

  .gradient,
  .blue,
  .yellow {
    height: 400px;
  }

  .yellow {
    padding: 15px !important;
    box-sizing: border-box !important;
  }

  /* Specific responsive fix for div5/timecapsule - override general rules */
  .div5 {
    margin: 40px auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .div5 .yellow {
    width: 90% !important;
    max-width: 380px !important;
    height: 400px !important;
    margin: 0 auto !important;
  }

  .div5 .display-text {
    text-align: center !important;
    margin: 15px 0 !important;
    padding: 0 20px !important;
    width: 100% !important;
  }

  .white-div {
    height: 350px;
  }

  .iphone-container {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 70% !important;
    max-width: 250px !important;
    margin: 0 auto !important;
  }

  .logo-stack {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    gap: 8px !important;
  }

  .superteam-logo,
  .telegram-logo {
    width: 25px !important;
    height: 25px !important;
  }

  .plus-sign {
    font-size: 12px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
  }

  .blue {
    flex-direction: row !important;
    position: relative !important;
  }

  .yellow .white-div {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 85% !important;
    height: auto !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  .yellow .project-video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9/16;
    object-fit: contain !important;
    border-radius: 15px !important;
    max-width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    justify-content: center;
    align-items: center;
  }

  .loc {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .resumeholder {
    margin: 0;
  }

  .big-name {
    font-size: 32px;
  }

  .sanskrit {
    font-size: 24px;
  }

  .buffon {
    font-size: 18px;
  }

  .buffon2 {
    font-size: 20px;
  }

  .japanese-character {
    height: 180px;
  }

  .smoke-container {
    top: 25px;
    left: 30px;
    width: 25px;
    height: 50px;
  }

  .logo-stack {
    right: 8px !important;
    gap: 6px !important;
  }

  .superteam-logo,
  .telegram-logo {
    width: 20px !important;
    height: 20px !important;
  }

  .plus-sign {
    font-size: 10px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
  }

  .iphone-container {
    width: 65% !important;
    max-width: 220px !important;
  }

  .yellow {
    padding: 12px !important;
  }

  .yellow .white-div {
    width: 90% !important;
    max-width: 250px !important;
    padding: 8px !important;
  }

  /* Specific responsive fix for div5/timecapsule on phones */
  .div5 {
    margin: 30px auto !important;
    width: 100% !important;
  }

  .div5 .yellow {
    width: 95% !important;
    max-width: 350px !important;
    height: 380px !important;
  }

  .div5 .yellow .white-div {
    width: 85% !important;
    max-width: 240px !important;
    padding: 8px !important;
  }
}

@media screen and (max-width: 360px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    justify-content: center;
    align-items: center;
  }

  .loc {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .resumeholder {
    margin: 0;
  }

  .big-name {
    font-size: 35px;
  }
  .speaker-container {
    position: static !important;
    margin: 20px auto !important;
    transform: none !important;
    display: flex;
    justify-content: center;
    order: 3;
  }
  .text-speaker {
    width: 180px;
    height: 180px;
  }
  .speaker {
    width: 130px;
    height: 130px;
  }
  .white-div {
    width: 160px;
    height: 280px;
  }

  .logo-stack {
    right: 5px !important;
    gap: 4px !important;
  }

  .superteam-logo,
  .telegram-logo {
    width: 18px !important;
    height: 18px !important;
  }

  .plus-sign {
    font-size: 8px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 14px !important;
  }

  .iphone-container {
    width: 60% !important;
    max-width: 200px !important;
  }

  .yellow {
    padding: 10px !important;
  }

  .yellow .white-div {
    width: 95% !important;
    max-width: 220px !important;
    padding: 6px !important;
  }

  /* Specific responsive fix for div5/timecapsule on small phones */
  .div5 {
    margin: 25px auto !important;
    width: 100% !important;
  }

  .div5 .yellow {
    width: 98% !important;
    max-width: 320px !important;
    height: 360px !important;
  }

  .div5 .yellow .white-div {
    width: 90% !important;
    max-width: 200px !important;
    padding: 6px !important;
  }
}

/* Content Protection Styles */
img,
video {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
  -webkit-touch-callout: none;
}

/* Disable text selection for sensitive content */
.big-name,
.sanskrit,
.buffon,
.buffon2,
.display-text {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Disable highlighting and selection */
*::selection {
  background: transparent;
}

*::-moz-selection {
  background: transparent;
}

/* Prevent right-click context menu on images and videos */
img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Additional mobile protection */
@media (max-width: 768px) {
  * {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* More Projects Section Styling */
.more-projects {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  margin: 60px 0;
  text-align: center;
}

.more-projects-text {
  font-size: 1.8rem;
  font-weight: 400;
  color: #f0f0e8;
  font-family: "PP Editorial New", Georgia, serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin: 0;
  opacity: 0.8;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* Responsive styling for more projects text */
@media (max-width: 768px) {
  .more-projects {
    padding: 60px 20px;
    margin: 40px 0;
  }

  .more-projects-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .more-projects {
    padding: 40px 15px;
    margin: 30px 0;
  }

  .more-projects-text {
    font-size: 1.3rem;
    letter-spacing: 0.3px;
  }
}
