@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: #2b3dda;
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: rgb(235, 202, 245);
}
html::-webkit-scrollbar-thumb {
  background: #420177;
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
/* pre loader end */

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* Changed from 1000 to 9999 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}
.heading span {
  color: rgb(115, 3, 167);
}
header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0e2431;
}
header .logo i {
  font-size: 2.2rem;
}
header .logo:hover {
  color: #fc8c05;
}
header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li {
  margin-left: 2.5rem;
}
header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #011aff;
  border-bottom: 0.2rem solid #011aff;
  padding: 0.5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}
@media (max-width: 768px) {
  #menu {
    display: block;
  }
  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
  }
  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }
  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 26rem;
  }
  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #011aff;
  }
  .fa-times {
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle {
    right: 0;
  }
}
/* hamburger icon ends */

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
}
.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}
.home .image {
  flex: 1 1 40rem;
  z-index: 1;
}
.home .image img {
  width: 70%;
  margin-left: 6rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.home .image img:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.home .content h2 {
  font-size: 5rem;
  font-weight: 800;
  color: #002057;
}
.home .content h2 span {
  font-size: 5rem;
  font-weight: 800;
  color: #ff7b00;
}
.home .content p {
  font-size: 2.5rem;
  color: #000;
  font-weight: 600;
  padding: 1rem 0;
}
.home .content p span {
  font-size: 2.5rem;
  color: rgb(148, 8, 8);
  font-weight: 600;
  padding: 1rem 0;
}
.home .btn {
  margin-top: 1rem;
  position: absolute;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 18px rgba(48, 68, 247, 0.6);
  font-family: "Nunito", sans-serif;
}
.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
}
.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.home .btn:hover {
  background: #1a047e;
}
.home .btn:hover i {
  transform: translateX(5px);
}
/* social icons start */
.socials {
  position: relative;
  margin-top: 9rem;
}
.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}
.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #00d9ff;
  background-color: #09011b;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #0685da;
}
.social-icons a.github:hover {
  background-color: #0e0e0e;
}
.social-icons a.twitter:hover {
  background-color: #00aced;
}
.social-icons a.linkedin:hover {
  background-color: #007bb6;
}
.social-icons a.dev:hover {
  background-color: #070707;
}
.social-icons a.instagram:hover {
  background-color: #ee00da;
}
/* social icons end */

/* hero media queries starts*/
/* hero media queries starts*/
/* hero media queries starts*/
@media (max-width: 768px) {
  .home {
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .home .content {
    order: 2;
    text-align: center;
    padding: 0 2rem;
    width: 100%;
  }
  
  .home .image {
    order: 1;
    text-align: center;
    width: 100%;
    padding: 2rem 0;
  }
  
  .home .image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
  }
  
  .home .btn {
    margin: 2rem auto;
    position: relative;
    display: inline-block;
  }
  
  .socials {
    margin-top: 3rem;
    width: 100%;
  }
  
  .socials .social-icons {
    justify-content: center;
  }
}

