* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

body {
  background: #ffffff;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/*==============================  NAVBAR  ===============================*/

.header {
  width: 100%;
  height: 50px;
  background-color: rgb(246, 244, 244);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  z-index: 10;
}

.head {
  display: inline-flex;
  margin-left: 250px;
  font-size: 12px;
}

.header1 {
  color: rgb(247, 244, 244);
  margin-left: 40px;
  border: 1px;
  background-color: rgb(6, 137, 173);
  padding: 4px 8px;
  border-radius: 7px;
}

.header h2 {
  color: rgb(6, 137, 173);
  margin-left: 18px;
  margin-top: 6px;
}

#menu {
  display: flex;
  opacity: 1;
  pointer-events: all;
  gap: 20px;
}

#menu li {
  display: inline-block;
}

.menubtn,
.closebtn {
  display: none;
}

#menu.active {
  opacity: 1;
  pointer-events: all;
}

#menu li {
  list-style: none;
  display: inline-block;
  margin: 0px 20px;
  font-size: 15px;
}

#menu li a {
  text-decoration: none;
  color: rgb(0, 0, 0);
}

#menu li a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

#navbar {
  margin-right: 30px;
}

.closebtn, .menubtn {
  color: black;
  font-size: 28px;
  margin: 0 20px;
  display: none;
  cursor: pointer;
}

.closebtn {
  display: none;
}

/*============================   TOGGLE   =============================*/

.toggle-container {
  margin-left: auto; 
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toggle-container.hide {
  opacity: 0;
  visibility: hidden;
}

input#darkmode-toggle {
  display: none;
}

.toggle-container label {
  width: 60px;
  height: 30px;
  position: relative;
  display: inline-block;
  background: #ebebeb;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-container label:after {
  content: '';
  width: 26px;
  height: 26px;
  position: absolute;
  top: 2px;
  left: 2px; 
  background: linear-gradient(180deg, #ffcc89, #d8860b); 
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

label:active::after {
  transform: scale(1.05);
}

input:checked + label {
  background: #242424;
}

input:checked + label:after {
  left: calc(100% - 28px);
  background: linear-gradient(180deg, #777, #3a3a3a);
}

label svg {
  position: absolute;
  width: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  transition: fill 0.4s ease, opacity 0.4s ease;
}

label svg.sun {
  position: absolute;
  width: 16px;
  height: 16px;    
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  fill: #fff;
  transition: fill 0.3s;
  opacity: 1;
}

label svg.moon {
  position: absolute;
  width: 16px;
  height: 16px;      
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  fill: #7e7e7e;
  transition: fill 0.3s;
  opacity: 0.6;
}


input:checked + label svg.sun {
  fill: #7e7e7e;   
}

input:checked + label svg.moon {
  fill: #fff;       
}

#navbar {
  margin-right: 30px;
  display: flex;
  align-items: center;
  gap: 15px; 
}

/*============================   INTRO   =============================*/

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding-top: 80px;
  text-align: center;
  background: radial-gradient(rgb(183, 254, 254), white);
}

#intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hello {
  font-size: 20px;
  color: #287fa4;
  margin-top: 100px;
  margin-bottom: 30px;
}

.name {
  font-size: 80px;
  font-weight: bold;
  background: linear-gradient(270deg, #ff00cc, #3333ff, #00ffcc, #ff9900);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
  margin: 80px 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.typing-container {
  color: rgb(2, 2, 2);
  font-size: 30px;
  position: relative;
}

.cursor {
  display: inline-block;
  width: 2px;             
  height: 1.2em;          
  background-color: rgb(160, 250, 255);
  margin-left: 4px;
  vertical-align: bottom; 
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

#intro-details {
  max-width: 900px;
  margin: 80px auto;
  padding: 20px 30px;
  color: rgb(110, 110, 110);
  text-align: center;
  line-height: 1.6;
}

/*============================  ABOUT ME   ============================*/

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  background-color: rgb(245, 243, 243);
}

#about {
    margin-top: 30px;
}

.about h2 {
  font-size: 40px;
  text-shadow: 2px 2px 2px rgb(107, 107, 107);
}

