/* styles.css */
@font-face {
  font-family: max;
  src: url(./Qiulla-vndRZ.otf);
}

@font-face {
  font-family: max-bold;
  src: url(./Qiulla-vndRZ-Bold.otf);
}

@font-face {
  font-family: max-italic;
  src: url(./Qiulla-vndRZ-Italic.otf);
}

@font-face {
  font-family: max-regular;
  src: url(./Qiulla-vndRZ-Regular.otf);
}

@font-face {
  font-family: max-light;
  src: url(./Qiulla-vndRZ-Light.otf);
}

@font-face {
  font-family: min;
  src: url(./RetroPixel-7BZol.otf);
}

@font-face {
  font-family: min;
  src: url(./RetroPixel-Bold.otf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0019ff;
  color: white;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: auto;
  /* Allow horizontal scrolling */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 16px;
  border-bottom: 1px solid white;
  position: relative;
}

nav .logo {
  font-size: 18px;
  font-family: min;
  line-height: 1.2;
  z-index: 101;
  display: inline-block;
  text-align: left;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.logo.animate {
  opacity: 1;
  transform: translateY(0);
}

.logo strong {
  display: inline-block;
}

.logo-sub {
  display: inline-block;
  font-weight: bold;
  font-family: min;
  font-size: 27px;
  width: 100%;
  text-align: end;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  font-family: max;
  transition: all 0.3s ease;
  /* Smooth animation */
}

.menu a:hover {
  color: #d0ff00;
  /* Bright neon color on hover */
  transform: scale(1.1);
  /* Slight zoom */
}

.menu a:active {
  transform: scale(0.92);
  /* Press down slightly */
  color: #0a0a0a;
  /* Slightly different color on click */
}



.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 102;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 10px 0;
}

.hero-text-filled,
.hero-text-outline {
  font-size: 20vw;
  font-weight: 900;
  font-family: max;
  line-height: 0.75;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  transition: transform 0.4s ease, letter-spacing 0.4s ease;
}

.hero-text-filled {
  color: #d0ff00;
  z-index: 1;
  animation: textReveal 1.5s ease-in-out forwards;
  animation-delay: 0.2s;
}

.hero-text-outline {
  color: transparent;
  -webkit-text-stroke: 2px #d0ff00;
  z-index: 3;
  animation: textReveal 1.5s ease-in-out forwards;
  animation-delay: 1s;
}

.hero-text-filled span,
.hero-text-outline span {
  display: block;
}

.hero-images {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.hero-images img {
  max-height: 100vh;
  object-fit: contain;
  transition: all 0.6s ease;
}

.hero-images img:nth-child(1) {
  z-index: 1;
}

.hero-images img:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
  transform: translate(0, 0);
  z-index: -1;
}

.hero-images:hover img:nth-child(2) {
  transform: translate(30px, -30px);
  opacity: 1;
  z-index: 2;
}

.hero-images:hover img:nth-child(1) {
  transform: scale(0.95);
  filter: blur(2px);
}

.hero:hover .hero-text-filled,
.hero:hover .hero-text-outline {
  letter-spacing: 8px;
  transform: translate(-50%, -50%) scaleX(1.1);
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    position: absolute;
    display: none;
    top: 0;
    right: -100%;
    height: 90vh;
    width: 150px;
    border-radius: 20px;
    background: rgba(0, 12, 154, 0.3);
    /* Semi-transparent blue */
    backdrop-filter: blur(10px);
    /* Glass blur */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.4s ease;
    z-index: 100;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    /* Optional subtle border */
  }


  .menu.active {
    right: 0;
    display: flex;
  }

  nav .menu a {
    font-size: 18px;
  }

  .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-text-filled,
  .hero-text-outline {
    font-size: 16vw;
  }

  .hero-images img {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 15px 20px;
  }

  .hero-text-filled,
  .hero-text-outline {
    font-size: 18vw;
  }

  .hero-images img {
    max-height: 60vh;
  }

  .menu {
    width: 100%;
  }
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: 50%;
  padding: 10px;
  background-color: aliceblue;
  color: black;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.about-left {
  flex: 1;
  background: #ccff00;
  /* neon background like your sample */
  border-radius: 30px;
  border: 3px solid;
  /* match the rounded corners */
  padding: 10px;
  position: relative;
  overflow: hidden;
  width: 100%;
  /* or any size you prefer */
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}


.about-right {
  flex: 1;
  gap: 20px;
  justify-content: center;
}

.typing-text {
  font-size: 1.8em;
  letter-spacing: 6px;
  font-weight: bold;
  font-family: max;
  white-space: nowrap;
  overflow: hidden;
  width: fit-content;
}

#typing {
  display: inline-block;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}




.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;

}

