*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    
}


body{
    background: #080808;
    color: #fff;

}



#header{
    width: 100%;
    min-height: 100vh;
    background-image: url('images/cover.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.container1{
    padding: 10px 10%;

}

nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #080808;
    padding: 10px 20px;
    border-radius: 25px;
    height: 60px;
    position: fixed;
    top: 0;
    width: 90%;
    z-index: 1000;


}

.logo {
  list-style: none;
    width: 200px;
    margin-left: 0px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #888;
    text-decoration: none;
}

a {
  text-decoration: none;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

nav ul li {
     display: inline-block;
     list-style: none;
     margin: 10px 20px;
}

nav ul li a{
    color:#fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    font-family: montserrat;
    font-weight: bold;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff9900;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;

}

.robot {
  position: relative;
  width: 200px;
  height: auto; /* <-- make it flexible */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px; /* optional, to give some breathing room */
}

.robot-base {
  width: 100%;
  height: auto;
  display: block;
}

.eye {
  position: absolute;
  width: 20px;
  height: 30px;
  background-color:  #ff014f;
  border-radius: 50%;
  z-index: 10;
  transition: transform 0.1s ease-out;
}

/* Adjust these positions based on where your eyes should be */
.left-eye {
  top: 90px;
  left: 60px;
}

.right-eye {
  top: 90px;
  left: 120px;
}

@keyframes jump {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-40px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.robot-head.jump {
  animation: jump 0.6s ease;
}

button {
    color: #fff;
    background-color: #ff014f;
    padding: 10px;
    font-family:sans-serif;
    font-size: 20px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
}


.header-text{
    margin-top: 10%;
    font-size: 30px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.header-text h1{
    font-size: 60px;
    margin-top: 20px;
    font-weight: bold;
}

.fullname{
    color: #ff014f;
}

#dynamic-role{
    color: chartreuse;
    font-weight: bold;
    overflow: hidden; /* Ensures the text is hidden when not animating */
    white-space: nowrap; /* Prevents text from wrapping */
    animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite;
}

.cursorblinker{
    color: white;
    display: inline-block;
    width: 5px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
    font-weight: bold;
    animation: blink 1s infinite;
}

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

.aboutMe{
    font: 18px Poppins, sans-serif;
}



.container1{
    padding: 10px 10%;

}


.container2{
    padding: 10px 10%;
}

.features h3{
    color: #ff014f;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.features h1{
    color: #fff;
    font-weight: bold;
    font-size: 3rem; 
    margin-bottom: 20px; 
    
}

.feature-box {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}


.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 20px;
    background-color: black;
    color: #ffffff;
    
  }
  
  
  .feature-box {
    background-color: #1a1a1a; 
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
 
  .feature-box h3 {
    color: #ff4a57;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .feature-box p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .feature-box {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 15px gray; 
}


.container3{
    padding: 10px 10%;
}



.projects{
    text-align: center;
}

.projects h3{
   color: #ff014f;
}
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.project-box {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  width: 30%;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.github-icon {
  display: block;
  margin: 10px auto;
  font-size: 24px;
  color: #ffffff;
  text-decoration: none;
}
.github-icon:hover {
  color: #0366d6;
}
  
 
  .project-box h3 {
    color: #ff4a57;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .project-box p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .project-box {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px grey;
}


 .my-skills-heading {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #ff014f;
  margin-top: 50px;
}
 .separator-line {
  width: 60%;
  height: 1px;
  background-color: #ddd;
  margin: 30px auto;
}

.skills-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 50px;
}

.skill-section {
  width: 30%;
}

.skill-section h2 {
  margin-bottom: 20px;
}

.skill {
  margin-bottom: 20px;
}
.percentage {
  font-size: 14px;
  color: greenyellow;
  margin-bottom: 5px;
}

.skill p {
  margin-bottom: 5px;
}

.skill-bar {
  width: 50%;
  height: 15px;
  border-radius: 5px;
  background: #f0f0f0;
}

.skill-bar span {
  display: block;
  height: 100%;
  border-radius: 5px;
}

.blue {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.red {
  background: linear-gradient(90deg, #ff4b5c, #ff2d55);
}

.AI {
  background: linear-gradient(180deg, #b284be, #6a5acd, #c54b8c);
}


.profile-card {
  display: flex;
  justify-content:space-around;
  align-items: center;
  margin: 50px 0;
  background-color:#f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 480px;
  height: 250px;
  padding: 5px;
  text-align: center;
  margin-top: auto; 
  margin-bottom: 30px;
  margin-left:710px;
  object-fit: cover;
}

.profile-card img {
  border-radius: 15%;
  width: 170px;
  height: 170px;
  object-fit: cover;
  margin-bottom: 20px;
}

.profile-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.profile-card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.social-links a {
  font-size: 24px;
  margin: 0 10px;
  color: #555;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ff014f; 
}


.copyright {
  text-align: center;
  font-size: 14px;
  color: white;
  margin-top: 50px;
  padding: 20px;
  background-color: black;
}

.copyright a {
  color: #888;
  text-decoration: none;
}

.copyright a:hover {
  color: #ff014f;
}


.project-box {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  width: 30%;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.3s ease;
}

.expanded .project-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.hidden-text {
  display: none;
}

.github-icon {
  margin-top: 10px;
}

.show-more-btn {
  display: block;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #ff8c00;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: 0.3s ease-in-out;
}

.show-more-btn:hover {
  background-color: #d97800;
}



/* Disabled Download CV Button */
.disabled-button {
  background-color: grey;
  color: white;
  cursor: not-allowed;
  border: none;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 25px;
  position: relative;
  transition: background-color 0.3s ease;
}

/* Tooltip on hover */
.disabled-button:hover::after {
  content: "Hello, Please contact me for my CV";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -35px;
  background-color: white;
  color: black;
  padding: 20px 12px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.disabled-button:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Light and Dark mode button */

/* Light and Dark Mode Styling */
.light-mode {
    background: #f5f5f5;
    color: #000;
}

.light-mode nav {
    background: #fff;
}

.light-mode .logo {
    color: #333;
}

.light-mode .nav-links li a {
    color: #000;
}

.light-mode .feature-box,
.light-mode .project-box {
    background-color: #fff;
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.light-mode .profile-card {
    background-color: #ddd;
}

.light-mode .copyright {
    background-color: #fff;
    color: #000;
}

/* Toggle Button Styling */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffcc00;
    position: absolute;
    right: 30px;
    top: 15px;
}

.theme-toggle i {
    transition: transform 0.3s ease-in-out;
}

/* Rotate effect when switching */
.light-mode #theme-icon {
    transform: rotate(180deg);
    color: #333;
}

/* Voice Control bot */
/* Tooltip for Mobot button */
.voice-button {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.voice-button::after {
  content: "I'm Still getting trained";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -35px;
  background-color: white;
  color: black;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
}

.voice-button:hover::after {
  opacity: 1;
  visibility: visible;
}

/* For Mobile View */
@media (max-width: 768px) {
  .voice-button {
      width: 90%;
      font-size: 14px;
  }
}





@media (max-width: 480px) {

  #header{
  width: 100%;
  height: auto;
  background-image: url('images/cover.png');
  }

  .logo {
    display: none;
}

  .hamburger {
    display: block;
}

.nav-links {
    display: none;
    flex-direction: column;
    background-color: #080808;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px 0;
}

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

.nav-links li {
    margin: 10px 0;
    text-align: center;

}

  .header-text h1 {
    font-size: 24px;
  }
  .features-container, .projects-container, .skills-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .profile-card {
    width: 100%;
    margin: 10px auto;
  }
  button {
    width: 100%;
    font-size: 16px;
  }
}


@media (min-width: 481px) and (max-width: 768px) {


  .hamburger {
    display: block;
}

.nav-links {
    display: none;
    flex-direction: column;
    background-color: #080808;
    position: absolute;
    top: 60px; 
    right: 0;
    width: 100%; 
    padding: 10px 0;
}

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

.nav-links li {
    margin: 10px 0;
    text-align: center;

}
  .header-text h1 {
    font-size: 32px;
  }
  .features-container, .projects-container, .skills-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .profile-card {
    width: 80%;
    margin: 20px auto;
  }
  button {
    width: 100%;
    font-size: 18px;
  }
}


@media (min-width: 769px) and (max-width: 1200px) {
  nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 5%;
  }

  .logo {
    width: 200px; 
    flex-shrink: 0; 
  }

  nav ul {
    display: flex;
    flex-direction: row; 
    justify-content: flex-end;
    flex-grow: 1;
    margin: 0;
  }

  nav ul li {
    margin: 10px 15px; 
    font-size: 16px; 
    white-space: nowrap; 
  }

  .header-text h1 {
    font-size: 40px;
  }

  .features-container,
  .projects-container,
  .skills-container {
    gap: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .profile-card {
    width: 70%;
    margin: 30px auto;
  }

  button {
    width: auto;
    font-size: 20px;
  }
}

@media (min-width: 1201px) and (max-width: 1599px) {

  .logo {
    width: 200px;
  }

  .header-text h1 {
    font-size: 40px;
  }
  .features-container, .projects-container, .skills-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  .profile-card {
    width: 60%;
    margin: 40px auto;
  }
  button {
    width: auto;
    font-size: 22px;
  }
}

/* Adjustments for Responsive Views */
@media (max-width: 768px) {
  .disabled-button {
      font-size: 16px;
      padding: 8px 15px;
  }
}

@media (max-width: 1080px) {
  .robot {
    width: 16px;
    padding-top: 10px;
  }
}

@media (max-width: 1380px) {
  .robot {
    width: 160px;
    padding-top: 10px;
  }
}
