* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
  background-color: #f9fafb;
  color: #1e293b;
}

.dark-mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
}

/* header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: #1e293b;
  position: relative;
} */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: #1e293b;
  position: fixed; 
  top: 0; /* Ensures it stays at the top */
  width: 100%; /* Ensures the header spans the full width of the viewport */
  z-index: 1000; /* Keeps the header above other elements */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #38bdf8;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover{
  padding: 10px;
  /* color: #38bdf8; */
  font-size: 1rem;
  border: 1px solid #334155;
  border-radius: 20px;
  flex: 1;
  background-color: #38bdf8;
  color: #e2e8f0;
  transition: background-color 0.3s, color 0.3s;
}

header .actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dark-mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: #e2e8f0;
  border-radius: 5px;
  transition: background-color 0.3s;
}



/* Responsive Styles */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #1e293b;
    width: 100%;
    display: none;
  }

  nav a {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #2d3748;
  }

  nav.show {
    display: flex;
  }

  .hamburger-menu {
    display: flex;
  }
}




/* Project page css */

#projects {
  /* background-color: #2b407d; */
  padding: 60px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #1d4ed8;
  margin-bottom: 10px;
}

.section-header p {
  color: #64748b;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Project Cards */
.project-cards {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.project-card {
  /* background: #ffffff; */
  background: #1e293b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  width: 30%;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  color: #facc15;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-card p {
  color: #f3f5f7;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-icons img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.project-card span {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 10px;
}

.project-card {
  text-align: center; /* This centers inline-block children */
}


.tech-stack span {
  display: inline-block;
  background: #2563eb; /* Blue tags */
  color: #f1f5f9;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* More Projects Button */
.more-projects{
  padding-top: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 20px;
}
.more-projects .but1 {
  display: inline-block;
  background-color: #1d4ed8;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 30px;
  transition: background 0.3s;
}

.more-projects .but1:hover {
  background-color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-card {
    width: 100%;
  }
} 










/* Education page */
main.content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px); 
  text-align: center;
}

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

.hero .left {
  max-width: 50%;
}

.hero .left h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #38bdf8;
}

.hero .left .changing-text {
  font-size: 2.5rem;
  font-weight: bold;
}

.hero .left p {
  margin: 20px 0;
  line-height: 1.8;
}

.hero .left .subscribe-input {
  display: flex;
  gap: 10px;
}

.hero .left input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #334155;
  border-radius: 20px;
  flex: 1;
  background-color: #1e293b;
  color: #e2e8f0;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode .hero .left input {
  background-color: #fff;
  color: #1e293b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse; /* Stack content vertically */
    text-align: center;
  }

  .hero .left, .hero .right {
    max-width: 100%;
  }

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

  .hero .left p {
    font-size: 1rem;
  }

  .hero .right img {
    width: 80%;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .hero .left h1 {
    font-size: 1.8rem;
  }

  .hero .left p {
    font-size: 0.9rem;
  }

  .hero .right img {
    width: 100%;
  }

  .hero .left input {
    font-size: 0.9rem;
  }
}

.hero .right1 img{
  width: 80%;
}



.education-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 50px;
  position: relative;
  padding: 20px;
  height: calc(100vh - 80px);
  /* justify-content: space-between; */
  /* gap: 500px;  */
}

.text-content {
  max-width: 50%;
}

.text-content h1 {
  font-size: 3rem;
  color: #0d47a1;
  margin-bottom: 10px;
}

.text-content p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 20px;
}

.icon-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.icon-container img {
  max-width: 50px;
  transition: transform 0.3s;
}

.icon-container img:hover {
  transform: scale(1.1);
}

.image-content img {
  max-width: 500px;
}

.background-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.background-decorations span {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: #ffcccb;
  border-radius: 50%;
  animation: float 5s infinite ease-in-out;
}

.background-decorations span:nth-child(1) {
  top: 15%;
  left: 25%;
  animation-duration: 4s;
}

.background-decorations span:nth-child(2) {
  top: 45%;
  left: 65%;
  animation-duration: 6s;
}

.background-decorations span:nth-child(3) {
  top: 75%;
  left: 35%;
  animation-duration: 5s;
}

@keyframes float {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-20px);
  }
}



.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Education section styling */
.section-title {
  text-align: center;
  color: #0ef;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 600;
}

.education-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.education-header {
  background-color: #7aaac5;
  color: #112f3b;
  padding: 20px;
  position: relative;
}

.education-header h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.education-header h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.year-tag {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1.1rem;
}

.education-body {
  padding: 25px;
  display: flex;
}

.logo-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 25px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-container img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.education-content {
  flex-grow: 1;
}

.education-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  color: #1e293b;
}

.education-item:last-child {
  margin-bottom: 0;
}

.bolt-icon {
  color: #ff8c00;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.education-text {
  flex-grow: 1;
}

.visit-btn {
  display: inline-block;
  background-color: #7aaac5;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  float: right;
  transition: background-color 0.3s;
  margin-top: 15px;
}

.visit-btn:hover {
  background-color: #5c8ba8;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Responsive design */
@media (max-width: 768px) {
  .education-header {
      text-align: center;
  }
  
  .year-tag {
      position: static;
      display: block;
      text-align: center;
      margin-top: 10px;
  }
  
  .education-body {
      flex-direction: column;
      align-items: center;
  }
  
  .logo-container {
      margin-right: 0;
      margin-bottom: 20px;
  }
}

/* Certification Style */
.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Certifications section styling */
.portfolio-heading {
  text-align: center;
  color: #0ef;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 600;
}

.cert-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.cert-header {
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.cert-header img {
  max-width: 250%;
  max-height: 150%;
  object-fit: contain;
}

.cert-body {
  background-color: #fff;
  padding: 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-name {
  font-size: 1.2rem;
  color: #0a2558;
  margin-bottom: 5px;
  font-weight: 600;
}

.cert-author {
  color: #888;
  font-size: 0.95rem;
}

/* Background colors for different certification providers */
.bg-stanford {
  background-color: #b56357;
}

.bg-deeplearning {
  background-color: #5a5a5a;
}

.bg-google {
  background-color: #5bba7d;
}

.bg-ibm {
  background-color: #6da6de;
}

.bg-microsoft {
  background-color: #e58a68;
}

.bg-tensorflow {
  background-color: #5a5a5a;
}

.bg-fullstack {
  background-color: #1e73be;
}

/* Responsive design */
@media (max-width: 992px) {
  .cert-container {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .cert-container {
      grid-template-columns: 1fr;
  }
}


/* Footer Styles */
footer {
  background-color: #1e293b;
  color: #e2e8f0;
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
}

footer .footer-content p {
  margin: 0;
  font-size: 1.2rem;
}

footer .heart {
  color: #ff4e00; /* Heart color */
  font-size: 1.5rem;
  animation: heart-beat 1s infinite;
}

@keyframes heart-beat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

body.light-mode footer {
  background-color: #f3f4f6;
  color: #1e293b;
}



/* Services page */
.ti{
  align-items: center;
  justify-items: center;
  font-size: 60px;
  color:#0284c7;
}

.animate__animated {
  animation-delay: 0.3s;
  animation-duration: 3s;
}

.education-item1 {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
}

.light-mode .education-item1{
  color: #1e293b;
}