.line {
  width: 0;
  height: 4px;
  background-color: rgb(6, 137, 173);
  margin: 10px auto 0;
  border-radius: 2px;
  animation: expandLine 1s ease forwards;
}

@keyframes expandLine {
  to {
    width: 100px;
  }
}

#about-me {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 30px;
  margin: 60px auto 20px;
  width: 60%;
  max-width: 900px;
  border: 1px solid silver;
  box-shadow: 0px 0px 5px 1px grey;
  background: #fff;
}

.about-me-details {
  font-size: 16px;
  color: darkslategrey;
  line-height: 1.6;
  margin-bottom: 30px;
}

#do-approach {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

.what-i-do {
  flex: 1;
  min-width: 250px;
}

.what-i-do h3 {
  font-size: 20px;
  padding-bottom: 10px;
}

.what-i-do-list {
  list-style-type: none;
  line-height: 1.8;
  color: darkslategrey;
}

.what-i-do-list span {
  color: rgb(17, 154, 142);
  padding-right: 10px;
}

.my-approach {
  flex: 1;
  min-width: 250px;
}

.my-approach p {
  margin-top: 8px;
  line-height: 1.6;
  color: darkslategrey;
}

/*====================  Experience & Other Sections  ====================*/

.exp {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  align-items: stretch; 
  gap: 30px; 
  width: 60%; 
  max-width: 900px; 
  margin: 60px auto; 
  box-sizing: border-box;
}

#experience, 
#projects-completed, 
#technologies, 
#commitment {
  flex: 1 1 150px; 
  max-width: 280px; 
  padding: 30px;
  border-radius: 12px;
  border: 1px solid silver;
  box-shadow: 0px 0px 5px 1px grey;
  background: #fff;
  color: darkslategrey;
  text-align: center;
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

#experience:hover,
#projects-completed:hover,
#technologies:hover,
#commitment:hover {
  transform: scale(1.02);
}

/*============================  Skills  =============================*/

#skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.skills-heading {
  margin: 30px;
}

#skills-heading {
  font-size: 40px;
  text-shadow: 2px 2px 2px rgb(107, 107, 107);
  margin-bottom: 10px;
}

#skills .line {
  width: 0;
  height: 4px;
  background-color: rgb(6, 137, 173);
  margin: 10px auto 40px;
  border-radius: 2px;
  animation: expandLine 1s ease forwards;
}

#skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;                      
  width: 70%;                      
  max-width: 900px;                
  margin: 0 auto;
  box-sizing: border-box;
}

.skills {
  flex: 1 1 230px;           
  min-width: 180px;          
  max-width: 290px;               
  height: 280px;                   
  background: #fff;
  border-radius: 10px;
  border: 1px solid silver;
  box-shadow: 0px 0px 5px 1px grey;
  padding: 1.8em;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.skills h3 {
  padding-bottom: 10px;
  white-space: nowrap;
  text-indent: -15px;
}

#skill1, #skill2, #skill3, #skill4 {
  line-height: 30px;
  color: rgb(110, 110, 110);
}

.skills:hover {
  transform: scale(1.03);
}

#dga:hover {
  background: linear-gradient(90deg, white, rgb(95, 240, 240));
}

#fed:hover {
  background: linear-gradient(180deg, white, rgb(244, 132, 244));
}

#pt:hover {
  background: radial-gradient(rgb(248, 239, 170), rgb(249, 110, 110));
}

#cec:hover {
  background: radial-gradient(rgb(175, 251, 171), rgb(255, 255, 255));
}

/*============================  Projects  ===========================*/

#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.projects-heading {
  margin: 30px;
}

#projects-heading {
  font-size: 40px;
  text-shadow: 2px 2px 2px rgb(107, 107, 107);
  margin-bottom: 10px;
}

#projects-container {
  display: flex;
  width: 70%;
  flex-wrap: wrap;
  flex: 1 1 250px;
}

.projects {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 2em;
  background: #ffffff;
  border-radius: 10px;
  position: relative;                   
  width: 50%;                      
  max-width: 900px;                
  margin: 20px auto;
  box-sizing: border-box;
}