@media (max-width: 450px) {
  .home {
    padding-top: 6rem;
    min-height: auto;
  }
  
  .home .content h2 {
    font-size: 3rem;
  }
  
  .home .content h2 span {
    font-size: 3rem;
  }
  
  .home .content p {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .home .content p span {
    font-size: 1.8rem;
  }
  
  .home .image img {
    width: 200px;
    height: 200px;
  }
  
  .socials {
    margin-top: 2rem;
  }
}
/* hero media queries ends*/
/* hero media queries ends*/
/* hero media queries ends*/
/* hero section end */















/* about section starts */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


.about {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(25, 47, 222, 0.1);
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(25, 47, 222, 0.08);
    z-index: 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.about .heading {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: #333;
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.about .heading i {
    color: #2506ad;
    margin-right: 0.5rem;
}

.about .heading span {
    color: #2506ad;
    position: relative;
}

.about .heading span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2506ad, #6b8cfe);
}

/* Enhanced card design with additional effect */
.about .row {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(37, 6, 173, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.about .row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2506ad, #6b8cfe);
}

.about .row:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(37, 6, 173, 0.08);
}

.about .row .image {
    flex: 1 1 35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2506ad, #6b8cfe);
    padding: 4rem 2rem;
    position: relative;
}

.about .row .image .img-border {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about .row .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffffff;
    transition: all 0.5s ease;
}

.about .row .image img:hover {
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ffffff;
    color: #2506ad;
    transform: translateY(-5px);
}

.about .row .content {
    flex: 1 1 45rem;
    padding: 2.7rem;
}

.content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.name-badge {
    margin-bottom: 1.5rem;
    position: relative;
}

.about .row .content h3 {
    color: #333;
    font-size: 2.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about .row .content .tag {
    display: inline-block;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #2506ad, #6b8cfe);
    color: #ffffff;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(37, 6, 173, 0.3);
}

.about .row .content .tag i {
    margin-right: 0.5rem;
}

.bio {
    font-size: 1.4rem;
    color: #444;
    margin: 2rem 0;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.highlight {
    color: #2506ad;
    font-weight: 600;
    font-size: 1.5rem;
}

.tagline {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.6rem;
    color: #222;
    font-weight: 700;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Reduced from 1.5rem */
    margin: 1.5rem 0; /* Reduced from 2rem */
}

.info-box {
    display: flex;
    align-items: center;
    gap: 1rem; /* Reduced from 1.5rem */
    flex: 1 1 calc(50% - 1rem); /* Updated */
    padding: 1rem; /* Reduced from 1.5rem */
    border-radius: 10px; /* Reduced from 12px */
    background: #f8f9fa;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* Slightly reduced shadow */
    transition: all 0.3s ease;
}

.info-box:hover {
    background: #f0f2f5;
    transform: translateY(-2px); /* Reduced from -3px */
}

.info-icon {
    width: 40px; /* Reduced from 50px */
    height: 40px; /* Reduced from 50px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2506ad, #6b8cfe);
    color: #ffffff;
    border-radius: 10px; /* Reduced from 12px */
    font-size: 1.2rem; /* Reduced from 1.5rem */
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 1rem; /* Reduced from 1.2rem */
    color: #666;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.info-value {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    color: #222;
    margin: 0.2rem 0 0; /* Reduced from 0.3rem */
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
}

.skill-tag {
    padding: 0.7rem 1.5rem;
    background: rgba(37, 6, 173, 0.1);
    color: #2506ad;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.skill-tag:hover {
    background: rgba(37, 6, 173, 0.2);
    transform: translateY(-3px);
}

.resumebtn {
    margin-top: auto;
}

.resumebtn .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.3rem 3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #fff;
    background: linear-gradient(90deg, #2506ad, #6b8cfe);
    box-shadow: 0 8px 20px rgba(37, 6, 173, 0.3);
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.resumebtn .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.resumebtn .btn:hover::before {
    left: 100%;
}

.resumebtn .btn span {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.05rem;
}

.resumebtn .btn i {
    margin-left: 0.8rem;
    font-size: 1.3rem;
    transition: 0.3s;
}

.resumebtn .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(37, 6, 173, 0.4);
}

.resumebtn .btn:hover i {
    transform: translateX(5px);
}

/* Improved media queries for better responsiveness */
@media screen and (max-width: 992px) {
    .about .row {
        flex-direction: column;
    }
    
    .about .row .image {
        padding: 3.5rem 2rem;
    }
    
    .info-box {
        flex: 1 1 100%;
    }
    
    .bio {
        font-size: 1.3rem;
    }
    
    .info-value {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }
    
    .about .heading {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .about .row .content h3 {
        font-size: 2.5rem;
    }
    
    .skill-tag {
        font-size: 1.2rem;
        padding: 0.6rem 1.3rem;
    }
    
    .resumebtn .btn span {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 600px) {
    .about .heading {
        font-size: 2.7rem;
    }
    
    .about .row .image .img-border {
        width: 200px;
        height: 200px;
    }
    
    .about .row .content {
        padding: 2rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .about .row .content h3 {
        font-size: 2.2rem;
    }
    
    .bio {
        font-size: 1.2rem;
    }
    
    .resumebtn .btn {
        padding: 1.1rem 2.5rem;
    }
    
    .resumebtn .btn span {
        font-size: 1.2rem;
    }
    
    .info-label {
        font-size: 1.1rem;
    }
    
    .info-value {
        font-size: 1.3rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}n and (max-width: 600px) {
  .about .row .image {
    margin-top: 2rem;
  }
  .about .row .image img {
    margin: 0 auto;
    width: 80%;
    mix-blend-mode: normal;
  }
  .about .row {
    padding: 0.5rem;
    margin-bottom: 7rem;
  }
  .about .row .content {
    padding: 1rem;
  }
  .about .row .content .box-container {
    gap: 0;
  }
}







/* about media queries ends*/
/* about section ends */

/* skills section starts */
.skills {
  min-height: 90vh;
  background: linear-gradient(to bottom, #57059e, #4a00e0);
}
.skills h2 {
  color: #fff;
}
.skills .heading span {
  color: rgb(255, 230, 0);
}
.skills .container {
  background: rgba(0, 0, 22, 0.4);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  margin: auto;
  margin-top: 2rem;
}
.skills .container .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  flex-wrap: wrap;
  gap: 1.8rem;
}
.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 22, 0.9);
  transition: 0.2s;
}
.skills .container .bar:hover {
  box-shadow: 0 8px 10px rgba(0, 2, 68, 0.8) !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
}
.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.skills .container .bar .info i {
  font-size: 4rem;
}
.skills .container .bar .info span {
  font-size: 2rem;
  font-weight: 500;
  font-family: "Poppins";
  margin-left: 0.5rem;
}
/* skills media queries starts*/
@media screen and (max-width: 600px) {
  .skills .container {
    padding: 0;
    margin: 0;
  }
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }
  .skills .container {
    margin-top: 5px;
    width: 100%;
  }
}
/* skills media queries ends*/
/* skills section ends */



















/* education section starts */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Nunito:wght@300;400;600;700;800&display=swap');

/* === GLOBAL STYLES (ये स्टाइल सभी सेक्शंस पर लागू हो सकते हैं) === */
:root {
  --primary-color: #012970; /* गहरा नीला - मुख्य रंग */
  --secondary-color: #4a69ff; /* थोड़ा और वाइब्रेंट नीला - एक्सेंट रंग */
  --accent-glow: rgba(74, 105, 255, 0.4); /* एक्सेंट रंग का ग्लो */
  --light-bg: #e5ecfb;     /* हल्का नीला बैकग्राउंड (आपके शिक्षा सेक्शन का) */
  --text-dark: #212529;        /* गहरा टेक्स्ट रंग, थोड़ा सॉफ्ट */
  --text-light: #555e68;       /* हल्का टेक्स्ट रंग, थोड़ा अधिक परिभाषित */
  --card-bg: #ffffff;       /* कार्ड का बैकग्राउंड */
  /* উন্নততর কার্ড শ্যাডো */
  --card-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.05);
  --card-shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 12px 35px rgba(74, 105, 255, 0.15), 0 5px 15px rgba(0,0,0,0.1);
  --border-radius-md: 12px; /* थोड़ा और राउंडेड */
  --border-radius-lg: 16px; /* बड़े एलिमेंट्स के लिए */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.25s ease-out;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: #f7f9fc; /* पूरे पेज के लिए थोड़ा बदला हुआ लाइट बैकग्राउंड */
}

/* === UNIVERSAL HEADING STYLES === */
.section-heading {
  font-size: clamp(2rem, 5vw, 2.8rem); /* रिस्पॉन्सिव फॉन्ट साइज */
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3.5rem; /* शीर्षक और कंटेंट के बीच अधिक जगह */
  font-weight: 700;
  position: relative;
  padding-bottom: 1.5rem; /* अंडरलाइन के लिए जगह */
  text-transform: uppercase;
  letter-spacing: 1.5px; /* थोड़ा अधिक लेटर स्पेसिंग */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section-heading span { /* शीर्षक में एक खास शब्द को हाईलाइट करने के लिए (वैकल्पिक) */
  color: var(--secondary-color);
}

.section-heading::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.5rem; /* थोड़ा ऊपर */
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  background-image: linear-gradient(to right, var(--secondary-color), var(--primary-color)); /* ग्रेडिएंट अंडरलाइन */
  border-radius: 5px;
  box-shadow: 0 3px 8px var(--accent-glow);
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px; /* छोटी लाइन */
  height: 3px;
  background-color: var(--primary-color);
  opacity: 0.7;
  border-radius: 3px;
}


/* === EDUCATION SECTION STARTS === */
.education {
  background: var(--light-bg); /* यह बैकग्राउंड फिक्स्ड रहेगा */
  min-height: 80vh;
  padding: 80px 20px; /* सेक्शन में ऊपर-नीचे ज्यादा पैडिंग */
  overflow: hidden; /* एनिमेशन और ओवरफ्लो कण्ट्रोल के लिए */
}

.education .qoute {
  font-size: clamp(1.3rem, 3vw, 1.6rem); /* रिस्पॉन्सिव */
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif; /* अधिक औपचारिक कोट फॉन्ट */
  font-weight: 500;
  margin-bottom: 4rem;
  color: var(--text-light);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  line-height: 1.6;
  position: relative;
  padding: 0 20px;
}

.education .qoute::before, .education .qoute::after {
  content: "“"; /* डबल कोटेशन मार्क */
  font-family: "Georgia", serif;
  font-size: 3.5rem;
  color: var(--secondary-color);
  opacity: 0.5;
  position: absolute;
  line-height: 1;
}
.education .qoute::before {
  top: -0.5rem;
  left: -0.5rem;
}
.education .qoute::after {
  content: "”";
  bottom: -1.5rem;
  right: -0.5rem;
}


.education .box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  flex-direction: column;
  gap: 3rem; /* बॉक्स के बीच और आकर्षक अंतर */
}

.education .box-container .box {
  display: flex;
  flex-direction: row;
  width: 90%;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius-lg); /* बड़ा रेडियस */
  box-shadow: var(--card-shadow-strong);
  text-align: left;
  position: relative;
  overflow: hidden; /* आवश्यक */
  background: var(--card-bg);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  transform-style: preserve-3d; /* 3D इफेक्ट्स के लिए */
  perspective: 1000px; /* 3D इफेक्ट्स के लिए पर्सपेक्टिव */
}

.education .box-container .box:hover {
  transform: translateY(-12px) scale(1.015) rotateX(3deg) rotateY(-2deg);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--secondary-color);
}

/* बॉक्स के अंदर एक डेकोरेटिव एलिमेंट */
.education .box-container .box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background-image: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 50%;
  opacity: 0.05; /* बहुत हल्का */
  transform: rotate(45deg);
  transition: var(--transition-smooth);
  pointer-events: none; /* इस पर क्लिक न हो सके */
}

