/* ============================
   RESET & BASE STYLES
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Courier New', monospace;
  background: #000;
  overflow-x: hidden;
  color: #a8cfff;
  cursor: none; /* Hide the default cursor */
}

/* ============================
   CUSTOM CURSOR
   ============================ */

/* Hide default cursor globally */
body, button, a, input, textarea ,select, label{
  cursor: none;
}

.cursor, .cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, transform 0.1s ease;
  z-index: 1000;
}
.cursor {
  background: #00fffc;
  mix-blend-mode: difference;
}
.cursor-follower {
  width: 35px;
  height: 35px;
  border: 2px solid #00fffc;
  opacity: 0.5;
  mix-blend-mode: difference;
}

/* ============================
   INTRO SCREEN & EFFECTS
   ============================ */
#quantum-intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #000428 0%, #004e92 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 50;
  opacity: 1;
  transition: opacity 1s ease;
}

.hex-grid, .quantum-circuit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hex-grid {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: distort 15s infinite alternate;
}
@keyframes distort {
  0% { transform: perspective(500px) rotateX(0deg) scale(1); }
  100% { transform: perspective(500px) rotateX(10deg) scale(1.1); }
}

.quantum-circuit {
  background:
    radial-gradient(circle at center, transparent 60%, rgba(0,255,252,0.1) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(0,255,252,0.05) 0px,
      rgba(0,255,252,0.05) 1px,
      transparent 1px,
      transparent 10px
    );
  animation: circuitFlow 20s linear infinite;
}
@keyframes circuitFlow {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

canvas.matrix-rain {
  position: fixed;
  inset: 0;
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float linear infinite;
}
@keyframes float {
  to { transform: translate(0, -10px); }
}

.scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,255,252,0.03) 50%, transparent 50%);
  background-size: 100% 4px;
  z-index: 3;
  pointer-events: none;
  animation: scanline 8s linear infinite;
  user-select: none;
}
@keyframes scanline {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* ============================
   INTRO TEXT STYLES
   ============================ */
#accessDenied {
  font-size: 4rem;
  color: transparent;
  background: linear-gradient(45deg, #ff00cc, #3333ff);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 15px rgba(255,255,255,0.3);
  margin-bottom: 2rem;
  position: relative;
  z-index: 60;
  font-weight: bold;
  animation: pulse 2s infinite alternate, glitch-text 3s infinite;
  user-select: none;
}
.access-granted {
  color: #00ff41;
  background: linear-gradient(45deg, #00ff41, #00f7ff);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0,255,65,0.7);
  animation: glitch-text 0.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}
@keyframes glitch-text {
  0%   { transform: translate(0); }
  20%  { transform: translate(-5px, 5px); }
  40%  { transform: translate(-5px, -5px); }
  60%  { transform: translate(5px, 5px); }
  80%  { transform: translate(5px, -5px); }
  100% { transform: translate(0); }
}

.hacker-text {
  font-size: 1.5rem;
  text-align: center;
  min-height: 110px;
  color: #00fffc;
  text-shadow: 0 0 10px #00fffc;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
  z-index: 60;
  user-select: none;
}

.bypass-animation {
  font-size: 1.2rem;
  color: #ff00ff;
  margin-top: 2rem;
  text-align: center;
  text-shadow: 0 0 8px #ff00ff;
  position: relative;
  z-index: 60;
  user-select: none;
}

/* ============================
   PORTFOLIO CONTAINER
   ============================ */
#portfolio {
  position: relative;
  min-height: 100vh;
  padding: 70px 20px 80px;
  background: radial-gradient(ellipse at center, #000428 0%, #004e92 100%);
  overflow-y: auto;
  color: #a9d6ffcc;
  z-index: 10;
  display: none; /* Hidden until intro finishes */
  animation: fadeIn 1.6s forwards; /* Add fade-in animation */
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

#portfolio.visible {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes portfolioBackgroundAnimation {
  0% {
    background: radial-gradient(ellipse at center, #000428 0%, #004e92 100%);
  }
  50% {
    background: radial-gradient(ellipse at center, #004e92 0%, #000428 100%);
  }
  100% {
    background: radial-gradient(ellipse at center, #000428 0%, #004e92 100%);
  }
}
#portfolio {
  animation: portfolioBackgroundAnimation 15s infinite alternate;
}

.portfolio-container {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(0,70,140,0.65);
  border-radius: 22px;
  padding: 40px 50px;
  box-shadow: 0 0 30px #00aeffd9, inset 0 0 50px #00e5ff66;
  backdrop-filter: saturate(180%) blur(12px);
}

/* ============================
   PROFILE HEADER - 
   ============================ */
.profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
  padding: 20px;
  background: linear-gradient(135deg, #1b1f3b, #151a2e);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  justify-content: space-between;
}

/* PROFILE IMAGE ON LEFT */
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d4ff, #3537ff);
  box-shadow: 0 0 30px rgba(0, 190, 255, 0.6);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}
.profile-pic:hover {
  transform: scale(1.05);
}
.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* TEXT BLOCK ON RIGHT OF PHOTO */
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 240px;
}

.profile-info h1 {
  font-size: 2.8rem;
  color: #e0f7ff;
  text-shadow: 0 2px 10px rgba(0, 187, 255, 0.4);
  margin-bottom: 10px;
  font-weight: 800;
}

.profile-info p {
  font-size: 1.1rem;
  color: #b0d6f7;
  line-height: 1.6;
  margin: 0;
}

/* BUTTON TO STAY ON RIGHT */
.resume-btn-wrapper {
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.download-resume {
  background: linear-gradient(135deg, #00ffc3, #00baff);
  color: #001f2e;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.download-resume:hover {
  background: linear-gradient(135deg, #00e6d0, #00aaff);
  transform: scale(1.07);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

/* ============================
   FADE-IN-ON-SCROLL
   ============================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   SECTION HEADERS (NEON FLICKER)
   ============================ */
section.portfolio-section h2 {
  font-size: 2.4rem;
  text-transform: uppercase;
  color: #99c8ff;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 0 0 18px #68afffff;
  animation: neon-flicker 1.5s infinite alternate;
}
@keyframes neon-flicker {
  0%, 100% { 
    text-shadow: 0 0 5px #99c8ff, 0 0 10px #99c8ff, 0 0 15px #99c8ff; 
  }
  50% { 
    text-shadow: 0 0 10px #99c8ff, 0 0 20px #99c8ff, 0 0 30px #99c8ff; 
  }
}

/* ============================
   NAVIGATION BAR
   ============================ */
nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,40,80,0.8);
  border-radius: 30px;
  padding: 10px 30px;
  display: none; /* Hidden until intro finishes */
  gap: 30px;
  z-index: 100;
  box-shadow: 0 0 15px #2aa5ff99;
  user-select: none;
}
nav a {
  color: #8abfffbb;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  text-decoration: none;
}
nav a:hover, nav a.active {
  color: #d6ecff;
  text-shadow: 0 0 8px #65bdff;
}
 Default nav styles 
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,40,80,0.8);
  padding: 10px 20px;
  border-radius: 30px;
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  box-shadow: 0 0 15px #2aa5ff99;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #8abfffbb;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  color: white;
  font-size: 24px;
  border: none;
  cursor: pointer;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: rgba(0,40,80,0.95);
    width: 100%;
    display: none;
    border-radius: 0 0 20px 20px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/*============================
Download Resume
===========================*/
.resume-btn-wrapper {
  margin-top: 12px;
  text-align: center;
}

.download-resume {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background: #0fc3db;
  color: white;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px #0fc3db88, 0 0 20px #2aa5ff66;
  transition: background 0.3s, transform 0.3s;
}

.download-resume:hover {
  background: #2aa5ff;
  transform: translateY(-2px);
}

/*============================
Skill Badge Styles
===========================*/
.filters {
  margin: 20px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid #00ffff;
  color: #00ffff;
  padding: 10px 18px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.filter-btn:hover,
.filter-btn.active {
  background: #00ffff;
  color: #002244;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}
.skills-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   
  gap: 20px;
  padding: 20px;
  max-width: 900px;          
  margin: 0 auto;            
  position: relative;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 255, 0.25);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: rotate(var(--angle)) translateY(var(--offset));
}

/* Optional hover bounce */
.skill-badge:hover {
  transform: scale(1.07) rotate(0deg) translateY(-3px);
  box-shadow: 0 6px 20px #00ffffaa;
}

/* Each badge gets a slightly random tilt and vertical offset */
.skill-badge:nth-child(1) { --angle: -2deg; --offset: 2px; }
.skill-badge:nth-child(2) { --angle: 3deg;  --offset: -5px; }
.skill-badge:nth-child(3) { --angle: -4deg; --offset: 3px; }
.skill-badge:nth-child(4) { --angle: 2deg;  --offset: 0px; }
.skill-badge:nth-child(5) { --angle: -1deg; --offset: 4px; }
.skill-badge:nth-child(6) { --angle: 2deg;  --offset: -4px; }
.skill-badge:nth-child(7) { --angle: -3deg; --offset: 1px; }
.skill-badge:nth-child(8) { --angle: 4deg;  --offset: -2px; }
.skill-badge:nth-child(9) { --angle: 1deg;  --offset: 2px; }
.skill-badge:nth-child(10){ --angle: -2deg; --offset: -3px; }

/* Responsive */
@media (max-width: 600px) {
  .skills-section {
    flex-direction: column;
    align-items: center;
  }

  .skill-badge {
    transform: rotate(0deg) translateY(0);
    width: 90%;
    justify-content: center;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .skills-section {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .skill-badge {
    width: 100%;
    justify-content: center;
  }

  .filters {
    flex-direction: column;
  }
}


/* ============================
   ACHIEVEMENTS & CERTIFICATIONS
   ============================ */
#achievements {
  margin-top: 50px;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.achievement-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,255,252,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}
.achievement-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
}
.achievement-badge {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #00fffc;
}
.achievement-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #a8cfff;
  font-weight: bold;
}
.achievement-desc {
  font-size: 0.9rem;
  color: #b9dffdcc;
}

/* ============================
   TESTIMONIALS
   ============================ */
/* TESTIMONIALS SECTION */


#testimonial-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.testimonial-card {
  width: 300px;
  padding: 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.5;
  color: #d0faff;
}

.testimonial-author {
  margin-top: 10px;
  font-weight: bold;
  color: #00f0ff;
  text-align: right;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}



/* Show More Button */
/* Show More Button Wrapper */
.show-more-wrapper {
  text-align: right;
  margin-top: 12px;
  margin-left: 20px;
  /*margin-right: 20px;  Adds space from the right edge */
}

/* Actual Button */
#show-more-btn {
  padding: 10px 20px;
  background: #0fc3db;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 10px #0fc3db88, 0 0 20px #2aa5ff66;
  transition: background 0.3s, transform 0.3s;
}