.image-wrapper img {
  width: 100%;
  object-fit: contain;
  transition: all 0.6s ease;
}

.about-outline-image {
  z-index: 1;
}

.about-main-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
  z-index: -1;
  transform: translate(0, 0);
}

.image-wrapper:hover .about-main-image {
  transform: translate(30px, -30px);
  opacity: 1;
  z-index: 2;
}

.image-wrapper:hover .about-outline-image {
  filter: blur(2px);
  transform: scale(0.95);
}

/* On scroll for mobile/tablet about sction*/
@media screen and (max-width: 1024px) {
  .image-wrapper.active-mobile .about-main-image {
    opacity: 1;
    transform: translate(30px, -30px);
    z-index: 2;
  }

  .image-wrapper.active-mobile .about-outline-image {
    opacity: 0;
    filter: blur(2px);
    transform: scale(0.95);
  }
}

/* Skill Strip */

.skill-strip {
  width: 100%;
  background-color: #d0ff00;
  overflow: hidden;
  border: 2px solid black;
  white-space: nowrap;
  position: relative;
  padding: 15px 0;
}

.marquee-1 {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 160s linear infinite;
  font-family: max;
  font-size: 28px;
  font-weight: bold;
  color: black;
}

.marquee-1 span {
  margin-right: 20px;
  letter-spacing: 2px;
}

.skill-strip-2 {
  width: 100%;
  background-color: #0019ff;
  overflow: hidden;
  border: 3px solid #0a0a0a;
  /* black border */
  white-space: nowrap;
  position: relative;
  padding: 15px 0;
}

.marquee-2 {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 160s linear infinite;
  font-family: max;
  font-size: 28px;
  font-weight: bold;
  color: rgb(255, 255, 255);
}

.marquee-2 span {
  margin-right: 20px;
  letter-spacing: 2px;
}



@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* skill section */
.skill {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.skill.visible {
  opacity: 1;
  transform: translateY(0);
}

.skills-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.skills-wrapper .skill {
  flex: 1;
  min-width: 200px;
}

.about-right p {
  margin-bottom: 20px;
}

.skills-wrapper {
  margin-top: 140px;
  /* Or any value you like */
}

/* UPDATED styles.css for Responsive Design + Card Grid Projects */

/* --- (keeping your existing styles untouched where not necessary) --- */

/* New Project Cards Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.project-card:hover {
  transform: scale(1.03);
  border-color: #d0ff00;
  box-shadow: 0 0 15px #d0ff00;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-card h3 {
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: black;
  font-family: 'Courier New', Courier, monospace;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .project-card img {
    aspect-ratio: 220px;
  }
}

@media (max-width: 480px) {
  .project-card img {
    height: 180px;
  }
}

/* Animation Observer Reuse */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}

#project {
  padding: 60px 20px;
  background: #1e1e1e;
  /* your existing bright background */
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  /* size of each grid square */
}

/* Section Title */
.section-title {
  font-family: max;
  letter-spacing: 4px;
  font-weight: bold;
  font-size: 50px;
}

.project-container {
  max-width: 1300px;
  margin: auto;
  text-align: center;
}


/* rest of your existing styles (bento-grid, etc.) */
/* Footer */
.footer {
  margin-top: 100px;
}

/* Black Frame */
.footer-top {
  background: rgb(255, 255, 255);
  color: #0a0a0a;
  text-align: center;
  padding: 20px 0;
  font-family: max;
  letter-spacing: 2px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Purple Section */
.footer-main {
  background: #0019ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Left Side */
.footer-content {
  color: white;
}

.footer-content h1 {
  font-size: 3.5em;
  font-weight: bold;
  font-family: max;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 4px;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: white;
  background: #ffffff1a;
  padding: 15px;
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.4s ease;
}

.social-links a:hover {
  background: white;
  color: #4233D5;
  transform: scale(1.2);
}

/* Right Side Images */
.footer-images {
  position: relative;
  width: 300px;
}

.main-footer-img {
  width: 100%;
  transition: all 0.5s ease;
  filter: none;
}

.outline-footer-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: all 0.5s ease;
}

/* Hover Image Effect */
.footer-images:hover .main-footer-img {
  filter: blur(3px);
}

.footer-images:hover .outline-footer-img {
  opacity: 1;
  transform: translate(10px, -10px);
}


/* UPDATED styles.css for Responsive Design */

/* --- (keeping your existing styles untouched where not necessary) --- */

/* New Mobile Responsiveness Tweaks */

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .about {
    flex-direction: column;
    padding: 20px;
  }

  .about-left,
  .about-right {
    width: 100%;
  }

  .about-right {
    margin-top: 20px;
    text-align: center;
  }

  .hero-text-filled,
  .hero-text-outline {
    font-size: 16vw;
  }

  .hero-images img {
    max-height: 70vh;
  }

  .footer-main {
    flex-direction: column;
    padding: 40px 20px;
  }

  .footer-content h1 {
    font-size: 48px;
  }

  .footer-images {
    margin-top: 20px;
    width: 250px;
  }
}

