/* Responsive navbar/drawer visibility fix */
@media (max-width: 768px) {
  nav, #header {
    display: none !important;
  }
  .navbar {
    display: flex !important;
  }
  .menu-btn {
    display: block !important;
  }
  .drawer {
    display: block;
  }
}
@media (min-width: 769px) {
  .navbar, .drawer, .overlay {
    display: none !important;
  }
  nav, #header {
    display: block !important;
  }
}
*{
  margin:0;
  padding:0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
body{

background: #F8F9FC;
color: #333D79;
  
}


nav{
  height:80px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color:#1E2A38;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
}
.left{
  font-style:normal;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 40px;
  color:  rgb(224, 255, 255);
 
 display: inline-block;
  align-items: center;
}

.right {
  flex: 1;                 
  display: flex;         
  justify-content: flex-end; 
  align-items: center;     
}

nav ul{
  display:flex;
  justify-content: center;
  align-items: center; 
}
nav ul li{
  display:inline-block;
  list-style:none;
  margin:10px 15px;
}
nav ul li a{
  color:white;
  text-decoration:none;
  font-size: 20px;
  position:relative;
}
nav ul li a::after{
  content: '';
  width:0;
  height: 3px;
  background: #00E0FF;
  position:absolute;
  left:0;
  bottom:-6px;
  transition:0.5s;
}
nav ul li a:hover::after{
  width: 100%;
}




.resume {
 display: inline-block;
  padding: 5px 14px;
  background-color: #4A90E2;   
  color: #fff;                 
  text-decoration: none;
  border-radius: 25px;          
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;  
}

.resume:hover {
 background-color: #00BFA6;   
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Media quary for navbar */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    height: auto !important;
    min-height: 60px;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  .left {
    font-size: 32px;
    margin-bottom: 10px;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  nav ul li {
    margin: 5px 0;
  }
  nav ul li a {
    font-size: 18px;
  }
  
}








.home{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12%;
  padding-top:17% ;
}
.home_content{
  padding-right: 50px;
}
.home_content h3{
  font-size: 25px;
  font-weight: 500;
}
.home_content h3:nth-of-type(2){
  margin-bottom:2rem;
}
span{
  color: var(--main-color);
}
.home_content h1{
  font-size: 50px;
  font-weight: 700;
  line-height: 1.3;
  color: #2C3E50;


}
#element{
  color:#6C63FF;
  font-size: 35px;
}

.home_img img{
  width: 25vw;
  animation: floatImage 4s ease-in-out infinite;
  border-radius:50%;
   box-shadow: 0 12px 40px rgba(125, 42, 232, 0.6);
  overflow: hidden;   
    
}
@keyframes floatImage{
  0%{
    transform:translateY(0);
  }
  50%{
    transform: translateY(-2.4rem);
  }
  100%{
    transform: translateY(0);
  }
}
.home_content p{
  /* font-size: 25px;
  font-style: italic; */
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;        
  font-style: italic;      
  line-height: 1.6;       
  max-width: 600px;          
  margin-top: 10px;

}
/* Tablet View (768px and below) */
@media (max-width: 768px) {
  
  .home {
    flex-direction: column-reverse;
    text-align: center;
    padding: 30px;
     padding-top: 80px;
  }
  .home_content h1 {
    font-size: 32px;
  }
  .home_content h3,
  .home_content p {
    font-size: 20px;
  }
  .home_img {
    margin-bottom: 20px;
    margin-top: 0 !important;
    z-index: 1;
    position: relative;
  }
  .home_img img.photo {
    width: 70%;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
  }
}
/* Mobile View (480px and below) */
@media (max-width: 480px) {
 
  .home_content h1 {
    font-size: 26px;
  }
  .home_content h3 {
    font-size: 16px;
  }
  .home_content p {
    font-size: 16px;
    padding: 0 10px;
  }
  .home_img img.photo {
    width: 90%;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
  }
}


















.about{
  padding:6%;
  display: flex;
  justify-content:center ;
  align-items: center;
  gap:4rem;
  background: linear-gradient(135deg, #f8f9ff, #ffffff);
}
.about_img img{
  width: 30vw;
  border-radius: 50%;
  border: 5px solid #333D79;
  box-shadow: 0 4px 15px rgba(51, 61, 121, 0.2);
}
.heading{
  text-align: center;
  font-size: 4.5rem;
  padding-bottom: 30px;
  margin-top: -30px;
}
.about_content h2{
text-align: left;
line-height: 1.2;
}
.about_content h3{
  font-size: 2.6rem;
}
.about_content p{
  font-size:20px ;
  margin: 2rem ;
}



 .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  /* background: linear-gradient(135deg, #333D79, #3f4c97); */
   background: #2C3E50;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(51, 61, 121, 0.4);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}


.btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: #00BFA6;
 
  box-shadow: 0 4px 20px rgba(0, 224, 255, 0.6);

}


.btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(51, 61, 121, 0.4);
} 

