/* ===== GENERAL STYLES ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #000000;
  --second-bg-color: #0a0a0a;
  --text-color: #fff;
  --main-color: #b026ff;
  --secondary-color: #00fff2;
  --gradient: linear-gradient(to right, #b026ff, #00fff2);



}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 100px; 
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

html::-webkit-scrollbar {
  width: 0.8rem;
}

html::-webkit-scrollbar-track {
  background: var(--bg-color);
}

html::-webkit-scrollbar-thumb {
  background: var(--main-color);
  box-shadow: 0 0 15px var(--main-color);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem 9%;
  filter: drop-shadow(10px);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(176, 38, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  color: var(--main-color);
  text-shadow: 0 0 10px var(--main-color);  
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  overflow: hidden;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  margin-left: 3rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
}

.navbar a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: right;
}

.navbar a:hover::before,
.navbar a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}

/* ===== COMMON STYLES ===== */
section {
  min-height: 100vh;
  padding: 3rem 9% 5rem;
}

.heading {
  text-align: center;
  font-size: 5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
}

.btn {
  display: inline-block;
  padding: 1.5rem 3.5rem;
  border-radius: 5rem;
  font-size: 2rem;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  color: var(--bg-color);
  border-color: transparent;
  box-shadow: 0 0 20px var(--main-color);
}

/* ===== SPACE ANIMATION ===== */
.cuteBoy {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== SOCIAL ICONS ===== */
.social-icon a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  height: 6rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  font-size: 3rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 2rem 3rem 0;
  transition: 0.3s ease;
}

.social-icon a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
}
/* Introduction Section Styles */
.intro-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(176, 38, 255, 0.3);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(-50px);
}

.intro-content h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

.intro-content h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-content p {
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.intro-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .intro-content {
        margin: 2rem;
        padding: 1.5rem;
    }

    .intro-content h1 {
        font-size: 3.5rem;
    }

    .intro-content h3 {
        font-size: 2rem;
    }

    .intro-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== PROJECT CAROUSEL ===== */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  perspective: 1500px;
  margin-top: 400px;
}

main#carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 85vw;
  height: 400px;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out;
  perspective: 1500px;
}

.project-card {
  position: absolute;
  width: 300px;
  height: 400px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(176, 38, 255, 0.4);
  box-shadow: 0 0 25px rgba(176, 38, 255, 0.4),
              inset 0 0 15px rgba(0, 255, 242, 0.3);
  opacity: 0.5;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.project-card.active {
  transform: translateZ(350px) scale(1.1);
  opacity: 1;
  border: 1px solid rgba(176, 38, 255, 0.8);
  box-shadow: 0 0 40px rgba(176, 38, 255, 0.6),
              0 0 60px rgba(0, 255, 242, 0.4),
              inset 0 0 20px rgba(176, 38, 255, 0.4);
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

}

.project-card.prev {
  opacity: 0.7;
  transform: translateX(-300px) translateZ(150px) rotateY(30deg) scale(0.9);
  box-shadow: -10px 0 30px rgba(176, 38, 255, 0.4),
              -15px 10px 40px rgba(0, 255, 242, 0.2);
  backface-visibility: hidden;
}

.project-card.next {
  opacity: 0.7;
  transform: translateX(300px) translateZ(150px) rotateY(-30deg) scale(0.9);
  box-shadow: 10px 0 30px rgba(176, 38, 255, 0.4),
              15px 10px 40px rgba(0, 255, 242, 0.2);
  backface-visibility: hidden;
}

.project-card img {
  max-width: 250px;
  border-radius: 1rem;
  border: 2px solid rgba(176, 38, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.2);
  transition: all 0.3s ease;
}

.project-card.active img {
  border-color: rgba(176, 38, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 255, 242, 0.4);
}

.project-card h3,
.project-card p {
  color: white;
  backface-visibility: hidden;
  transform: translateZ(0);
  position: relative;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #b026ff;
  text-shadow: 0 0 10px rgba(176, 38, 255, 0.8);
}

.project-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 5px rgba(0, 255, 242, 0.5);
}

.project-card .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, #b026ff, #00fff2);
  border-radius: 1.5rem;
  font-size: 1.2rem;
  color: white;
  border: none;
  letter-spacing: 0.05rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
}

