@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");
@import url("store.css");

:root {
  --bg-color: #fcfcfc;
  --text-color: #000;
  --heading-color: rgb(32, 32, 32);
  --accent-color: rgb(115, 3, 167);
  --nav-bg: #fff;
  --nav-text: #0e2431;
  --nav-hover: #011aff;
  --btn-bg: #2506ad;
  --btn-text: #fff;
  --card-bg: rgb(252, 252, 252);
  --card-shadow: rgba(0, 0, 0, 0.2);
  --timeline-line: #020133;
  --timeline-dot: #ff9f55;
  --ai-glow-color: #9d00ff;
  /* Vivid Purple for Light Mode */
}

body.hacker-mode {
  --bg-color: #000000;
  --text-color: #00ff00;
  --heading-color: #00ff00;
  --accent-color: #00aa00;
  --nav-bg: #000000;
  --nav-text: #00ff00;
  --nav-hover: #ffffff;
  --btn-bg: #000000;
  --btn-text: #00ff00;
  --card-bg: #111111;
  --card-shadow: rgba(0, 255, 0, 0.2);
  --timeline-line: #00ff00;
  --timeline-dot: #00ff00;
  --ai-glow-color: #00f3ff;
  /* Cyan for Hacker Mode */
}

body.hacker-mode .skills,
body.hacker-mode .projects {
  background: var(--bg-color);
}

/* Hacker Mode Social Icons Overrides */
body.hacker-mode .social-icons a.github {
  background-color: #333;
  color: #fff;
}

body.hacker-mode .social-icons a.twitter {
  background-color: #00aced;
  color: #fff;
}

body.hacker-mode .social-icons a.linkedin {
  background-color: #007bb6;
  color: #fff;
}

body.hacker-mode .social-icons a.dev {
  background-color: #0a0a0a;
  color: #fff;
}

body.hacker-mode .social-icons a.instagram {
  background-color: #ee00da;
  color: #fff;
}

body.hacker-mode .social-icons a.telegram {
  background-color: #0088cc;
  color: #fff;
}

body.hacker-mode .social-icons a.discord {
  background-color: #7289da;
  color: #fff;
}

body.hacker-mode .social-icons a.reddit {
  background-color: #ff4500;
  color: #fff;
}

body.hacker-mode .social-icons a.whatsapp {
  background-color: #25d366;
  color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: var(--nav-hover);
  color: #fff;
}

/* html {
  font-size: 62.5%;
  overflow-x: hidden;
} REMOVED DUPLICATE */

html::-webkit-scrollbar {
  width: 0.8rem;
}

html::-webkit-scrollbar-track {
  background: var(--bg-color);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent-color);
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.loader-container.fade-out {
  top: -120%;
}

/* pre loader end */

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: var(--nav-bg);
  box-shadow: 0 1px 4px var(--card-shadow);
}

section {
  min-height: 100vh;
  padding: 2rem 9%;
}

.heading {
  font-size: 3.5rem;
  color: var(--heading-color);
  font-weight: 800;
  text-align: center;
}

.heading span {
  color: rgb(115, 3, 167);
}

header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0e2431;
}

header .logo i {
  font-size: 2.2rem;
}

header .logo:hover {
  color: var(--accent-color);
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .navbar li {
  margin-left: 2.5rem;
}

header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: var(--nav-hover);
  border-bottom: 0.2rem solid var(--nav-hover);
  padding: 0.5rem 0;
}

/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: var(--nav-text);
  display: none;
}

#mobile-theme-toggle {
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--nav-text);
  display: none;
  margin-right: 2rem;
  /* Space between toggle and menu */
}

@media (max-width: 768px) {
  #menu {
    display: block;
  }

  #mobile-theme-toggle {
    display: block;
  }

  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100vh;
    /* Full height */
    text-align: left;
    align-items: flex-start;
    background-color: var(--nav-bg);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    /* Left shadow */
    z-index: 1001;
    /* Above everything */
    overflow-y: auto;
    /* Scrollable menu if long */
  }

  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 26rem;
  }

  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: var(--nav-text);
    font-size: 2rem;
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: var(--nav-hover);
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid var(--nav-hover);
  }

  .fa-times {
    transform: rotate(180deg);
  }

  header .navbar.nav-toggle {
    right: 0;
  }
}

/* hamburger icon ends */

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
}

.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}

.home .image {
  flex: 1 1 40rem;
  z-index: 1;
}

