* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}


body {
  background-color: rgb(0, 0, 33);
  color: white;
}

html {
  scroll-behavior: smooth;
}


/* Offset for fixed navbar */
section {
  scroll-margin-top: 90px;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 14px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 30, 0.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  transition: all 0.35s ease;
  font-family: 'Space Grotesk', sans-serif;
}

/* Shrink on scroll */
.navbar.scrolled {
  padding: 10px 8%;
  background: rgba(5, 5, 30, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav-item {
  position: relative;
  text-decoration: none;
  color: #cfcfe6;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Underline animation */
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item:hover {
  color: #ffffff;
}



/* Buttons(View Project & Resume) */
.buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.btn {
  position: relative;
  padding: 14px 34px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* View Button */
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.55);
}

.btn-primary:active {
  transform: scale(0.96);
}

/* Resume Button */
.btn-outline {
  border: 1.5px solid #a855f7;
  color: #a855f7;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(168, 85, 247, 0.12);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

.btn-outline:active {
  transform: scale(0.96);
}

/* Animation Buttons(View Project & Resume) */
.shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: left 0.6s ease;
}

.btn:hover .shine {
  left: 120%;
}


/*Profile Photo*/

.about-section {
  padding: 100px 8%;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* IMAGE */
.about-image img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(168, 85, 247, 0.6);
  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.45),
    0 0 60px rgba(168, 85, 247, 0.25);
  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* CONTENT */
.about-content h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
}

.about-content p {
  max-width: 520px;
  line-height: 1.7;
  color: #cfcfe6;
  font-size: 1.05rem;
}


/*PNG Image Right Section*/

.hero-visual {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-image {
  width: 720px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.45));
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }

  100% {
    transform: translateY(0);
  }
}


/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.hero h1 {
  font-size: 3rem;
}

.hero span {
  color: #aa6be4;
}

.hero p {
  margin: 20px 0;
  max-width: 500px;
  color: #cfcfe6;
}

.rightSection img {
  width: 80%;
}

/* BUTTONS */
.btn {
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  margin-right: 15px;
  font-weight: 600;
}

.primary {
  background: linear-gradient(135deg, #aa6be4, #6a5acd);
  color: white;
}

.secondary {
  border: 1px solid #aa6be4;
  color: #aa6be4;
}

/* SECTIONS */
.section {
  padding: 100px 10%;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

/* SKILLS */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.skills-section {
  padding: 100px 8%;
  background-color: transparent;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  color: #ffffff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.skill-card {
  position: relative;
  padding: 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #aa6be4, #6a5acd);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 25px rgba(170, 107, 228, 0.6);
}

.skill-card:hover::before {
  opacity: 0.15;
}

.skill-card .icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.skill-card p {
  font-size: 0.95rem;
  color: #cfcfe6;
  line-height: 1.6;
}


.glass {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  text-align: center;
}

/*Expertise*/
/* EXPERTISE SECTION */
.expertise-section {
  padding: 100px 8%;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 50px;
  text-align: center;
}

/* GRID */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch; /* ⭐ ensures equal height */
}


/* CARD */
.expertise-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* makes all cards equal height */

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}


/* HOVER EFFECT */
.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.45);
}

/* TITLE */
.expertise-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #ffffff;
}

/* TEXT */
.expertise-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* force top alignment */
}