.education .box-container .box:hover::before {
  opacity: 0.1;
  transform: scale(1.2) rotate(60deg);
}

.education .box-container .box .image {
  flex: 0 0 280px; /* इमेज के लिए थोड़ी अधिक निश्चित चौड़ाई */
  overflow: hidden;
  position: relative; /* ओवरले के लिए */
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); /* इमेज को थोड़ा स्टाइलिश कट दें */
  transition: clip-path 0.4s ease;
}

.education .box-container .box:hover .image {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* होवर पर सीधा */
}

.education .box-container .box .image::after { /* इमेज पर हल्का ग्रेडिएंट ओवरले */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(1, 41, 112, 0.05), rgba(74, 105, 255, 0.15));
  opacity: 0.8;
  transition: var(--transition-fast);
}

.education .box-container .box:hover .image::after {
  opacity: 0;
}

.education .box-container .box img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease-out;
  filter: grayscale(30%) contrast(0.95); /* थोड़ा डीसैचुरेटेड और कंट्रास्ट */
}

.education .box-container .box:hover img {
  transform: scale(1.12); /* होवर पर इमेज थोड़ा अधिक ज़ूम */
  filter: grayscale(0%) contrast(1);
}

.education .box-container .box .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem; /* कंटेंट के चारों ओर अधिक पैडिंग */
  flex: 1 1 auto;
  position: relative; /* z-index के लिए */
  z-index: 1;
}