@property --angle{
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.projects::after, .projects::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  background-image: conic-gradient(from var(--angle), #fff, cyan, rgb(242, 239, 30));
  border-radius: 10px;
  animation: 3s spin linear infinite;
}

@keyframes spin {
  from{
      --angle: 0deg;
  }
  to {
      --angle: 360deg;
  }
}

#project1 {
  text-align: left;
  line-height: 25px;
  margin-left: 5px;
  padding: 20px;
}

#project2 {
  text-align: left;
  line-height: 25px;
  margin-right: 5px;
  padding: 20px;
}

#project3 {
  text-align: left;
  line-height: 25px;
  margin-left: 5px;
  padding: 20px;
}

.projects::before {
    filter: blur(1.5rem);
    opacity: 0.5; 
}

.project-list li{
  list-style: none;
}

.images {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;          
  height: 250px;        
  overflow: hidden;     
  border-radius: 10px;
  position: relative;
}

.images img {
  width: 100%;
  height: 100%;
  object-fit: cover;    
  border-radius: 10px;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.images img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/*=======================  LET'S WORK TOGETHER  ======================*/

.form-section {
  position: relative;
  background: radial-gradient(lightgrey, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  width: 50%;
  height: auto;
  padding-top: 40px;
  padding-right: 40px;
  padding-bottom: 20px;
  padding-left: 40px;
}

.form-header p{
  padding: 20px;
}

.container {
  display: flex;
  flex-direction: row;
  width: 60%;
  height: auto;
  padding-top: 20px;
  padding-right: 40px;
  padding-bottom: 40px;
  padding-left: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 60%;
  height: auto;
  padding: 10px;
}

.contact-info h3 {
  padding-bottom: 20px;
}

.contact-info p {
  padding-bottom: 20px;
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center; 
  gap: 10px; 
}

.link {
  font-size: smaller;
}

.link a {
  font-size: 15px;
  color: black;
  text-decoration: none;
}

.contact-item svg {
  width: 30px;  
  height: auto;
  background-color: rgb(6, 139, 120);
  border-radius: 5px;
  color: #fff;
  margin: 0;
  padding: 5px;
  flex-shrink: 0; 
}

#item1 {
  margin-bottom: 20px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px; 
  padding: 20px;
  text-align: left;
  background-color: #fff;
  box-shadow: 0px 0px 5px 1px grey;
  border-radius: 10px;
  width: 40%;
}

.form-group label {
  display: block; 
  font-size: 15px;
  margin-bottom: -15px; 
}

.form input,
.form textarea {
  padding: 5px 10px;
  margin-top: 0px;
  border: 2px solid darkgrey;
  border-radius: 5px;
  font-size: 18px;
  width: 100%;
  box-sizing: border-box;
}

.form input:hover,
.form textarea:hover {
  border: 2px solid cyan;
}

.form input:focus,
.form textarea:focus {
  border: 2px solid #00bcd4; 
  box-shadow: 0 0 5px rgba(0, 188, 212, 0.5); 
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.submit {
  position: relative;
  font-size: 20px;
  background: rgb(6, 139, 120);
  color: #fff;
  border-radius: 5px;
  border-width: 0;
  padding: 10px 10px 10px 10px;
}

/*============================  Footer  ============================*/

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgb(239, 238, 238);
}

#contact-container {
  margin-top: 20px;
  margin-bottom: 20px;
}

#contact-paragraph {
  margin-top: 10px;
  margin-bottom: 20px;
  color: darkslategrey;
}

#contact-details {
  line-height: 30px;
}

a:hover {
  color: brown;
}

/*==========================  Scroll To Button  =========================*/

#scrollToTopBtn {
  position: fixed;
  bottom: 30px;  
  right: 30px;
  z-index: 100;
  width: 40px;       
  height: 40px;      
  background: linear-gradient(135deg, #ff00cc, #3333ff, #00ffcc, #ff9900);
  background-size: 400% 400%;
  color: white;
  border: none;
  border-radius: 50%; 
  cursor: pointer;
  font-size: 20px;   
  display: none;     
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, filter 0.3s;
  animation: gradientShiftBtn 6s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow {
  width: 22px;
  height: auto;
}

#scrollToTopBtn:hover {
  background-color: #017191;
  transform: scale(1.1);
}

