body {
  font-family: 'Inter', Arial, sans-serif;
  color: #232323;
  background: #f5f6fa;
  margin: 0;
  padding: 0;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 4rem; /* Less top padding: moves nav higher */
}

.logo {
  width: 80px; /* Increase width */
  height: auto; /* Maintain aspect ratio */
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav a {
  color: #232323;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  transition: color 0.3s;
}
nav a:hover,
nav a:focus {
  color: transparent;  /* Hide the single color */
  background-image: linear-gradient(90deg, #0e058d, #42d36e);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-position: 100% 50%;
  transition: background-position 0.4s cubic-bezier(.4,0,.2,1), color 0.3s;
}


.hero {
  text-align: center;
  margin: 2rem 0 2rem 0; /* Top and bottom margin */
  padding-top: 0; /* or a small value if needed */
  /* Keep other properties as is */
}
.hero {
  padding-top: 8rem; /* Increase this value to move the text further down */
}

.hero h1 {
  margin-top: 8rem; /* Optional: extra space for the heading */
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 4rem;
}
.project-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
a {
  text-decoration: none;
}

.animate-charcter {
  font-family: 'Copperplate', 'Copperplate Gothic Light', serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  background-image: linear-gradient(
    90deg,
    #ff0055,
    #ffbb00,
    #51e842,
    #00e7ff,
    #2f41e2,
    #c839ec,
    #ff0055
  );
  background-size: 400% auto;
  background-clip: text;
  color: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: rainbowclip 3s linear infinite;
  display: inline-block;
}
@keyframes rainbowclip {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes vibrate {
  0% { transform: translate(0); }
  10% { transform: translate(-2px, 2px); }
  20% { transform: translate(-2px, -2px); }
  30% { transform: translate(2px, 2px); }
  40% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  70% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  90% { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}
.animate-vibrate:hover,
.animate-vibrate:focus,
.animate-vibrate.touch-animate {
  animation: vibrate 5s linear;
}

.logo {
  width: 5px;   /* Increased width */
  height: 5px;   /* Maintains aspect ratio */
}

.logo-container {
  position: relative;
  width: 250px;       /* Container is narrower */
  height: 80px;       /* Container is less tall */
  display: flex;
  align-items: center;
}

.ball {
  position: absolute;
  top: 12px;
  left: 0;
  width: 40px;        /* Smaller diameter */
  height: 40px;
  background: #0f95a7;
  border-radius: 50%;
  box-shadow: 0 3px 15px rgba(0,0,0,0.3);
  z-index: 2;
  animation: ballmove 3s infinite alternate;
}

.logo-text {
font-family: 'Copperplate', 'Copperplate Gothic Light', serif;
  position: absolute;
  top: 25px;
  left: 5px;         /* Ball and logo text start closer */
  width: 100px;       /* Shorter reveal distance */
  font-size: 1.3rem;  /* Smaller text */
  font-weight: bold;
  color: #353535;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  animation: logoreveal 3s infinite alternate;
  font-family: 'Inter', Arial, sans-serif;
}

@keyframes ballmove {
  0% { transform: translate(0px, 8px) scale(0.3);}
  20% { transform: translateX(0px) scale(1);}
  50% { transform: translateX(130px) scale(1);}
  80% { transform: translate(100px, 8px) scale(0.3);}
  100% { transform: translate(100px, 8px) scale(0.2);}
}

@keyframes logoreveal {
  0% { width: 0; }
  25% { width: 0; }
  50% { width: 150px; }
  100% { width: 150px; }
}

nav ul {
  font-family: 'Copperplate', 'Copperplate Gothic Light', serif;
}

.animate-charcter {
  font-family: 'Copperplate', 'Copperplate Gothic Light', serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  background-image: linear-gradient(
    90deg,
    #ff0055,
    #ffbb00,
    #51e842,
    #00e7ff,
    #2f41e2,
    #c839ec,
    #ff0055
  );
  background-size: 400% auto;
  background-clip: text;
  color: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: rainbowclip 3s linear infinite;
  display: inline-block;
}
.about-desc {
   text-align: justify;
  font-family: 'Copperplate', 'Copperplate Gothic Light', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #232323;
  max-width: 1150px;        /* Prevents it from being too wide on large screens */
  margin: 0 auto 0 3rem;   /* Keeps your existing left margin for desktop */
  /* or use: margin: 0 auto; to center fully with no fixed left margin */
}

.contact-link {
  font-family: 'Copperplate', 'Copperplate Gothic Light', serif; /* Change to your preferred font family */
  font-size: 1rem;           /* Optional: adjust as you like */
  font-weight: 600;          /* Optional: makes links bolder */
  letter-spacing: 0.5px;     /* Optional: a little breathing room */
}

.comic-footer {
   
  font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
}
.project-card {
  text-align: justify; 
  font-family: 'Copperplate', 'Copperplate Gothic Light', serif;
  font-size: 1.04rem;      /* Optional: helps normalize sizes */
  color: #232323;          /* Optional: readable dark text */
  line-height: 1.65;       /* Optional: for comfortable reading */
}

.logo-text {
  font-family: 'Copperplate', 'Copperplate Gothic Light', serif; /* Or any font you prefer */
  font-size: 1.3rem;           /* Adjust size as needed */
  font-weight: bold;           /* Keeps the logo visually strong */
  letter-spacing: 1px;         /* Optional: adds spacing for clarity */
  color: #353535;              /* Adjust color as desired */
}

.hero-title, .hero-desc {
  font-family: 'Copperplate', 'Copperplate Gothic Light', serif !important;
}
.email-link {
  color: #1310c5;       /* Example: bold green for Email */
  font-weight: 700;     /* Optional: makes "EMAIL" stand out */
}

.linkedin-link {
  color: #1310c5;       /* Example: official LinkedIn blue */
  font-weight: 700;
}

.mobile-link {
  color: #1310c5;       /* Example: a bold red for Mobile */
  font-weight: 700;
}
@media (max-width: 850px) {
  .about-desc {
    max-width: 95vw;     /* Allows the text to resize within small viewport */
    margin-left: 1rem;   /* Reduces left gap on smaller devices */
    margin-right: 1rem;
  }
}









/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

/* Loading Screen Container */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.loading-screen.fade-out {
  animation: fadeOut 1s ease-in-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Animation container */
.criterion {
  font-size: 1.6rem;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 0;
  width: 0;
  transform: translate(-20px, -20px);
}

/* Background color bars */
.background {
  position: absolute;
  top: 0;
  height: 100vh;
  width: 0;
  animation: background-animation 2s ease-in-out 4s 1 normal forwards;
}

.background0 { left: 0%; background-color: hsl(0, 80%, 60%); }
.background1 { left: 12.5%; background-color: hsl(45, 80%, 60%); }
.background2 { left: 25%; background-color: hsl(90, 80%, 60%); }
.background3 { left: 37.5%; background-color: hsl(135, 80%, 60%); }
.background4 { left: 50%; background-color: hsl(180, 80%, 60%); }
.background5 { left: 62.5%; background-color: hsl(225, 80%, 60%); }
.background6 { left: 75%; background-color: hsl(270, 80%, 60%); }
.background7 { left: 87.5%; background-color: hsl(315, 80%, 60%); }

@keyframes background-animation {
  0% { width: 0; }
  50% { width: 12.5%; opacity: 1; }
  100% { opacity: 0; width: 25%; }
}

/* Text elements */
.text {
  position: absolute;
  width: 40px;
  line-height: 40px;
  opacity: 0;
  overflow: hidden;
  font-weight: bold;
  color: #333;
}

.text::after {
  z-index: -1;
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 40px;
}

/* Text positioning */
.text0 { left: -140px; top: 0; }
.text1 { left: -100px; top: 0; }
.text2 { left: -60px; top: 0; }
.text3 { left: -20px; top: 0; }
.text4 { left: 20px; top: 0; }
.text5 { left: 60px; top: 0; }
.text6 { left: 100px; top: 0; }
.text7 { left: 140px; top: 0; }

/* Text animations */
.text0 { animation: text-animation0 1s ease-in-out 1s 1 normal forwards, text2-animation0 2s ease-in-out 5s 1 normal forwards; }
.text1 { animation: text-animation1 1s ease-in-out 1.2s 1 normal forwards, text2-animation1 2s ease-in-out 5s 1 normal forwards; }
.text2 { animation: text-animation2 1s ease-in-out 1.4s 1 normal forwards, text2-animation2 2s ease-in-out 5s 1 normal forwards; }
.text3 { animation: text-animation3 1s ease-in-out 1.6s 1 normal forwards, text2-animation3 2s ease-in-out 5s 1 normal forwards; }
.text4 { animation: text-animation4 1s ease-in-out 1.8s 1 normal forwards, text2-animation4 2s ease-in-out 5s 1 normal forwards; }
.text5 { animation: text-animation5 1s ease-in-out 2s 1 normal forwards, text2-animation5 2s ease-in-out 5s 1 normal forwards; }
.text6 { animation: text-animation6 1s ease-in-out 2.2s 1 normal forwards, text2-animation6 2s ease-in-out 5s 1 normal forwards; }
.text7 { animation: text-animation7 1s ease-in-out 2.4s 1 normal forwards, text2-animation7 2s ease-in-out 5s 1 normal forwards; }

/* Text after effects */
.text0::after { animation: text-after-animation0 2s ease-in-out 3s 1 normal forwards; }
.text1::after { animation: text-after-animation1 2s ease-in-out 3s 1 normal forwards; }
.text2::after { animation: text-after-animation2 2s ease-in-out 3s 1 normal forwards; }
.text3::after { animation: text-after-animation3 2s ease-in-out 3s 1 normal forwards; }
.text4::after { animation: text-after-animation4 2s ease-in-out 3s 1 normal forwards; }
.text5::after { animation: text-after-animation5 2s ease-in-out 3s 1 normal forwards; }
.text6::after { animation: text-after-animation6 2s ease-in-out 3s 1 normal forwards; }
.text7::after { animation: text-after-animation7 2s ease-in-out 3s 1 normal forwards; }

/* Text scale animations */
@keyframes text-animation0 { 0% { transform: scale(0, 0); opacity: 0; } 50% { transform: scale(3, 3); } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes text-animation1 { 0% { transform: scale(0, 0); opacity: 0; } 50% { transform: scale(3, 3); } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes text-animation2 { 0% { transform: scale(0, 0); opacity: 0; } 50% { transform: scale(3, 3); } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes text-animation3 { 0% { transform: scale(0, 0); opacity: 0; } 50% { transform: scale(3, 3); } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes text-animation4 { 0% { transform: scale(0, 0); opacity: 0; } 50% { transform: scale(3, 3); } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes text-animation5 { 0% { transform: scale(0, 0); opacity: 0; } 50% { transform: scale(3, 3); } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes text-animation6 { 0% { transform: scale(0, 0); opacity: 0; } 50% { transform: scale(3, 3); } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes text-animation7 { 0% { transform: scale(0, 0); opacity: 0; } 50% { transform: scale(3, 3); } 100% { transform: scale(1, 1); opacity: 1; } }

/* Text sweep animations */
@keyframes text-after-animation0 { 0% { width: 0px; background-color: hsl(0, 80%, 60%); opacity: 1; } 50% { width: 40px; opacity: 1; } 100% { left: 40px; opacity: 0; } }
@keyframes text-after-animation1 { 0% { width: 0px; background-color: hsl(45, 80%, 60%); opacity: 1; } 50% { width: 40px; opacity: 1; } 100% { left: 40px; opacity: 0; } }
@keyframes text-after-animation2 { 0% { width: 0px; background-color: hsl(90, 80%, 60%); opacity: 1; } 50% { width: 40px; opacity: 1; } 100% { left: 40px; opacity: 0; } }
@keyframes text-after-animation3 { 0% { width: 0px; background-color: hsl(135, 80%, 60%); opacity: 1; } 50% { width: 40px; opacity: 1; } 100% { left: 40px; opacity: 0; } }
@keyframes text-after-animation4 { 0% { width: 0px; background-color: hsl(180, 80%, 60%); opacity: 1; } 50% { width: 40px; opacity: 1; } 100% { left: 40px; opacity: 0; } }
@keyframes text-after-animation5 { 0% { width: 0px; background-color: hsl(225, 80%, 60%); opacity: 1; } 50% { width: 40px; opacity: 1; } 100% { left: 40px; opacity: 0; } }
@keyframes text-after-animation6 { 0% { width: 0px; background-color: hsl(270, 80%, 60%); opacity: 1; } 50% { width: 40px; opacity: 1; } 100% { left: 40px; opacity: 0; } }
@keyframes text-after-animation7 { 0% { width: 0px; background-color: hsl(315, 80%, 60%); opacity: 1; } 50% { width: 40px; opacity: 1; } 100% { left: 40px; opacity: 0; } }

/* Text exit animations */
@keyframes text2-animation0 { 0% { left: -140px; opacity: 1; } 50% { left: -100px; opacity: 0; } 100% { left: -100px; opacity: 0; } }
@keyframes text2-animation1 { 0% { left: -100px; opacity: 1; } 50% { left: -60px; opacity: 0; } 100% { left: -60px; opacity: 0; } }
@keyframes text2-animation2 { 0% { left: -60px; opacity: 1; } 50% { left: -20px; opacity: 0; } 100% { left: -20px; opacity: 0; } }
@keyframes text2-animation3 { 0% { left: -20px; opacity: 1; } 50% { left: 20px; opacity: 0; } 100% { left: 20px; opacity: 0; } }
@keyframes text2-animation4 { 0% { left: 20px; opacity: 1; } 50% { left: 60px; opacity: 0; } 100% { left: 60px; opacity: 0; } }
@keyframes text2-animation5 { 0% { left: 60px; opacity: 1; } 50% { left: 100px; opacity: 0; } 100% { left: 100px; opacity: 0; } }
@keyframes text2-animation6 { 0% { left: 100px; opacity: 1; } 50% { left: 140px; opacity: 0; } 100% { left: 140px; opacity: 0; } }
@keyframes text2-animation7 { 
  0% { left: 140px; opacity: 1; top: 0; transform: scale(1, 1); }
  50% { left: 180px; opacity: 1; transform: scale(1, 1); }
  65% { top: 0; transform: scale(1, 1); }
  70% { transform: scale(3, 3) rotate(90deg); top: -30px; }
  75% { left: 180px; top: 0; opacity: 1; transform: scale(2, 2) rotate(90deg); }
  85% { left: 180px; }
  100% { left: 1000px; opacity: 0; transform: scale(2, 2) rotate(90deg); }
}

/* Frame bounce effects */
.frame {

  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 0;
}

.frame0 { left: -140px; top: 0; background-color: hsl(0, 80%, 60%); animation: frame-animation 1s ease-in-out 0ms 1 normal forwards; }
.frame1 { left: -100px; top: 0; background-color: hsl(45, 80%, 60%); animation: frame-animation 1s ease-in-out 200ms 1 normal forwards; }
.frame2 { left: -60px; top: 0; background-color: hsl(90, 80%, 60%); animation: frame-animation 1s ease-in-out 400ms 1 normal forwards; }
.frame3 { left: -20px; top: 0; background-color: hsl(135, 80%, 60%); animation: frame-animation 1s ease-in-out 600ms 1 normal forwards; }
.frame4 { left: 20px; top: 0; background-color: hsl(180, 80%, 60%); animation: frame-animation 1s ease-in-out 800ms 1 normal forwards; }
.frame5 { left: 60px; top: 0; background-color: hsl(225, 80%, 60%); animation: frame-animation 1s ease-in-out 1000ms 1 normal forwards; }
.frame6 { left: 100px; top: 0; background-color: hsl(270, 80%, 60%); animation: frame-animation 1s ease-in-out 1200ms 1 normal forwards; }
.frame7 { left: 140px; top: 0; background-color: hsl(315, 80%, 60%); animation: frame-animation 1s ease-in-out 1400ms 1 normal forwards; }

@keyframes frame-animation {
  0% { transform: translateY(-1000px); opacity: 1; }
  50% { opacity: 0.8; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Particle explosion effects */
.particle {
    
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
}

/* Particle positioning and colors */
.particle00, .particle01, .particle02, .particle03 { background-color: hsl(0, 80%, 60%); left: -140px; top: 0; }
.particle10, .particle11, .particle12, .particle13 { background-color: hsl(45, 80%, 60%); left: -100px; top: 0; }
.particle20, .particle21, .particle22, .particle23 { background-color: hsl(90, 80%, 60%); left: -60px; top: 0; }
.particle30, .particle31, .particle32, .particle33 { background-color: hsl(135, 80%, 60%); left: -20px; top: 0; }
.particle40, .particle41, .particle42, .particle43 { background-color: hsl(180, 80%, 60%); left: 20px; top: 0; }
.particle50, .particle51, .particle52, .particle53 { background-color: hsl(225, 80%, 60%); left: 60px; top: 0; }
.particle60, .particle61, .particle62, .particle63 { background-color: hsl(270, 80%, 60%); left: 100px; top: 0; }
.particle70, .particle71, .particle72, .particle73 { background-color: hsl(315, 80%, 60%); left: 140px; top: 0; }

/* Particle animation timing */
.particle00, .particle10, .particle20, .particle30, .particle40, .particle50, .particle60, .particle70 { animation: particle-up 1s ease-in-out 1s forwards; }
.particle01, .particle11, .particle21, .particle31, .particle41, .particle51, .particle61, .particle71 { animation: particle-down 1s ease-in-out 1.1s forwards; }
.particle02, .particle12, .particle22, .particle32, .particle42, .particle52, .particle62, .particle72 { animation: particle-left 1s ease-in-out 1.2s forwards; }
.particle03, .particle13, .particle23, .particle33, .particle43, .particle53, .particle63, .particle73 { animation: particle-right 1s ease-in-out 1.3s forwards; }

@keyframes particle-up {
  0%   { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(1) translateY(-100px); }
}
@keyframes particle-down {
  0%   { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(1) translateY(100px); }
}
@keyframes particle-left {
  0%   { opacity: 1; transform: scale(1) translateX(0); }
  100% { opacity: 0; transform: scale(1) translateX(-100px); }
}
@keyframes particle-right {
  0%   { opacity: 1; transform: scale(1) translateX(0); }
  100% { opacity: 0; transform: scale(1) translateX(100px); }
}
/* Skip instruction */
.skip-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #666;
  font-size: 14px;
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Main content initially hidden */
.main-content {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: none;
}

.main-content.show {
  opacity: 1;
  display: block !important;
}





@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&family=Pacifico&display=swap');

.text {
  font-family: 'Pacifico', cursive;   /* ← your chosen font */
  font-size: 40px;                    /* adjust as needed */
  line-height: 40px;
  /* …other existing properties… */
}