.btn.btn2{
  display:inline-block;
  background: #2C3E50;
  
}
.btn.btn2:hover {
  transform: translateY(-3px) scale(1.05);
  background: #00BFA6;
 
  box-shadow: 0 4px 20px rgba(0, 224, 255, 0.6);

}

/* media quary code for about section */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }
  .about_img img {
    width: 60vw;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
  }
  .about_content {
    width: 100%;
  }
  .about_content h2 {
    text-align: center;
    font-size: 3.5rem;
  }
  .about_content h3 {
    font-size: 2rem;
  }
  .about_content p {
    font-size: 18px;
  }
  .btn {
    padding: 12px 40px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .about {
    flex-direction: column;
    padding: 30px 15px;
    text-align: center;
    gap: 2rem;
  }
  .about_img img {
    width: 80vw;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
  }
  .heading {
    font-size: 3rem;
  }
  .about_content h2 {
    font-size: 2.5rem;
    text-align: center;
  }
  .about_content h3 {
    font-size: 1.6rem;
  }
  .about_content p {
    font-size: 16px;
  }
  .btn {
    padding: 10px 30px;
    font-size: 14px;
  }
}











/* --------------- Skill section---------------- */

.skills {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(180deg, #f8f9ff, #ffffff);
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.skill-card {
background: linear-gradient(135deg, #333D79, #3f4b99);
  border-radius: 10px;
  /* box-shadow: 0 4px 15px rgba(51, 61, 121, 0.2); */
   box-shadow: 0 6px 15px rgba(125, 42, 232, 0.4);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.skill-card:hover {
  transform: translateY(-5px) scale(1.05);
  /* box-shadow: 0 8px 25px rgba(51, 61, 121, 0.4); */
  box-shadow: 0 12px 40px rgba(125, 42, 232, 0.6);

  
}
.skill-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.skill-card:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #FFD700);
}
.skill-card p {
  font-size: 16px;
  color: #f5f5f5;
  font-weight: 500;
  margin-top: 5px;
}

/* /media quary for skill section */
@media (max-width: 768px) {
  .section {
    padding: 30px 10px;
  }
  .section h2 {
    font-size: 28px;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
  }
  .skill-card {
    padding: 15px;
  }
  .skill-card img {
    width: 40px;
    height: 40px;
  }
  .skill-card p {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .section h2 {
    font-size: 24px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-card {
    padding: 12px;
  }
  .skill-card p {
    font-size: 13px;
  }
}




/* -------------project section----------- */
#project {
  scroll-margin-top: 70px; 
}

.project
{
  background: var(--snd-bf-color);
  padding: 30px;
}

.portfolio_container{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  align-items: center;
  gap: 2.5rem;
  width: 80%;
  margin: 0 auto;
}
 .portfolio_container .portfolio_box{
position: relative;
border-radius: 1.5rem;
box-shadow: 0 10px 30px rgba(125, 42, 232, 0.5);


overflow: hidden;
display: flex;
background: #232526;
transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
cursor: pointer;
}
.portfolio_box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.45);
  background: linear-gradient(135deg, var(--main-color) 0%, #232526 100%);
  background: #00BFA6;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.portfolio_box img {
  width: 100%;
  height: 250px;
  object-fit: cover; /* ya contain */
  object-position: center;
  transition: 0.5s cubic-bezier(0.4,0,0.2,1);
  opacity: 0.85;
  border-radius: 1.5rem 1.5rem 0 0;
  background: #eee; /* blank space ke liye */
}
.portfolio_box:hover img{
  transform: scale(1.08) rotate(-1deg);
  opacity: 1;
 
  
}
.portfolio_box .portfolio_layer{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 60%, var(--main-color) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 2rem;
  transform: translateY(100%);
  transition: 0.5s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
}
.portfolio_box:hover .portfolio_layer
{
  transform: translateY(0);
  opacity: 1;
  background: linear-gradient(rgba(0,0,0,0.6),#ff004f);;
}
.portfolio_layer h4{
font-size: 2.2rem;
color: #facc15;
font-weight: 700;
letter-spacing: 1px;
}
.portfolio_layer p{
  font-size: 1.2rem;
  margin: .5rem 0 1.2rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.portfolio_layer a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3.2rem;
  height: 3.2rem;
  background: #fff;
  border-radius: 50%;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
  box-shadow: 0 12px 40px rgba(125, 42, 232, 0.6);

  overflow: hidden;
  margin-top: 0.5rem;
  transition: background 0.3s, transform 0.3s;
}
.portfolio_layer a:hover {
  background: var(--main-color);
  transform: scale(1.15);
}
.portfolio_layer  i{
  font-size: 1.5rem;
  color: var(--main-color);
}
/* ===== Tablet (max-width: 768px) ===== */
@media (max-width: 768px) {
  .portfolio_container {
    display: grid;
    grid-template-columns: 1fr; /* single column layout */
    width: 95%;
    gap: 2.5rem;
    margin: 0 auto;
  }

  .portfolio_box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
  }

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

  .portfolio_box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .portfolio_layer {
    padding: 1rem;
    text-align: center;
  }

  .portfolio_layer h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .portfolio_layer p {
    font-size: 1rem;
    line-height: 1.5;
    color: #fff !important;
  }

  .portfolio_layer a {
    width: 2.7rem;
    height: 2.7rem;
    margin-top: 0.8rem;
  }

  .portfolio_layer i {
    font-size: 1.2rem;
  }
}

/* ===== Mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
  .portfolio_container {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 1.5rem;
    margin: 0 auto;
  }

  .portfolio_box {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  }

  .portfolio_box img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }

  .portfolio_layer {
    padding: 0.8rem;
    text-align: center;
  }

  .portfolio_layer h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
  }

  .portfolio_layer p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #fff !important;
  }

  .portfolio_layer a {
    width: 2.3rem;
    height: 2.3rem;
    margin-top: 0.6rem;
  }

  .portfolio_layer i {
    font-size: 1rem;
  }
}

/* -------------Education----------------- */

/* Education Section */
.education {
  padding: 60px 10%;
  background: #e9f0ff;
  text-align: center;
}

.education .heading {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333D79;
}

.education .heading span {
  color: #7d2ae8;
}

.education .sub-heading {
  font-size: 1rem;
  color: #444;
  margin-bottom: 40px;
}

/* Container */
.edu-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
} 

/* Education Card */
.edu-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(125, 42, 232, 0.5);


  overflow: hidden;
  transition: transform 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-8px);
}