/* PROJECTS */
/* PROJECTS SECTION */
.projects-section {
  padding: 100px 8%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* PROJECT CARD */
.project-card {
  position: relative;
  padding: 35px;
  border-radius: 22px;
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.4s ease;
  overflow: hidden;
}

/* LEFT ACCENT LINE (Unique look) */
.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  width: 4px;
  height: 60%;
  background: linear-gradient(#a855f7, #7c3aed);
  opacity: 0.7;
}

/* TEXT */
.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.project-card p {
  color: #cfcfe6;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* BUTTON */
.view-btn {
  background: transparent;
  color: #a855f7;
  border: 1px solid #a855f7;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.35s ease;
}

/*/*

/**/

.project-detail {
  padding: 120px 10%;
  max-width: 1100px;
  margin: auto;
}

.project-detail h1 {
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.project-intro {
  font-size: 1.1rem;
  color: #cfcfe6;
  margin-bottom: 50px;
}

.detail-block {
  margin-bottom: 45px;
}

.detail-block h2 {
  margin-bottom: 10px;
  color: #a855f7;
}

.detail-block p,
.detail-block li {
  color: #d6d6f0;
  line-height: 1.7;
}

.detail-block ul {
  padding-left: 20px;
}

.detail-block {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 1.5s ease forwards;
}

.detail-block:nth-child(2) {
  animation-delay: 0.1s;
}

.detail-block:nth-child(3) {
  animation-delay: 0.2s;
}

.detail-block:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**/

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.project-modal.show {
  display: flex;
}

/* Modal Box */
.modal-content {
  background: #0b0b2a;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.4s ease;
  position: relative;
}

@keyframes modalIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
}

/* Gallery Button */
.gallery-btn {
  margin-top: 30px;
  padding: 12px 26px;
  border-radius: 30px;
  background: transparent;
  border: 1px solid #a855f7;
  color: #a855f7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: #a855f7;
  color: #fff;
}


.experience-section {
  padding: 60px 10%;
  color: white;
  /* uses your existing background */
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #4f46e5;
}

.timeline-item {
  padding-left: 120px;
  margin-bottom: 40px;
}

.year {
  position: absolute;
  left: 0;
  font-size: 0.9rem;
  color: #a5b4fc;
  font-weight: bold;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px;
  border-radius: 12px;
  border-left: 4px solid #4f46e5;
}

.timeline-item.highlight .timeline-content {
  border-left-color: gold;
}

.stamp {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 4px 10px;
  background: gold;
  color: black;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

/*Experiance Section*/

/* ================= EXPERIENCE SECTION ================= */

.experience-section {
  padding: 70px 10%;
}

/* Section heading */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
}

/* Experience card */
.experience-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 35px;
  text-align: justify;
  border-left: 4px solid #4f46e5;

  /* Animation base state (VISIBLE but offset) */
  transform: translateY(40px);
  opacity: 0.3;
  transition: all 0.5s ease;
}

/* When card becomes visible on scroll */
.experience-card.show {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 0 14px rgba(1, 5, 241, 0.577);
}

/* Highlight Robocon */
.experience-card.highlight {
  border-left-color: #eebc3bc2;
  box-shadow: 0 0 14px #eebc3bc2;
}

/* Header (title + date) */
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Date */
.exp-date {
  font-size: 0.9rem;
  text-align: justify;
  color: #a5b4fc;
  font-weight: 600;
}

/* Badge */
.stamp {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 4px 12px;
  background: #eebc3bc2;
  color: #000;
  border-radius: 20px;
  font-size: 0.85rem;
  text-align: justify;
  font-weight: bold;
}

/* Paragraph spacing */
.experience-card p {
  margin-bottom: 6px;
  text-align: justify;
}

/* Hover lift / zoom effect */
.experience-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}


/* Mobile adjustments */
@media (max-width: 768px) {
  .experience-section {
    padding: 60px 6%;
    text-align: justify;
  }
}

/* Patent Badge Circle */
.patent-badge {
  width: 200px;
  height: 200px;

  border-radius: 50%;
  background: rgba(168, 85, 247, 0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.6),
    0 0 60px rgba(168, 85, 247, 0.35);

  position: relative;
  overflow: hidden;

  animation: badgePulse 3s ease-in-out infinite;
}

/* Badge Image */
.patent-badge img {
  width: 80%;
  height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
}

/* Subtle glow animation */
@keyframes badgePulse {
  0% {
    box-shadow:
      0 0 20px rgba(168, 85, 247, 0.4),
      0 0 40px rgba(168, 85, 247, 0.2);
  }

  50% {
    box-shadow:
      0 0 35px rgba(168, 85, 247, 0.8),
      0 0 80px rgba(168, 85, 247, 0.45);
  }

  100% {
    box-shadow:
      0 0 20px rgba(168, 85, 247, 0.4),
      0 0 40px rgba(168, 85, 247, 0.2);
  }
}




