/* ===== FONT STACK ===== */
:root {
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Exo 2", sans-serif;
  --font-code: "Share Tech Mono", monospace;
}


@keyframes warp {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Scroll Laser */
.scroll-laser {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px var(--accent);
  z-index: 9998;
  width: 0%;
  transition: width 0.1s;
}

/* style.css */

/* Update the body to allow the canvas to show through */
body {
  line-height: 1.6;
  overflow-x: hidden;
  background-color: transparent;
  position: relative;
  /* Removed: background-image: var(--circuit-board); */
}

/* Remove the static gradient overlay so the animation is visible */
body::before {
  display: none;
  /* content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(13, 2, 33, 0.8) 0%,
      rgba(26, 26, 46, 0.9) 100%);
  z-index: -1; */
}

/* Ensure the canvas stays fixed in the background */
.darkveil-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Force fonts globally */
body,
button,
input,
select,
textarea,
p,
a,
li {
  font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.section-title {
  font-family: var(--font-heading) !important;
  letter-spacing: 1px;
}

.terminal-content,
.project-tech span,
code,
.skill-item p {
  font-family: var(--font-code) !important;
}

/* ===== RESPONSIVE FIXES ===== */
/* Mobile Navbar */
@media (max-width: 768px) {
  .navbar-collapse {
    background: rgba(171, 176, 186, 0.95);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0;
  }
}

/* Hero Section Stacking */
@media (max-width: 992px) {
  .hero {
    text-align: center;
    padding-top: 8rem;
  }

  .hero-img {
    margin-top: 2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Project Cards Single Column on Mobile */
@media (max-width: 576px) {
  .project-card {
    margin-bottom: 1.5rem;
  }
}

/*----------------------------------------------*/
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;

  width: 2px;
}

::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

::-webkit-scrollbar-track-piece {
  background: transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  border-radius: 10px;

}

::-webkit-scrollbar-track {
  background: black;
  border: 1px solid black;
  border-radius: 10px;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/*---------------------------------------------*/
/* Skills Section Stacking */
@media (max-width: 768px) {
  .skills-category {
    margin-bottom: 2rem;
  }
}

/* Contact Form Full Width on Mobile */
@media (max-width: 768px) {
  .contact-form {
    margin-top: 2rem;
  }
}

/* ========== EXISTING STYLES ========== */
/* Enhanced Space Portfolio Theme */
:root {
  --primary: #bc13fe;
  /* Nebula Purple */
  --primary-light: #d86aff;
  --secondary: #050b14;
  /* Deep Space */
  --accent: #4cc9f0;
  /* Star Blue */
  --accent-dark: #4361ee;
  --text: #ffffff;
  --text-secondary: #b8c1ec;
  --card-bg: rgba(23, 25, 35, 0.85);
  /* Glassmorphism effect */
  --success: #00ff9d;
  --matrix-green: #00ff41;
  --neon-pink: #f72585;
  --cyber-yellow: #ffd300;
  --hacker-green: #39ff14;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--secondary);
  /* Ensure dark background */
}



/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3rem 0;
  position: relative;
}

/* Glitch Text Effect */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--neon-pink);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(42px, 9999px, 44px, 0);
  }

  5% {
    clip: rect(12px, 9999px, 59px, 0);
  }

  10% {
    clip: rect(48px, 9999px, 29px, 0);
  }

  15% {
    clip: rect(42px, 9999px, 73px, 0);
  }

  20% {
    clip: rect(63px, 9999px, 27px, 0);
  }

  25% {
    clip: rect(34px, 9999px, 55px, 0);
  }

  30% {
    clip: rect(86px, 9999px, 73px, 0);
  }

  35% {
    clip: rect(20px, 9999px, 20px, 0);
  }

  40% {
    clip: rect(26px, 9999px, 60px, 0);
  }

  45% {
    clip: rect(25px, 9999px, 66px, 0);
  }

  50% {
    clip: rect(57px, 9999px, 98px, 0);
  }

  55% {
    clip: rect(5px, 9999px, 46px, 0);
  }

  60% {
    clip: rect(30px, 9999px, 16px, 0);
  }

  65% {
    clip: rect(59px, 9999px, 50px, 0);
  }

  70% {
    clip: rect(41px, 9999px, 62px, 0);
  }

  75% {
    clip: rect(2px, 9999px, 82px, 0);
  }

  80% {
    clip: rect(47px, 9999px, 73px, 0);
  }

  85% {
    clip: rect(3px, 9999px, 27px, 0);
  }

  90% {
    clip: rect(26px, 9999px, 55px, 0);
  }

  95% {
    clip: rect(42px, 9999px, 97px, 0);
  }

  100% {
    clip: rect(38px, 9999px, 49px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }

  5% {
    clip: rect(52px, 9999px, 74px, 0);
  }

  10% {
    clip: rect(79px, 9999px, 85px, 0);
  }

  15% {
    clip: rect(75px, 9999px, 5px, 0);
  }

  20% {
    clip: rect(67px, 9999px, 61px, 0);
  }

  25% {
    clip: rect(14px, 9999px, 79px, 0);
  }

  30% {
    clip: rect(1px, 9999px, 66px, 0);
  }

  35% {
    clip: rect(86px, 9999px, 30px, 0);
  }

  40% {
    clip: rect(23px, 9999px, 98px, 0);
  }

  45% {
    clip: rect(85px, 9999px, 72px, 0);
  }

  50% {
    clip: rect(71px, 9999px, 75px, 0);
  }

  55% {
    clip: rect(2px, 9999px, 48px, 0);
  }

  60% {
    clip: rect(30px, 9999px, 16px, 0);
  }

  65% {
    clip: rect(59px, 9999px, 50px, 0);
  }

  70% {
    clip: rect(41px, 9999px, 62px, 0);
  }

  75% {
    clip: rect(2px, 9999px, 82px, 0);
  }

  80% {
    clip: rect(47px, 9999px, 73px, 0);
  }

  85% {
    clip: rect(3px, 9999px, 27px, 0);
  }

  90% {
    clip: rect(26px, 9999px, 55px, 0);
  }

  95% {
    clip: rect(42px, 9999px, 97px, 0);
  }

  100% {
    clip: rect(38px, 9999px, 49px, 0);
  }
}

/* Section Titles */
.section-title {
  position: relative;
  display: table;
  margin: 0 auto 2rem auto;
  background: linear-gradient(90deg, var(--accent), #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  padding-bottom: 15px;
}

/* Glowing center line */
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
  border-radius: 2px;
  box-shadow: 0 0 15px var(--primary);
}

/* Decorative tech brackets */
.section-title::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--accent);
  border-right: 4px solid var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--secondary);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.7);
  transform: translateY(-3px);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 245, 212, 0.3),
      transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--secondary);
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: rgba(15, 23, 42, 0.98) !important;
  backdrop-filter: blur(8px);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  animation: rotateAtom 10s linear infinite;
  transition: transform 0.3s ease;
}