.home .image img {
  width: 70%;
  margin-left: 6rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.home .image img:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.home .content h2 {
  font-size: 5rem;
  font-weight: 800;
  color: var(--heading-color);
}

.home .content h2 span {
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent-color);
}

.home .content p {
  font-size: 2.5rem;
  color: #000;
  font-weight: 600;
  padding: 1rem 0;
}

.home .content p span {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-weight: 600;
  padding: 1rem 0;
}

/* global button styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: normal;
  padding: 1.6rem 3rem;
  border-radius: 4rem;
  transition: 0.3s;
  color: #fff;
  background: var(--btn-bg, #2506ad);
  box-shadow: 0px 5px 15px rgba(48, 68, 247, 0.4);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
  border: none;
  cursor: pointer;
}

.btn i {
  margin-left: 0.5rem;
  font-size: 1.5rem;
  transition: 0.3s;
}

.btn:hover {
  background: #1a047e;
  transform: translateY(-2px);
  box-shadow: 0px 8px 20px rgba(48, 68, 247, 0.6);
}

.btn:hover i {
  transform: translateX(5px);
}

/* social icons start */
.socials {
  position: relative;
  margin-top: 9rem;
}

.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}

.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #00d9ff;
  background-color: #09011b;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #0685da;
}

.social-icons a.github:hover {
  background-color: #0e0e0e;
}

.social-icons a.twitter:hover {
  background-color: #00aced;
}

.social-icons a.linkedin:hover {
  background-color: #007bb6;
}

.social-icons a.dev:hover {
  background-color: #070707;
}

.social-icons a.instagram:hover {
  background-color: #ee00da;
}

/* social icons end */

/* hero media queries starts*/
@media (max-width: 450px) {
  .home {
    flex-direction: column-reverse;
    padding-top: 8rem;
    /* Space for fixed header */
    gap: 2rem;
    text-align: center;
    justify-content: center;
  }

  .home .image {
    width: 100%;
    margin: 0;
  }

  .home .image img {
    margin: 0;
    width: 60%;
    /* Reduce size slightly */
  }

  .home .content {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .home .btn {
    position: relative;
    /* Stop absolute positioning issues */
    margin: 2rem auto;
    display: inline-block;
  }

  .socials {
    margin-top: 2rem;
    justify-content: center;
    display: flex;
  }

  .home .content h2 {
    font-size: 3rem;
    /* Smaller heading */
  }

  .home .content h2 span {
    font-size: 3rem;
  }

  .home .content p,
  .home .content p span {
    font-size: 1.6rem;
  }
}

/* hero media queries ends*/

/* Global Mobile Fixes */
@media (max-width: 768px) {
  section {
    padding: 2rem 5%;
    /* More breathing room on sides */
  }

  /* Stack AI Cards */
  .ai-projects {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 1rem;
  }

  .ai-card {
    width: 100%;
    margin: 0;
  }

  /* Skills Grid */
  .skills .container .row {
    grid-template-columns: 1fr;
    /* Stack skills */
    gap: 1.5rem;
  }

  /* Education Box */
  .education .box-container .box {
    flex-direction: column;
    width: 100%;
  }

  .education .box-container .box .image {
    width: 100%;
    height: 200px;
  }

  .education .box-container .box .content {
    text-align: center;
  }

  .education .box-container .box .content h3 {
    text-align: center;
    margin-left: 0;
  }
}

/* AI Page Mobile Tweaks */
@media (max-width: 768px) {
  .ai-container {
    padding-top: 6rem;
    /* Clear header */
    width: 100%;
  }

  .ai-heading {
    font-size: 2rem;
    margin: 1rem 0;
  }
}

/* hero section end */

/* about section starts */
.about {
  background: rgb(255, 255, 255);
}

.about .row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem;
}

.about .row .image {
  text-align: center;
  flex: 1 1 35rem;
}

.about .row .image img {
  margin: 4rem;
  width: 30rem;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  mix-blend-mode: luminosity;
  transition: 0.3s;
  cursor: pointer;
}

.about .row .image img:hover {
  mix-blend-mode: normal;
}

.about .row .content {
  flex: 1 1 45rem;
  padding: 3rem;
}

.about .row .content h3 {
  color: var(--heading-color);
}

.about .row .content .tag {
  font-size: 1.4rem;
  color: var(--timeline-line);
  font-weight: 600;
  margin-top: 1rem;
}

.about .row .content p {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
  text-transform: none;
}

.about .row .content .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
}

