/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    z-index: 100;
    transition: background-color 0.3s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 2rem;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 25, 0.95);
    z-index: 100;
}

.navbar .logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: #00d4ff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #3b82f6;
}

/* Burger Menu for Mobile */
.burger {
    display: flex;
    flex-direction: column; /* lines stacked vertically */
    justify-content: space-between; /* lines evenly spaced */
    width: 30px; /* burger width */
    height: 21px; /* total height to fit 3 lines with space */
    cursor: pointer;
}

.burger div {
    display: none;
    width: 100%;
    height: 3px; /* thickness of lines */
    background-color: #00d4ff;
    border-radius: 2px; /* smooth edges */
    transition: all 0.3s ease;
}

/* Responsive Navbar */
/* MOBILE BURGER MENU */

 @media (max-width: 768px) {
  .burger {
    display: inline-block;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height:12px;
    position: fixed;
    top: 26px;
    right: 16px;
    cursor: pointer;
    z-index: 8999;
  }

  .burger div {
    display: flex;
    width: 100%;
    height:4.3px;
    background: #00d4ff;
    transition: all 0.3s ease;
  }
   
  .burger .line1{
    margin-bottom: 3px;
  }
  .burger .line2{
    margin-bottom: 3px;
  }
  /* Burger → Cross */
  .burger.toggle .line1 {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger.toggle .line2 {
    opacity: 0;
  }
  .burger.toggle .line3 {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    background: #1a1a1a;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top:30px;
    z-index: 1000;
  }

  .nav-links.nav-active {
    transform: translateX(0);
  }

    header{
      position: fixed;
    }
}


.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99%;
    background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRcRs27_jOignMOVdsgJrR3HUhS92iym9u5IA&s') center/cover no-repeat;
    filter: blur(7px); /* blur only this image */
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}
.hero-content p:hover{
    color: #0099cc;
}
.hero h1 {
    margin-bottom: 2rem;
    color: #00d4ff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.typing {
    display: inline-block;
    border-right: 3px solid #fff; /* Cursor */
    padding-right: 5px;
    animation: blink 0.7s infinite;
    white-space: nowrap;
    overflow: hidden;
}

.hero h1.typing {
    font-size: clamp(1.7rem, 6.4vw, 3rem);
}

@keyframes blink {
    0% { border-color: transparent; }
    50% { border-color: white; }
    100% { border-color: transparent; }
}


.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #00d4ff;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #0099cc;
    transform: translateY(-5px);
}

section {
    padding: 5rem 2rem;
    padding-top: 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* About section wrapper */
.about {
  padding: 4rem 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  color: #e9eef8; /* adjust for dark/light theme */
}

/* container grid for text + image */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Heading */
.about h2 {
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.4px;
  color: #ffffff;
}

/* Lead paragraph (highlighted intro) */
.lead {
  font-size: 1.06rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
  color: #dce6ff;
}

/* Regular paragraphs */
.about p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  color: #c7d6ff;
}

/* Strong emphasis */
.about p strong {
  color: #ffffff;
}

/* CTA buttons */
.about-cta {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg,#0099cc,#00d4ff); /* nice blue gradient */
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(59,130,246,0.12);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { 
  transform: translateY(-3px); box-shadow: 0 10px 30px rgba(59,130,246,0.18); 
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #e6eefc;
  box-shadow: none;
}

/* Image card */
.about-image {
  justify-self: center;
}

.about-image img {
  width: 300px;
  height: 380px;
  max-width: 100%;
  border-radius: 12px;
  margin-top: 32px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(2,6,23,0.55);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all .3s;
  cursor: pointer;
}

.about-image img:hover{
  transform: translateY(-4px); box-shadow: 0 6px 20px #00d4ff; 
}

/* Small screens: stack columns */
@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .about-image {
    margin-top: 1rem;
  }
  .about h2 { text-align: center; }
  .about p { text-align: center; }
  .about-cta { justify-content: center; }
}

/* Tiny screens: font adjustments */
@media (max-width: 480px) {
  .about { padding: 3rem 0.9rem; }
  .about h2 { font-size: 1.5rem; }
  .lead { font-size: 1rem; }
}


.about, .portfolio, .contact ,.skills{
    animation: fadeIn 1s ease-out;
}

.about h2, .portfolio h2, .contact h2 , .skills-section h2, .achievements h2 {
    text-align: center;
    margin-bottom: 2.4rem;
    color: #00d4ff;
}


/* Skills Section */
.skills-section {
  padding: 8rem 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  color: #e9eef8;
}

/* Lead paragraph */
.skills-section .lead {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #dce6ff;
}