.navbar-brand {
  font-size: 1.3rem;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1.2rem !important;
  font-weight: 500;
  color: var(--text-secondary) !important;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  width: calc(100% - 2.4rem);
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Click effect */
.nav-link:active {
  transform: translateY(2px);
  color: var(--primary-light) !important;
}

/* Mobile menu */
/* ===== MOBILE MENU SIZE ADJUSTMENT ===== */
@media (max-width: 768px) {
  .navbar-collapse {
    background: rgba(26, 26, 46, 0.98);
    padding: 1.5rem;
    /* Increased padding */
    margin-top: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-height: 80vh;
    /* Limits menu height */
    overflow-y: auto;
    /* Adds scroll if needed */
  }

  .navbar-nav {
    gap: 0.8rem;
    /* Increased spacing between items */
  }

  .nav-link {
    padding: 0.8rem 1.2rem !important;
    /* Larger tap targets */
    font-size: 1.1rem;
    /* Slightly larger text */
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    background: rgba(110, 68, 255, 0.1);
  }

  .nav-link::after {
    display: none;
    /* Remove underline on mobile */
  }

  /* Hamburger icon size */
  .navbar-toggler {
    font-size: 0.1 rem;
    padding: 0.2rem;

    color: #00c4a6;
  }
}

/* Smaller devices (e.g. iPhone SE) */
@media (max-width: 576px) {
  .navbar-collapse {
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.7rem 1rem !important;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-logo {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .navbar-collapse {
    background: rgba(26, 26, 46, 0.95);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    padding: 0.8rem 0 !important;
    display: block;
  }

  .nav-link::after {
    left: 0;
    width: 100%;
  }
}

/*----------------------------------------------------------------------------------------------------------------*/
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 1rem 0 2rem;
  color: var(--text-secondary);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}


.social-icons a:hover {
  background-color: var(--accent);
  color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
}

.hero-img {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(188, 19, 254, 0.4),
    0 0 60px rgba(76, 201, 240, 0.2);
  transition: all 0.5s ease;
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  max-width: 350px;
  /* Limit width to make it smaller */
  width: 100%;
  /* Ensure responsiveness */
  margin: 0 auto;
  /* Center the image */
}

.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), transparent, var(--accent));
  -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-out;
  mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: hero-shine 4s infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes hero-shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