.project-card .btn:hover {
  background: white;
  color: #b026ff;
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.8),
              0 0 30px rgba(0, 255, 242, 0.4);
  transform: translateX(-50%) translateY(-2px);
}

.project-card video.project-video {
  max-width: 250px;
  width: 100%;
  border-radius: 1rem;
  border: 2px solid rgba(176, 38, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.2);
  transition: all 0.3s ease;
  object-fit: cover;
}

.project-card.active video.project-video {
  border-color: rgba(176, 38, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 255, 242, 0.4);
}

/* Add smooth transition for all hover effects */
.project-card * {
  transition: all 0.3s ease;
}

/* Add pulsing animation for active card */
@keyframes cardPulse {
  0% { box-shadow: 0 0 40px rgba(176, 38, 255, 0.6),
                   0 0 60px rgba(0, 255, 242, 0.4),
                   inset 0 0 20px rgba(176, 38, 255, 0.4); }
  50% { box-shadow: 0 0 50px rgba(176, 38, 255, 0.8),
                    0 0 70px rgba(0, 255, 242, 0.6),
                    inset 0 0 25px rgba(176, 38, 255, 0.6); }
  100% { box-shadow: 0 0 40px rgba(176, 38, 255, 0.6),
                     0 0 60px rgba(0, 255, 242, 0.4),
                     inset 0 0 20px rgba(176, 38, 255, 0.4); }
}

.project-card.active {
  animation: cardPulse 2s infinite;
}

.arrow {
  display: none;
}

/* === Resume === */

.resume-btn {
  margin: 2rem auto;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--main-color);
}

.resume-btn:hover {
  transform: translateY(-3px);
}

.resume-btn i {
  font-size: 1.8rem;
}

/* ===== SKILLS SECTION ===== */
.skills-certifications {
  padding-top: 8rem;
  background: var(--bg-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
}

.tab-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.tab-btn {
  padding: 1.2rem 3rem;
  font-size: 1.8rem;
  background: transparent;
  border: 2px solid var(--main-color);
  color: var(--text-color);
  border-radius: 5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--main-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 0 5%;
}

.skill-category {
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(176, 38, 255, 0.2);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.1);
}

.skill-category:hover {
  box-shadow: 0 0 30px rgba(176, 38, 255, 0.3);
  transform: translateY(-5px);
}

.category-header h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--main-color);
  text-shadow: 0 0 10px var(--main-color);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(176, 38, 255, 0.1);
  border: 1px solid rgba(176, 38, 255, 0.1);  
  border-radius: 1rem;
}

.skill-item img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.skill-info {
  flex: 1;
}

.skill-info span {
  font-size: 2rem;
  color: var(--text-color);
}

.skill-level {
  font-size: 1.6rem;
  color: var(--secondary-color);
  text-shadow: 0 0 5px var(--secondary-color);
  margin-top: 0.5rem;
}

/* ===== CERTIFICATIONS SECTION ===== */
.cert-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 0 5%;
}

.cert-card {
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(176, 38, 255, 0.2);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.1);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(176, 38, 255, 0.3);
}

.cert-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-content {
  padding: 2rem;
}

.cert-content h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.issuer {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* ===== EXPERIENCE SECTION ===== */
.exp-container {
  padding: 0 5%;
}

.exp-decoration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.1;
}

.exp-content p {
  font-size: 2rem;  /* Increased from 1.4rem */
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #fff;
}

.exp-circle {
  width: 300px;
  height: 300px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
  border-color: var(--main-color);
  box-shadow: 0 0 30px var(--main-color);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.3; }
}

.exp-card {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1.5rem;
  padding: 3rem;
  margin-bottom: 3rem;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(176, 38, 255, 0.2);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.1);
}

.exp-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.exp-header img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 1rem;
}

.exp-title h3 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--main-color);
  text-shadow: 0 0 10px var(--main-color);
}

.exp-title p {
  font-size: 2rem;
  color: var(--text-color);
}

.exp-title span {
  font-size: 1.8rem;
  color: #888;
}

