@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0c0f;
  color: #f0f0f0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

.container {
  width: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #21252e;
  padding: 0 16px;
  z-index: 10;
}

.logo h3 {
  display: inline-block;
  margin-top: 10px;
}

.logo img {
  height: 50px;
  padding-top: 5px;
  cursor: pointer;
}

.nav-bar {
  list-style: none;
  display: flex;
  gap: 6px;
  transition: transform 0.4s ease;
}

.nav-bar li {
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 6px 10px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #00a9e2;
  color: #000;
}

.nav-bar2 {
  display: none;
}

.nav-bar2 div {
  width: 30px;
  height: 3px;
  background: #dbdbdb;
  margin: 5px;
  transition: all 0.3s ease;
}

.menu-toggle {
  display: none;
}

main {
  width: 100%;
  padding-top: 70px;
  background: #0b0c0f;
}

.section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  animation: fadeIn 1s ease-in;
  max-width: 1400px;
  margin: 0 auto;
}

.section img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#home {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://i.imgur.com/sGEQCMJ.jpeg') center center / cover no-repeat;
}

#home .filter {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: fadeIn 1s ease-in;
}

#home h1 {
  font-size: 60px;
  letter-spacing: 1px;
  font-weight: 700;
  background: linear-gradient(135deg, #00a9e2 0%, #6fd6ff 40%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
  font-family: 'Poppins', sans-serif;
}

.intro {
  position: relative;
  z-index: 1;
  padding: 20px 10px;
  max-width: 900px;
}

.intro hr {
  background: #00a9e2;
  height: 3px;
  width: 150px;
  border: none;
  border-radius: 5px;
  margin: 8px auto 20px;
  animation: expandWidth 0.8s ease-out 0.6s both;
}

.intro p {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.intro .social-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

#about h4 {
  font-size: 20px;
  text-align: center;
  margin: 10px 0;
}

.about .profile {
  text-align: center;
  margin: 10px 0;
}

.about .profile img {
  border-radius: 50%;
  border: 2px solid #00a9e2;
  object-fit: cover;
}

#about h3,
#knowledge h3,
#stats h3,
#education h3,
#projects h3,
#schedule h3,
#work h3,
#contact-us h3 {
  font-size: 35px;
  margin-bottom: 20px;
  font-weight: 600;
}

#about h3 i,
#knowledge h3 i,
#education h3 i,
#projects h3 i,
#work h3 i,
#schedule h3 i,
#contact-us h3 i {
  font-size: 30px;
  color: #00a9e2;
  margin-right: 10px;
  animation: bounce 1s ease infinite;
}

#contact-us p {
  font-size: 18px;
  padding: 8px 0;
}

#contact-us p {
  font-size: 18px;
  padding: 8px 0;
  margin-bottom: 20px;
}

.contact-card {
  background: var(--card-bg);
  border: 2px solid #00a9e2;
  border-radius: 16px;
  padding: 30px;
  max-width: 600px;
  margin: 30px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 169, 226, 0.5);
  border-color: #00c2ff;
}

.contact-card h4 {
  color: #00a9e2;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 169, 226, 0.3);
}

.contact-card h4 i {
  margin-right: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  margin-bottom: 12px;
  background: rgba(0, 169, 226, 0.05);
  border-radius: 10px;
  border-left: 3px solid #00a9e2;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(0, 169, 226, 0.1);
  border-left-color: #00c2ff;
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00a9e2, #00c2ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 169, 226, 0.3);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 169, 226, 0.5);
}

.contact-icon i {
  font-size: 20px;
  color: #fff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.contact-label {
  font-size: 12px;
  color: #00a9e2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  word-break: break-all;
}

.contact-link:hover {
  color: #00c2ff;
  transform: translateX(3px);
  display: inline-block;
}


p {
  margin: 8px 0;
}

ul,
ol {
  margin: 10px 0 0 20px;
  text-align: left;
}

hr {
  background: #00a9e2;
  height: 3px;
  width: 150px;
  border: none;
  border-radius: 5px;
  margin: 8px auto 20px;
}

.line {
  border: none;
  height: 2px;
  width: 100%;
  background: #00a9e2;
  opacity: .35;
  margin: 0;
}

marquee {
  display: block;
  padding: 8px 12px;
  background: #21252e;
  color: #fff;
}

.social-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.social-media a {
  color: #fff;
  font-size: 32px;
  transition: color 0.3s ease;
  animation: popIn 0.5s ease-out both;
}