@media (max-width: 768px) {
  .hero-img {
    max-width: 250px;
  }
}

.hero-img:hover {
  box-shadow: 0 0 50px rgba(188, 19, 254, 0.6),
    0 0 100px rgba(76, 201, 240, 0.4);
  transform: translateY(-10px);
}

.hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-img:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(139, 217, 115, 0.4);
}

/* Updated About Section */

.about {
  background: transparent;
  position: relative;
  overflow: hidden;
  width: auto;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
  height: fit-content;
}

.about-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(125, 123, 238, 0.2);
}

.about-content {
  background-color: rgba(26, 26, 46, 0.7);
  padding: 2.5rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(144, 30, 30, 0.1);
}

.about-content h3 {
  color: rgba(51, 143, 255, 0.588);
  margin-bottom: 1rem;
}

/*-------------------------------------------------------*/
.education {
  background: transparent;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.education::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.education .container {
  position: relative;
  z-index: 1;
}

.timeline-chain {
  position: relative;
  padding-left: 30px;
  margin-top: 3rem;
}

.chain-item {
  position: relative;
  padding-bottom: 2.5rem;
  will-change: transform, opacity;
}

.chain-connector {
  position: absolute;
  left: -30px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chain-line {
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  flex-grow: 1;
  margin: 10px 0;
}

.chain-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--primary);
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(0, 245, 212, 0.3);
  position: relative;
  z-index: 1;
  animation: pulse 2s infinite;
}

.chain-content {
  background: rgba(26, 26, 46, 0.7);
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(10px);
  margin-left: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.education-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.education-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

.chain-item:nth-child(even) .chain-content {
  margin-left: 0;
  margin-right: 30px;
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: 8px 0 0 8px;
}

.chain-item:nth-child(even) .chain-connector {
  left: auto;
  right: -30px;
}

.chain-content h4 {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 5px 0;
}

.chain-content h5 {
  color: #ffffff;
  margin: 0;
  font-size: 0.9rem;
  font-weight: normal;
}

.chain-content:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 25px rgba(0, 245, 212, 0.2);
}

.chain-date {
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.chain-date::before {
  content: "⌛";
  margin-right: 8px;
  filter: drop-shadow(0 0 2px var(--accent));
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 245, 212, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 245, 212, 0);
  }
}