@media (max-width: 480px) {
  .menu {
    width: 100%;
  }

  .hero-text-filled,
  .hero-text-outline {
    font-size: 18vw;
  }

  .hero-images img {
    max-height: 60vh;
  }

  .about {
    padding: 15px;
  }

  .skills-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .project-container {
    padding: 20px 10px;
  }

  .section-title {
    font-size: 2.5em;
  }

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

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Everything else remains the same */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1.5s ease;
}

.loader-text {
  color: #39FF14;
  font-size: 24px;
  font-family: 'Courier New', Courier, monospace;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #39FF14, 0 0 10px #39FF14, 0 0 20px #39FF14;
  }

  to {
    text-shadow: 0 0 20px #39FF14, 0 0 30px #39FF14, 0 0 40px #39FF14;
  }
}

.footer-bottom {
  background: #1e1e1e;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-family: 'Courier New', Courier, monospace;
  border-top: 1px solid #ffffff2a;
}

.footer-bottom p {
  margin-bottom: 15px;
  margin-top: 20px;
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.newsletter-form input[type="email"] {
  padding: 10px;
  border-radius: 5px;
  border: none;
  outline: none;
  font-family: inherit;
  width: 200px;
}

.newsletter-form button {
  padding: 10px 20px;
  background-color: #d0ff00;
  border: none;
  color: black;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #a5d700;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"],
.newsletter-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-family: inherit;
  outline: none;
}

.newsletter-form textarea {
  resize: vertical;
}

.newsletter-form button {
  padding: 10px 20px;
  background-color: #d0ff00;
  border: none;
  color: black;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #a5d700;
}
/* Glitch Text for mobile and tablets */
.mobile-glitch-text {
  display: none;
  position: relative;
  color: #fbfbfb;
  font-size: 1.2rem;
  font-family: min;
  text-align: center;
  margin-top: 1rem;
  text-transform: uppercase;
  animation: glitch-flicker 2s infinite;
  line-height: 1.4;
  letter-spacing: 1px;
}

/* Show only on mobile and tablet */
@media screen and (max-width: 1024px) {
  .mobile-glitch-text {
    display: block;
  }
}

/* Glitch pseudo-elements */
.mobile-glitch-text::before,
.mobile-glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  color: #a5d700;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mobile-glitch-text::before {
  animation: glitch-top 2.5s infinite linear;
  color: #a5d700;
}

.mobile-glitch-text::after {
  animation: glitch-bottom 2.5s infinite linear;
  color: #fafafa;
}

/* Animation keyframes */
@keyframes glitch-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.4;
  }
}

@keyframes glitch-top {
  0% {
    clip: rect(0, 9999px, 0, 0);
    transform: translate(0, 0);
  }
  10% {
    clip: rect(2px, 9999px, 10px, 0);
    transform: translate(-2px, -2px);
  }
  20% {
    clip: rect(10px, 9999px, 20px, 0);
    transform: translate(2px, 2px);
  }
  100% {
    clip: rect(0, 9999px, 0, 0);
    transform: translate(0, 0);
  }
}

@keyframes glitch-bottom {
  0% {
    clip: rect(0, 9999px, 0, 0);
    transform: translate(0, 0);
  }
  10% {
    clip: rect(12px, 9999px, 22px, 0);
    transform: translate(2px, 2px);
  }
  20% {
    clip: rect(22px, 9999px, 32px, 0);
    transform: translate(-2px, -2px);
  }
  100% {
    clip: rect(0, 9999px, 0, 0);
    transform: translate(0, 0);
  }
}
/* Responsive Design for Keyword Balls */
/*.floating-keywords {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.floating-keywords span {
  background: rgba(0,0,0,0.8);
  color: #fafafa;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: 'Qiulla', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  border: 1.5px solid #fafafa;
  box-shadow: 0 0 12px rgba(203, 255, 129, 0.6);
  animation: floatGlitch 4s ease-in-out infinite;
  position: relative;
}

/* Add subtle randomness for more premium feel */
/*.floating-keywords span:nth-child(2n) {
  animation-duration: 4.5s;
}
.floating-keywords span:nth-child(3n) {
  animation-duration: 5s;
}
.floating-keywords span:nth-child(4n) {
  animation-duration: 6s;
}

@keyframes floatGlitch {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5px, -10px) rotate(1deg);
  }
  50% {
    transform: translate(-10px, 10px) rotate(-1deg);
  }
  75% {
    transform: translate(10px, -5px) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}*/

/* Responsive Design for Keyword Balls */