.education .box-container .box .content h3 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--primary-color);
  padding-bottom: 0.5rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
  position: relative;
}
/* शीर्षक के नीचे एनिमेटेड अंडरलाइन */
.education .box-container .box .content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background-color: var(--secondary-color);
  transition: width 0.4s ease-out;
}
.education .box-container .box:hover .content h3::after {
  width: 50px; /* या 30% जैसा कुछ */
}

.education .box-container .box:hover .content h3 {
  color: var(--secondary-color);
  letter-spacing: 0.5px; /* होवर पर हल्का लेटर स्पेसिंग */
}

.education .box-container .box .content p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  text-align: left;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0; /* आखिरी पैराग्राफ के नीचे मार्जिन नहीं */
}

.education .box-container .box .content p:not(:last-child) {
    margin-bottom: 0.8rem; /* पैराग्राफ्स के बीच मार्जिन */
}

/* === ANIMATIONS (स्क्रॉल पर दिखने के लिए JS की आवश्यकता होगी) === */
/* यह एक उदाहरण है, आप इसे Intersection Observer API के साथ JS में लागू कर सकते हैं */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* स्टैगर्ड एनिमेशन के लिए */
.education .box-container .box {
  /*  (JS के साथ)
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: calc(0.15s * var(--animation-order, 0));
  */
}