.edu-card img {
  width: 280px;
  height: 100%;
  object-fit: cover;
}

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

.edu-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a2472;
}

.edu-content p {
  font-size: 0.95rem;
  margin: 10px 0;
  color: #333;
}

.year {
  font-size: 1rem;
  font-weight: 600;
}

.year .ongoing {
  color: green;
}

.year .completed {
  color: darkgreen;
}

/* Responsive */
@media (max-width: 768px) {
  .edu-card {
    flex-direction: column;
    text-align: center;
  }

  .edu-card img {
    width: 100%;
    height: 200px;
  }

  .edu-content {
    text-align: center;
  }
}



/* --------------contact--------------- */

.heading{
  margin-top: 2.5rem;
  color:#7d2ae8;
  font-size: 2.5rem;
}
.heading i{
  color: #333D79;
}


.contact {
  padding: 80px 10%;
  background: #f9f9f9; 
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  
}

.contact_container {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact_info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  
  
}

.contact_info p {
  font-size: 1.1rem;
  margin: 10px 0;
  color: #333;
}

.contact_info i {
  color: #333D79;
  margin-right: 10px;
}
.social-icons{
    margin-top: 10px;
}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons a:hover{
    color: #333D79;
    transform: translateY(-5px);
}

.contact_form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
   /* box-shadow: 0 6px 15px rgba(125, 42, 232, 0.4); */
   box-shadow: 0 12px 40px rgba(125, 42, 232, 0.6);

  overflow: hidden;
}

.contact_form input,
.contact_form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  outline: none;
  background: #f1f1f1;
  border-radius: 8px;
  font-size: 1rem;
}

.contact_form textarea {
  resize: none;
  height: 150px;
}

.contact_form button {
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(90deg, #2c2f75, #3f51b5);
  color: white;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact_form button:hover {
  background: linear-gradient(90deg, #3f51b5, #2c2f75);
}


.end{
    width:100%;
    text-align: center;
    padding: 25px 0;
    background: #2C3E50;
    font-weight: 300;
    margin-top: 20px;
    color: white;
}
.end i{
    color: red;
}

/* media quary code for contect section and end section*/
@media (max-width: 768px) {
  .contact1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
  }
  .contact-left,
  .contact-right form {
    width: 100%;
  }
  .contact-right form {
    max-width: 100%;
  }
  .form input,
  .form textarea {
    font-size: 14px;
  }
  .btn.btn2 {
    padding: 12px 50px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .contact1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    padding: 0 1rem;
  }
  .contact-left p i {
    font-size: 20px;
    margin-right: 10px;
  }
  .social-icons a {
    font-size: 24px;
    margin-right: 10px;
  }
  .btn.btn2 {
    font-size: 14px;
    padding: 10px 30px;
  }
  form input,
  form textarea {
    font-size: 12px;
  }
  .contact-right form {
    width: 100%;
  }
  .end p {
    font-size: 14px;
    padding: 15px 10px;
  }
}