.about .row .content .box-container .box p {
  text-transform: none;
}

.about .row .content .box-container .box p span {
  color: var(--nav-hover);
}

.resumebtn {
  margin-top: 6rem;
}

/* Deleted redundant resumebtn .btn and about .btn definitions in favor of global .btn */



/* about media queries starts*/
@media screen and (max-width: 600px) {
  .about .row .image {
    margin-top: 2rem;
  }

  .about .row .image img {
    margin: 0 auto;
    width: 80%;
    mix-blend-mode: normal;
  }

  .about .row {
    padding: 0.5rem;
    margin-bottom: 7rem;
  }

  .about .row .content {
    padding: 1rem;
  }

  .about .row .content .box-container {
    gap: 0;
  }
}

/* about media queries ends*/
/* about section ends */

/* skills section starts */
.skills {
  min-height: 90vh;
  background: linear-gradient(to bottom, #57059e, #4a00e0);
}

.skills h2 {
  color: var(--heading-color);
}

.skills .heading span {
  color: var(--timeline-dot);
}

.skills .container {
  background: var(--card-shadow);
  color: var(--text-color);
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  margin: auto;
  margin-top: 2rem;
}

.skills .container .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  flex-wrap: wrap;
  gap: 1.8rem;
}

.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 22, 0.9);
  transition: 0.2s;
}

.skills .container .bar:hover {
  box-shadow: 0 8px 10px rgba(0, 2, 68, 0.8) !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.skills .container .bar .info i {
  font-size: 4rem;
}

.skills .container .bar .info span {
  font-size: 2rem;
  font-weight: 500;
  font-family: "Poppins";
  margin-left: 0.5rem;
}

/* skills media queries starts*/
@media screen and (max-width: 600px) {
  .skills .container {
    padding: 0;
    margin: 0;
  }

  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }

  .skills .container {
    margin-top: 5px;
    width: 100%;
  }
}

/* skills media queries ends*/
/* skills section ends */

/* stats section starts */
.stats {
  background: var(--bg-color);
  min-height: 40vh;
}

.stats .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  align-items: center;
  justify-content: center;
}

.stats .stat-card {
  background: var(--card-bg, #111);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stats .stat-card:hover {
  transform: translateY(-10px);
  border-color: #ffae00;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}

.stats .stat-card i {
  font-size: 4rem;
  color: #ffae00;
  margin-bottom: 1.5rem;
}

.stats .stat-card .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--heading-color, #fff);
  margin-bottom: 1rem;
  font-family: "Poppins", sans-serif;
}

.stats .stat-card p {
  font-size: 1.5rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* stats section ends */

/* education section starts */
.education {
  background: var(--bg-color);
  min-height: 80vh;
}

.education .qoute {
  font-size: 1.5rem;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  margin-top: 0.5rem;
}

.education .box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.education .box-container .box {
  display: flex;
  flex-direction: row;
  width: 80%;
  border-radius: 0.5rem;
  box-shadow: 0.2rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  transition: 0.3s;
  background: var(--card-bg);
}

.education .box-container .box:hover {
  transform: scale(1.03);
  box-shadow: 1rem 0.5rem 1.2rem rgba(0, 0, 0, 0.3);
}

.education .box-container .box .image {
  flex: 1 1 20rem;
  width: 100%;
}

.education .box-container .box img {
  object-fit: cover;
  position: relative;
  width: 100%;
  height: 100%;
}

.education .box-container .box .content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  flex-wrap: wrap;
  flex: 1 1 70rem;
}

.education .box-container .box .content h3 {
  font-size: 2.5rem;
  color: var(--heading-color);
  padding: 0.5rem 0;
  font-weight: 600;
  text-align: left;
  margin-left: 1rem;
}

.education .box-container .box .content p {
  font-size: 1.5rem;
  margin-left: 1rem;
  text-align: left;
}

.education h4 {
  font-size: 2rem;
  color: var(--accent-color);
  text-align: left;
  margin: 1rem;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}

/* education media queries starts*/
@media screen and (max-width: 600px) {
  .education .box-container .box {
    flex-direction: column;
    width: 100%;
  }

  .education .box-container .box .image {
    width: 100%;
    height: 25rem;
  }

  .education .box-container .box img {
    width: 100%;
  }

  .education .box-container .box .content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex-wrap: wrap;
    flex: 0;
  }

  .education .btns {
    margin-top: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    flex-wrap: wrap;
  }
}

/* education media queries ends*/
/* education section ends */