/* === EDUCATION MEDIA QUERIES STARTS === */
@media screen and (max-width: 992px) {
  .education .box-container .box {
    width: 95%;
    /* टैबलेट पर क्लिप-पाथ बदल सकते हैं या हटा सकते हैं अगर अजीब लगे */
    .image {
       flex: 0 0 220px;
       clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    }
  }
  .education .box-container .box .content {
    padding: 2rem 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .section-heading {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
  }
  .section-heading::before {
    width: 90px;
    height: 5px;
  }
   .section-heading::after {
    width: 45px;
    height: 2.5px;
  }

  .education .qoute {
    margin-bottom: 3rem;
  }
   .education .qoute::before, .education .qoute::after {
     font-size: 2.8rem;
   }
  .education .qoute::before { top: -0.3rem; left: -0.3rem; }
  .education .qoute::after { bottom: -1rem; right: -0.3rem; }


  .education .box-container {
    gap: 2rem;
  }
  .education .box-container .box {
    flex-direction: column;
    width: calc(100% - 30px); /* थोड़ा मार्जिन रखने के लिए */
    margin-left: auto;
    margin-right: auto;
    transform: none !important; /* मोबाइल पर जटिल 3D होवर हटा दें */
    perspective: none;
  }
  .education .box-container .box:hover {
    transform: translateY(-8px) scale(1.01) !important; /* सरल होवर इफेक्ट */
    box-shadow: var(--card-hover-shadow) !important;
  }
  .education .box-container .box::before {
    display: none; /* मोबाइल पर डेकोरेटिव एलिमेंट हटा दें */
  }

  .education .box-container .box .image {
    width: 100%;
    height: 220px;
    flex-basis: 220px;
    clip-path: none !important; /* मोबाइल पर क्लिप-पाथ हटा दें */
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
   .education .box-container .box .image::after {
     background: linear-gradient(to bottom, rgba(1, 41, 112, 0), rgba(74, 105, 255, 0.1)); /* हल्का ओवरले */
   }

  .education .box-container .box img {
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    filter: grayscale(10%) contrast(1); /* मोबाइल पर थोड़ा कम फ़िल्टर */
  }
  .education .box-container .box:hover img {
    transform: scale(1.08);
  }

  .education .box-container .box .content {
    padding: 1.8rem;
  }
  .education .box-container .box .content h3::after {
    /* मोबाइल पर होवर अंडरलाइन को हमेशा दिखा सकते हैं या सरल रख सकते हैं */
    width: 40px;
  }
   .education .box-container .box:hover .content h3::after {
      width: 40px; /* होवर पर बदलाव नहीं */
   }
}


/* Additional enhancement for smooth animations */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
/* education media queries ends*/
/* education section ends */















/* work section starts */
.work {
  /* background: #010124; */
  background: linear-gradient(to bottom, #000031, #00002c);
}
.work h2 {
  color: #fff;
  padding: 1rem;
}
.work .heading span {
  color: rgb(255, 230, 0);
}
.work .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem;
}
.work .box-container .box {
  flex: 1 1 30rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  height: 30rem;
}
.work .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.work .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 85%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}
.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: #ffd900;
}
.work .box-container .box .content .tag h3 {
  font-size: 2rem;
}
.work .box-container .box:hover .content {
  top: 25%;
}
.work .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work .desc p {
  font-size: 1.5rem;
}
.work .desc .btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}
.work .desc .btns .btn {
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: #fff;
  background: rgb(12, 12, 12);
  margin-right: 2rem;
}
.work .desc .btns .btn:hover {
  background: #310ae0f5;
}
.work .viewall {
  display: flex;
  justify-content: center;
}
.work .viewall .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: rgb(255, 255, 255);
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0px 5px 10px rgba(65, 84, 241, 0.4);
  text-align: center;
}
.work .viewall .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}
.work .viewall .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.work .viewall .btn:hover {
  background: #fff;
  color: #000;
}
.work .viewall .btn:hover i {
  transform: translateX(5px);
}
/* work section ends */












/* experience section starts */
.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.experience .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}
.experience .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: rgb(255, 255, 255);
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  color: #02094b;
  font-family: "Font Awesome\ 5 Free";
}
.experience .left {
  left: 0;
}
.experience .right {
  left: 50%;
}
/* arrows pointing right */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #f68c09;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #f68c09;
}
/* arrows pointing left  */
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #f68c09;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f68c09 transparent transparent;
}
.experience .right::after {
  left: -16px;
}
.experience .content {
  background-color: #f68c09;
  position: relative;
  border-radius: 6px;
}
.experience .content .tag {
  font-size: 1.3rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}
.experience .content .desc {
  margin-left: 1.5rem;
  padding-bottom: 1rem;
}
.experience .content .desc h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
.experience .content .desc p {
  font-size: 1.2rem;
}
/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}
.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  text-align: center;
}
.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}
.morebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.morebtn .btn:hover {
  background: #1a047e;
}
.morebtn .btn:hover i {
  transform: translateX(5px);
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    min-height: 80vh;
  }
  .experience .timeline {
    margin-top: 2rem;
  }
  .experience .timeline::after {
    left: 31px;
  }
  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }
  .experience .container::after {
    font-size: 2.2rem;
  }
  .experience .container::before {
    left: 61px;
    border: medium solid #f68c09;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f68c09 transparent transparent;
  }
  .experience .left::after {
    left: 15px;
  }
  .experience .right::after {
    left: 15px;
  }
  .experience .right {
    left: 0%;
  }
  .morebtn {
    margin-top: 3rem;
  }
}
irection: row-reverse;
}
.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  transition: 0.3s ease;
  font-family: "Nunito", sans-serif;
}
.button-area button:hover {
  background: #421cecf5;
}
.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}
.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}
.button-area button:hover i {
  left: 8px;
}



















/* contact section starts */
.contact {
  background: #e5ecfb;
  min-height: 60vh;
}
.contact .container {
  max-width: 1050px;
  width: 100%;
  background: #fff;
  border-radius: 1.5rem;
  margin: 2rem 5rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}