#show-more-btn:hover {
  background: #2aa5ff;
  transform: translateY(-2px);
  color: white;
}



@keyframes zoomBlurIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
.testimonial-card {
  animation: zoomBlurIn 0.7s ease forwards;
  animation-delay: calc(var(--i) * 0.1s);
  opacity: 0; /* Start invisible */
}




/* ============================
    Project Cards
   ============================ */

   .project-card {
  background: rgba(0, 40, 80, 0.4);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(15, 195, 219, 0.4);
  color: #cce7ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px #0fc3db, 0 0 40px #2aa5ff;
}

.project-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 0 20px #0fc3dbaa;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0fc3db;
}

.project-links {
  margin-top: 15px;
}

.btn-link {
  color: #0fc3db;
  font-weight: 700;
  margin-right: 15px;
  text-decoration: none;
  border: 2px solid #0fc3db;
  padding: 6px 18px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-link:hover {
  background: #0fc3db;
  color: #fff;
  box-shadow: 0 0 15px #2aa5ff;
}

.tech-tags {
  margin-top: 10px;
}

.tech-tag {
  display: inline-block;
  background: #0fc3dbaa;
  color: #fff;
  padding: 4px 12px;
  margin: 0 8px 8px 0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 0 10px #2aa5ffcc;
}

/* ============================
   Contect info
   ============================ */
#contact {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: rgba(15, 195, 219, 0.1);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(15, 195, 219, 0.3);
  color: #cce7ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#contact h2 {
  text-align: center;
  color: #0fc3db;
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 2rem;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1.1rem;
  color: #a8d0ff;
}