.exp-link {
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.exp-link i {
  font-size: 1.4rem;
  margin-left: 0.3rem;
}
.exp-link:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 8px var(--secondary-color);
}

.achievements {
  margin-top: 1.5rem;
  padding-left: 2rem;
}

.achievements li {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
  margin-top: 5rem;
  padding: 3rem 9% 5rem;
}

.contact h2 {
  margin-bottom: 3rem;
  color: white;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  margin-bottom: 3rem;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  border-radius: 0.8rem;
  margin: 1rem 0;
  resize: none;
  background: rgba(10, 10, 10, 0.8);
  border: 2px solid rgba(176, 38, 255, 0.3);
}

/* Modified textarea styles specifically */
.contact form textarea {
  min-height: 20rem; /* Increased from default */
  height: auto; /* Allows for dynamic height */
}

.contact form .input-box input:focus,
.contact form textarea:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.2);
  background: rgba(10, 10, 10, 0.95);
  outline: none;
}

.contact form .btn {
  margin-top: 2rem;
}
/* ===== FOOTER SECTION ===== */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background: rgba(10, 10, 10, 0.95);  /* Dark background to match theme */
  border-top: 1px solid rgba(176, 38, 255, 0.3);
  backdrop-filter: blur(10px);
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--text-color);
}

.footer .social a {
  font-size: 25px;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer .social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer .social a:hover {
  transform: scale(1.2) translateY(-5px);
  border-color: transparent;
  box-shadow: 0 0 25px var(--main-color),
              0 0 35px var(--secondary-color);
}

.footer .social a:hover::before {
  opacity: 1;
}

.footer .social a i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.footer .social a:hover i {
  color: var(--bg-color);
}

.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer ul li a {
  color: var(--text-color);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  padding: 5px 10px;
  position: relative;
  overflow: hidden;
}

.footer ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer ul li a:hover {
  color: var(--main-color);
  text-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
}

.footer ul li a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

footer .copyright {
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: var(--text-color);
  opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
  .services-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(1, 1fr);
    margin: 0 5rem;
  }
}

@media (max-width: 995px) {
  #menu-icon {
      display: block;
      cursor: pointer;
      transition: transform 0.3s ease;
  }

  #menu-icon:hover {
      transform: scale(1.1);
  }

  .navbar {
      position: fixed;
      top: 0;
      right: -100%;
      width: 300px;
      height: 100vh;
      background: rgba(10, 10, 10, 0.95);
      backdrop-filter: blur(10px);
      border-left: 3px solid var(--main-color);
      padding: 8rem 2rem 2rem;
      transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      overflow-y: auto;
      display: block;
      box-shadow: -5px 0 20px rgba(176, 38, 255, 0.2);
  }

  .navbar.active {
      right: 0;
  }

  .navbar a {
      display: block;
      font-size: 1.8rem;
      margin: 2rem 0;
      padding: 1rem 1.5rem;
      border-radius: 0.8rem;
      background: rgba(176, 38, 255, 0.05);
      border: 1px solid rgba(176, 38, 255, 0.1);
      transition: all 0.3s ease;
  }

  .navbar a:hover,
  .navbar a.active {
      background: var(--gradient);
      color: var(--bg-color);
      border-color: transparent;
      transform: translateX(10px);
      box-shadow: 0 0 20px rgba(176, 38, 255, 0.3);
  }

  #menu-icon.bx-x {
      transform: rotate(180deg);
  }

  .navbar::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(3px);
      opacity: 0;
      visibility: hidden;
      transition: 0.3s ease;
      z-index: -1;
  }

  .navbar.active::before {
      opacity: 1;
      visibility: visible;
  }

  .header {
      padding: 2rem 5%;
      background: rgba(10, 10, 10, 0.95);
      backdrop-filter: blur(10px);
  }

  .navbar {
      z-index: 1000;
  }
}
@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }
  section {
    padding: 3rem 9% 3rem;
  }
  .services {
    padding-bottom: 7rem;
  }
  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 895px) {
  .services h2 {
    margin-bottom: 3rem;
  }
  .services-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .cert-container {
    grid-template-columns: 1fr;
  }
  
  .exp-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-card {
    width: 280px;
    height: 380px;
  }

  .project-card.prev {
    transform: translateX(-250px) translateZ(100px) rotateY(30deg) scale(0.9);
  }

  .project-card.next {
    transform: translateX(250px) translateZ(100px) rotateY(-30deg) scale(0.9);
  }
}

