* {
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Public Sans", sans-serif;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  padding-top: 60px;
}

/* HEADER CSS */

.banner {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  margin-bottom: 15px;
  position: fixed;
  z-index: 5;
  top: 0;
}

.container {
  margin-top: 30px;
  overflow: hidden; /* hides any overflowing content */
  position: relative; /* in case absolutely positioned elements are inside */
}

nav {
  position: relative;
  display: flex;
  gap: 0;
  padding: 5px 10px;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  width: max-content;
  border: 2px solid rgb(59, 56, 56);
  background-color: #333333;
  box-shadow: 0 0 15px #000000; /* default glow */
  transition: all 0.4s ease;
}

nav a:hover {
  color: #000000;
}

nav:hover {
  color: #000000;
  box-shadow: 0 0 20px #6a5acd;
  border: 2px solid #6A5ACD(0, 255, 255, 0.9);
}

nav a {
  position: relative;
  padding: 15px 25px;
  font-size: 20px;
  font-weight: 500;
  color: rgb(255, 255, 255);
  text-decoration: none;
  z-index: 2;
  transition: color 0.3s;
  display: inline-block;
}

nav span {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(45deg, #ff6161, #e69e95);
  border-radius: 10px;
  z-index: 1;
  box-shadow: 0 0 15px rgba(51, 255, 252, 0.5);
  transition: all 0.4s ease;
}

.hamburger {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

/* COLLAPSE NAVBAR BELOW 700px */
@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #333;
    border: 2px solid #6a5acd;
    border-radius: 12px;
    width: 200px;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
    color: #000000;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.9s ease;
    border-radius: 8px;
  }

  .hamburger:hover {
    color: #f5bcb8; /* Cyan glow */
    box-shadow: 0 0 12px #6a5acd, 0 0 24px rgba(245, 93, 66, 0.6);
    transform: rotate(90deg) scale(1.1);
  }

  nav span {
    display: none;
  }

  nav a:hover {
    color: #ddd2d2;
  }
}

h1 {
  font-weight: 700;
}

h3 {
  margin-top: 5px;
  color: #ffc300;
  font-size: 20px;
  line-height: 30px;
  text-shadow: 0 0 1px #ff9900;
}

.Intro {
  margin: 5px 5px 5px 15px;
  display: flex;
  flex-wrap: wrap;
}
.myVideo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 60% center;
}

.video-wrapper {
  width: 305px;
  height: 305px;
  border-radius: 50%;
  margin: 5px 90px 0px 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.video-wrapper::after,
.video-wrapper::before {
  content: " ";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(
    from var(--angle),
    #9b59b6,
    rgb(252, 102, 102)
  );
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 50%;
  animation: 3s spin linear infinite;
}

.video-wrapper::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

.video {
  margin-left: auto;
}

.glow-line {
  border: none;
  height: 4px;
  width: 80%;
  margin: 50px auto;
  background: linear-gradient(90deg, #ff0000, #ffc300, #20cae0);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 76, 76, 0.6), 0 0 25px rgba(255, 195, 0, 0.6),
    0 0 35px rgba(0, 224, 255, 0.6);
  animation: glow-move 3s linear infinite;
}

/* MAIN CONTENT CSS */

.grid-container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.title {
  grid-area: title;
  font-size: 32px;
  font-weight: bold;
}

.skills {
  grid-area: skills;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  width: 700px;
  display: flex;
  flex-wrap: wrap;
  margin: 5px;
}

.skill {
  padding: 20px;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
  will-change: transform;
}

.skill:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 195, 0, 0.3);
}

.left-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.right-circle {
  justify-self: end;
}
.right-circle img {
  height: 300px;
  width: auto;
  left: 50px;
  margin-left: 80px;
  transform: rotate(45deg); /* or any degree */
  transform-origin: center center;
}