/* projects section starts */
.projects {
  /* background: #010124; */
  background: linear-gradient(to bottom, #000031, #00002c);
}

.projects h2 {
  color: var(--heading-color);
  padding: 1rem;
}

.projects .heading span {
  color: var(--timeline-dot);
}

.projects .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem;
}

.projects .box-container .box {
  flex: 1 1 30rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  height: 30rem;
  border: 2px solid transparent;
  /* Prepare for glow */
  transition: all 0.3s ease-in-out;
  background: var(--card-bg, #111);
}

.projects .box-container .box:hover {
  border: 2px solid var(--glow-color, #fff);
  box-shadow: 0 0 15px var(--glow-color, #fff), inset 0 0 10px var(--glow-color, #fff);
}

.projects .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.projects .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 85%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  transition: top 0.3s ease-in-out;
}

body.hacker-mode .projects .box-container .box .content {
  background: rgba(0, 0, 0, 0.9);
}

.projects .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: #ffd900;
}

body.hacker-mode .projects .box-container .box .content .tag {
  background: #004400;
  color: #00ff00;
}

.projects .box-container .box .content .tag h3 {
  font-size: 2rem;
}

.projects .box-container .box:hover .content {
  top: 25%;
}

/* --- PROJECT LEVEL LABELS --- */
.project-level {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.box:hover .project-level {
  opacity: 1;
  transform: translateY(0);
}

.level-flagship {
  color: #ff5500;
  border: 1px solid #ff5500;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.4);
}

.level-midrange {
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.level-entry {
  color: #a0a0a0;
  border: 1px solid #a0a0a0;
  box-shadow: 0 0 10px rgba(160, 160, 160, 0.4);
}

/* --- FLAGSHIP BADGES --- */
.frontline-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 3rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box:hover .frontline-badge {
  opacity: 1;
}

/* Fire Animation */
.fire-badge {
  color: #ff5500;
}

.box:hover .fire-badge {
  animation: fire-flicker 0.4s infinite alternate ease-in-out;
}

.box:hover .fire-badge::before,
.box:hover .fire-badge::after {
  content: '✦';
  position: absolute;
  font-size: 1.5rem;
  color: #ffcc00;
  opacity: 0;
}

.box:hover .fire-badge::before {
  animation: spark-fly-1 1s infinite linear;
  left: -10px;
}

.box:hover .fire-badge::after {
  animation: spark-fly-2 1.2s infinite linear;
  right: -5px;
}

@keyframes fire-flicker {
  0% {
    transform: scale(1) rotate(-5deg);
    filter: drop-shadow(0 0 5px orange) drop-shadow(0 0 10px red);
  }

  100% {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px orange);
  }
}

@keyframes spark-fly-1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-20px, -40px) scale(0.2);
    opacity: 0;
  }
}

@keyframes spark-fly-2 {
  0% {
    transform: translate(0, 0) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(15px, -35px) scale(0.3);
    opacity: 0;
  }
}

/* Lightning Animation */
.lightning-badge {
  color: #00ffff;
}

.box:hover .lightning-badge {
  animation: lightning-strike 0.15s infinite alternate;
}

@keyframes lightning-strike {
  0% {
    transform: scale(1) skewX(0deg);
    filter: drop-shadow(0 0 8px cyan) drop-shadow(0 0 15px blue);
  }

  100% {
    transform: scale(1.2) skewX(-15deg);
    filter: drop-shadow(0 0 12px white) drop-shadow(0 0 25px cyan);
  }
}


.projects .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projects .desc p {
  font-size: 1.5rem;
}

.projects .desc .btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}

/* Deleted redundant .projects .desc .btn and .projects .viewall .btn definitions */
.projects .viewall {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

/* work section ends */

/* experience section starts */
.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.experience .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}

.experience .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: rgb(255, 255, 255);
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  color: #02094b;
  font-family: "Font Awesome\ 5 Free";
}

.experience .left {
  left: 0;
}

.experience .right {
  left: 50%;
}

/* arrows pointing right */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #f68c09;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #f68c09;
}

/* arrows pointing left  */
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #f68c09;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f68c09 transparent transparent;
}

.experience .right::after {
  left: -16px;
}

.experience .content {
  background-color: #f68c09;
  position: relative;
  border-radius: 6px;
}

.experience .content .tag {
  font-size: 1.3rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}

.experience .content .desc {
  margin-left: 1.5rem;
  padding-bottom: 1rem;
}