/* ================= CERTIFICATES ================= */
/* ================= CERTIFICATES ================= */
.certificates-section {
  padding: 100px 8%;
  text-align: center;
}

/* Tabs */
.cert-tabs {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 50px;
}

.cert-tab {
  padding: 10px 26px;
  border-radius: 30px;
  border: 1px solid #a855f7;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cert-tab.active,
.cert-tab:hover {
  background: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* Content */
.cert-content {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.cert-content.show {
  display: flex;
  animation: fadeUp 0.6s ease;
}

/* Certificate Card */
.cert-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 25px;
  border-radius: 18px;
  width: 280px;
  cursor: pointer;
  transition: 0.4s;
}

.cert-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.cert-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.cert-card h4 {
  margin-top: 15px;
}

.cert-card p {
  color: #cfcfe6;
  font-size: 0.9rem;
}

/* ================= MODAL ================= */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cert-modal.show {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.cert-modal img {
  max-width: 80%;
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: 0 0 40px rgb(247, 147, 30);
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 36px;
  cursor: pointer;
  color: white;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}



/*--------------------PROJECT SECTION-------------------*/

/* ================= PROJECTS SECTION ================= */
/* ================= PROJECT SECTION ================= */

.projects-section {
  padding: 90px 0%;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.4s ease;
}

/* Reveal animation */
.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hover zoom */
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Justify all text inside Projects section */
.projects-section p,
.projects-section li,
.projects-section span {
  text-align: justify;
  text-justify: inter-word;
}

.projects-section {
  max-width: 1100px;
  margin: auto;
}

.project-card h3 {
  margin-bottom: 14px;
}

.project-summary p {
  color: #cfcfe6;
  margin-bottom: 8px;
  line-height: 1.7;
  text-align: justify;
}

/* Continue reading */
.continue-reading {
  margin-top: 14px;
  color: #a855f7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: bounce 1.4s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* Full content hidden */
.project-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease;
}

/* Expanded */
.project-card.expanded .project-full {
  max-height: 1000px;
  margin-top: 14px;
}

/* Scrollable text box */
.scroll-textbox {
  max-height: 260px;
  overflow-y: auto;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scroll-textbox p {
  color: #cfcfe6;
  margin-bottom: 10px;
}

/* Scrollbar */
.scroll-textbox::-webkit-scrollbar {
  width: 6px;
}

.scroll-textbox::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 10px;
}

/* View images */
.view-images {
  margin-top: 16px;
  color: #7c3aed;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
}

.view-images:hover {
  transform: translateX(6px);
}

/* View images */
.view-images {
  display: inline-block;
  margin-top: 18px;
  color: #7c3aed;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.view-images:hover {
  transform: translateX(6px);
}





/* ================= PATENT SECTION ================= */

/* ================= PATENT SECTION ================= */
.patent-section {
  padding: 120px 6%;
  background: radial-gradient(circle at top, #0b0b2d, #050518);
}

.section-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 70px;
}

/* CARD */
.patent-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 28px;
  padding: 60px 70px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* LEFT CONTENT */
.patent-content {
  max-width: 62%;
}

.patent-tag {
  display: inline-block;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.patent-title {
  font-size: 34px;
  color: #fff;
  margin-bottom: 16px;
}

.patent-desc {
  color: #cfcfe9;
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 26px;
}

.patent-meta {
  color: #e0e0ff;
  margin-bottom: 6px;
  font-size: 15px;
}

.patent-btn {
  margin-top: 26px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid #a855f7;
  background: transparent;
  color: #a855f7;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.patent-btn:hover {
  background: #a855f7;
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* RIGHT BADGE CIRCLE */
.patent-badge {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);

  width: 210px;
  height: 210px;
  border-radius: 50%;

  background: rgba(168, 85, 247, 0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.55),
    0 0 70px rgba(168, 85, 247, 0.35);

  animation: badgePulse 3s ease-in-out infinite;
}

.patent-badge img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

/* SUBTLE PULSE */
@keyframes badgePulse {

  0%,
  100% {
    box-shadow:
      0 0 30px rgba(168, 85, 247, 0.55),
      0 0 70px rgba(168, 85, 247, 0.35);
  }

  50% {
    box-shadow:
      0 0 45px rgba(168, 85, 247, 0.8),
      0 0 90px rgba(168, 85, 247, 0.45);
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .patent-content {
    max-width: 100%;
  }

  .patent-badge {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 40px auto 0;
  }
}

/* ================= PATENT MODAL ================= */
.patent-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 20, 0.92);
  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;

  z-index: 9999;
}

.patent-modal.show {
  opacity: 1;
  visibility: visible;
}

.patent-modal-img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 14px;
  box-shadow: 0 0 60px rgb(213, 172, 63);
  animation: zoomIn 0.4s ease;
}

/* Close Button */
.patent-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}

.patent-close:hover {
  color: #a855f7;
  transform: rotate(90deg);
}

/* Zoom Animation */
@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .patent-modal-img {
    max-width: 92%;
    max-height: 80%;
  }

  .patent-close {
    top: 20px;
    right: 20px;
    font-size: 36px;
  }
}