.red {
  background-color: #dc2626;
}
.green {
  background-color: #4caf50;
}
.blue {
  background-color: #3f77b6;
}
.yellow {
  background-color: #f59e0b;
  color: #222;
}
.dark {
  background-color: #1f1f1f;
}
.orange {
  background-color: #1896d4;
  color: #222;
}
.purple {
  background-color: #9b59b6;
}
.navy {
  background-color: #1a486a;
}
.teal {
  background-color: #16a34a;
}

@media (max-width: 700px) {
  .grid-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .right-circle img {
    height: 300px;
    margin: 0 auto;
  }

  .skills {
    justify-content: center;
    margin: 0 auto;
  }
}

.rotating-wrapper {
  display: inline-block;
  animation: spin 15s linear infinite;
}

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

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    margin: 20px;
    text-align: center;
  }

  .left-content {
    align-items: center;
  }

  .title {
    font-size: 26px;
  }

  .skills {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .skill {
    width: 140px;
    font-size: 14px;
    padding: 15px;
  }

  .right-circle img {
    height: 250px;
    width: auto;
  }

  .glow-line {
    width: 90%;
    margin: 30px auto;
  }
}

#about {
  padding-left: 15px;
  display: flex;
  flex-wrap: wrap;
}

.stats-section {
  padding: 50px 0;
  text-align: center;
  background-color: #fff;
  width: 100%;
  display: flex;
  justify-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  justify-items: center;
}

.stat-card {
  width: 200px;
  height: 230px;
  padding: 20px;
  background-color: white;
  border: 2px solid #222;
  border-radius: 6px;
  transform: rotate(3deg);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card .des {
  font-size: 12px;
}

.stat-card:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Colored Borders Matching Screenshot IN ABOUT SECTION */
.green-border {
  border-color: #27ae60;
}
.red-border {
  border-color: #e74c3c;
}
.orange-border {
  border-color: #f39c12;
}
.blue-border {
  border-color: #2980b9;
}

.stat-card h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #111;
}

.stat-card p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

@media (max-width: 800px) {
  .stats-grid {
    display: flex;
    flex-wrap: wrap;
  }
}

/* PROJECT SECTION CSS */

.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  background-color: #f5eeee;
  margin: 20px auto;
  padding: 5px;
}

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

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #333;
  margin-bottom: 0;
}

.list-group-item {
  font-size: 15px;
  background-color: #f9f9f9;
  border: none;
  color: #444;
}

.card-body {
  display: flex;
  justify-content: center;
}

.card-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 15px;
}

