@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;400;600&display=swap');

:root {
    --purple:#7A1CAC;

}

*{
    font-family: "Poppins", sans-serif;
    margin:0 ; padding:0 ;
    outline: none;
    border: none;
    box-sizing: border-box;
    text-decoration: none;
    transition: all .2s linear;
    font-weight: normal;
    text-transform: capitalize;
}

*::selection{
    background:var(--purple);
    color:#fff
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
    
}

body{
    height: 300rem;
    overflow-x: hidden;
}


section{
    min-height: 100vh;
    padding: 0 9%;
    padding-top: 7.5rem;
    padding-bottom: 3rem;

}

.btn{
    display: inline-block;
    border-radius: 5rem;
    background:#444;
    color:#fff;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
    padding: .7rem 3rem;
    position: relative;
    z-index: 0;
    overflow: hidden;
    font-size: 1.7rem;

}

.btn::before,
.btn::after{
    content: '';
    position: absolute;
    top:0;
    height: 100%;
    width: 0%;
    background-color: var(--purple);
    z-index: -1;
    transition: .3s linear;

}

.btn::before{
    left:0;
}

.btn::after{
    right: 0;
}

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

header{
    position: fixed;
    top: 0; left:0;
    z-index: 1000;
    width:100%;
    background-color: #fff;
    padding:2rem 5%;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .navbar a{
    font-size: 1.7rem;
    margin-left: 2rem;
    color:#444;
    
}

header .navbar a:hover{
    color: var(--purple);
}

#menu{
    font-size: 3rem;
    color: #444;
    cursor: pointer;
    display: none;
}


header .scroll-bar{
    position: absolute;
    top:100%; left:0;
    box-shadow:  0 .5rem 1rem rgba(0, 0, 0, .1);
    height: .8rem;
    background: var(--purple);
    width: 20rem;
}

.heading{
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--purple);
    font-weight: 600;
    text-align: center;
    margin-top: 2rem;
}

/* home section starts  */

.home {
    position: relative;

}

.home .flex{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;

}

.home .flex .image{
    flex: 1 1 40rem;
}

.home .flex .image img{
    width: 100%;

}

.home .flex .content{
   flex: 1 1 40rem; 
}

.home .flex .content h3{
    font-size: 1.8rem;
    color: #444;

}

.home .flex .content .name{
    font-size: 5.5rem;
    color: var(--purple);
    margin: 1rem 0;
    color: #444;
    font-weight: bolder;
    text-transform: uppercase;
}

.home .flex .content .name span{
    color: var(--purple);
    text-transform: uppercase;
    font-weight: bolder;
}

.home .flex .content p{
    max-width: 46rem;
    font-size: 1.5rem;
    color: #666;
    padding-bottom: 1rem;
    line-height: 3rem;

}

/* home section ends  */

/* about section starts  */

.about{
    position: relative;
}

.about .container {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 2rem;
    flex-wrap: wrap-reverse;
}

.about .container .image{
    flex: 1 1 25rem;
}

.about .container .image img {
    max-height: 65rem;
    width: 100%;
    height: auto;
    object-fit: contain;   
}


.about .container .content{
    flex: 1 1 20rem;
}


.about .container .content p{
    padding: 1rem 0;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 3rem;
}

/* about section ends  */


/* education section starts  */


.education .row {
    display: flex;
    flex-wrap: wrap;
}
.education .row .column{
    flex: 1 1 40rem;
    margin: 1rem;
    padding: 2rem;
    border:.1rem solid rgba(0, 0, 0, .2);
    box-shadow:0 .5rem 1rem rgba(0, 0, 0, .1);
    border-radius: .5rem;


}
.education .row .column .title{
    color: var(--purple);
    font-size: 2.5rem;
    padding-bottom: 2rem;
}

.education .row .column .box{
    padding-left: 2.5rem;
    padding-bottom: 2rem;
    border-left: .2rem solid var(--purple);
    position: relative;
}

.education .row .column .box::before{
    content: '';
    position: absolute;
    top:.1rem; left: -0.8rem;
    height:1.5rem;
    width:1.5rem;
    border-radius: 50%;
    background-color: var(--purple);
}

.education .row .column .box .year{
    font-size:1.5rem;
    color: #999;
    padding-bottom: .5rem;
}

.education .row .column .box .year i{
    padding-right: .5rem;
}

.education .row .column .box h3{
    color: #333;
    font-size: 2rem;
}