/* ================= GALLERY ================= */
/* ================= GALLERY ================= */
.gallery-section {
  padding: 90px 10%;
}

.gallery-title {
  text-align: center;
  font-size: 2.6rem;
  color: white;
}

.gallery-subtitle {
  text-align: center;
  color: #cfcfe6;
  margin-bottom: 40px;
}

/* Tabs */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.project-tabs {
  margin-bottom: 50px;
}

.tab-btn {
  padding: 12px 26px;
  border-radius: 50px;
  border: 2px solid #7c3aed;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* Content */
.gallery-content {
  display: none;
}

.gallery-content.show {
  display: block;
  animation: fadeUp 0.6s ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.6);
}

/* Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9999;
}

.gallery-modal.show {
  opacity: 1;
  visibility: visible;
}

.gallery-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 18px;
}

.gallery-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 42px;
  color: white;
  cursor: pointer;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}





/* Global text justification for entire website */

.expertise-grid {
  align-items: stretch;
}

.expertise-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* ================= CONTACT SECTION ================= */

.contact-section {
  padding: 100px 10%;
}

.contact-intro {
  max-width: 650px;
  margin: 0 auto 60px;
  text-align: center;
  color: #cfcfe6;
  font-size: 1.05rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: stretch;
}

/* CONTACT CARD */
.contact-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.contact-card h3 {
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #cfcfe6;
}

.contact-item a {
  color: #cfcfe6;
  text-decoration: none;
}

.contact-item a:hover {
  color: #a855f7;
}

.icon {
  font-size: 1.3rem;
}

/* LINKEDIN BUTTON */
.linkedin-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 26px;
  border-radius: 40px;
  background: linear-gradient(135deg, #0a66c2, #4f9cff);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(10, 102, 194, 0.7);
}

/* CONTACT FORM */
.contact-form {
  padding: 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a5a5c5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #a855f7;
}

/* SEND BUTTON */
.send-btn {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.send-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.6);
}

/* ===== TOAST (PREMIUM SUCCESS POPUP) ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  padding: 16px 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s ease;
  z-index: 9999;
}

/* Show state */
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Icon */
.toast-icon {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* Text */
.toast-text {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}


/*----------Image Drop and Drag off-----------*/
/* Protect images from drag but allow click */
img {
  user-select: none;
  -webkit-user-drag: none;
}

/* Disable right-click protection without blocking clicks */
img.protect {
  pointer-events: auto;
}



/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  opacity: 0.7;
}

/* =========================================
   🌐 RESPONSIVE DESIGN — MOBILE & TABLET
   ========================================= */

/* ---------- TABLET (≤ 1024px) ---------- */
/* MOBILE NAVBAR FIX */
@media (max-width: 768px) {

  .navbar {
    padding: 10px 5%;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    justify-content: center;
  }

}



/* ---------- MOBILE (≤ 768px) ---------- */
@media (max-width: 768px) {

  .hero {
    padding-top: 120px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .hero-visual {
    position: static;
    margin-top: 25px;
  }

  .hero-image {
    width: 220px;
  }

  .buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

}