.experience .content .desc h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.experience .content .desc p {
  font-size: 1.2rem;
}

/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}

/* Removed redundant .morebtn .btn definitions */

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    min-height: 80vh;
  }

  .experience .timeline {
    margin-top: 2rem;
  }

  .experience .timeline::after {
    left: 31px;
  }

  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }

  .experience .container::after {
    font-size: 2.2rem;
  }

  .experience .container::before {
    left: 61px;
    border: medium solid #f68c09;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f68c09 transparent transparent;
  }

  .experience .left::after {
    left: 15px;
  }

  .experience .right::after {
    left: 15px;
  }

  .experience .right {
    left: 0%;
  }

  .morebtn {
    margin-top: 3rem;
  }
}

/* experience media queries ends */
/* experience section ends */

/* experience section ends */

/* gis section starts */
.gis {
  background: var(--bg-color);
  min-height: 60vh;
}

.gis .box-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Specific GIS Button Styling */
.gis .gis-actions {
  display: flex;
  justify-content: flex-start;
  /* Left align */
  gap: 2rem;
  /* Space between buttons */
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Removed specific gis button stylings in favor of global .btn styling */

#map {
  height: 400px;
  width: 100%;
  /* Full width of container */
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--main-color);
  margin-top: 2rem;
  z-index: 1;
}

body.hacker-mode #map {
  border: 2px solid #00ff00;
  box-shadow: 0 0 15px #00ff00;
  filter: grayscale(100%) invert(100%) contrast(90%);
}

/* gis section ends */

/* contact section starts */
.contact {
  background: var(--bg-color);
  min-height: 60vh;
}

.contact .container {
  max-width: 1050px;
  width: 100%;
  background: var(--card-bg);
  border-radius: 1.5rem;
  margin: 2rem auto;
  /* Center with auto */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}

.contact .content .image-box {
  max-width: 60%;
  margin-left: 4rem;
}

.contact .content .image-box img {
  width: 100%;
  height: 40rem;
  object-fit: cover;
}

.contact .content form {
  width: 45%;
  margin-right: 3.5rem;
}

form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem 0;
  width: 100%;
}

form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: rgb(51, 51, 51);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}

form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  border: 1px solid rgb(51, 51, 51);
  background: #e5ecfb;
}

.field input::placeholder,
.message textarea::placeholder {
  color: rgb(51, 51, 51);
}

.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid rgb(115, 3, 167);
}

.field input:focus~i,
.message textarea:focus~i {
  color: rgb(115, 3, 167);
}

form .message {
  position: relative;
  margin: 1rem 0;
  width: 100%;
}

form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}

form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}

form .message textarea::-webkit-scrollbar {
  width: 0px;
}

form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}

.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  transition: 0.3s ease;
  font-family: "Nunito", sans-serif;
}

.button-area button:hover {
  background: #421cecf5;
}

.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}

.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}

.button-area button:hover i {
  left: 8px;
}

/* contact section media queries */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
  }

  .contact .container {
    margin: 3rem 2rem;
    width: auto;
  }

  .contact .container .content {
    padding: 18px 12px;
    flex-direction: column;
  }

  .contact .content .image-box {
    display: none;
  }

  .contact .content form {
    width: 100%;
    margin-right: 0;
  }
}

/* footer section per previous design */
.footer {
  min-height: auto;
  padding-top: 0;
  background: rgb(0, 1, 43);
}

.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}

.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}

.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
}

.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}

.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}

.footer .box-container .box a:hover {
  color: #ffae00;
}

.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}

.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #ffae00;
}

.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}

.footer .credit a {
  color: #ffae00;
}

/* scroll top */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}

#scroll-top.active {
  top: calc(100% - 12rem);
}

