/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar { box-shadow: 0 5px 10px rgba(0,0,0,0.4); }
.nav-link { transition: 0.3s; }
.nav-link:hover { color: #f9d423 !important; }

/* Home */
#home {
  height: 100vh;
  background:linear-gradient(rgba(17, 3, 3,0),rgba(0,0,0,.6)),url('assets/bg.png');
    background-position:center;
    background-repeat:no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#home h1 { font-size: 3rem; margin-bottom: 15px; }
#home h1 span { color: #f9d423; }
#home h2 { font-size: 2rem; margin-bottom: 40px; min-height: 50px; }

/* Buttons */
.cta-buttons a {
  margin: 0 10px;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn-primary { background: #f9d423; color: #2b003c; }
.btn-primary:hover { background: #fff; transform: scale(1.05); }
.btn-outline-light { border: 2px solid #fff; color: #fff; }
.btn-outline-light:hover { background: #f9d423; color: #2b003c; transform: scale(1.05); }
@media screen and (max-width:576px){
    #home p{
        font-size:80px; 
    }
    
}
/*About section*/

#about{display:flex;justify-content: center;align-items: center;background-color: #060109;} 
.circle{width: 400px;height: 400px;background:#e93b;border-radius: 50%;position:relative;box-shadow:0px 5px 12px rgba(0,0,0,.);
    margin-bottom:4px; margin-top:2%;}
.circle img{position:absolute;height:350px;top: 20px;left:20%;border-radius: 50%;filter:drop-shadow(0px 30px 15px rgba(0,0,0,.));
    background-color:transparent;opacity:0.7;
    /*clip-path: circle(50%);*/
}

.circle:hover{
    width: 700px;
    height:400px;
    border-radius: 10px;
    transition: 1s;
}
.circle:hover img{
    position:absolute;
    top: 25px;;
    left:18px;
    transition:1s;
}
.circle:hover .content{
    position: absolute;
    top: 20%;
    right:0;
    color:black;
    width:56%;
    opacity:1;
    transition: 1s;
}
.circle .content{ 
    opacity:0;
}
/*mobile view*/
@media screen and (max-width:576px){
.circle{
    width: 400px;
    height: 400px;
    border-radius: 50%;
    position:relative;
    box-shadow:0px 5px 12px rgba(0,0,0,.);
    margin-bottom:4px;
    margin-top:2%;
    }
.circle:hover img{
    position:absolute;
    top: 25px;
    left:68px;
    transition:1s;
}
.circle:hover{
    width: 400px;
    height:600px;
    border-radius: 10px;
    transition: 1s;
}
.circle:hover .content{
    position: absolute;
    top: 65%;
    right:5%;
    color:black;
    width:80%;
    opacity:1;
    transition: 1s;
}
.circle .content{ 
    opacity:0;
}
}

/* Skills */
#skills 
{ padding: 60px 10%; background: #060109;; color: #fff; }
.section-title 
{ text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: #f9d423; }
.skills-container 
{ display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 20px; }
.skill label 
{ display: block; margin-bottom: 5px; font-weight: 600; }
.progress 
{ height: 25px; background: #444; border-radius: 20px; overflow: hidden;
box-shadow: 2px 4px 5px gray,-2px -2px 5px rgb(186, 179, 179); }
.progress:hover{
    box-shadow: 2px 4px 5px rgb(147, 142, 142);
}
label{
    font-size: 20px;
}
.progress-bar 
{ width: 0; height: 100%; background: #f9d423; transition: width 2s ease; }


/* Achievements & Certifications */
#achievements {
  padding: 48px 16px;
  background: #060109;;
  color: #fff;
  text-align: center;
}

#achievements .section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #f9d423;
  animation: fadeDown 700ms ease;
}

#achievementsCarousel {
  max-width: 1000px;   /* keeps it centered */
  margin: 0 auto;
}

/* Make images responsive */
#achievements img {
  width: 100%;
  height: auto;          /* keeps aspect ratio */
  max-height: 450px;     /* desktop cap */
  object-fit: contain;   /* show full certificate without cropping */
  border-radius: 10px;
  background: #060109;;      /* adds a frame when aspect ratio doesn’t match */
}

.carousel-caption {
  background: rgba(0,0,0,0.55);
  padding: 8px 10px;
  border-radius: 6px;
}

/* entry animation */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ✅ Responsive tweaks */
@media (max-width: 768px) {
  #achievements .section-title { font-size: 1.4rem; }
  #achievements img { max-height: 280px; }
}

@media (max-width: 480px) {
  #achievements img { max-height: 200px; }
  .carousel-caption h3 { font-size: 1rem; }
}


/* Tools */
#tools { padding: 60px 10%; background: #060109;; color: #fff; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px; }
.tool { background: #fff; color: #060109;; text-align: center; padding: 15px; border-radius: 15px; transition: transform 0.3s; }
.tool img { width: 70px; margin-bottom: 10px; }
.tool:hover { transform: translateY(-10px) scale(1.05); }

/*Contact Me*/
#contact {width: 100%;max-width: 900px;margin: 50px auto;background: #fff;border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);overflow: hidden;          
}

#contact .contact-container {
  display: flex;
}

/* Form box */
#contact .form-box {flex: 1;padding: 40px;}

#contact .form-box h2 {margin-bottom: 20px;font-size: 1.8rem;color: #333;}

/* Input groups */
#contact .input-group { margin-bottom: 15px;}

#contact .input-group input,
#contact .input-group textarea {
  width: 100%;padding: 12px 15px;border: 2px solid #f0f0f0;border-radius: 8px;
  font-size: 1rem;outline: none;transition: border 0.3s, box-shadow 0.3s;resize: none;}

#contact .input-group input:focus,
#contact .input-group textarea:focus {
  border-color: #0083b0;
  box-shadow: 0 0 8px rgba(0,131,176,0.2);
}

/* Button */
#contact button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00b4db, #0083b0);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#contact button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Illustration box */
#contact .illustration {
  flex: 1;
  background:linear-gradient(rgba(17, 3, 3,0),rgba(0,0,0,.6)),url('assets/contact.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  #contact .contact-container {
    flex-direction: column;
  }
  #contact .illustration {
    display: none;
  }
}

/* Back to Top */
#backToTop { position: fixed; bottom: 20px; right: 20px; background: #f9d423; border: none; border-radius: 50%; width: 50px; height: 50px; display: none; justify-content: center; align-items: center; cursor: pointer; font-size: 1.2rem; color: #2b003c; }
#backToTop:hover { transform: scale(1.2); }