@media (max-width: 520px) {
  html {
    font-size: 50%;
  }

  .project-card {
    width: 260px;
    height: 360px;
  }

  .project-card.prev {
    transform: translateX(-200px) translateZ(100px) rotateY(30deg) scale(0.85);
  }

  .project-card.next {
    transform: translateX(200px) translateZ(100px) rotateY(-30deg) scale(0.85);
  }
}

@media (max-width: 462px) {
  html {
    font-size: 45%;
  }

  .heading {
    font-size: 5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes glow {
  0% { box-shadow: 0 0 20px var(--main-color); }
  50% { box-shadow: 0 0 30px var(--secondary-color); }
  100% { box-shadow: 0 0 20px var(--main-color); }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Apply glowing animations to various elements */
.project-card.active,
.skill-category:hover,
.cert-card:hover,
.exp-card:hover {
  animation: glow 2s infinite;
}

/* Add gradient backgrounds with animation */
.heading,
.btn:hover,
.footer .social a:hover {
  background-size: 200% 200%;
  animation: gradientFlow 5s ease infinite;
}



/* Intro section */
.intro-panel {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  display: flex;
  align-items: center;
}

.intro-toggle {
  background: rgba(176, 38, 255, 0.1);
  border: 2px solid var(--main-color);
  padding: 1.5rem;
  border-radius: 0 1.5rem 1.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.intro-toggle i {
  font-size: 2.5rem;
  color: var(--main-color);
  transition: all 0.3s ease;
}

.intro-toggle:hover {
  background: var(--main-color);
  box-shadow: 0 0 20px var(--main-color);
  transform: translateX(5px);
}

.intro-toggle:hover i {
  color: var(--bg-color);
}

.intro-content {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 3.5rem;
  border-radius: 0 2rem 2rem 0;
  border: 1px solid rgba(176, 38, 255, 0.3);
  box-shadow: 0 0 30px rgba(176, 38, 255, 0.2);
  max-width: 450px;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-header h2 {
  font-size: 3.5rem;
  margin-bottom: 2.5rem;
  color: var(--text-color);
  position: relative;
}

.intro-header h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
}

.intro-text p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
}

.intro-interests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.interest {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(176, 38, 255, 0.1);
  border: 1px solid rgba(176, 38, 255, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.interest:hover {
  background: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
}

.interest i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.interest span {
  font-size: 1.4rem;
  color: var(--text-color);
}

.interest:hover i,
.interest:hover span {
  color: var(--bg-color);
}

@media (max-width: 768px) {
  .intro-content {
      max-width: 320px;
      padding: 2.5rem;
  }

  .intro-header h2 {
      font-size: 3rem;
  }

  .intro-text p {
      font-size: 1.4rem;
  }

  .intro-interests {
      gap: 1.5rem;
  }
}

.intro-panel.active .intro-content {
  transform: translateX(0);
}










@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    /* Base font scaling */
    html {
        font-size: 48%;
    }

    /* Projects section */
    .projects {
        transform: scale(0.85);
        transform-origin: top center;
        margin-bottom: 10rem;  /* Even spacing */
    }

    main#carousel {
        transform: scale(0.85);
        transform-origin: center;
    }



    .project-card h3 {
      font-size: 1.8rem; /* Adjusted font size */
    }

    .project-card p {
        font-size: 1.2rem; /* Adjusted font size */
    }
    .project-card h3 {
        font-size: 1.8rem; /* Adjusted font size */
    }

    .project-card p {
        font-size: 1.2rem; /* Adjusted font size */
    }

    /* Professional profile section */
    .skills-certifications {
        transform: scale(0.85);
        transform-origin: top center;
        padding-top: 4rem;
        margin-bottom: 10rem; /* Even spacing */
    }

    /* Contact section */
    .contact {
      transform: scale(0.85);
      transform-origin: top center;
      padding: 4rem 0;
    }


    .contact form {
        width: 100%;
        max-width: 70rem;
    }

    /* Fix input positioning */
    .contact form .input-box {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
    }

    .contact form .input-group {
        flex: 1;
    }

    .input-box .input-group:nth-child(3) {
        flex-basis: 100%;
        margin-top: 1rem;
    }

    

    /* Footer */
    .footer {
        margin-top: 4rem;
        padding: 15px 0;  
    }

    .footer .copyright {
      margin-top: 20px;  
      text-align: center;
  }

    /* Section spacings */
    .carousel-container {
        margin-top: calc(400px * 0.85);
    }
}

/* =====================================================================
   FUTURISTIC QUALITY ENHANCEMENTS  (visual polish only — layout unchanged)
   ===================================================================== */

/* Certificate images — show the whole certificate, not a crop */
.cert-image { height: 220px; background: #0a0a0a; }
.cert-image img { object-fit: contain !important; padding: 0.6rem; }

/* Font Awesome icons used inside skill items (AI & ML category) */
.skill-item i.skill-icon {
  width: 4rem;
  min-width: 4rem;
  font-size: 2.6rem;
  color: var(--main-color);
  text-align: center;
}

/* "Private" tag on client/work project cards (static, not a link) */
.project-card .btn.project-private {
  background: rgba(18, 14, 26, 0.92);
  border: 1px solid rgba(176, 38, 255, 0.45);
  color: rgba(255, 255, 255, 0.78);
  cursor: default;
  box-shadow: none;
  font-size: 1.1rem;
}
.project-card .btn.project-private:hover {
  background: rgba(18, 14, 26, 0.92);
  color: rgba(255, 255, 255, 0.78);
  transform: translateX(-50%);
  box-shadow: none;
}
.project-card .btn.project-private i { color: var(--secondary-color); margin-right: 0.4rem; }

/* Anthropic certification badge (no cert photo needed) */
.cert-badge {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b026ff, #6a1a9c);
}
.cert-badge i { font-size: 4.4rem; color: #fff; }
.cert-badge span {
  font-size: 1.3rem;
  letter-spacing: 0.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* Header logo — distinct display font */
.logo {
  font-family: "Space Grotesk", "Poppins", sans-serif;
  letter-spacing: 0.02em;
}

/* Gradient scrollbar */
html::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 4px;
  box-shadow: 0 0 15px var(--main-color);
}

/* Particle constellation — behind everything */
#fx-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Cursor light — soft purple glow that trails the pointer */
#fx-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 38, 255, 0.13), rgba(176, 38, 255, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Let the constellation show through the profile section */
.skills-certifications { background: transparent; }

/* Smooth the 3D card tilt */
.skill-category,
.cert-card,
.exp-card {
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Section headings — clean purple glow + tighter tracking */
.heading {
  letter-spacing: 0.2rem;
  filter: drop-shadow(0 0 14px rgba(176, 38, 255, 0.3));
}

/* BUGFIX: surface the carousel arrows (were display:none) + keep them clear of cards */
.carousel-container { position: relative; }
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  font-size: 3rem;
  line-height: 1;
  color: var(--main-color);
  background: rgba(10, 10, 14, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(176, 38, 255, 0.5);
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.25);
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s ease;
}
#prev-btn { left: 3%; }
#next-btn { right: 3%; }
.arrow:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 26px var(--main-color);
  transform: translateY(-50%) scale(1.12);
}

/* BUGFIX: stop the scaled active project card from overlapping "Professional Profile" */
.projects { padding-bottom: 12rem; position: relative; z-index: 1; }
.skills-certifications { position: relative; z-index: 3; }

/* Premium glassmorphism on content cards + luminous top edge */
.skill-category,
.cert-card,
.exp-card {
  background: linear-gradient(160deg, rgba(22, 20, 30, 0.72), rgba(9, 9, 13, 0.86));
  border: 1px solid rgba(176, 38, 255, 0.25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5),
              0 0 20px rgba(176, 38, 255, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.skill-category::before,
.cert-card::before,
.exp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 38, 255, 0.7), transparent);
  opacity: 0.7;
}

/* Skill rows — add the missing hover micro-interaction */
.skill-item {
  transition: transform 0.3s ease, background 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-item:hover {
  background: rgba(176, 38, 255, 0.18);
  border-color: rgba(176, 38, 255, 0.45);
  transform: translateX(6px);
  box-shadow: 0 0 18px rgba(176, 38, 255, 0.15);
}

/* Interest chips in the About panel — match the same feel */
.interest { transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }

/* Contact inputs — deeper focus glow */
.contact form .input-box input:focus,
.contact form textarea:focus {
  box-shadow: 0 0 22px rgba(176, 38, 255, 0.35),
              inset 0 0 12px rgba(0, 255, 242, 0.06);
}

/* Tabs — subtle lift */
.tab-btn { transition: all 0.3s ease; }
.tab-btn:hover { transform: translateY(-2px); }

/* =====================================================================
   HERO INTRO  ("Hi, I'm Saam") + a more unique astronaut
   ===================================================================== */
.space-container { position: relative; }

.hero-intro {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  max-width: 470px;
  pointer-events: none;
  /* speech bubble the character "speaks" */
  padding: 3rem 3.4rem 3.2rem;
  background: linear-gradient(155deg, rgba(24, 18, 40, 0.86), rgba(12, 9, 20, 0.92));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(176, 38, 255, 0.42);
  border-radius: 2.4rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(176, 38, 255, 0.14);
}
.hero-intro > * { pointer-events: auto; }
/* luminous top edge */
.hero-intro::before {
  content: "";
  position: absolute;
  top: 0; left: 26px; right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 38, 255, 0.85), transparent);
}
/* speech-bubble tail on the right edge, pointing toward the character */
.hero-intro::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 62%;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(24, 18, 40, 0.9), rgba(16, 12, 26, 0.92));
  border-top: 1px solid rgba(176, 38, 255, 0.42);
  border-right: 1px solid rgba(176, 38, 255, 0.42);
  border-top-right-radius: 8px;
  transform: rotate(45deg);
}