/* Common Media Queries */
@media (max-width: 450px) {
  html {
    font-size: 50%;
    /* Slightly smaller base for better scaling */
  }

  body {
    padding-right: 0;
  }

  section {
    padding: 2rem 5%;
    /* More horizontal breathing room */
  }

  /* Hero Section Mobile Opt */
  .home .btn {
    margin: 2rem 0;
    /* Reduced from 4rem */
  }

  .socials {
    margin-top: 6rem;
    /* Reduced from 12rem/9rem */
  }

  .home .image img {
    margin-top: -6rem;
    /* Adjusted to balance the layout */
    width: 65%;
    /* Prevent it from being too overwhelming */
    margin-left: 0;
    /* Center it properly if needed */
  }

  .home .content {
    text-align: center;
    /* Center align hero text on mobile */
    padding-top: 6rem;
  }

  .home .content h2 {
    font-size: 4rem;
    /* Scale down heading */
  }

  .home .content h2 span {
    font-size: 4rem;
  }

  .home .content p {
    font-size: 2rem;
    padding: 1rem 2rem;
    /* Add padding to prevent text hitting edges */
  }

  .home .content p span {
    font-size: 2rem;
  }

  /* Centering social icons on mobile */
  .socials .social-icons li {
    margin: 0.5rem;
  }

  /* About Section Mobile Opt */
  .about .row .image {
    margin-top: 2rem;
  }

  .about .row .image img {
    width: 90%;
    /* Utilize more width */
  }

  .about .row .content {
    padding: 2rem 1rem;
  }

  /* Skills Section Mobile Opt */
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns is better than 1 for skills to save vertical space */
    gap: 1.5rem;
  }

  /* Projects Mobile Opt */
  .projects .box-container .box {
    width: 100%;
    margin-bottom: 3rem;
    /* Add clear separation between cards */
  }
}

/* Hero Logo Video Styles */
.hero-logo {
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  object-fit: cover;
  /* Default for Light Mode */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  margin-left: 6rem;
  /* Maintain positioning */
}

/* Hacker Mode (Dark) - GIS Theme Integration */
body.hacker-mode .hero-logo {
  mix-blend-mode: screen;
  box-shadow: 0 0 30px #00ff00;
  /* Green glow for hacker mode */
}

/* AI GLOW EFFECTS */
@keyframes ai-pulse {
  0% {
    box-shadow: 0 0 5px var(--ai-glow-color), 0 0 10px var(--ai-glow-color);
    text-shadow: 0 0 5px var(--ai-glow-color);
  }

  50% {
    box-shadow: 0 0 20px var(--ai-glow-color), 0 0 30px var(--ai-glow-color);
    text-shadow: 0 0 15px var(--ai-glow-color), 0 0 20px var(--ai-glow-color);
  }

  100% {
    box-shadow: 0 0 5px var(--ai-glow-color), 0 0 10px var(--ai-glow-color);
    text-shadow: 0 0 5px var(--ai-glow-color);
  }
}

.ai-glow {
  animation: ai-pulse 2s infinite alternate;
  border-radius: 5px;
  /* So the box shadow looks nice */
}

/* Specific nav button override to ensure it looks good */
header .navbar ul li a.ai-nav-btn {
  color: var(--ai-glow-color);
  border: 1px solid var(--ai-glow-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

header .navbar ul li a.ai-nav-btn:hover {
  background: var(--ai-glow-color);
  color: #fff;
  /* Ensure contrast on hover */
  box-shadow: 0 0 20px var(--ai-glow-color);
}

/* Heading on AI Page */
.ai-heading {
  font-family: 'Share Tech Mono', monospace;
  font-size: 3rem;
  color: var(--ai-glow-color);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  /* Hint that it's interactive */
}

.ai-heading.animating {
  color: #ffffff;
  text-shadow: 0 0 10px #fff, 0 0 20px var(--ai-glow-color), 0 0 30px var(--ai-glow-color);
  background: rgba(0, 0, 0, 0.4);
  /* Make it pop against matrix bg */
  border-radius: 5px;
  padding: 0 10px;
}

/* Matrix Background */
#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  /* Subtle so content is readable */
  pointer-events: none;
}

body.hacker-mode #matrix-bg {
  opacity: 0.6;
  /* More visible in hacker mode */
}

/* Stunnix Interaction Label */
.stunnix-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1rem;
  color: var(--ai-glow-color);
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 0 5px var(--ai-glow-color);
}

.stunnix-label img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ai-glow-color);
  box-shadow: 0 0 10px var(--ai-glow-color);
}

/* AI Hub Grid */
.ai-projects {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.ai-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.hacker-mode .ai-card {
  background: rgba(0, 20, 0, 0.7);
  border: 1px solid var(--ai-glow-color);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.ai-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px var(--ai-glow-color);
}

.ai-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--ai-glow-color);
}

.ai-card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ai-card .btn {
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 1px solid var(--ai-glow-color);
  color: var(--ai-glow-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  cursor: pointer;
}

.ai-card .btn:hover {
  background: var(--ai-glow-color);
  color: #fff;
  box-shadow: 0 0 10px var(--ai-glow-color);
}

.ai-card .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}