@keyframes gradientShiftBtn {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/*======================  Responsive Adjustments  =======================*/

@media only screen and (max-width: 870px) {

  .head {
    display: flex;
    position: relative;
    margin-left: 20px;
  }

  .head h1 {
    margin-left: 0px;
    font-size: 20px;
  }

  .head h2 {
    font-size: 15px;
    margin-left: 10px;
  }

  #menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: rgba(255, 255, 255, 0.95);
    width: 60%;
    height: 100%;
    text-align: center;
    padding-top: 80px;
    flex-direction: column;
    transition: right 0.5s ease-in-out, opacity 0.4s ease-in-out;
  }

  #menu.active {
    right: 0;
  }

  #menu li {
    display: block;
    margin: 20px 0;
  }

  .menubtn {
    display: block;
  }

  .closebtn {
    position: fixed;
    top: 10px;
    right: 30px;
    z-index: 11;
    display: none;
  }

  .intro {
    height: auto;
    padding: 100px 20px;
  }

  .name {
    font-size: 50px;
  }

  #intro-details {
    margin: 30px 20px;
    padding: 10px;
  }

  #about-me {
    width: 90%;
    margin: 40px auto;
  }

  #do-approach {
    flex-direction: column;
  }

  .exp {
    width: 90%;
    margin: 40px auto;
    gap: 20px;
  }

  #experience, 
  #projects-completed, 
  #technologies, 
  #commitment {
  flex: 1 1 150px; 
  max-width: 180px;
}

  #skills-container {
    width: 90%;
    gap: 20px;
  }

  .skills {
    flex: 1 1 230px;
    padding: 1.5em;
  }

  #projects {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
    margin: 10px 0px;
  }

  #projects-container {
    display: flex;
    position: relative;
    width: 90%;
  }

  .images {
    position: relative;
    width: 100%;
    height: auto;
  }

  #image1 {
    width: 100%;
    height: auto;
  }

  .form-header {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 90%;
  }

  .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    height: auto;
    padding: 0px;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 50%;
    height: auto;
    padding: 0px 10px 0px;
  }

  .form {
    display: flex;
    flex-wrap: wrap;
    width: 50%;
    height: auto;
  }

}

/*==========================  DARK MODE  ==========================*/

body.dark-mode {
  background-color: #141414;
  color: #e0e0e0;
}

/*=========================  HEADER AND FOOTER  =========================*/

body.dark-mode .header {
  background-color: #001c1cfe;
}
body.dark-mode #menu li a {
  color: #e0e0e0;
}
body.dark-mode #menu li a:hover {
  color: #80dfff;
}

/*=========================  SECTIONS  =========================*/

body.dark-mode .intro {
  background: radial-gradient(rgb(0, 107, 131), #0c191f);
}

body.dark-mode .about,
body.dark-mode footer {
  background-color: #00161f;
}

/*=======================  Cards and Containers  ========================*/

body.dark-mode #about-me,
body.dark-mode .skills,
body.dark-mode #experience,
body.dark-mode #projects-completed,
body.dark-mode #technologies,
body.dark-mode #commitment,
body.dark-mode .projects {
  background-color: #1f1f1f;
  color: #e0e0e0;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
  border-color: #333;
}

/*=======================  LINES AND HIGHLIGHTS  ========================*/

body.dark-mode .line {
  background-color: #00bcd4;
}

/*=========================  SCROLL TO BUTTON  =========================*/

body.dark-mode #scrollToTopBtn {
  background: linear-gradient(135deg, #00bcd4, #4caf50);
}

/*=========================  LINKS  =========================*/

body.dark-mode a {
  color: #00bcd4;
}
body.dark-mode a:hover {
  color: #4caf50;
}

/*======================  TYPING TEXT AND CURSOR  =======================*/

body.dark-mode #typed-text {
  color: #80dfff;
}
body.dark-mode .cursor {
  background-color: #00bcd4;
}
