/* reset.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #0f1117;
  color: #f1f1f1;
  scroll-behavior: smooth;
}

header {
  background: #1a1c23;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00bcd4;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #00bcd4;
}

main {
  padding: 2rem;
}

.section {
  margin-bottom: 3rem;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-left: 5px solid #00bcd4;
  padding-left: 0.5rem;
}

.profile-img {
  width: 150px;
  border-radius: 50%;
  border: 2px solid #00bcd4;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.skills-grid span {
  background-color: #1e212b;
  padding: 0.5rem;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #00bcd4;
}

.education-item {
  margin-bottom: 20px;
}
.education-item h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff;
}
.education-item p {
  margin: 4px 0;
  color: #cccccc;
}

.project-card {
  background-color: #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  margin: 30px auto;
  max-width: 480px;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
  text-align: center;
}

.project-figure {
  max-width: 360px;
  margin: 0 auto;
}

.project-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.project-img.zoom-in:hover {
  transform: scale(1.03);
}

.project-card figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
  text-align: left;
}

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.tech-icons span {
  background: #2a2a2a;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #00ffff;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.1);
}

.timeline {
  position: relative;
  margin: 30px auto;
  padding: 10px 0;
  max-width: 800px;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  background: #00ffff;
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  font-size: 16px;
}

.timeline-content {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
}

.timeline-content h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #00ffff;
}

.timeline-content span {
  font-weight: normal;
  color: #fff;
  font-size: 0.95rem;
}

.timeline-content .experience-duration {
  font-size: 0.85rem;
  color: #bbb;
  margin: 5px 0 10px;
}

.timeline-content ul {
  padding-left: 18px;
  color: #ccc;
  font-size: 0.95rem;
}

.timeline-content a.btn {
  display: inline-block;
  margin-top: 10px;
}

/* Toast Notification */
.toast {
  visibility: hidden;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px 20px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}
.toast.show {
  visibility: visible;
  opacity: 1;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #1a1c23;
  color: #aaa;
  position: relative;
}
#scrollTopBtn {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  background: #00bcd4;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #000;
}
#scrollTopBtn:hover {
  background: #019caf;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease-in;
}
.animate-slide-up {
  animation: slideUp 1s ease-out;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}
.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.5s;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Contact Section */
#contact {
  padding: 40px 20px;
  background-color: #111;
  color: #fff;
}
#contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00e6e6;
}
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  padding-left: 20px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}
.contact-item i {
  color: #00e6e6;
  font-size: 1.4rem;
}
.contact-item a {
  color: #00e6e6;
  text-decoration: none;
  transition: color 0.3s;
  word-break: break-word;
}
.contact-item a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  display: inline-block;
  color: #00e6e6;
  font-size: 1.6rem;
  margin: 0 10px;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #ffffff;
}

/* Add to your CSS */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle span {
  background: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 3px;
}

/* Media Query */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #1a1c23;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}
.project-card>h3{
  margin-bottom: 5px;
}
.btn {
  display: inline-block;
  background: #00bcd4;
  color: #000;
  padding: 0 8px 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.1);
}
.btn:hover {
  background: #019caf;
  color: #fff;
  transform: translateY(-2px);
}
.leetcode
{
  font-size: 14px;
  background-clip: padding-box;
}
.l1{
  padding: 0 6px 0 6px;
  padding-top: -6px;
  background-clip: padding-box;
} 