@media (max-width: 768px) {
  .timeline-chain {
    padding-left: 20px;
  }

  .chain-connector {
    left: -20px;
  }

  .chain-item:nth-child(even) .chain-connector {
    right: -20px;
  }

  .chain-content {
    margin-left: 20px;
    padding: 1rem;
  }

  .chain-item:nth-child(even) .chain-content {
    margin-right: 20px;
  }

  .education-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .education-icon {
    width: 40px;
    height: 40px;
  }
}

/*----------------------------------------------*/
/*----------------------------------------------------------------------------------------------------------------*/
/* Experience Section Styles */
/* Experience Section */

.xp-section {
  background: transparent;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.xp-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.xp-section .container {
  position: relative;
  z-index: 1;
}

.timeline-chain {
  position: relative;
  padding-left: 30px;
  margin-top: 1rem;
}

.chain-item {
  position: relative;
  padding-bottom: 2.5rem;
  will-change: transform, opacity;
}

.chain-connector {
  position: absolute;
  left: -30px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chain-line {
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  flex-grow: 1;
  margin: 10px 0;
}

.chain-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--primary);
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(0, 245, 212, 0.3);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 10px;
  animation: pulse 2s infinite;
}

.chain-node i {
  animation: spin 5s linear infinite;
}

.chain-content {
  background: rgba(26, 26, 46, 0.7);
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(10px);
  margin-left: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



.chain-start {
  margin-bottom: 1rem;
}

.chain-end {
  margin-top: 1rem;
}

.star-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--accent);
  box-shadow: 0 0 15px var(--accent), 0 0 30px rgba(0, 245, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  animation: pulse 2s infinite alternate, float 3s infinite ease-in-out;
  z-index: 2;
}

.chain-end-text {
  color: var(--accent);
  font-family: var(--font-code);
  margin-top: 1rem;
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.9;
  text-shadow: 0 0 5px rgba(0, 245, 212, 0.5);
}

.xp-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.xp-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
  transition: transform 0.3s ease;
}

.chain-content:hover .xp-logo {
  transform: rotate(10deg) scale(1.05);
}

.chain-date {
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.ex-chain-date::before {
  content: "🗓️";
  margin-right: 8px;
  filter: drop-shadow(0 0 2px var(--accent));
}

.xp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.xp-tech span {
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-code);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 245, 212, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 245, 212, 0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .timeline-chain {
    padding-left: 20px;
  }

  .chain-connector {
    left: -20px;
  }

  .chain-content {
    margin-left: 20px;
    padding: 1rem;
  }

  .xp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .xp-logo {
    width: 40px;
    height: 40px;
  }
}

/*----------------------------------------------------------------------------------------------------------------*/
.skills {
  background: transparent;
  padding: 4rem 1rem;
  position: relative;
}

.skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.skills .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}



.skills-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.skills-box {
  background-color: rgba(17, 17, 35, 0.8);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  flex: 1 1 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.skills-title {
  color: #00f5d4;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.3s ease;
  min-width: 120px;
}

.skill-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.skill-item:hover {
  background-color: rgba(0, 245, 212, 0.1);
  border-color: #00f5d4;
}

@media (max-width: 768px) {
  .skills-boxes {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* reduced gap between skill-boxes */
  }

  .skills-box {
    width: 100%;
    padding: 1.2rem;
    /* tighter padding inside each box */
  }

  .skills-list {
    gap: 0.5rem;
    /* less space between skill-item tags */
  }

  .skill-item {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    padding: 0.4rem 0.6rem;
    /* less vertical space */
    justify-content: center;
    box-sizing: border-box;
  }

  .skill-item img {
    width: 20px;
    height: 20px;
  }

  .skills-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    /* reduce title bottom margin */
  }
}


/*----------------------------------------------------------------------------------------------------------------*/


/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.skill-category h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-item p {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  position: relative;
}

.skill-level::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/*-------------------------------------------------------------------------------*/

/* Coding Graphs full-width black row */
.coding-graphs-wrapper {
  position: relative;
}