.contact-info a {
  color: #2aa5ff;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #0fc3db;
}

form {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #a8d0ff;
}

form input,
form textarea {
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 2px solid #2aa5ff;
  border-radius: 8px;
  background: #1a263d;
  color: #e0eaff;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #0fc3db;
  outline: none;
}

form button {
  background: linear-gradient(to right, #0fc3db, #2aa5ff);
  color: white;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: background 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 255, 252, 0.5);
}

form button:hover {
  background: linear-gradient(to right, #2aa5ff, #0fc3db);
  box-shadow: 0 0 20px rgba(0, 255, 252, 0.8);
}

#formResponse {
  margin-top: 15px;
  font-size: 1rem;
  color: #a8ffbf;
  min-height: 20px;
  text-align: center;
}

.project-img {
  width: 100%;
  max-height: 240px; /* increased from 180px */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 0 20px #0fc3dbaa;
}
.project-img:hover {
  cursor: pointer;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}



/* ============================
   back to top
   ============================ */
  .back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0fc3db;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(15, 195, 219, 0.7);
  display: none; /* initially hidden */
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #2aa5ff;
}




/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */
@media (max-width: 768px) {
  .portfolio-container {
    padding: 30px 25px;
  }
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-info h1 {
    font-size: 2rem;
  }
  nav {
    gap: 18px;
    padding: 8px 20px;
  }
  nav a {
    font-size: 0.85rem;
  }
  .achievement-badge {
    font-size: 2.5rem;
  }
  .progress {
    height: 16px;
  }
}
@media (max-width: 480px) {
  .portfolio-container {
    padding: 20px 15px;
  }
  .profile-info h1 {
    font-size: 1.5rem;
  }
  nav {
    gap: 12px;
    padding: 5px 10px;
  }
  nav a {
    font-size: 0.75rem;
  }
  .achievement-badge {
    font-size: 2rem;
  }
  .progress {
    height: 12px;
  }
  .download-resume {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
.profile-pic {
  width: 120px;
  height: 120px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .profile-pic {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .profile-pic {
    width: 80px;
    height: 80px;
  }
} 

/* --- Fix resume button alignment --- */
.resume-btn-wrapper {
  width: 100%;
  text-align: right;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .resume-btn-wrapper {
    text-align: center;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .profile-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .project-card, .achievement-card, .testimonial-card {
    padding: 12px;
  }

  .project-title, .achievement-title {
    font-size: 1rem;
  }

  .skill-name {
    font-size: 0.9rem;
  }

  .progress {
    height: 12px;
  }
}

/* --- Hide custom cursor on touch devices --- */
@media (hover: none) and (pointer: coarse) {
  .cursor, .cursor-follower {
    display: none;
  }

  body, button, a, input, textarea, select, label {
    cursor: auto;
  }
}

/* ============================
   LARGE SCREEN ADJUSTMENTS
   ============================ */
@media (min-width: 769px) {
  .portfolio-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 60px;
  }

  .profile-header {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .profile-title {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .resume-btn-wrapper {
    text-align: left;
  }

  .skills-section, 
  .projects-section, 
  .contact-section {
    width: 100%;
    max-width: 350px;
  }

  .achievement-card, 
  .testimonial-card {
    max-width: 400px;
  }

  .profile-info h1 {
    font-size: 2.5rem;
  }

  nav {
    gap: 24px;
    padding: 15px 40px;
  }

  nav a {
    font-size: 1rem;
  }
}

/* ========== INTRO TEXT RESPONSIVENESS ========== */
@media (max-width: 768px) {
  #accessDenied {
    font-size: 2.5rem;
    line-height: 1.2;
    text-align: center;
  }

  .hacker-text {
    font-size: 1rem;
    min-height: 80px;
    text-align: center;
  }

  .bypass-animation {
    font-size: 1rem;
    text-align: center;
  }
}
/* ========== NAVIGATION BAR RESPONSIVENESS ========== */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    padding: 6px 16px;
    gap: 15px;
  }

  nav a {
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 4px 10px;
  }
}