.hero-eyebrow {
  font-size: 2rem;
  color: var(--secondary-color);
  letter-spacing: 0.12rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroUp 0.7s ease forwards 0.15s;
}
.hero-eyebrow .wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.4s ease-in-out infinite;
}
.hero-name {
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 600;
  line-height: 1.02;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(176, 38, 255, 0.35));
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: heroUp 0.7s ease forwards 0.30s;
}
.hero-role {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  min-height: 1.4em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: heroUp 0.7s ease forwards 0.45s;
}
.typed-role { color: var(--main-color); text-shadow: 0 0 14px rgba(176, 38, 255, 0.6); }
.type-caret { color: var(--secondary-color); font-weight: 300; animation: caret 1s step-end infinite; }

.hero-tagline {
  font-size: clamp(1.5rem, 1.6vw, 1.9rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
  margin-bottom: 3rem;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.9);
  opacity: 0;
  animation: heroUp 0.7s ease forwards 0.60s;
}
.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroUp 0.7s ease forwards 0.75s;
}
.hero-btn { font-size: 1.7rem; padding: 1.3rem 3rem; }
.hero-btn.ghost { border-color: var(--secondary-color); color: var(--secondary-color); }

@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(16deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(16deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

/* The character as a flickering hologram that floats — with a CLEAN neon base ring */
.human:not(.shadow) {
  filter: drop-shadow(0 0 8px rgba(176, 38, 255, 0.8))
          drop-shadow(0 0 22px rgba(176, 38, 255, 0.5));
  animation: humanFloat 4.5s ease-in-out infinite,
             humanFlicker 7s linear infinite;
}
@keyframes humanFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.1vh); }
}
@keyframes humanFlicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.72; }
  94% { opacity: 0.95; }
  96% { opacity: 0.8; }
}

