* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-color: #00b894;
  --secondary-color: #53ecbf;
  --color: #f9f9f9;
}
html {
  scroll-behavior: smooth;
}


body {
  font-family: "poppins", sans-serif;
  line-height: 1.6;
}
header {
  background: #00b894;
  color: #f9f9f9;
  padding: 10px 0;
  text-align: center;
  padding: 1rem;
  width: 100%;
  position: sticky;
  top: 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.46);
  z-index: 999;
}
nav {
  display: flex;
  justify-content: space-between;
  margin: 1rem;
  gap: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-links > li > a {
  text-decoration: none;
  list-style: none;
  color: white;
}
.hero {
  display: flex;
  height: 90vh;
  justify-content: space-around;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(to right, #f9f9f9, #e0f7fa);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.46);

  gap: 1rem;
}
.hero-img {
  position: relative;
}
.image {
  object-fit: cover;

  border-radius: 50%;
  box-shadow: 0 0 80px aqua;
  animation: float 3s ease-in-out infinite;
  filter: grayscale(0.2) contrast(1.1);
}

.content h2 {
  font-size: 4.5rem;
  margin-bottom: rem;
  line-height: 100px;
}
.content p {
  font-size: 1.5rem;
  line-height: 7rem;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-right: 1rem;
}

.about-section {
  background: linear-gradient(to right, #f9f9f9, #e0f7fa);
  padding: 4rem 2rem;
}

#about , #home ,#projects, #timeline, #contact {
  scroll-margin-top: 85px; /* Adjust this to your navbar height */
}
.about-content {
  max-width: 800px;
  margin: auto;
  text-align: left;
}

.about-content h2 {
  font-size: 2.2rem;
  color: #2d3436;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2d3436;
}

.skills {
  margin: 1rem 0;
}

.badge {
  background: #00b894;
  color: white;
  padding: 0.4rem 0.8rem;
  margin: 0.3rem;
  border-radius: 5px;
  font-size: 0.9rem;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.badge:hover {
  transform: scale(1.05);
  background: #55efc4;
  color: #2d3436;
}

.fun-fact {
  font-style: italic;
  color: #6c5ce7;
  margin-top: 1rem;
}

/* Responsive Hero Section */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    text-align: center;
  }
  .hero-img {
    margin-top: 2rem;
  }
  .image {
    width: 250px;
    height: 250px;
    max-width: 100%;
  }
  .content h2 {
    font-size: 2.5rem;
    line-height: 3rem;
  }
  .content p {
    font-size: 1.1rem;
    line-height: 2rem;
  }
  .btn {
    margin-bottom: 1rem;
  }
}
/* ...existing code... */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  border-radius: 8px;
}

.modal-content a {
  text-decoration: none;
}
.close-btn {
  float: right;
  font-size: 24px;
  cursor: pointer;
}
.projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.projects {
  padding: 2rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}
.project-card {
  background-color: #f5f5f5;
  padding: 20px;
  margin: 10px;
  border-radius: 10px;
  cursor: pointer;
  width: 300px;
  height: 300px;
}
.project-card p{
  margin-top: 1rem;
}
.project-content {
  display: flex;
  justify-content: space-evenly;
}
.project-card h3{
  font-size: 1.2rem;
}

/* timeline  */

#timeline {
  padding: 40px;
}
.timeline-item {
  margin-bottom: 30px;
  border-left: 3px solid #0077ff;
  padding-left: 15px;
  position: relative;
}
.timeline-date {
  font-weight: bold;
  color: #0077ff;
}
.timeline-content h3 {
  margin: 5px 0;
  font-size: 1.2em;
}

/* contact form  */
#contact {
  background: #fff;
  padding: 40px;
   box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}
form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
}
label {
  margin-top: 15px;
  font-weight: bold;
}
input,
textarea {
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.contact-btn {
  margin-top: 20px;
  padding: 12px;
  background-color: #0077ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-btn:hover {
  background-color: #005ccc;
}

/* footer */
#footer {
  background-color: #00b894;
  color: white;
  padding: 30px 0;
  text-align: center;
   
}
.footer-container {
  margin-bottom: 10px;
}
.footer-container a {
  margin: 0 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.footer-container a:hover {
  text-decoration: underline;
}

/* dark mode  */

/* Dark mode - simplified */
body.dark-mode {
  background: #181a1b;
  color: #f9f9f9;
}

body.dark-mode header,
body.dark-mode #footer,
body.dark-mode .project-card,
body.dark-mode .badge,
body.dark-mode .timeline,
body.dark-mode #contact,
body.dark-mode input,
body.dark-mode textarea {
  background: #222;
  color: #00b894;
}
body.dark-mode .projects {
  box-shadow: 0 0 30px aqua;
  animation: float 3s ease-in-out infinite;
  filter: grayscale(0.2) contrast(1.1);
}


body.dark-mode .hero,
body.dark-mode .about-section,
body.dark-mode .projects {
  background: linear-gradient(to right, #222, #181a1b);
}

body.dark-mode .about-content h2,
body.dark-mode .about-content p,
body.dark-mode .projects h2,
body.dark-mode .projects p,
body.dark-mode .timeline-content h3,
body.dark-mode .timeline-content p {
  color: #f9f9f9;
}

body.dark-mode input,
body.dark-mode textarea {
  border: 1px solid #555;
}
body.dark-mode .modal-content{
  background: #222;
  color: white;
}

/* Add more as needed */