.social-media a:nth-child(1) {
  animation-delay: 0.6s;
}

.social-media a:nth-child(2) {
  animation-delay: 0.8s;
}

.social-media a:hover {
  color: #00a9e2;
  transform: translateY(-5px) scale(1.1);
}

.project {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.card {
  display: flex;
  flex-direction: column;
  width: 220px;
  height: 270px;
  border-radius: 12px;
  background: #00a9e2;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 169, 226, 0.5);
}

.card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.card a {
  text-decoration: none;
}

.card .project-content {
  color: #fff;
  padding: 10px 6px;
  font-size: 16px;
}

.card .project-content:hover {
  color: #202020;
}

.edu-list,
.workexp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}

.edu-card,
.workexp-card {
  width: 280px;
  text-align: left;
  background: #21252e;
  border: 1px solid #00a9e2;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.edu-card h4,
.workexp-card h4 {
  margin-bottom: 6px;
}

.edu-card.current,
.workexp-card.current {
  border-color: #00c2ff;
  box-shadow: 0 0 15px rgba(0, 194, 255, 0.5);
}

.edu-card:hover,
.workexp-card:hover, 
.mycontact:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 169, 226, 0.4);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  overflow-x: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

th,
td {
  border: 1px solid #3a3f4a;
  padding: 8px;
  text-align: center;
}

th {
  background: #2a2f3a;
  color: #00a9e2;
  text-align: center;
}

tbody tr:hover {
  background: rgba(0, 169, 226, 0.1);
}

.skills-container {
  max-width: 600px;
  margin: 20px auto;
  width: 100%;
}

.skill-box {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out both;
}

.skill-box:nth-child(1) { animation-delay: 0.1s; }
.skill-box:nth-child(2) { animation-delay: 0.2s; }
.skill-box:nth-child(3) { animation-delay: 0.3s; }
.skill-box:nth-child(4) { animation-delay: 0.4s; }

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.skill-name {
  font-weight: 600;
  color: #f0f0f0;
}

.skill-percent {
  color: #00a9e2;
  font-weight: 600;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: #21252e;
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #00a9e2, #00c2ff);
  border-radius: 10px;
  animation: fillBar 1.5s ease-out;
}

footer {
  width: 100%;
  background: #21252e;
}

.copyright {
  text-align: center;
  color: #fff;
  font-size: 16px;
  line-height: 40px;
}

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

.copyright a:hover {
  color: #00a9e2;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #00a9e2;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 169, 226, 0.4);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top:hover {
  background: #00c2ff;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 169, 226, 0.6);
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0c0f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1s ease 1s forwards;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #21252e;
  border-top: 5px solid #00a9e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader p {
  margin-top: 20px;
  color: #00a9e2;
  font-size: 18px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0c0f;
}

::-webkit-scrollbar-thumb {
  background: #00a9e2;
  border-radius: 5px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 150px;
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes fillBar {
  from {
    width: 0 !important;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 500px) {
  #home h1 {
    font-size: 40px;
  }

  .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 60%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(33, 37, 46, 0.90);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    z-index: 1000;
    gap: 15px;
    padding: 0;
    margin: 0;
  }

  .nav-bar2 {
    display: block;
    position: absolute;
    right: 16px;
    top: 18px;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle:checked~.nav-bar {
    transform: translateX(0%);
  }

  .menu-toggle:checked+.nav-bar2 .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle:checked+.nav-bar2 .line2 {
    opacity: 0;
  }

  .menu-toggle:checked+.nav-bar2 .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media (min-width: 768px) {
  #home h1 {
    font-size: 70px;
  }

  .section {
    padding: 50px 40px;
  }

  .about p,
  #knowledge ul {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
  }

  table {
    max-width: 900px;
    margin: 15px auto;
  }
}

@media (min-width: 1024px) {
  #home h1 {
    font-size: 80px;
  }
}

@media (max-width: 500px) {
  .contact-card {
    padding: 20px;
    margin: 20px 15px;
  }

  .contact-item {
    gap: 12px;
    padding: 12px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-icon i {
    font-size: 16px;
  }

  .contact-info {
    gap: 3px;
  }

  .contact-label {
    font-size: 11px;
  }

  .contact-link {
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .contact-card {
    padding: 40px;
  }

  .contact-item {
    padding: 18px;
  }
}