@media (max-width: 900px) {
  .hero-intro {
    left: 4%;
    right: 4%;
    top: 11%;
    max-width: none;
    transform: none;
    text-align: center;
    padding: 2.6rem 2rem;
  }
  .hero-intro::after { display: none; } /* no speech tail on mobile — it's a centered card */
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}

/* =====================================================================
   ABOUT PANEL — clean full hide + animated "About Me" tab + staged reveal
   ===================================================================== */
.intro-panel { z-index: 120; }

.intro-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.6rem 1.1rem;
  background: rgba(16, 12, 24, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(176, 38, 255, 0.5);
  border-left: none;
  border-radius: 0 1.4rem 1.4rem 0;
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.25);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: tabPulse 2.8s ease-in-out infinite;
}
.intro-toggle-icon { font-size: 2rem; color: var(--main-color); transition: all 0.4s ease; }
.intro-toggle-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.intro-toggle:hover {
  background: var(--gradient);
  transform: translateX(4px);
  box-shadow: 0 0 30px rgba(176, 38, 255, 0.6);
  animation: none;
}
.intro-toggle:hover .intro-toggle-icon,
.intro-toggle:hover .intro-toggle-text { color: #fff; }

@keyframes tabPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(176, 38, 255, 0.2); }
  50% { box-shadow: 0 0 30px rgba(176, 38, 255, 0.5); }
}