/* Badge style (reuse from About) */
.badge-container {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  background: #2f3031; /* Aapka purana color */
  border-radius: 24px;
  /* box-shadow: 1px 3px #00d4ff; */
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 1rem;
  margin: 6px 0px;
}


/* Progress Line Background */
.progress-line {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-top: 6px;
    overflow: hidden;
    
    /* Pehle se chupa hua (Invisible) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Actual Progress Filling Line */
.progress-line span {
    display: block;
    height: 100%;
    background: #00d4ff; /* Neon blue color */
    width: 0%; /* Initial width for animation */
    border-radius: 10px;
    transition: width 0.8s ease-in-out;
}

/* HOVER MAGIC */
.badge-container:hover .progress-line {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover par line ko fill karna */
.badge-container:hover .progress-line span {
    /* Jab hover ho tab width wo uthaye jo inline style mein di hai */
    width: 100%; 
}

/* Badge hover effect */
.badge-container:hover {
   background:#3b82f6;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .skills-grid{
    gap: 1.8rem;
  }
  .skills-section .lead{
    font-size: 1.3rem;
    margin-bottom: 4rem;
  }
}

/* Desktop par waisa hi rakhein jaisa pehle tha */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); 
    gap: 2.4rem;
    justify-content: center;
}

/* --- Mobile Fix: Har line mein barabar badges --- */
@media (max-width: 480px) {
    .skills-grid {
        /* Is line se har row mein fix 3 badges aayenge */
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem; /* Mobile par gap thoda kam taake fit ho jayein */
        padding: 2px 10px;
    }

    .skills-grid .badge {
        font-size: 1.1rem;
        padding: 7px 6px;
        text-align: center;
        width: 100%; /* Badge poori column ki width lega */
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
}

/* Agar tum chahte ho ke screen bohot choti ho to 2 badges dikhein */
@media (max-width: 350px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 13px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    padding:5px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.project-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 5px;
}

.project-card h3 {
    padding: 1rem;
    color: #00d4ff;
}

.project-card p {
    padding: 0 1rem 1rem;
    font-size: 15px;
}


.achievements .lead {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #dce6ff;
}

.achievements-grid {
  display: flex;
  max-height: 80rem;
  flex-wrap: wrap;
  gap:3.5rem;
  background-color: #0a0a0a;
  justify-content: center;
}

.achievement-card {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  background: #2f3031;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 0.95rem;
  flex: 1 1 270px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}

/* Fade-in animation (reuse for all fade-in sections) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    margin-bottom: 1.6rem;
    padding: 0.9rem;
    border: none;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #ffffff;
    outline: none;
    box-shadow: 0 4px 12px rgba(81, 81, 82, 0.25);
}

button {
    padding: 0.8rem;
    background-color: #00d4ff;
    color: #0a0a0a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

button:hover {
    background-color: #0099cc;
    transform: translateY(-5px);
    transform: translateY(-3px); box-shadow: 0 10px 30px rgba(59,130,246,0.18); 

}

footer {
    text-align: center;
    /* padding: 1.2rem; */
    background-color: #1a1a1a;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        margin: 0 auto;
    }
    /* .nav-links {
        margin-top: 1rem;
    } */
    .nav-links li {
        margin-top: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    section {
        padding: 3rem 1rem;
    }
    section p{
    font-size:17px;
    }
    form{
      padding:16px;
      margin-bottom: 22px;
    }
    form input, textarea{
      font-size: 1.2rem;
      margin-bottom:32px;
    }
    form button{
      margin-top: 22px;
    }
    .projects {
        grid-template-columns: 1fr;
    }
}



.footer {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 4rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: start;
}

.footer-logo {
    color: #00d4ff;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-logo span {
    color: #ffffff;
    text-align: left;
}

.footer-about p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 800;
}

.social-links a:hover {
    background: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-5px);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: left;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    text-align: start;
}

.footer-links ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #00d4ff;
}

.footer-contact p {
    font-size: 0.9rem;
    color: #00d4ff;
    margin-bottom: 0.8rem;
    text-align: left;
}
.footer-contact strong{
    color:#a0a0a0;
}
.status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    height: 5rem;
    /* border: 1px solid #a0a0a0; */
    border-radius: 22px;
    width: 16rem;
    box-shadow: 2px 2px 4px #666;
    cursor: pointer;
    
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #2ecc71;
    margin-left: 7px;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #666;
}

.last{
  margin-top: 2rem;
}
.last span{
    color:#00d4ff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-container {
        text-align: center;
        grid-template-columns: 1fr;
    }
    .social-links {
        justify-content: flex-start;
    }
    .status{
      margin-top: 1.4rem;
    }
}