.b2 {
  height: 35px;
  margin: 10px 5px 5px 5px;
  text-decoration: none; /* 🔥 removes underline */
  color: inherit; /* use current text color */
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-button .btn-success {
  display: block;
  margin-top: 10px;
  width: 70%;
  font-weight: bold;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  border: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.card-button .btn-success:hover {
  background: linear-gradient(90deg, #1e8449, #27ae60);
  transform: scale(1.05);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
}

.cards > .card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  width: 450px !important;
}

/* FOOTER CONTACT ME SECTION CSS */

.coffee-line {
  color: #666;
  font-size: 18px;
  margin-bottom: 40px;
}

.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
  background: #f8f8f8;
}

.contact-heading {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #222;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 950px) {
  .contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}

.contact-card {
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.icon {
  font-size: 32px;
  margin-bottom: 10px;
  color: white;
  padding: 15px;
  border-radius: 50%;
  display: inline-block;
}

/* Themed backgrounds */
.red .icon {
  background: #e74c3c;
}

.blue .icon {
  background: #3498db;
}

.yellow .icon {
  background: #f1c40f;
  color: #333;
}

.green .icon {
  background: #2ecc71;
}

.contact-card h4 {
  margin-top: 15px;
  margin-bottom: 8px;
  font-size: 20px;
  color: #333;
}

.contact-card p,
.contact-card a {
  font-size: 15px;
  color: #666;
  text-decoration: none;
}

.resume-link {
  font-weight: bold;
  display: inline-block;
  margin-top: 8px;
  color: #2c3e50;
}

/* DISPLAY CARDS OF TECH TOOL SECTION */
.scroll-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.scroll-track {
  display: flex;
  width: fit-content;
  animation: scroll-left 30s linear infinite;
  gap: 30px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.polaroid {
  background: white;
  padding: 12px;
  width: 220px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.polaroid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.caption {
  font-size: 14px;
  margin-top: 10px;
  color: #333;
  text-align: center;
}

/* Slight rotation for natural polaroid effect */
.tilt-left {
  transform: rotate(-3deg);
}

.tilt-right {
  transform: rotate(3deg);
}

.polaroid:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 10;
}

.writeUp U {
  font-weight: 500;
  text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #fff5ef, #fff2ed);
  text-decoration: none;
}

.M {
  color: #47a248;
}
.E {
  color: black;
}
.R {
  color: #61dafb;
}
.N {
  color: #339933;
}

.material-symbols-outlined {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  background-color: rgb(248, 176, 176);
}

.no-transition {
  transition: none !important;
}

.linkedinBtn {
  padding: 12px 24px;
  font-size: 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background-color: #0d6efd;
  color: rgb(255, 255, 255);
  background-image: radial-gradient(circle, #3d378a 0.2em, transparent 0.3em),
    radial-gradient(circle, #3d378a 0.2em, transparent 0.3em);
  background-position: 6em 6em, 0 0;
  background-size: 0 0, 0 0;
  background-repeat: repeat;

  /* Transition always present */
  transition: background-size 1.2s ease, background-color 0.6s ease 0.4s,
    color 1.2s ease, border-color 1.2s ease;
}

.linkedinBtn:hover {
  background-size: 30px 30px, 30px 30px;
  background-color: #3d378a;
  color: rgb(207, 203, 203);
}

.no-transition {
  transition: none !important;
}

.gitButton {
  padding: 12px 24px;
  font-size: 18px;
  border: 0.5px solid black;
  border-radius: 8px;
  cursor: pointer;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  background-image: radial-gradient(circle, #000000 0.2em, transparent 0.3em),
    radial-gradient(circle, #000000 0.2em, transparent 0.3em);
  background-position: 6em 6em, 0 0;
  background-size: 0 0, 0 0;
  background-repeat: repeat;

  /* Transition always present */
  transition: background-size 1.2s ease, background-color 0.6s ease 0.4s,
    color 1.2s ease, border-color 1.2s ease;
}

.gitButton:hover {
  background-size: 30px 30px, 30px 30px;
  background-color: #000000;
  color: rgb(207, 203, 203);
}

/* Card overlay effect */
.card-img-overlay {
  opacity: 0;
}
.card-img-overlay:hover {
  opacity: 0.3;
  background-color: white;
}

.contact-links {
  text-decoration: none;
  margin: none;
  padding: 0%;
}

/* LIGHT N DARK MODE */
/* Default Light Theme */
body {
  background-color: #ffffff;
  color: #222;
  transition: background-color 0.3s, color 0.3s;
}

/* Dark Theme Styles */
body.dark-mode {
  background-color: #000000;
  color: #f1f1f1;
}

.contact-card.dark-mode {
  background-color: #121212;
  color: #fff;
}

/* Optional: style the button */
.theme-btn {
  padding: 10px 15px;
  margin: 20px;
  cursor: pointer;
  border: none;
  background-color: #ddd;
  border-radius: 8px;
}

/* ABOUT SECTION MARKING */
p mark {
  background-color: rgba(
    255,
    107,
    129,
    0.1
  ); /* light reddish-pink with 30% opacity */
  color: inherit; /* or white/black depending on your background */
  padding: 0 4px;
  border-radius: 3px;
}

/* PROJECT IMAGE STYLE */
.project-img {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  margin-bottom: 0.2px;
  border-bottom: 2px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