.contact .content .image-box {
  max-width: 60%;
  margin-left: 4rem;
}
.contact .content .image-box img {
  width: 100%;
  height: 40rem;
  position: relative;
}
.contact .content form {
  width: 45%;
  margin-right: 3.5rem;
}
form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem;
  width: 100%;
}
form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: rgb(51, 51, 51);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}
form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  border: 1px solid rgb(51, 51, 51);
  background: #e5ecfb;
}
.field input::placeholder,
.message textarea::placeholder {
  color: rgb(51, 51, 51);
}
.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid rgb(115, 3, 167);
}
.field input:focus ~ i,
.message textarea:focus ~ i {
  color: rgb(115, 3, 167);
}
form .message {
  position: relative;
  margin: 1rem;
  width: 100%;
}
form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}
form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}
.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  transition: 0.3s ease;
  font-family: "Nunito", sans-serif;
}
.button-area button:hover {
  background: #421cecf5;
}
.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}
.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}
.button-area button:hover i {
  left: 8px;
}
/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
  }
  .contact .container {
    margin: 3rem 0 2rem 0;
  }
  .contact .container .content {
    padding: 18px 12px;
  }
  .contact .content .image-box {
    display: none;
  }
  .contact .content form {
    width: 100%;
    margin-right: 2rem;
  }
}





















/* contact section media queries ends */
/* contact section ends */

