*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}
:root {
  --bg-main: #020617;
  --bg-section: #0a0f1f;
  --bg-card: #020617;

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;

  --accent: rgb(57, 25, 111);
  --accent-soft: rgba(124, 58, 237, 0.12);

  --border-soft: rgba(255, 255, 255, 0.08);
  --gradient-main: linear-gradient(
    to right,
    rgb(0,157,255),
    rgb(255,0,255)
  );
}
body {
  background: var(--bg-main);
  color: var(--text-main);
}



header{
position: fixed;
top: 1rem;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
gap: 2.5rem;
background-color: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(8px);
color: white;
padding: 0.5rem 1.5rem;
border-radius: 3rem;
z-index: 1000;
}

.logo{
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}
.logo:hover{
    transform: scale(1.1);
}

.nav-links{
    display: flex;
    gap: 3rem;
}
li a{
    position: relative;
    color: white;
    font-weight: 300;
    white-space: nowrap;
}

li a::before{
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right,rgb(0,157,255), rgb(255,0,255));
}
li a:hover::before{
    width: 100%;
}
.visit-btn{
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right,rgb(0,157,255), rgb(255,0,255));
}
.visit-btn:hover{
    background: linear-gradient(to right,rgb(255,0,255),rgb(0,157,255) );
    transform: scale(1.03);

}

#menu-icon{
    font-size: 2rem;
    display: none;
}


section{
    
    padding: 6rem 12%;
    width:100%;
    position: relative;
    background: transparent;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about{
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(124, 58, 237, 0.08),
    transparent 60%
  );
  z-index: -1;
}
.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;

}
.about img{
    width: 30vw;
    border-radius: 50%;
    animation: fadeUp 0.8s ease forwards;
    box-shadow:
    0 0 0 6px rgba(10, 36, 79, 0.15),
    0 0 40px rgba(153, 94, 209, 0.25);
}
.info-box{
    display:flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeUp 1s ease forwards;
}

.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}
.info-box h1{
    font-size: 4rem;
    font-weight: 600;
}
.info-box span{
   background: linear-gradient(to right,rgb(0,157,255),rgb(255,0,255) );
   background-clip: text;
   color: transparent;
   font-size: 2rem;
}

/* Typing effect */
#typing {
  font-size: 2rem;
  font-weight: 600;

  background: linear-gradient(
    to right,
    rgb(0,157,255),
    rgb(255,0,255)
  );

  -webkit-background-clip: text;
  color: transparent;

  display: inline-block;

  width: 420px;      /* fixed width */
  min-height: 55px;  /* fixed height */

  text-align: center;
}

.text{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 50px;
}
/* Blinking cursor */
#typing::after {
  content: "|";
  margin-left: 5px;
  color: rgb(255, 0, 255);
  animation: blink 1s infinite;
  display: none;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.demo-btn{
    margin-top: 6px;
}
.btn-groups{
    display: flex;
    gap: 1rem;
    ;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.65rem 1.8rem;
  border-radius: 3rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;

  border: 2px solid transparent;

  background:
    linear-gradient(#020617, #020617) padding-box,
    var(--gradient-main) border-box;

  cursor: pointer;
  transition: all 0.25s ease;
}


.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn:hover{
   background: var(--accent);
  border-color: var(--accent);
}
.socials{
    display: flex;
    gap: 2rem;
}
.socials i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.socials i:hover{
    transform: scale(1.1);
}

.socials a {
  color: inherit;        /* Keeps icon's original color */
  text-decoration: none; /* Removes underline */
}

.socials a:visited {
  color: inherit;        /* Prevent purple visited color */
}


.section-title{
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.experience{
    margin-top: 0;
    background: var(--bg-main);
}

.experience-info{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}
.experience-image {
  perspective: 1200px;
}
.holo-card {
  position: relative;
  width: 280px;
  border-radius: 2rem;
  padding: 0.6rem;

  background:
    linear-gradient(var(--bg-section), var(--bg-section)) padding-box,
    linear-gradient(135deg, rgb(0,157,255), rgb(255,0,255)) border-box;

  border: 2px solid transparent;

  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;

  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(124,58,237,0.25);
}
.holo-card img {
  width: 100%;
  border-radius: 1.6rem;
  display: block;
}
.holo-card:hover {
  transform: rotateY(-10deg) rotateX(6deg) translateY(-8px);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.8),
    0 0 60px rgba(124,58,237,0.45);
}

.grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.grid-card{
     background: var(--bg-section);
    border: 1px solid var(--border-soft);
    border-radius: 3rem;
    padding: 3rem;
    display:flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    box-shadow: 0 0 0 6px rgba(10, 36, 79, 0.15),
    0 0 40px rgba(153, 94, 209, 0.25);

}
.grid-card p {
  color: var(--text-muted);
}
.grid-card:hover{
    transform: scale(1.02);
    background-color:black ;
    color: white;
}
.grid-card i{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.grid-card span{
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(to right,rgb(0,157,255),rgb(255,0,255) );
    background-clip: text;
    color: transparent;
}

::-webkit-scrollbar{
    width: 20px;
}
::-webkit-scrollbar-track{
    background-color: rgb(219, 219, 219);
}
::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom,rgb(0,157,255),rgb(255,0,255) );
}

