* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #000
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="none" stroke="%23222222" stroke-width="1"/></svg>');
  background-size: 40px 40px;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(
      circle at bottom left,
      rgba(255, 255, 255, 0.1),
      transparent 70%
    );

  background-size: 40px 40px, 40px 40px, cover;

  background-repeat: repeat;
  background-blend-mode: overlay;
  min-height: 100vh;
  color: #fff;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
  top: 0;
  width: 100%;
  background: white;
  padding: 35px 80px;
  transition: padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  z-index: 1000;
  background-color: rgb(11, 11, 11);
}
.navbar .right-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.navbar .right-nav ul li {
  list-style: none;
}
.navbar .right-nav ul li a {
  text-decoration: none;
  color: #4da3ff;
  font-weight: 600;
}

.home-section {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
}
.home-section .left-section {
  padding: 80px 90px;
}
.home-section .left-section h1 {
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 10px;
}

.home-section .left-section h2 {
  font-size: 30px;
  color: #4da3ff;
  margin-bottom: 20px;
}

.home-section .left-section p {
  font-style: italic;
  font-size: 18px;
  opacity: 0.8;
}
.home-section .right-section {
  padding: 80px 90px;
}
.home-section .right-section img {
  width: 350px;
  height: 350px;
}

/* About Section Styles */
.about-section {
  background-color: #000;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about-container.centered {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-container h2 {
  font-size: 2.5rem;
  color: #1f3764;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-container .line {
  width: 60px;
  height: 4px;
  background-color: #a52a2a;
  margin-bottom: 16px;
}

.about-container p {
  font-size: 1.3rem;
  color: whitesmoke;
  line-height: 1.8;
  margin-bottom: 16px;
}

.tech-stack {
  background-color: #000;
  padding: 60px 20px;
  color: #fff;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  background-image: linear-gradient(#000, #000),
    url("https://www.transparenttextures.com/patterns/squared-metal.png");
  background-repeat: repeat;
  background-size: cover;
  margin-bottom: 60px;
  margin-top: 20px;
}

.tech-stack h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 70px;
}

.tech-stack .highlight {
  font-weight: 700;
  background-color: #fff;
  color: #000;
  padding: 5px 12px;
  border-radius: 4px;
}

.tech-stack .quote {
  font-style: italic;
}

.tech-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.tech {
  background: #111;
  padding: 15px 35px;
  border-radius: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
}

.tech:hover {
  transform: scale(1.05);
  background: #1f1f1f;
}

.tech img {
  width: 24px;
  height: 24px;
}

.ExperEDU {
  margin-top: 100px;
  margin-bottom: 130px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 40px 0px;
}

.section-subtitle {
  text-align: center;
  color: #aaa;
  margin-bottom: 30px;
}

.section-subtitle span {
  color: #3b82f6;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tab {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  color: #ccc;
  transition: color 0.3s ease;
  position: relative;
}

.tab.active {
  color: #3b82f6;
}

.tab.green-active {
  color: #22c55e;
}

.tab.yellow-active {
  color: #facc15;
}

.tab.active::after,
.tab.green-active::after,
.tab.yellow-active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
}

.tab.active::after {
  background: #3b82f6;
}
.tab.green-active::after {
  background: #22c55e;
}
.tab.yellow-active::after {
  background: #facc15;
}

.tab-content {
  display: none;
  padding: 0 20px;
}
.tab-content.active {
  display: block;
}

/* Card Layout */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #111;
  border-radius: 12px;
  padding: 35px 25px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Header in card */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.year-badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: bold;
}

.role {
  color: #aaa;
  font-size: 0.85rem;
}

/* Card Titles */
.card h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: white;
}

.card p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.4;
}

.education-card:hover {
  border-color: #3b82f6;
  transform: translateY(-5px);
}
.education-card .year-badge {
  background: #172554;
  color: #3b82f6;
}

.event-card:hover {
  border-color: #22c55e;
  transform: translateY(-5px);
}
.event-card .year-badge {
  background: #052e16;
  color: #22c55e;
}

.achievement-card:hover {
  border-color: #facc15;
  transform: translateY(-5px);
}
.achievement-card .year-badge {
  background: #451a03;
  color: #facc15;
}
.projects-section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.projects-section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.projects-section p {
  color: #aaa;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
  position: relative;
}

.project-content h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.project-content p {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  background: #222;
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
}

.github-bottom {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: #aaa;
  transition: color 0.3s ease;
}
.contact-section {
  text-align: center;
  padding: 60px 20px;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.underline {
  width: 50px;
  height: 3px;
  background: #007bff;
  margin: 0 auto 10px;
}

.subtitle {
  font-size: 1.1rem;
  color: #ccc;
}

.highlight {
  color: #007bff;
}

.contact-form {
  background: rgba(0, 0, 0, 0.85);
  padding: 25px;
  max-width: 400px;
  margin: 30px auto;
  border-radius: 10px;
  border: 1px solid #fff;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #555;
  outline: none;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 1rem;
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  background: #0a2d5f;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #144080;
}

/* Social Icons */
.social-icons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  color: #bbb;
  font-size: 1.8rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #007bff;
  transform: scale(1.2);
}
.footer {
  background: linear-gradient(to bottom, #000, #111);
  color: #fff;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-left h2 {
  font-size: 1.8rem;
}

.footer-left p {
  color: #aaa;
  margin: 10px 0;
}

.footer-icons {
  margin-top: 10px;
}

.footer-icons a {
  color: #ccc;
  margin-right: 15px;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-icons a:hover {
  color: #007bff;
  transform: scale(1.2);
}

.footer-right h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-right span {
  color: #007bff;
}

.footer-right p {
  margin: 6px 0;
  color: #bbb;
}

.footer-right a {
  color: #bbb;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

.highlight {
  color: #007bff;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

/* ======= Responsive Styles ======= */

/* Large devices (desktops below 1200px) */
@media (max-width: 1200px) {
  .home-section .left-section h1 {
    font-size: 50px;
  }
  .home-section .left-section h2 {
    font-size: 26px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets below 992px) */
@media (max-width: 992px) {
  .navbar {
    padding: 20px 40px;
    flex-direction: column;
    gap: 15px;
  }

  .navbar .right-nav ul {
    gap: 15px;
  }

  .home-section {
    flex-direction: column;
    text-align: center;
  }

  .home-section .left-section,
  .home-section .right-section {
    padding: 40px 20px;
  }

  .home-section .right-section img {
    width: 280px;
    height: auto;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Small devices (mobiles below 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .navbar .right-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .home-section .left-section h1 {
    font-size: 38px;
  }

  .home-section .left-section h2 {
    font-size: 22px;
  }

  .about-container h2 {
    font-size: 2rem;
  }

  .tech-icons {
    flex-direction: column;
    gap: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra small devices (mobiles below 576px) */
@media (max-width: 576px) {
  .home-section .left-section h1 {
    font-size: 32px;
  }

  .home-section .left-section h2 {
    font-size: 20px;
  }

  .contact-form {
    padding: 15px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }
}
/* Small devices (mobiles below 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .navbar .right-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .home-section .left-section h1 {
    font-size: 38px;
  }

  .home-section .left-section h2 {
    font-size: 22px;
  }

  .about-container h2 {
    font-size: 2rem;
  }

  .tech-icons {
    flex-direction: column;
    gap: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}