/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: rgb(0, 1, 43);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}
.footer .box-container .box a:hover {
  color: #ffae00;
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #ffae00;
}
.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}
.footer .credit a {
  color: #ffae00;
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 2rem;
  }
}
/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1s linear;
  z-index: 10001;
}
/* scroll top ends */
/* === Lucy Chat Section === */
/* === Lucy Chat Section === */
/* === Lucy Chat Section === */
/* === Lucy Chat Section === */
.chat-lucy{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:80px 20px;background:linear-gradient(135deg,#f5f7fa 0%,#e4e8f0 100%);
}
.lucy-wrapper{width:100%;max-width:1100px;text-align:center;}
.lucy-heading{font-size:clamp(2.5rem,5vw,4rem);font-weight:700;color:#2b3dda;}
.lucy-heading span{color:#ff595a;}
.lucy-tagline{font-size:1.1rem;color:#555;margin:1rem 0 2rem;}
.lucy-iframe{width:100%;max-width:950px;height:620px;border:2px solid rgba(43,61,218,.2);
             border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.08);}


/* Add these CSS rules to your style.css file */

/* Global Mobile Fixes */
* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

/* Enhanced Mobile Navbar */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  header {
    padding: 1rem 5%;
  }
  
  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 80%;
    height: 100vh;
    text-align: left;
    align-items: flex-start;
    background-color: rgba(14, 15, 49, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  header .navbar.nav-toggle {
    right: 0;
  }
}

/* Home Section Mobile Fixes */
@media (max-width: 768px) {
  .home {
    flex-direction: column;
    text-align: center;
    padding: 2rem 5%;
    min-height: 90vh;
  }
  
  .home .content {
    order: 2;
    margin-top: 2rem;
  }
  
  .home .image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .home .image img {
    width: 60%;
    margin-left: 0;
  }
  
  .home .content h2 {
    font-size: 3.5rem;
  }
  
  .home .content h2 span {
    font-size: 3.5rem;
  }
  
  .home .content p {
    font-size: 2rem;
  }
  
  .home .content p span {
    font-size: 2rem;
  }
  
  .socials {
    margin-top: 3rem;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .home .content h2,
  .home .content h2 span {
    font-size: 3rem;
  }
  
  .home .content p,
  .home .content p span {
    font-size: 1.8rem;
  }
  
  .home .image img {
    width: 70%;
  }
}

/* About Section Mobile Fixes */
@media (max-width: 768px) {
  .about {
    padding: 3rem 5%;
  }
  
  .about .row {
    flex-direction: column;
    margin: 0;
  }
  
  .about .row .image {
    padding: 2rem;
  }
  
  .about .row .content {
    padding: 2rem;
  }
  
  .info-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .info-box {
    flex: 1 1 100%;
  }
}

/* Skills Section Mobile Fixes */
@media (max-width: 768px) {
  .skills {
    padding: 3rem 5%;
  }
  
  .skills .container {
    width: 100%;
    margin: 1rem 0;
    padding: 1rem;
  }
  
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 450px) {
  .skills .container .row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Education Section Mobile Fixes */
@media (max-width: 768px) {
  .education {
    padding: 3rem 5%;
  }
  
  .education .box-container .box {
    flex-direction: column;
    width: 100%;
    margin: 1rem 0;
  }
  
  .education .box-container .box .image {
    width: 100%;
    height: 200px;
    clip-path: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }
  
  .education .box-container .box .content {
    padding: 1.5rem;
  }
  
  .education .qoute {
    font-size: 1.4rem;
    padding: 0 1rem;
  }
}

/* Work Section Mobile Fixes */
/* work section media queries */
@media (max-width: 768px) {
  .work .box-container {
    margin: 1rem;
  }
  
  .work .box-container .box {
    flex: 1 1 100%;
    margin-bottom: 2rem;
  }
  
  .work .box-container .box .content {
    top: 80%;
  }
  
  .work .box-container .box:hover .content {
    top: 20%;
  }
  
  .work .desc .btns {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
  }
  
  .work .desc .btns .btn {
    flex: 0 1 auto;
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 450px) {
  .work .box-container .box .content {
    padding: 1rem;
  }
  
  .work .box-container .box .content .tag h3 {
    font-size: 1.5rem;
  }
  
  .work .desc p {
    font-size: 1.3rem;
  }
  
  .work .desc .btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  
  .work .desc .btns .btn {
    flex: 1 1 calc(50% - 0.5rem);
    margin: 0;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
  }
}

/* EXPERIENCE SECTION - MAJOR MOBILE FIXES */
@media (max-width: 768px) {
  .experience {
    padding: 3rem 5%;
  }
  
  .experience .timeline {
    margin-top: 2rem;
    max-width: 100%;
  }
  
  .experience .timeline::after {
    left: 20px;
    width: 4px;
  }
  
  .experience .container {
    width: 100%;
    padding-left: 5rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .experience .container::after {
    font-size: 1.5rem;
    width: 20px;
    height: 20px;
    left: 10px;
    right: auto;
    border-width: 3px;
  }
  
  .experience .container::before {
    left: 45px;
    border: medium solid #f68c09;
    border-width: 8px 8px 8px 0;
    border-color: transparent #f68c09 transparent transparent;
  }
  
  .experience .left::after,
  .experience .right::after {
    left: 10px;
  }
  
  .experience .right {
    left: 0%;
  }
  
  .experience .left::before,
  .experience .right::before {
    left: 45px;
    border: medium solid #f68c09;
    border-width: 8px 8px 8px 0;
    border-color: transparent #f68c09 transparent transparent;
  }
  
  .experience .content {
    margin-left: 0;
  }
  
  .experience .content .tag {
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  .experience .content .desc {
    margin: 1rem;
    padding-bottom: 1rem;
  }
  
  .experience .content .desc h3 {
    font-size: 1.3rem;
  }
  
  .experience .content .desc p {
    font-size: 1.1rem;
  }
}

@media (max-width: 450px) {
  .experience .timeline::after {
    left: 15px;
  }
  
  .experience .container {
    padding-left: 4rem;
  }
  
  .experience .container::after {
    left: 5px;
    font-size: 1.3rem;
    width: 18px;
    height: 18px;
  }
  
  .experience .container::before {
    left: 40px;
    border-width: 6px 6px 6px 0;
  }
  
  .experience .left::after,
  .experience .right::after {
    left: 5px;
  }
  
  .experience .left::before,
  .experience .right::before {
    left: 40px;
    border-width: 6px 6px 6px 0;
  }
}

/* Contact Section Mobile Fixes */
@media (max-width: 768px) {
  .contact {
    padding: 3rem 5%;
  }
  
  .contact .container {
    margin: 1rem 0;
    width: 100%;
    border-radius: 1rem;
  }
  
  .contact .container .content {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  
  .contact .content .image-box {
    display: none;
  }
  
  .contact .content form {
    width: 100%;
    margin: 0;
  }
  
  .form-group .field {
    margin: 0.5rem 0;
  }
  
  form .message {
    margin: 0.5rem 0;
  }
}

/* Footer Mobile Fixes */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 5%;
  }
  
  .footer .box-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer .box-container .box {
    margin: 1rem 0;
  }
  
  .footer .box-container .box .share {
    justify-content: center;
  }
}

/* General Mobile Spacing Fixes */
/* Mobile Overflow and Scrolling Fixes */
@media (max-width: 768px) {
  /* Fix scrolling */
  html {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    position: relative;
  }
  
  /* Fix sections */
  section {
    overflow: visible;
    width: 100%;
  }
  
  /* Ensure particles don't interfere */
  .home #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
  }
  
  /* Fix z-index for home content */
  .home .content,
  .home .image,
  .socials {
    position: relative;
    z-index: 1;
  }
}

/* Lucy Chat Section Mobile Fixes */
@media (max-width: 768px) {
  .chat-lucy {
    padding: 3rem 5%;
  }
  
  .lucy-iframe {
    height: 500px;
    border-radius: 8px;
  }
  
  .lucy-heading {
    font-size: 2.5rem;
  }
  
  .lucy-tagline {
    font-size: 1rem;
  }
}

@media (max-width: 450px) {
  .lucy-iframe {
    height: 400px;
  }
  
  .lucy-heading {
    font-size: 2rem;
  }
}

/* Fix for overlapping content */
@media (max-width: 768px) {
  * {
    overflow-wrap: break-word;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .container, .box-container, .content {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Prevent horizontal scrolling */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  section {
    max-width: 100vw;
    overflow-x: hidden;
  }
}


/* Ensure images resize properly */
.hero img {
  width: 100%;
  height: auto;
  object-fit: contain; /* or cover if you want full cover effect */
}

/* Ensure content does not overlap */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-section h1,
.hero-section p {
  margin: 10px 0;
}

/* Avoid overlapping icons on mobile */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 20px;
  }

  .hero img {
    max-width: 90%;
  }

  .about-me {
    padding: 20px;
    font-size: 16px;
  }
}

body, html {
  scroll-behavior: smooth;
  will-change: scroll-position;
}
.smooth-element {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain; 
  }

  .hero-content {
    width: 100%;
    padding-top: 15px;
  }
}
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column; /* side by side se vertically stack kar dega */
    padding: 20px;
  }

  .hero-image img {
    width: 100%; /* image poori width lega mobile pe */
    height: auto;
  }

  .hero-content {
    width: 100%;
    text-align: center; /* text center align ho jaye */
    padding-top: 20px;  /* thoda gap image aur text me */
  }
}

/* Additional Mobile Fixes */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Fix section padding */
  section {
    padding: 5rem 2rem 2rem;
    overflow-x: hidden;
  }
  
  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Fix z-index issues */
  .home #particles-js {
    z-index: -1;
  }
  
  .home .content,
  .home .image {
    z-index: 2;
    position: relative;
  }
  
  /* Ensure social icons don't overlap */
  .socials {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 1rem;
  }
  
  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
  }
  
  .social-icons li {
    margin: 0;
  }
}

