body,
html {
  margin: 0;
  padding: 0;
  background: #f4f7fb;
  overflow-x: clip;
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-animation span {
  position: absolute;
  display: block;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 25s infinite ease-in-out;
}

.bg-animation span:nth-child(1) {
  background: #4facfe;
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.bg-animation span:nth-child(2) {
  background: #00f2fe;
  top: 60%;
  left: 70%;
  animation-delay: 5s;
}

.bg-animation span:nth-child(3) {
  background: #a18cd1;
  top: 30%;
  left: 50%;
  animation-delay: 10s;
}

.bg-animation span:nth-child(4) {
  background: #fbc2eb;
  top: 75%;
  left: 20%;
  animation-delay: 15s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-120px) scale(1.2);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.container {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ===== NAVBAR ===== */
#navbar {
  background-color: #0d6efd;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}

#nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

#nav-links li a:hover {
  color: #000;
  transform: scale(1.1);
}

#nav-links li a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #000;
  transition: width 0.3s;
}

#nav-links li a:hover::after {
  width: 100%;
}

#nav-links li a.active {
  border-bottom: 2px solid white;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* ===== SECTIONS ===== */
section {
  padding: 50px;
  text-align: center;
}

/* ===== CARDS ===== */
.card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  transition: all 0.3s ease;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ===== FORM ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: auto;
}

input,
textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* ===== BUTTONS ===== */
button {
  padding: 10px;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
}

.repo-btn {
  background: #0d6efd;
  transition: all 0.3s ease;
}

.repo-btn:hover {
  background: #084298;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== PROFILE PIC ===== */
.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 20px auto;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== PROGRESS BARS ===== */
.skill-track {
  background: #e0e0e0;
  border-radius: 50px;
  height: 14px;
  overflow: hidden;
}

.progress {
  width: 0;
  height: 14px;
  border-radius: 50px;
  background: linear-gradient(90deg, #0d6efd, #00c6ff);
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.loaded .progress.html {
  width: 90%;
}

body.loaded .progress.css {
  width: 85%;
}

body.loaded .progress.js {
  width: 80%;
}

body.loaded .progress.bootstrap {
  width: 75%;
}

body.loaded .progress.nodejs {
  width: 65%;
}

body.loaded .progress.mysql {
  width: 60%;
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  color: white;
  padding: 15px 40px;
  text-align: center;
  margin-top: 80px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 1000;
  border-top: 1px solid #333;
}

.footer-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-icons {
  display: flex;
  gap: 15px;
}

.footer-icons a {
  color: rgb(25, 145, 250);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: #ff0303;
}

/* ===== LINKS ===== */
p a {
  color: #013bfc;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 500;
}

p a:hover {
  color: #ff0c0c;
  transform: scale(1.1);
  text-shadow: 0px 0px 8px rgba(255, 212, 59, 0.6);
  cursor: pointer;
}

/* ===== GITHUB CARDS ===== */
#github-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.project-card h3 {
  margin: 0 0 8px;
  color: #0d6efd;
}

.project-card p {
  font-size: 0.9rem;
  color: #444;
  margin: 0 0 12px;
}

.repo-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.language-badge {
  background: #0d6efd;
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ===== ABOUT PAGE ===== */
.about-section {
  padding: 60px 40px 30px;
  text-align: center;
}

.about-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 30px 40px;
  max-width: 650px;
  margin: 20px auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.about-card p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin: 15px 0;
}

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

.about-links a {
  background: #0d6efd;
  color: white !important;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.about-links a:hover {
  background: #084298;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
  color: white !important;
  text-shadow: none;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  padding: 20px 40px 100px;
  text-align: center;
}

.skills-section h2 {
  margin-bottom: 30px;
}

.skills-bars {
  max-width: 650px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-item {
  text-align: left;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #333;
}

/* Skills Grid - Responsive */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.skill-badge {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 20px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
}

.skill-badge:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.2);
}

.skill-badge img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.skill-badge:hover img {
  transform: rotate(-5deg) scale(1.1);
}

.skill-badge p {
  margin: 10px 0 0;
  font-weight: bold;
  font-size: 0.9rem;
  color: #333;
}

/* ===== CSS DEMO PAGE ===== */
.styled-text {
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(90deg, #0d6efd, #a18cd1, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #0d6efd;
  border-radius: 10px;
  letter-spacing: 2px;
  animation: pulse-border 2s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.styled-text:hover {
  transform: scale(1.08);
}

@keyframes pulse-border {

  0%,
  100% {
    box-shadow: 0 0 0px rgba(13, 110, 253, 0.4);
  }

  50% {
    box-shadow: 0 0 18px rgba(13, 110, 253, 0.7);
  }
}

#box {
  padding: 30px;
  text-align: center;
  background: #eee8aa;
  border-radius: 30px;
  margin-bottom: 15px;
  transition: 0.3s;
}

.buttons button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.table {
  margin-left: auto;
  margin-right: auto;
  width: 60%;
}

/* ===== DARK MODE ===== */
.dark-mode {
  background: #121212;
  color: white;
}

.dark-mode nav {
  background: #1e1e1e;
}

.dark-mode .card,
.dark-mode .about-card,
.dark-mode .skill-badge {
  background: rgba(40, 40, 40, 0.8);
  color: white;
}

.dark-mode .about-card p,
.dark-mode .skill-badge p,
.dark-mode .skill-label {
  color: #ddd;
}

.dark-mode .skill-track {
  background: #444;
}

/* ===== TABLET ===== */
@media (max-width: 768px) {
  #navbar {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 8px;
  }

  #nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  #nav-links li a {
    font-size: 0.85rem;
    padding: 4px 0;
  }

  .skills-section {
    padding: 20px 20px 100px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-card {
    padding: 20px;
  }

  .about-section {
    padding: 40px 20px 20px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  #nav-links {
    gap: 8px;
  }

  #nav-links li a {
    font-size: 0.85rem;
  }

  .portfolio-header h1 {
    font-size: 1.15rem;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
  }

  .styled-text {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .skills-section {
    padding: 20px 15px 100px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skill-badge {
    padding: 15px 8px;
  }

  .skill-badge img {
    width: 40px;
    height: 40px;
  }

  .skill-badge p {
    font-size: 0.8rem;
  }

  .footer-logo {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  #theme-toggle {
    padding: 5px 10px;
    font-size: 1rem;
  }

  .about-card {
    padding: 15px;
  }

  footer {
    padding: 12px 15px;
  }
}