.education .row .column .box p{
     color: #666;
    font-size: 1.5rem;
    padding-top: .5rem;
}


/* education section ends  */




/* projects section starts  */

.projects {
    background: #f9f9f9;
}

.projects .heading{
    text-align: center;
    margin-top: 2rem;
}

.projects .box-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.projects .box-container .box{
    margin: 1rem;
    height: 25rem;
    flex:1 1 25rem;
    border-radius: .5rem;
    border: .1rem solid rgba(0, 0, 0, .2);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
    position: relative;
}

.projects .box-container .box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects .box-container .box .info{
    position: absolute;
    top:-100%; left: 0;
    background: rgba(46, 7, 63, .96);
    color:#fff;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    font-size: 2.5rem;
    text-align: center;
}

.projects .box-container .box:hover .info{
    top:0;
}


/* projects section ends  */




/* blog section starts  */

.blog-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 2rem;
}

.blog-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 350px; 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: auto;
}

.card-content {
  padding: 20px;
  text-align: left;
}

.blog-date {
  font-size: 14px;
  color: #6c63ff;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  font-size: 14px;
  text-decoration: none;
  color: #6c63ff;
  font-weight: 500;
}
/* blog section ends  */

/* contact section starts  */

.contact-section {
  padding: 50px 20px;
  text-align: center;
}

.contact-section h2{
    margin-top: 4rem;
}


.contact-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #f3f3f3;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  text-transform: none;
}

.contact-form textarea{
    height: 300px;
}

.contact-form button {
  padding: 12px;
  background-color: #AD49E1;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #AD49E1;
}

.contact-image {
  flex: 1;
  /* background-color: #fff; */
  padding: 2rem;
  flex-wrap: wrap;
  /* text-align: center; */
}

.contact-image img {
  max-width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.flip-horizontal{
    transform: scaleX(-1);
     transition: transform 0.3s ease;
}

/* contact section ends  */



/* footer section starts  */
.site-footer {
  background-color: #2d2d2d;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}


.site-footer span {
  color: #AD49E1; /* Accent orange */
  font-weight: 500;
}

.social-icons {
  margin-top: 15px;
}

.social-icons a {
  color: #fff;
  margin: 0 10px;
  font-size: 18px;
  display: inline-block;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #AD49E1; /* Your accent color */
}

/* footer section starts  */














/* media queries */
@media (max-width:1300px){
    html{
    font-size: 50%;
}

}

@media (max-width:991px){
   section{
    min-height: 100vh;
    padding: 0 3%;
    padding-top: 10rem;
    padding-bottom: 3rem;

} 
}

@media (max-width:768px){
 #menu{
    display: block;
 }

 header .navbar{
    position: absolute;
    top: 100%; left:-100%;
    background-color: #fff;
    height: calc(100vh - 100%);
    padding: 2rem;
    border-top: .1rem solid rgba(0, 0, 0, .1);
    width: 50%;
 }

 header .navbar.nav-toggle{
    left:0%;
    box-shadow: 0 100vh 0 100vh rgba(0, 0, 0, .1);
 } 

 header .navbar a{
    font-size: 2rem;
    display: block;
    margin: 1.5rem 0;
    text-align: center;

 }

 .fa-times{
    transform: rotate(180deg);
 }

 .home .flex .content .name{
    font-size: 3rem;

 }

 .blog-cards {
    flex-direction: column;
    align-items: center;
  }

  .blog-card {
    max-width: 90%;
  }


  .contact-container {
    flex-direction: column;
  }

  .contact-form,
  .contact-image {
    width: 100%;
    padding: 20px;
  }

  .contact-form {
    order: 2;
  }

  .contact-image {
    order: 1;
  }
}



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

 header .navbar{
    width: 70%;
 }

 .about .row .content span{
    font-size: 4.5;}

    .blog-title {
    font-size: 18px;
  }

  .blog-text {
    font-size: 13px;
  }

  .read-more {
    font-size: 13px;
  }

  .blog-card {
    margin-bottom: 20px;
  }

   .contact-section {
    padding: 30px 15px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 13px;
    padding: 10px;
  }

  .contact-form button {
    font-size: 14px;
    padding: 10px;
  }

  .contact-section h2 {
    font-size: 24px;
  }

  .img-credit {
    font-size: 11px;
  }

  .site-footer {
    font-size: 13px;
    padding: 15px;
  }

}