.projects{
    margin-top: 0;
    background: var(--bg-main);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch; /* Ensures all cards stretch equally */
}

/* Equal card heights */
.project-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Keeps spacing even */
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-soft);
  border-radius: 2rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  background: var(--bg-section);
  height: 100%; /* Make all cards same height */
  box-sizing: border-box;
  color: var(--text-main);
  box-shadow: 0 0 0 6px rgba(10, 36, 79, 0.15),
    0 0 40px rgba(153, 94, 209, 0.25);
}

/* Uniform image box for all */

.profile-wrapper {
  position: relative;
  width: 360px;
  height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ring-shape {
  position: absolute;
  width: 320px;
  height: 380px;

  background: linear-gradient(
    135deg,
    rgb(0,157,255),
    rgb(255,0,255)
  );

  /* Kidney / organic shape */
  border-radius: 
    60% 40% 55% 45% /
    55% 60% 40% 45%;

  filter: blur(0.3px);
  opacity: 0.9;

  /* Push ring slightly left like reference */
  transform: translateX(-20px);

  z-index: 1;
}
.ring-shape::before {
  content: "";
  position: absolute;
  inset: 12px;

  background: var(--bg-main);

  border-radius: 
    58% 42% 54% 46% /
    54% 58% 42% 46%;

  z-index: 2;
}
.profile-img {
  position: relative;
  z-index: 3;

  height: 420px;
  object-fit: contain;

  /* Head comes out of ring */
  transform: translateY(-30px);

  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}
.ring-shape {
  box-shadow:
    0 0 60px rgba(124,58,237,0.45),
    0 0 120px rgba(0,157,255,0.25);
}


.project-card img {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.project-card:hover{
    background-color: black;
    color: white;
    transform: translateY(-10px)scale(1.02);
}

.project-card p{
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 1.5rem;
     color: var(--text-muted);
}

/* Make Tic Tac Toe image smaller 
.project-card img.small-img {
  width: 120px;   /* Force small width 
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
*/


.project-card h3{
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.input-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    margin-top: 5rem;
}
.input-box input{
  width: 100%;
  max-width: 420px;
  padding: 1rem 1.2rem 1rem 3rem;
  font-size: 1.2rem;
  border-radius: 3rem;
   background: var(--bg-section);
  border: 1px solid var(--border-soft);
  color: white;
  
}
.info-box input::placeholder{
    font-size: 3rem;
}
.input{
     position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.input i{
    position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

/* ================= CONTACT UPGRADE ================= */

.contact {
  display: flex;
  justify-content: center;
  padding: 6rem 6%;
}

.contact-card {
  max-width: 520px;
  width: 100%;
  background: var(--bg-section);
  border: 1px solid var(--border-soft);
  border-radius: 2.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  animation: fadeUp 0.8s ease forwards;
  box-shadow: 0 0 0 6px rgba(10, 36, 79, 0.15),
    0 0 40px rgba(153, 94, 209, 0.25);
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Input */
.contact-card .input {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact-card .input i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.contact-card input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3rem;
  border-radius: 3rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: white;
  font-size: 1rem;
}

.contact-card input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Alternative contact */
.contact-alt {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.8rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: 0.2s ease;
}

.contact-links a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Response message */
#response-msg {
  margin-top: 1.2rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}



/* Footer Section */
footer {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

/* Footer links */
footer ul {
  display: flex;
  flex-wrap: wrap;              /* ✅ allow wrapping */
  justify-content: center;
  gap: 1.5rem;
}

footer ul li a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Copyright */
.copyright {
  font-size: 0.85rem;
  opacity: 0.8;
}


/* Skills Section */

.skills-growth {
  padding: 5rem 12%;
  background: var(--bg-main);
}

.skills-layout {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 3rem;
  margin-top: 3rem;
}

/* Shared box style */
.skills-box,
.learning-box {
  background: #0a0f1f;
  border-radius: 1.8rem;
  padding: 2.5rem;
  box-shadow: 0 0 0 6px rgba(10, 36, 79, 0.15),
    0 0 40px rgba(153, 94, 209, 0.25);
}

/* Headings */
.skills-box h3,
.learning-box h3 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #fff;
}

/* Core skills cards */
.skills-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.2rem;
}

.skill-mini {
  background: #020617;
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  transition: 0.3s ease;
}

.skill-mini i {
  font-size: 1.8rem;
  color: #cbd5f5;
  margin-bottom: 0.4rem;
}

.skill-mini span {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.skill-mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

/* Learning cards */
.learning-cards {
  display: grid;
  gap: 1rem;
}

.learning-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(124, 58, 237, 0.12);
  padding: 1rem 1.2rem;
  border-radius: 1rem;
}

.learning-item i {
  font-size: 1.4rem;
  color: rgb(124, 58, 237);
}

.learning-item p {
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* Mobile */
@media (max-width: 900px) {
  .skills-layout {
    grid-template-columns: 1fr;
  }
}



/* Certificates Section */
.certificates {
  text-align: center;
  background: var(--bg-main);
  padding: 5rem 12%;
  margin-top: 0;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.certificate-card {
  
  border-radius: 2rem;
  padding: 2rem;
  background: var(--bg-section);
  border: 1px solid var(--border-soft);
  transition: all 0.3s ease-in-out;
  text-align: center;
  box-shadow: 0 0 0 6px rgba(10, 36, 79, 0.15),
    0 0 40px rgba(153, 94, 209, 0.25);
}

.certificate-card:hover {
  transform: translateY(-10px);
  background-color: black;
  color: white;
}

.certificate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.certificate-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.certificate-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}



.certificate-card:hover .btn:hover {
  background: white;
  color: black;
}



@media(max-width:1280px){
   header{
    padding: 1rem 2rem;
    gap: 2rem;
   }
   .about .about-container{
    gap: 3rem;
   }
   .experience-info{
    flex-direction: column;
   }
   .info-box input{
    padding: 2rem 5rem;
    font-size: 2.5rem;
   }
   .input input::placeholder{
     font-size: 2.5rem;
   }
   .input-box i{
    font-size: 2.5rem;
   }
   
}

@media(max-width:768px) {
header{
    padding: 1rem 1rem;
    gap: 1rem;
   }
header .logo{
    font-size: 1rem;
}  
header .visit-btn{
    display: none;
} 
.about-container{
    flex-direction: column;
}
.about img:hover {
    transform: none;
    box-shadow: none;
  }
.input-box input{
    padding: 1rem 2rem;
    font-size: 1.8rem;
}
.input-box input::placeholder{
    font-size: 1.5rem;
}
.input-box i{
    display: none;
}
.grid{
    grid-template-columns: repeat(1,1fr);
}
.experience-info img{
    width: 70vw;
}
section {
    min-height: auto;       /* ✅ remove forced height */
    padding: 4rem 6%;       /* ✅ reduce spacing */
  }

  .skill-card:hover {
    transform: none;
    box-shadow: none;
  }

  .skill-card:hover i {
    transform: none;
    filter: none;
  }
  
}

@media(max-width:600px) {
    header #menu-icon{
        display: block;
    }
    .nav-links{
        position: absolute;
        top: 100%;
        margin-top: 1rem;
        width: 100%;
        padding: 1rem;
        color: white;
        display: flex;
        flex-direction: column;
        text-align: center;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 3rem;
        display: none;
    }
    .nav-links li{
        margin-top: 1.5rem;
        padding: 1rem;
    }
    .nav-links.active{
        display: block;
    }
    header{
        padding: 1rem 5rem;
        gap: 8rem;
    }
    header .logo{
        font-size: 1.5rem;
    }
    .about-container img{
        width: 80vw;
    }
    .input-box input{
        padding: 0.5rem 3rem;
        width: 80%;
        font-size: 1.5rem;
    }
    .input-box input::placeholder{
        font-size: 1.5rem;
    }
    
  footer ul {
    flex-direction: column;   /* ✅ stack links */
    gap: 0.8rem;
  }

  footer {
    padding: 2.5rem 1rem;
  }

  footer ul li a {
    font-size: 1rem;
  }


}
@media (max-width: 1024px) {
  .contact {
    margin-top: 0;
  }
  
}

/* ================= PROFILE IMAGE RESPONSIVENESS ================= */

/* Default (Laptop stays EXACT same) */
.profile-wrapper {
  flex-shrink: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .profile-wrapper {
    width: 300px;
    height: 390px;
  }

  .ring-shape {
    width: 270px;
    height: 330px;
  }

  .profile-img {
    height: 360px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .profile-wrapper {
    width: 260px;
    height: 340px;
  }

  .ring-shape {
    width: 235px;
    height: 295px;
  }

  .profile-img {
    height: 315px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .profile-wrapper {
    width: 230px;
    height: 300px;
  }

  .ring-shape {
    width: 205px;
    height: 260px;
  }

  .profile-img {
    height: 280px;
  }
}