@media (max-width: 450px) {
  /* Very small screens */
  section {
    padding: 5rem 1rem 2rem;
  }
  
  .heading {
    font-size: 2.5rem;
  }
  
  /* Fix button sizes on small screens */
  .btn {
    padding: 1rem 2rem;
    font-size: 1.3rem;
  }
  
  .btn span {
    font-size: 1.3rem;
  }
  
  .btn i {
    font-size: 1.2rem;
  }
}

/* === Internal Project Modal === */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.7);z-index:9999;}
.modal.open{display:flex;}
.modal-box{background:#fff;border-radius:8px;padding:2rem;max-width:90%;text-align:center;font-family:inherit;}
.modal-box h3{margin-bottom:.8rem;color:#8a2be2;font-size:1.6rem;}
.modal-box button{margin-top:1rem;padding:.6rem 1.4rem;border:none;border-radius:6px;background:#8a2be2;color:#fff;font-size:1rem;cursor:pointer;}


/* === Mobile ≤768px tweaks === */
@media(max-width:768px){
  .about .row{flex-direction:column;align-items:center;text-align:center;}
  .box-container{display:block;}
  .box,.grid-item{width:100%!important;margin:0 0 1.2rem 0!important;}
  header nav{display:none;}
  header nav.open{display:block;position:absolute;top:100%;left:0;width:100%;background:#fff;box-shadow:0 2px 10px #0002;}
  header nav ul{flex-direction:column;align-items:center;}
  header nav li{margin:1rem 0;}
}

/* ====== COMMON MOBILE RESET ====== */
@media (max-width: 768px) {
  html, body {
    font-size: 55% !important;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100vw;
  }
  section {
    padding: 2.5rem 1rem !important;
    max-width: 100vw;
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* ====== NAVBAR ====== */
@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
    height: 6.5rem;
  }
  #menu {
    display: block;
  }
  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 80vw;
    height: 100vh;
    background: #0e0f31;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: right 0.3s;
    z-index: 99;
  }
  header .navbar.nav-toggle {
    right: 0;
  }
  header .navbar ul {
    flex-direction: column;
    width: 100%;
    padding: 2rem 0;
  }
  header .navbar ul li {
    width: 100%;
    text-align: left;
    margin: 1rem 0;
  }
  header .navbar ul li a {
    color: #fff;
    font-size: 2rem;
    width: 100%;
    display: block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    background: #011aff;
    color: #fff;
  }
}

/* ====== HOME SECTION ====== */
@media (max-width: 768px) {
  .home {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    min-height: 90vh !important;
    padding: 8rem 1rem 2rem !important;
    gap: 2rem;
  }
  .home .image img {
    width: 170px !important;
    margin: 0 auto !important;
    display: block;
  }
  .home .content
@media (max-width: 768px) {
  .hide-mobile-after-tagline {
    display: none !important;
  }
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  img, iframe {
    max-width: 100% !important;
    height: auto;
    display: block;
  }
}