.intro-panel.active .intro-toggle { animation: none; background: var(--gradient); }
.intro-panel.active .intro-toggle-icon { color: #fff; transform: rotate(360deg); }
.intro-panel.active .intro-toggle-text { color: #fff; }

/* FULLY hidden when closed (fixes the bleed); smooth slide when open */
.intro-content {
  position: relative;
  transform: translateX(-115%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.4s ease,
              visibility 0s linear 0.55s;
}
.intro-panel.active .intro-content {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.4s ease,
              visibility 0s;
}

/* CRITICAL mobile fix: the fixed ABOUT ME panel container spans a large,
   invisible box at screen-center and was swallowing taps meant for nav links,
   tabs, and cards behind it. Make the container transparent to pointer events;
   only the toggle button (always) and the panel (when open) stay interactive. */
.intro-panel { pointer-events: none; }
.intro-toggle { pointer-events: auto; }
.intro-panel.active .intro-content { pointer-events: auto; }

/* staggered reveal of the inner content — "something happens" on open */
.intro-content > * { opacity: 0; transform: translateY(16px); }
.intro-panel.active .intro-header { animation: introItem 0.5s ease forwards 0.15s; }
.intro-panel.active .intro-text { animation: introItem 0.5s ease forwards 0.28s; }
.intro-panel.active .intro-interests { animation: introItem 0.5s ease forwards 0.42s; }
@keyframes introItem { to { opacity: 1; transform: none; } }

/* Professional scroll-reveal — elements ease up as they enter view.
   Safety: JS force-reveals everything after 1.8s, so content is never stuck hidden. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project-card.active { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { scroll-behavior: auto; }
}












/* ============================================================
   MOBILE HARDENING (phones) — added for real-device touch UX
   ============================================================ */
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  /* Stop iOS Safari from zooming in when a form field is focused
     (any control under 16px triggers the auto-zoom). */
  input, textarea, select,
  .contact input, .contact textarea { font-size: 16px !important; }

  /* Snappy taps: remove the 300ms delay + double-tap zoom on controls. */
  a, button, .btn, .tab-btn, .project-card .btn, .arrow,
  #menu-icon, .intro-toggle, .navbar a, .resume-btn { touch-action: manipulation; }

  /* Comfortable tap targets on the carousel arrows. */
  .arrow { min-width: 44px; min-height: 44px; }
}

/* ============================================================
   MOBILE: turn the floating ABOUT ME slide-out into a normal
   in-flow section (no more overlapping tab). Desktop keeps the
   fixed slide-out untouched.
   ============================================================ */
@media (max-width: 768px) {
  .intro-panel {
    position: static;
    transform: none;
    display: block;
    z-index: auto;
    pointer-events: auto;
    padding: 4rem 7% 2rem;
  }
  .intro-toggle { display: none !important; }   /* remove the floating left tab */

  .intro-content {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-radius: 1.8rem;
    padding: 2.6rem 2.4rem;
  }
  /* cancel the desktop staggered-hidden state so text shows without the toggle */
  .intro-content > * { opacity: 1 !important; transform: none !important; animation: none !important; }

  .intro-header h2 { text-align: center; font-size: 3rem; margin-bottom: 1.8rem; }
  .intro-interests { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2rem; }
}