.coding-graphs-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.coding-graphs {
  padding: 4rem 1rem;
  position: relative;
  z-index: 1;
}

.coding-card {
  background-color: rgba(17, 17, 35, 0.8);
  border-radius: 1rem;
  border: 1px solid rgba(0, 245, 212, 0.35);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.coding-card h3 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.coding-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.coding-card img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

/* Ensure equal-height columns for the coding graphs */
.coding-graphs .row {
  display: flex;
  align-items: stretch;
}

.coding-graphs .col-lg-6 {
  display: flex;
}

/* Hover animation for coding cards */
.coding-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 245, 212, 0.35);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .coding-card {
    padding: 1.2rem;
  }
}

/*-------------------------------------------------------------------------------*/
/*project section*/
/* Projects Section */
.projects {
  background: transparent;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.projects .container {
  position: relative;
  z-index: 1;
}

.pro {
  padding: 1rem;
  display: flex;
}

.project-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  /* Glass effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 15px 35px rgba(188, 19, 254, 0.3);
  /* Nebula Purple Glow */
  border-color: var(--accent);
}

.project-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

/* New hover gradient overlay effect */
.color-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,

    );
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.project-card:hover .color-overlay {
  opacity: 0.3;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  white-space: normal;
  overflow: visible;
}

.project-content p {
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}



.project-card:hover .project-content p {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-tech span {
  background-color: rgba(110, 68, 255, 0.1);
  color: var(--accent);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(110, 68, 255, 0.3);
}

.project-tech span:hover {
  background-color: rgba(110, 68, 255, 0.2);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    max-width: 100%;
  }
}

/*---------------------------------------------------------------------------------*/
/*Achievements Section*/
/* Achievements Section */
.achievements {
  min-height: 100vh;
  padding: 120px 0 100px 0;
  position: relative;
  /* overflow: hidden; Removed to allow scrolling */
}

.achievements::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.achievements .container {
  position: relative;
  z-index: 1;
}

.awards-header {
  text-align: center;
  margin: 2rem 0;
}

