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

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}
a{
  text-decoration: none ;
  color:#fff;
  transition:0.3s; 
}
ul{
  list-style:none;
}
img{
  max-width: 100%;
}
body{
  font-family: 'Lexend', sans-serif;
  font-size:16px;
  line-height:24px; 
  background-color:#202020;
}
.container{
  width: 90%;
  max-width: 1170px;
  margin: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 100px; /* extra buffer for mobile */
  }
}


:root {
  --bg: #121212;
  --text: #ffffff;
  --accent: #fed700;
  --card-bg: #1f1f1f;
  --hover: #ffffff;
}

body.light {
  --bg: #ffffff;
  --text: #121212;
  --card-bg: #f5f5f5;
  --hover: #000000;
}
.scroll-offset {
  position: relative;
  top: -86px; /* height of your header */
  height: 0;
  visibility: hidden;
}


/* Header */
.header-area {
  background: var(--bg);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.logo img.signature {
  height: 40px;
  object-fit: contain;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

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

.hamburger {
  display: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  #nav-links.active {
    display: flex;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
}


/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 20px;
  cursor: pointer;
  margin-left: 20px;
}
.hero-section {
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typed-text {
  display: inline-block;
  word-break: break-word;
  white-space: normal;
  font-size: 2.5rem;
  color: var(--accent);
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.hero-left h1 {
  font-size: 2.8rem;
  color: #fed700;
}

.hero-left p {
  font-size: 1.1rem;
  color: #ccc;
  margin: 20px 0;
  max-width: 550px;
}

.btn-group {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.btn-group .btn {
  padding: 12px 24px;
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-group .btn:hover {
  background-color: #fed700;
  color: #000;
}

.btn-group .btn.active {
  background-color: #fed700;
  color: #000;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #e5e5e5;
  font-size: 22px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #fed700;
}

.hero-right img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid #333;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* ---------- Mobile Styles ---------- */
@media (max-width: 767px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .typed-text {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero-left {
    padding: 0 15px;
    width: 100%;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .hero-left p {
    font-size: 1rem;
    margin: 15px 0;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
  }

  .btn-group .btn {
    width: 80%;
    max-width: 260px;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-right img {
    width: 220px;
    height: 220px;
  }
}

.btn-group .btn {
  padding: 12px 24px;
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-group .btn:hover,
.btn-group .btn.active:hover {
  background-color: #fed700;
  color: #000;
  border-color: #fed700;
}

.btn-group .btn.active {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn:hover {
  background-color: #fed700;
  color: #000;
}

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

.social-icons a {
  margin-right: 12px;
  color: #e5e5e5;
  font-size: 22px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #fed700;
}

.hero-right img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px; /* or 50% if you want a circle */
  /* border: 3px solid var(--accent); */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.hero-right img:hover {
  transform: scale(1.05);
}

/* About */
.about-section {
  padding: 80px 0 40px;
}
.about-section h2 {
  font-size: 36px;
  color: #fed700;
  margin-bottom: 20px;
}
.about-section p {
  font-size: 18px;
  color: #ccc;
  line-height: 1.8;
}

/* Skills */
.skills-section {
  padding: 60px 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  text-align: center;
  margin-top: 20px;
}
.skill i {
  font-size: 36px;
  color: #fed700;
  margin-bottom: 10px;
}
.skill span {
  display: block;
  color: #fff;
  font-size: 14px;
}

/* Hobbies */
.hobbies-section {
  padding: 80px 0 60px;
  position: relative;
}

.hobby-tabs {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hobby-tabs .tab {
  padding: 10px 20px;
  border-radius: 20px;
  background: transparent;
  border: 2px solid #fed700;
  color: #fed700;
  cursor: pointer;
  font-weight: 500;
}

.hobby-tabs .tab.active {
  background: #fed700;
  color: #000;
}

.hobby-content {
  text-align: center;
  margin-top: 30px;
  color: #ccc;
}

.hobby-desc {
  font-size: 1.1rem;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hobby-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.carousel-btn {
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.3s ease;
}

.carousel-btn:hover {
  color: var(--text);
}

.carousel-media {
  max-width: 600px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.carousel-item {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active-dot {
  background: var(--accent);
}



.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.loaded {
  opacity: 1;
}



/*---------------------------HomePage--------------------------*/

.FirstElement{
   display:flex;
   justify-content: space-around;
   align-items: center;
   padding-top: 5rem; 
} 

.FirstElement.adjusted-padding {
  padding-top: 40px; 
}

.FirstElement .profile-photo{
  width: 300px;
  height:  300px;
  border-radius: 50%;
  overflow: hidden;
  border: 15px solid #444444;
  box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5)
}
profile-photo .img{
  height: 100%;
  width: 100%;
  transition: 0.5s;
}
.FirstElement .profile-photo img:hover{
  transform: scale(1.2);
}
.profile-text{
  max-width: 750px;
  display: flex;
  flex-direction: column;
}
.profile-text h5{
  color: #e5e5e5;
  font-size: 14px;
}
.profile-text h1{
  color: #fed700;
  font-size: 3rem; 
}
.profile-text p{
  color:#e5e5e5;
}
.profile-text .social i{
  color : #e5e5e5;
  font-size: 18px;
  margin-right: 10px;
  transition: 0.5s;
}
.profile-text .social i:hover{
  color:#fed700;
  transform: rotate(360deg);
}



 /*---------------------------About---------------------------*/

.about-area{
  padding-top: 130px;
  background-color: #202020;
}
.about{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom:50px;
}
.about-content{
  flex-basis: 60%;
}
.about-content h4{
  color: #fed700;
  font-size: 40px;
  line-height: 70px;
  text-transform: capitalize;
}
.about-content ul {
  color:#fff;
  text-align: justify;
}

.about-content ul li {
  list-style-type: disc;
  margin-bottom: 10px;
}

.about-skills{
  flex-basis: 35%;
}
.about-skills ul li{
  border-bottom: 1px dashed #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}
.about-skills ul li:last-child{
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}


/*---------------------------Button---------------------------*/

.btn-group {
  display: flex;
  gap: 10px;
  margin: 45px 0;
  /* DO NOT center by default */
}

.btn-group .btn {
  border: 2px solid #fff;
  color: #fff;
  background-color: transparent;
  padding: 12px 25px;
  border-radius: 30px;
  text-align: center;
  transition: 0.3s ease;
  font-weight: 600;
}

.btn-group .btn:hover {
  background-color: #fed700;
  color: #000;
}

/* Responsive: Stack buttons and center ONLY on small screens */
@media (max-width: 600px) {
  .btn-group {
    flex-direction: column;
    align-items: center;  /* center buttons only on mobile */
  }

  .btn-group .btn {
    width: 90%;
    max-width: 300px;
  }
}


.btn.active{
  border-color: #fed700;
}

/* Experience + Education */
.experience-section {
  padding: 80px 0;
}

.two-column {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.column {
  flex: 1;
  min-width: 300px;
}

.column h2 {
  color: #fed700;
  margin-bottom: 20px;
}

.research-heading {
  margin-top: 40px;
  font-size: 20px;
  color: #fed700;
  margin-bottom: 15px;
}

/* Accordion */
.accordion-item {
  margin-bottom: 10px;
  border: 1px solid #fed700;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  background: #202020;
  color: #fed700;
  padding: 15px;
  width: 100%;
  text-align: left;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  
  
}

.accordion-body {
  display: none;
  padding: 15px;
  background: #1a1a1a;
  color: #ccc;
  border-top: 1px solid #fed700;
  font-size: 14px;
  line-height: 1.6;
}

.accordion-item.active .accordion-body {
  display: block;
}
/* Company logo inside accordion */
.accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.company-logo:hover {
  transform: scale(1.05);
}


/* Skill list inside accordion */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 0;
}

.skill-list li {
  padding: 5px 12px;
  background-color: #333;
  border-radius: 20px;
  color: #fed700;
  font-size: 13px;
  list-style: none;
}
.skills-category {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.skill-box {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.skill-box h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 18px;
}

.skill-box ul {
  list-style: none;
  padding: 0;
}

.skill-box ul li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px dashed #444;
}

.skill-box ul li:last-child {
  border-bottom: none;
}


/*---------------------------Education & Internship---------------------------*/

.education-content .row{
  display: flex;
  border-radius: 5px;
  height: 400px;
  margin-bottom: 250px;
}

.education-content .title{
  color: #fed700;
}
.education-content .row .education,
.education-content .row .internship
{
  color: #e5e5e5;
  flex:0 0 50%;
  max-width: 50%;
  margin-top: 30px;
} 
.education-content  h3.title{
  font-size:24px;
  margin-bottom: 30px;
  font-weight: 700;
}
.education-content .row.timeline-box{
  flex:0 0 100%;
  max-width: 100%;  
}
.education-content .row .timeline{
  /* background-color:#e5e5e5; */
  padding: 30px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  width: 100%;
  position: relative;
}
.education-content .row .timeline-item{
  position:relative;
  padding-left: 37px;
  padding-bottom: 50px; 
}
.education-content .row  .internship .timeline-item{
  position:relative;
  padding-left: 37px;
  padding-bottom: 30px; 
}
.education-content .row .timeline-item:last-child{
  padding-bottom: 0;
}
.education-content .row .timeline-item::before{
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 7px;
  top: 0;
  background-color: #fed700;  
}
.education-content .row .circle-dot{
  position: absolute;
  left: 0;
  top: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #e5e5e5;
}
.education-content .row .timeline-title  {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.education-content .row .internship .timeline-title  {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.education-content .row .timeline-text{
  line-height: 25px;
  font-size: 16px;
  text-align: justify;
}



/* Projects */
.projects-section {
  padding: 80px 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.project-card {
  background: #1f1f1f;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #333;
}
.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
.project-card:hover {
  transform: scale(1.03);
}
.project-card h3 {
  color: #fed700;
  margin: 10px 0;
}
.project-img {
  width: 100%;
  height: auto; /* Let image height adjust automatically */
  object-fit: contain; /* Prevents cropping, shows entire image */
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background-color: #111; /* Optional: prevents transparency flicker */
  padding: 5px;
}
.project-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}

.project-card ul {
  text-align: left;
  color: #ccc;
  padding-left: 20px;
  margin-bottom: 10px;
}
.tech-icons i {
  font-size: 20px;
  color: #fed700;
  margin: 5px;
}
.btn-sm {
  margin-top: 10px;
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  background-color: #fed700;
  color: #000;
  border-radius: 20px;
  text-decoration: none;
}

/* Contact */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--text);
  background: var(--card-bg);
  padding: 12px 20px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.contact-item:hover {
  transform: scale(1.05);
}

.contact-item i {
  font-size: 22px;
  color: var(--accent);
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}


/* Footer */
.footer {
  /* background: #202020; */
  text-align: center;
  padding: 20px;
  color: #aaa;
  font-size: 14px;
}





 /*------------------- Responsive Design on small screen -------------------*/

/* Medium layout */
@media only screen and (min-width:1000px) and (max-width:1200px){
  .container{
    width: 970px;
  }
}

@media(max-width:1050px){
  .FirstElement{ 
    flex-direction: column;
    padding-top: 2rem;
  }
  .profile-text{
    padding: 40px 0px;
  }
}



/* tablet layout */
@media only screen and (min-width:768px) and (max-width:999px){
  .container{
    width: 750px;
  } 
}  

  /* Section Title Color Fixes using --accent */
.column h2,
.about-section h2,
.skills-section h2,
.hobbies-section h2,
.projects-section h2,
.contact-section h2,
.research-heading,
.education-content .title,
.education-content h3.title,
.about-content h4,
.hero-left h1,
.profile-text h1,
.project-card h3,
.accordion-header {
  color: var(--accent) !important;
}
.accordion-header,
.project-card {
  color: #ccc !important;
}
/* Mobile Layout */
@media only screen and (max-width:767px){
  .container{
    width: 350px;
  }

  .header .menu_icon {
    display: block;
  }
  .header ul{
    display: none;
  }
  .header i{
    color: #e5e5e5;
  }

  .profile-text{
    width: 350px;
  }
  .FirstElement .profile-text p{
    text-align: justify;
  }
  .about{
    flex-direction: column;
    flex-basis: 100%;
    margin-bottom: 30px;
  }
  .about-skills{
    width: 100%;
    margin-top: 30px;
  }
  .education-content .row {
    flex-direction: column;
    height: auto;
    margin-bottom: 50px;
  }

  .education-content .row .education,
  .education-content .row .internship {
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 30px;
  }
  .project{
    flex-basis: 100%;
    margin-bottom: 30px;
  }


}