.awards-header h3 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.header-divider {
  height: 3px;
  width: 100px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  margin: 0 auto;
  border-radius: 3px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.achievements-grid .achievement-card {
  grid-column: span 2;
}

/* Center the last 2 cards (4th and 5th) in a 3-col layout */
.achievements-grid .achievement-card:nth-child(4) {
  grid-column: 2 / span 2;
  margin-right: 0.5rem;
}

.achievements-grid .achievement-card:nth-child(5) {
  grid-column: 4 / span 2;
  margin-left: 0.5rem;
}

.achievement-card {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(110, 68, 255, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(110, 68, 255, 0.5);
}

/* Media Section */
.achievement-media {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: rgba(110, 68, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.badge-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.media-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(0, 245, 212, 0.7);
}

/* Content Section */
.achievement-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.achievement-content h4 {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  text-align: center;
  white-space: normal;
  overflow: visible;
  opacity: 1;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.event-details i {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

/* Certificate Banner */
.certificate-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(17, 17, 35, 0.6);
  border-radius: 0.5rem;
  padding: 0.6rem;
  border: 1px solid rgba(110, 68, 255, 0.2);
  transition: all 0.3s ease;
}

.certificate-banner:hover {
  background: rgba(17, 17, 35, 0.8);
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(0, 245, 212, 0.2);
}

.certificate-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 0.3rem;
  overflow: hidden;

  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.certificate-image:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 245, 212, 0.3);
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}



.achievement-card:hover .achievement-description {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

/* Medal Colors */
.gold {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.bronze {
  color: #CD7F32;
  text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

/* Hover Effects */
.achievement-card:hover {
  transform: translateY(-5px) scale(1.01);
}

.achievement-card:hover .badge-icon {
  transform: rotate(15deg);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
  }

  /* Reset all column positioning from desktop 6-col grid */
  .achievements-grid .achievement-card,
  .achievements-grid .achievement-card:nth-child(1),
  .achievements-grid .achievement-card:nth-child(2),
  .achievements-grid .achievement-card:nth-child(3),
  .achievements-grid .achievement-card:nth-child(4),
  .achievements-grid .achievement-card:nth-child(5) {
    grid-column: span 1;
    margin: 0;
  }

  /* Center the last card (5th) if it's alone in final row */
  .achievements-grid .achievement-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .media-title {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1.5px;
  }

  .achievement-content h4 {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 1;
  }

  .event-details {
    font-size: 0.62rem;
  }
}

@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .achievements-grid .achievement-card,
  .achievements-grid .achievement-card:nth-child(1),
  .achievements-grid .achievement-card:nth-child(2),
  .achievements-grid .achievement-card:nth-child(3),
  .achievements-grid .achievement-card:nth-child(4),
  .achievements-grid .achievement-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .achievement-card {
    border-radius: 0.8rem;
  }

  .achievement-media {
    height: 120px;
  }

  .badge-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .media-title {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 1px;
  }

  .achievement-content {
    padding: 0.9rem;
  }

  .achievement-content h4 {
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 1;
  }

  .event-details {
    font-size: 0.6rem;
  }

  .certificate-banner {
    padding: 0.5rem;
  }

  .certificate-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .achievement-description {
    font-size: 0.82rem;
  }

  .awards-header h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .achievement-media {
    height: 110px;
  }

  .badge-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .media-title {
    font-size: 1.2rem;
    font-weight: 400;
  }

  .achievement-content {
    padding: 0.75rem;
  }

  .achievement-content h4 {
    font-size: 1rem;
    font-weight: 400;
    opacity: 1;
  }

  .event-details {
    font-size: 0.58rem;
  }

  .certificate-banner {
    flex-direction: column;
    align-items: center;
    padding: 0.4rem;
  }

  .certificate-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .awards-header h3 {
    font-size: 1.2rem;
  }
}

/*------------------------------------------------------------------------------------------------*/
/*Certificate PArt*/
/* Certificate Slideshow Styles */
.cert-slideshow-wrapper {
  margin: 3rem auto;
  max-width: 800px;
  position: relative;
}

.cert-slideshow-container {
  position: relative;
  background: rgba(26, 26, 46, 0.8);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(110, 68, 255, 0.3);
  padding: 1.5rem;
  height: 500px;
  /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-prev,
.cert-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: var(--accent);
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  /* Increased z-index */
  text-decoration: none;
}

.cert-next {
  right: 10px;
  /* Added spacing from edge */
  border-radius: 50%;
  /* Circular button */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cert-prev {
  left: 10px;
  /* Added spacing from edge */
  border-radius: 50%;
  /* Circular button */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cert-prev:hover,
.cert-next:hover {
  background-color: var(--accent);
  color: var(--secondary);
  transform: scale(1.1);
}

@media (max-width: 768px) {

  .cert-prev,
  .cert-next {
    display: none !important;
    /* Force hide on mobile */
  }

  .cert-slideshow-container {
    height: auto;
    min-height: 400px;
    padding: 1rem;
  }

  .cert-slide-img {
    max-height: 250px;
  }
}

.cert-slide {
  display: none;
  width: 100%;
  animation: cert-fade-anim 0.6s ease;
}

@keyframes cert-fade-anim {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

.cert-slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cert-slide-img {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.cert-slide-info {
  text-align: center;
  margin-top: 1.5rem;
  color: white;
  width: 100%;
}

.cert-slide-info h4 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.cert-slide-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

/* Navigation buttons */
.cert-prev,
.cert-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  color: white;
  font-weight: bold;

  font-size: 1.5rem;
  transition: 0.3s;
  border-radius: 50%;
  user-select: none;
  background-color: rgba(110, 68, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cert-next {
  right: 20px;
}

.cert-prev {
  left: 20px;
}

.cert-prev:hover,
.cert-next:hover {
  background-color: var(--accent);
  color: var(--secondary);
}

/* Dots/bullets/indicators */
.cert-dots-container {
  text-align: center;
  margin-top: 1.5rem;
}

.cert-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cert-dot.cert-active,
.cert-dot:hover {
  background-color: var(--accent);
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cert-slide-img {
    max-height: 300px;
  }

  .cert-prev,
  .cert-next {
    width: 0px;
    height: 0px;
    font-size: 0rem;
  }
}

@media (max-width: 480px) {
  .cert-slide-img {
    max-height: 250px;
  }

  .cert-slide-info h4 {
    font-size: 1.1rem;
  }

  .cert-prev,
  .cert-next {
    width: 0px;
    height: 0px;
    font-size: 0rem;
  }

  .cert-dot {
    height: 5px;
    width: 5px;
  }
}

/*------------------------------------------------------------------------------------------------*/
/* Contact Section */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-title {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background-color: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
}

.social-icon.linkedin {
  background-color: #0A66C2;
}

.social-icon.github {
  background-color: #333;
}

.social-icon.twitter {
  background-color: #1DA1F2;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
}

/* ===========================================================================================
   ANIMATION ADDITIONS
   =========================================================================================== */

/* ----- 1. Reveal on Scroll (activates the existing JS reveal-on-scroll / revealed logic) ----- */
.skills-box.reveal-on-scroll,
.achievement-card.reveal-on-scroll,
.coding-card.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skills-box.revealed,
.achievement-card.revealed,
.coding-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays – achievement cards */
.achievements-grid .achievement-card:nth-child(1) { transition-delay: 0s; }
.achievements-grid .achievement-card:nth-child(2) { transition-delay: 0.1s; }
.achievements-grid .achievement-card:nth-child(3) { transition-delay: 0.2s; }
.achievements-grid .achievement-card:nth-child(4) { transition-delay: 0.3s; }
.achievements-grid .achievement-card:nth-child(5) { transition-delay: 0.4s; }

/* Stagger delays – skills boxes */
.skills-boxes .skills-box:nth-child(1) { transition-delay: 0s; }
.skills-boxes .skills-box:nth-child(2) { transition-delay: 0.13s; }
.skills-boxes .skills-box:nth-child(3) { transition-delay: 0.26s; }
.skills-boxes .skills-box:nth-child(4) { transition-delay: 0.39s; }

/* ----- 2. Section title slide-up on scroll ----- */
.section-title.section-title-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-title.section-title-anim.title-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- 3. Typewriter blinking cursor ----- */
.cursor-blink {
  display: inline-block;
  color: var(--accent);
  animation: blink 0.75s step-end infinite;
  margin-left: 2px;
}



.social-icon.leetcode {
  background-color: #FFA116;
}

.social-icon.hackerrank {
  background-color: #2EC866;
}

.contact-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;

  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form .form-control {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}


.form-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  display: none;
  /* Hidden by default */
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
}

.contact-form .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;

}

/* Add these styles to your existing CSS */
.btn-mail {
  margin-top: 10px;
  padding: 0.5rem 1rem;
  background-color: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mail:hover {
  background-color: var(--accent);
  color: rgb(11, 9, 9);
}

.platform-section {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

/* Keep all your existing contact styles */
/* -------------------------------------------------------------------------------------------------*/
/* Terminal Window Effect */
.terminal-window {
  background-color: rgba(10, 10, 20, 0.7);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(110, 68, 255, 0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot-red {
  background-color: #ff5f56;
}

.dot-yellow {
  background-color: #ffbd2e;
}

.dot-green {
  background-color: #27c93f;
}

.terminal-content {
  color: var(--hacker-green);
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
  line-height: 1.6;
}

.terminal-content::after {
  content: "▋";
  animation: blink 1s infinite;
}

/* Matrix Rain Effect */
.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  opacity: 0.2;
}

.matrix-column {
  position: absolute;
  top: -100px;
  font-size: 18px;
  color: var(--matrix-green);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  text-shadow: 0 0 5px var(--matrix-green);
  animation: matrix-fall linear infinite;
}

@keyframes matrix-fall {
  to {
    transform: translateY(100vh);
  }
}

/* Cyber Grid Pattern */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(110, 68, 255, 0.1) 1px,
      transparent 1px),
    linear-gradient(90deg, rgba(110, 68, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: -1;
}

/* Footer */
footer {
  background-color: rgb(0, 0, 0);
  padding: 2rem 0;
  text-align: center;
  position: relative;
}

.footer-logo h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer-logo h1:hover {
  letter-spacing: 2px;

  color: var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;

}


/* Terminal Cursor */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background-color: var(--accent);
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    text-align: center;
    padding-top: 6rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .exp-timeline::before {
    left: 1.5rem;
  }

  .exp-item {
    padding-left: 4rem;
  }

  /* Tighten spacing for Achievements + Certificate slideshow on mobile */
  .achievements {
    min-height: auto;
    padding: 60px 0 40px 0;
  }

  .awards-header {
    margin: 1.2rem 0 0.8rem 0;
  }

  .cert-slideshow-wrapper {
    margin-top: 1rem;
  }

  /* Tighten spacing for Get In Touch (Contact) on mobile */
  .contact {
    min-height: auto;
    padding: 50px 0 40px 0;
    align-items: flex-start;
  }

  .contact-title {
    margin-bottom: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 3rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-outline {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }
}

@keyframes rotateAtom {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Anime.js Letter Animation */
.letter {
  display: inline-block;
  line-height: 1em;
}

/* ===================================================================
   DAY 1-9: PORTFOLIO ENHANCEMENTS
   =================================================================== */

/* --- Day 4: Skill item micro-interactions --- */
.skill-item {
  transition: all 0.3s ease !important;
  cursor: default;
}

.skill-item:hover {
  background-color: rgba(76, 201, 240, 0.12) !important;
  border-color: var(--accent) !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 4px 20px rgba(76, 201, 240, 0.25) !important;
}

.skill-item img {
  transition: all 0.3s ease;
}

.skill-item:hover img {
  transform: rotate(8deg) scale(1.15);
  filter: drop-shadow(0 0 6px var(--accent));
}

/* --- Day 5: Project card view code button --- */
.view-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(76, 201, 240, 0.5);
  color: var(--accent);
  font-size: 0.75rem;
  font-family: var(--font-body) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  background: rgba(76, 201, 240, 0.08);
  box-shadow: 0 0 8px rgba(76, 201, 240, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  width: fit-content;
}

.view-code-btn:hover {
  background: rgba(76, 201, 240, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.45), 0 0 35px rgba(76, 201, 240, 0.2);
  transform: translateY(-3px);
  color: #fff;
}

/* --- Day 4: Button active press effect --- */
.btn:active {
  transform: translateY(2px) scale(0.97) !important;
  transition: transform 0.08s ease !important;
}

/* --- Day 4: Scroll reveal --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* --- Day 1: Section title entrance --- */
.section-title {
  transition: letter-spacing 0.5s ease;
}

/* --- Day 3: Responsive hero --- */
@media (max-width: 768px) {
  .hero-btns {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
}

/* --- Day 2: Improve typography contrast --- */
.project-content h3 {
  line-height: 1.3;
  font-size: clamp(1rem, 2vw, 1.3rem) !important;
}

.about-content p,
.chain-content p {
  line-height: 1.8;
}

/* --- Day 1: Consistent card glow on hover --- */
.skills-box {
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.skills-box:hover {
  box-shadow: 0 0 30px rgba(76, 201, 240, 0.15);
  border-color: rgba(76, 201, 240, 0.3);
  transform: translateY(-4px);
}
