/* Add these responsive improvements at the top of your CSS file, after the variable declarations */

/* Base responsive improvements */
html,
body {
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  max-width: 100%;
}

/* Responsive container */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* 
 * Sriraghavan K - Tech Portfolio
 * Main Stylesheet
 */

/* ===== Base Styles ===== */
:root {
  --primary-color: #ff5c33;
  --secondary-color: #222;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #0a192f;
  --darker-color: #0a1221;
  --gray-color: #6c757d;
  --border-color: #dee2e6;
  --gradient-start: #00c6ff;
  --gradient-end: #0072ff;
  --neon-glow: 0 0 10px rgba(255, 92, 51, 0.8), 0 0 20px rgba(255, 92, 51, 0.6), 0 0 30px rgba(255, 92, 51, 0.4);
  --blue_glow: 0 0 10px rgba(0, 198, 255, 0.8), 0 0 20px rgba(0, 198, 255, 0.6), 0 0 30px rgba(0, 198, 255, 0.4);
  --tab-active-color: #ff5c33;
  --tab-inactive-color: rgba(255, 255, 255, 0.7);
  --font-code: "JetBrains Mono", "Fira Code", monospace;
  --font-heading: "Poppins", "Montserrat", sans-serif;
  --font-body: "Inter", "Roboto", sans-serif;
}

/* Add styles for 3D scene */
.tech-3d-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Lower z-index to keep it behind content */
  pointer-events: none; /* Allow clicks to pass through to elements below */
}

/* Animation for floating elements */
@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(0) translateX(10px);
  }
  75% {
    transform: translateY(10px) translateX(5px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: black;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 100px 0;
}

.bg-dark {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* ===== Loader ===== */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--primary-color);
  animation: spin 2s linear infinite;
}

.loader-circle:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-top-color: transparent;
  border-right-color: var(--gradient-start);
  animation: spin 1.5s linear infinite reverse;
}

.loader-circle:nth-child(3) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: var(--gradient-end);
  animation: spin 1s linear infinite;
}

.loader-text {
  position: absolute;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.loader-text span {
  display: inline-block;
  opacity: 0;
  animation: fadeInOut 2s infinite;
}

.loader-text span:nth-child(1) {
  animation-delay: 0.1s;
}
.loader-text span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-text span:nth-child(3) {
  animation-delay: 0.3s;
}
.loader-text span:nth-child(4) {
  animation-delay: 0.4s;
}
.loader-text span:nth-child(5) {
  animation-delay: 0.5s;
}
.loader-text span:nth-child(6) {
  animation-delay: 0.6s;
}
.loader-text span:nth-child(7) {
  animation-delay: 0.7s;
}
.loader-text span:nth-child(8) {
  animation-delay: 0.8s;
}
.loader-text span:nth-child(9) {
  animation-delay: 0.9s;
}
.loader-text span:nth-child(10) {
  animation-delay: 1s;
}

.loader-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: particles 2s infinite;
}

.particle:nth-child(odd) {
  background: var(--gradient-start);
  box-shadow: var(--blue_glow);
}

.particle:nth-child(even) {
  background: var(--primary-color);
  box-shadow: var(--neon-glow);
}

.particle:nth-child(1) {
  top: 0;
  left: 50%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 25%;
  left: 100%;
  animation-delay: 0.2s;
}

.particle:nth-child(3) {
  top: 75%;
  left: 100%;
  animation-delay: 0.4s;
}

.particle:nth-child(4) {
  top: 100%;
  left: 50%;
  animation-delay: 0.6s;
}

.particle:nth-child(5) {
  top: 75%;
  left: 0;
  animation-delay: 0.8s;
}

.particle:nth-child(6) {
  top: 25%;
  left: 0;
  animation-delay: 1s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes particles {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

/* ===== Navbar ===== */
.navbar {
  padding: 20px 0;
  transition: all 0.3s ease;
  background-color: transparent;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(10, 25, 47, 0.95);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--primary-color);
  letter-spacing: -1px;
  position: relative;
  overflow: hidden;
}

.navbar-brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.navbar-brand:hover::after {
  transform: translateX(0);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--light-color);
  padding: 8px 15px;
  position: relative;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--primary-color));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
  opacity: 1;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
  color: var(--light-color);
  font-size: 1.5rem;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Add hamburger menu animation */
.navbar-toggler .hamburger {
  width: 24px;
  height: 20px;
  position: relative;
  display: inline-block;
}

.navbar-toggler .hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--light-color);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.navbar-toggler .hamburger span:nth-child(1) {
  top: 0px;
}

.navbar-toggler .hamburger span:nth-child(2),
.navbar-toggler .hamburger span:nth-child(3) {
  top: 9px;
}

.navbar-toggler .hamburger span:nth-child(4) {
  top: 18px;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
  top: 9px;
  width: 0%;
  left: 50%;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
  transform: rotate(45deg);
  background: var(--primary-color);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  background: var(--primary-color);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(4) {
  top: 9px;
  width: 0%;
  left: 50%;
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    transform-origin: top;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .navbar-collapse.collapsing {
    opacity: 0;
    transform: scaleY(0);
  }

  .navbar-collapse.show {
    opacity: 1;
    transform: scaleY(1);
  }

  .navbar-nav {
    gap: 10px;
    padding: 10px 0;
  }

  .navbar-nav .nav-link {
    padding: 12px 15px;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--light-color); /* Add this to ensure text is visible */
    opacity: 1 !important; /* Force opacity to be 1 */
    transform: translateY(0) !important; /* Reset any transform that might be hiding the items */
  }

  /* Fix for nav items that might be hidden by JavaScript animation */
  .navbar-nav .nav-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
  }
}

/* Extra small devices */
@media (max-width: 575.98px) {
  .navbar {
    padding: 15px 0;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar-toggler {
    width: 36px;
    height: 36px;
  }

  .navbar-collapse {
    margin-top: 10px;
    padding: 15px;
  }
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  position: relative;
  background: var(--dark-color);
  color: var(--light-color);
  overflow: hidden;
}

.particles-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at center, var(--dark-color) 0%, var(--darker-color) 100%);
  overflow: hidden;
}

.particles-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(0, 198, 255, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255, 92, 51, 0.05) 0%, transparent 20%);
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 3; /* Higher z-index to appear above the 3D scene */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); /* Add text shadow for better readability */
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1;
  letter-spacing: -2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, var(--light-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.8;
  transform: translateX(-10px);
  filter: blur(8px);
  z-index: -1;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--light-color);
  opacity: 0.9;
  font-family: var(--font-code);
  letter-spacing: -0.5px;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  font-family: var(--font-body);
}

.animated-text {
  position: relative;
  display: inline-block;
}

.animated-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--gradient-end);
  transform-origin: right;
  animation: reveal 1.5s ease forwards 0.5s;
}

.animated-subtitle {
  position: relative;
  display: inline-block;
}

.animated-subtitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--gradient-end);
  transform-origin: right;
  animation: reveal 1.5s ease forwards 1s;
}

@keyframes reveal {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.btn {
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 92, 51, 0.4);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 92, 51, 0.5);
}

.btn-outline-light {
  border: 2px solid var(--light-color);
  background: transparent;
  color: var(--light-color);
}

.btn-outline-light:hover {
  background-color: var(--light-color);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1.5s ease forwards 2s;
  opacity: 0;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--light-color);
  border-radius: 20px;
  position: relative;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.mouse:hover {
  transform: scale(1.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 92, 51, 0.3);
}

.wheel {
  width: 4px;
  height: 10px;
  background-color: var(--light-color);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: wheel 1.5s infinite;
}

.mouse:hover .wheel {
  background-color: var(--primary-color);
}

@keyframes wheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

.scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  position: relative;
}

.scroll-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--light-color);
  border-right: 2px solid var(--light-color);
  transform: rotate(45deg);
  margin: -5px 0;
  animation: scrollDown 2s infinite;
  transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow span {
  border-color: var(--primary-color);
}

.scroll-arrow span:nth-child(2) {
  animation-delay: -0.2s;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* Tech skills floating icons */
.tech-skills-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-icon {
  position: absolute;
  font-size: 2rem;
  color: var(--light-color);
  opacity: 0.4;
  animation: floatIcon 15s infinite linear;
  text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.tech-icon:nth-child(odd) {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 92, 51, 0.5);
}

@keyframes floatIcon {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(40px, 0) rotate(180deg);
  }
  75% {
    transform: translate(20px, 30px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Typing animation for subtitle */
.typing-animation {
  display: inline-block;
  position: relative;
  font-family: var(--font-code);
  color: var(--gradient-start);
}

.typing-animation::after {
  content: "|";
  position: absolute;
  right: -8px;
  color: var(--primary-color);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* 3D Skills Cube */
.skills-cube-container {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  perspective: 800px;
  z-index: 2;
  cursor: grab;
}

.skills-cube-container:active {
  cursor: grabbing;
}

.skills-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
  transition: transform 0.1s ease;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(10, 25, 47, 0.7);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
  backface-visibility: visible;
  color: var(--light-color);
}

.cube-face:nth-child(1) {
  transform: translateZ(100px);
}
.cube-face:nth-child(2) {
  transform: rotateY(180deg) translateZ(100px);
}
.cube-face:nth-child(3) {
  transform: rotateY(90deg) translateZ(100px);
}
.cube-face:nth-child(4) {
  transform: rotateY(-90deg) translateZ(100px);
}
.cube-face:nth-child(5) {
  transform: rotateX(90deg) translateZ(100px);
}
.cube-face:nth-child(6) {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* Hero content animation */
.hero-content {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Code snippet styling */
.code-snippet {
  font-family: var(--font-code);
  background: rgba(10, 25, 47, 0.7);
  padding: 15px;
  border-radius: 5px;
  border-left: 3px solid var(--primary-color);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.code-snippet::before {
  content: "</>";
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 0.8rem;
  color: var(--primary-color);
  opacity: 0.7;
}

.code-line {
  display: block;
  color: var(--light-color);
  margin-bottom: 5px;
}

.code-comment {
  color: #6a9955;
}

.code-keyword {
  color: #569cd6;
}

.code-string {
  color: #ce9178;
}

.code-function {
  color: #dcdcaa;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

/* ===== About Section ===== */
.about-tabs {
  margin-bottom: 40px;
}

.nav-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 10;
}

.nav-tabs .nav-link {
  border: none;
  color: black;
  font-weight: 600;
  padding: 10px 20px;
  margin-right: 5px;
  border-radius: 0;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block;
}

.tab-content > .show {
  display: block;
}

/* Update the about-img and about-shape styles to support circular images */
.about-img {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: relative;
}

.about-shape {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 4px solid var(--primary-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  border-radius: 50%;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.about-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.about-content .lead {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.about-info {
  margin: 30px 0;
}

.about-info p {
  margin-bottom: 15px;
}

/* Professional Overview Tab */
.professional-content h3,
.education-content h3,
.experience-content h3,
.interests-content h3,
.goals-content h3,
.languages-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.professional-content h3::after,
.education-content h3::after,
.experience-content h3::after,
.interests-content h3::after,
.goals-content h3::after,
.languages-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.competency-list {
  list-style: none;
  padding-left: 0;
}

.competency-list li {
  margin-bottom: 10px;
}

.competency-list i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Education Tab */
.education-timeline {
  position: relative;
  padding: 30px 0;
}

.education-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.1);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
}

.timeline-content {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
  margin-bottom: 5px;
  color: var(--dark-color);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-institution {
  font-weight: 600;
  margin-bottom: 10px;
}

.learning-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.platform-badge {
  background-color: rgba(255, 92, 51, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Experience Tab */
.experience-timeline {
  position: relative;
  padding: 30px 0;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.1);
}

.timeline-responsibilities {
  padding-left: 20px;
  margin-top: 10px;
}

.timeline-responsibilities li {
  margin-bottom: 5px;
}

/* Personal Interests Tab */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.interest-item {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.interest-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.interest-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.interest-item h4 {
  margin-bottom: 15px;
}

.interests-quote {
  padding: 30px;
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  margin-top: 40px;
}

.interests-quote p {
  font-style: italic;
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  margin-top: 40px;
}

.interests-quote p {
  font-style: italic;
  font-size: 1.1rem;
}

/* Future Goals Tab */
.goal-category {
  margin-bottom: 30px;
}

.goal-category h4 {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.goal-category h4 i {
  margin-right: 10px;
}

.goal-list {
  padding-left: 30px;
}

.goal-list li {
  margin-bottom: 10px;
}

/* Language Proficiency Tab */
.language-section {
  margin-bottom: 40px;
}

.language-section h4 {
  margin-bottom: 20px;
  color: var(--dark-color);
}

.language-item {
  margin-bottom: 25px;
}

.language-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.language-level {
  color: var(--primary-color);
  font-weight: 600;
}

.progress {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: visible;
}

.progress-bar {
  background-color: var(--primary-color);
  position: relative;
  border-radius: 4px;
}

.progress-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.language-benefits ul {
  padding-left: 20px;
}

.language-benefits li {
  margin-bottom: 5px;
}

/* ===== Skills Section ===== */
.skills-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.skill-item {
  margin-bottom: 25px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  overflow: visible;
}

.progress-bar {
  background-color: var(--primary-color);
  position: relative;
  border-radius: 0;
}

.progress-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.skill-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--neon-glow);
}

.skill-box i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.skill-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* ===== Projects Section ===== */
.project-filter {
  margin-bottom: 40px;
  text-align: center;
}

.filter-list {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-item {
  padding: 8px 20px;
  margin: 5px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.filter-item.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.project-card {
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  margin-bottom: 30px;
}

.project-card:hover {
  transform: translateY(-10px) rotateY(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
  position: relative;
  overflow: hidden;
  height: 250px; /* Fixed height for project images */
}

.project-img img {
  transition: all 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
  background-color: #fff;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.project-tech {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
}

.project-tech span {
  display: inline-block;
  background-color: rgba(255, 92, 51, 0.1);
  color: var(--primary-color);
  padding: 5px 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  border-radius: 3px;
}

.project-links {
  margin-top: 20px;
}

.project-links a {
  margin-right: 10px;
  display: inline-block;
}

/* Project card equal height */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-img {
  height: 250px; /* Fixed height for all project images */
}

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

/* Push the links to the bottom of the card */
.project-tech {
  margin-top: auto;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.project-links a {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Make sure all project descriptions have the same height */
.project-content p {
  min-height: 80px;
  overflow: hidden;
}

/* Make sure all project titles have the same height */
.project-content h3 {
  min-height: 60px;
  display: flex;
  align-items: center;
}

/* ===== Certifications Section ===== */
.cert-intro {
  text-align: center;
  margin-bottom: 40px;
}

.cert-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--neon-glow);
}

.cert-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 92, 51, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cert-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.cert-issuer {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.cert-date {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== Contact Section ===== */
.contact-info {
  padding-right: 30px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.social-links {
  margin-top: 40px;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--dark-color);
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

.contact-form .form-control {
  background-color: #f8f9fa;
  border: none;
  border-radius: 0;
  padding: 15px;
  color: var(--dark-color);
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(255, 92, 51, 0.25);
  border-color: var(--primary-color);
}

.contact-form .form-control::placeholder {
  color: var(--gray-color);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 60px 0 30px;
}

.footer-logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
  margin-left: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.copyright {
  font-size: 0.9rem;
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark-color);
  color: var(--primary-color);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199.98px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-tabs .nav-link {
    white-space: nowrap;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .about-img {
    margin-bottom: 40px;
  }

  .contact-info {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

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

  .timeline-item {
    padding-left: 50px;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .btn {
    padding: 10px 20px;
  }

  .hero-cta .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

  .hero-cta .btn:last-child {
    margin-left: 0;
  }

  .filter-item {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

/* Add these new styles for the revamped skills section */
.skills-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.skills-header {
  text-align: center;
  margin-bottom: 3rem;
}

.skills-header h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.skills-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.skills-grid-container {
  position: relative;
}

.skills-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.skill-category-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--light-color);
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem 0.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-category-btn:hover {
  background: rgba(255, 92, 51, 0.2);
  transform: translateY(-3px);
}

.skill-category-btn.active {
  background: var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 92, 51, 0.5);
}

.skills-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 250px;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.1) 0%, rgba(255, 92, 51, 0.1) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover .skill-icon {
  transform: scale(1.2);
  color: var(--primary-color);
}

.skill-card:hover .skill-progress-bar {
  width: var(--progress);
}

.skill-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  color: var(--light-color);
}

.skill-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.skill-level {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.skill-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.skill-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gradient-start), var(--primary-color));
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 3px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

.skill-card:hover .skill-tag {
  background: rgba(255, 92, 51, 0.2);
  color: var(--light-color);
}

/* Skill card animations */
.skill-card:nth-child(odd) {
  animation: floatUp 3s infinite alternate;
  animation-delay: calc(var(--i) * 0.2s);
}

.skill-card:nth-child(even) {
  animation: floatDown 3s infinite alternate;
  animation-delay: calc(var(--i) * 0.2s);
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes floatDown {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

/* Skill card glow effect */
.skill-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.skill-card:hover::after {
  opacity: 0.5;
}

/* Skill card hover effect */
.skill-card-content {
  width: 100%;
  transition: all 0.3s ease;
}

.skill-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.skill-card:hover .skill-card-details {
  max-height: 200px;
}

/* Experience indicator */
.experience-indicator {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.experience-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin-right: 4px;
}

.experience-dot.empty {
  background-color: transparent;
  border: 1px solid var(--primary-color);
}

.experience-text {
  font-size: 0.8rem;
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* 3D Skill Showcase */
.skills-3d-showcase {
  position: relative;
  height: 400px;
  margin: 3rem 0;
  perspective: 1000px;
}

.skills-3d-container {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate3D 30s infinite linear;
}

.skill-3d-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--light-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-3d-item:hover {
  color: var(--primary-color);
  box-shadow: 0 0 30px rgba(255, 92, 51, 0.5);
}

@keyframes rotate3D {
  0% {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
  }
}

/* Skill stats section */
.skills-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-masonry {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .skills-3d-showcase {
    height: 300px;
  }

  .skill-3d-item {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .skills-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .skills-masonry {
    grid-template-columns: 1fr;
  }

  .skills-3d-showcase {
    height: 250px;
  }

  .skills-stats {
    grid-template-columns: 1fr;
  }
}

/* Add these styles at the end of your styles.css file */

/* Skills Container */
.skills-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

/* Skills Categories */
.skills-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-category-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--light-color);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.skill-category-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--gradient-start), var(--primary-color));
  z-index: -1;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-category-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-category-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.skill-category-btn.active {
  background: var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 92, 51, 0.5);
}

.skill-category-btn.active::before {
  opacity: 1;
  transform: scale(1);
}

/* Skills Masonry Grid */
.skills-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Skill Card */
.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--light-color);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(var(--color-rgb), 0.15) 0%, transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.skill-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color, var(--primary-color));
}

.skill-card:hover::before {
  opacity: 1;
}

/* Skill Icon Container */
.skill-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.skill-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--light-color);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.skill-card:hover .skill-icon {
  color: var(--color, var(--primary-color));
  transform: scale(1.2) rotate(5deg);
  text-shadow: 0 0 20px rgba(var(--color-rgb), 0.7);
}

/* Special icons for languages without Font Awesome icons */
/* Fix for Express, C, C++, and TypeScript icons */
.express-icon,
.c-icon,
.cpp-icon,
.typescript-icon {
  font-family: var(--font-code);
  font-weight: bold;
  font-size: 2rem;
  color: var(--light-color);
}

.skill-card:hover .express-icon,
.skill-card:hover .c-icon,
.skill-card:hover .cpp-icon,
.skill-card:hover .typescript-icon {
  color: var(--color, var(--primary-color));
  text-shadow: 0 0 15px rgba(var(--color-rgb), 0.7);
}

/* Skill Particles */
.skill-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.skill-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color, var(--primary-color));
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease;
}

.skill-card:hover .skill-particle {
  opacity: 0.7;
  transform: scale(1);
  animation: particleFloat 3s infinite ease-in-out;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(10px, -10px) scale(1.2);
  }
  50% {
    transform: translate(20px, 0) scale(0.8);
  }
  75% {
    transform: translate(10px, 10px) scale(1.1);
  }
}

/* Skill Title */
.skill-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-title,
.skill-card:hover .skill-level,
.skill-card:hover .skill-description {
  color: var(--light-color);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Skill Level */
.skill-level {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

/* Skill Description */
.skill-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

/* Skill Progress */
.skill-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.skill-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gradient-start), var(--color, var(--primary-color)));
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 3px;
}

.skill-card:hover .skill-progress-bar {
  animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Skill Tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.skill-card:hover .skill-tag {
  background: rgba(var(--color-rgb), 0.2);
  color: var(--light-color);
  transform: translateY(-3px);
}

/* Floating Skills Animation */
.floating-skills-container {
  position: relative;
  height: 200px;
  margin: 4rem 0;
  overflow: hidden;
}

.floating-skill {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating-skill:hover {
  transform: scale(1.5) !important;
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(255, 92, 51, 0.7);
}

.html-float {
  color: #e44d26;
  top: 20%;
  left: 10%;
  animation: float1 15s infinite ease-in-out;
}
.css-float {
  color: #264de4;
  top: 50%;
  left: 20%;
  animation: float2 18s infinite ease-in-out;
}
.js-float {
  color: #f7df1e;
  top: 30%;
  left: 30%;
  animation: float3 20s infinite ease-in-out;
}
.react-float {
  color: #61dafb;
  top: 60%;
  left: 40%;
  animation: float4 17s infinite ease-in-out;
}
.node-float {
  color: #339933;
  top: 40%;
  left: 50%;
  animation: float5 19s infinite ease-in-out;
}
.angular-float {
  color: #dd0031;
  top: 70%;
  left: 60%;
  animation: float6 16s infinite ease-in-out;
}
.python-float {
  color: #3776ab;
  top: 25%;
  left: 70%;
  animation: float7 21s infinite ease-in-out;
}
.java-float {
  color: #007396;
  top: 55%;
  left: 80%;
  animation: float8 14s infinite ease-in-out;
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -30px) rotate(5deg);
  }
  50% {
    transform: translate(40px, 0) rotate(0deg);
  }
  75% {
    transform: translate(20px, 30px) rotate(-5deg);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-20px, -20px) rotate(-5deg);
  }
  50% {
    transform: translate(-40px, 0) rotate(0deg);
  }
  75% {
    transform: translate(-20px, 20px) rotate(5deg);
  }
}

@keyframes float3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -10px) rotate(10deg);
  }
  50% {
    transform: translate(60px, 0) rotate(0deg);
  }
  75% {
    transform: translate(30px, 10px) rotate(-10deg);
  }
}

@keyframes float4 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-30px, -20px) rotate(-5deg);
  }
  50% {
    transform: translate(-60px, 0) rotate(0deg);
  }
  75% {
    transform: translate(-30px, 20px) rotate(5deg);
  }
}

@keyframes float5 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -40px) rotate(10deg);
  }
  50% {
    transform: translate(20px, 0) rotate(0deg);
  }
  75% {
    transform: translate(10px, 40px) rotate(-10deg);
  }
}

@keyframes float6 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-10px, -25px) rotate(-10deg);
  }
  50% {
    transform: translate(-20px, 0) rotate(0deg);
  }
  75% {
    transform: translate(-10px, 25px) rotate(10deg);
  }
}

@keyframes float7 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, -35px) rotate(5deg);
  }
  50% {
    transform: translate(30px, 0) rotate(0deg);
  }
  75% {
    transform: translate(15px, 35px) rotate(-5deg);
  }
}

@keyframes float8 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-15px, -15px) rotate(-5deg);
  }
  50% {
    transform: translate(-30px, 0) rotate(0deg);
  }
  75% {
    transform: translate(-15px, 15px) rotate(5deg);
  }
}

/* Skills Stats */
.skills-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.stat-number::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--primary-color));
  border-radius: 3px;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
  color: var(--primary-color);
}

/* Skills Radar Chart */
.skills-radar-container {
  margin-top: 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  height: 400px;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-masonry {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .floating-skills-container {
    height: 150px;
  }

  .skills-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .skills-masonry {
    grid-template-columns: 1fr;
  }

  .skills-stats {
    grid-template-columns: 1fr;
  }
}

/* Add burst animation keyframes */
@keyframes burstParticle {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Add these styles to fix the GitHub icon hover visibility */
.skill-card[data-category="tools"] .skill-icon i.fab.fa-github {
  color: #f0f6fc;
}

.skill-card[data-category="tools"]:hover .skill-icon i.fab.fa-github {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Fix for Express, C, C++, and TypeScript icons */
.express-icon,
.c-icon,
.cpp-icon,
.typescript-icon {
  font-family: var(--font-code);
  font-weight: bold;
  font-size: 2rem;
  color: var(--light-color);
}

.skill-card:hover .express-icon,
.skill-card:hover .c-icon,
.skill-card:hover .cpp-icon,
.skill-card:hover .typescript-icon {
  color: var(--color, var(--primary-color));
  text-shadow: 0 0 15px rgba(var(--color-rgb), 0.7);
}

/* MongoDB specific styling */
.skill-card[data-category="database"] .skill-icon i.fas.fa-database {
  color: #13aa52;
}

.skill-card[data-category="database"]:hover .skill-icon i.fas.fa-database {
  color: #13aa52;
  text-shadow: 0 0 15px rgba(19, 170, 82, 0.7);
}

/* Enhanced Footer Styles */
.footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 60px 0 30px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--primary-color));
}

.footer p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--light-color);
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--primary-color));
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
  font-size: 0.95rem;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact-list li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.copyright {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.footer-credit {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit i {
  color: var(--primary-color);
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--light-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

/* Responsive Footer */
@media (max-width: 767.98px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer-heading {
    margin-top: 20px;
  }
}

/* Add these responsive enhancements to the end of your CSS file */

/* Enhanced Responsive Styles */
@media (max-width: 1199.98px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero .lead {
    font-size: 1.2rem;
  }

  .skills-cube-container {
    right: 5%;
    transform: translateY(-50%) scale(0.9);
  }

  .skills-masonry {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .floating-skills-container {
    height: 180px;
  }

  .about-tabs .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .about-tabs .nav-tabs::-webkit-scrollbar {
    height: 3px;
  }

  .about-tabs .nav-tabs::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .skills-cube-container {
    transform: translateY(-50%) scale(0.8);
    right: 2%;
  }

  .hero-content {
    max-width: 80%;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero {
    text-align: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero .lead {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .skills-cube-container {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .hero-cta {
    justify-content: center;
  }

  .tech-skills-icons .tech-icon {
    font-size: 1.8rem;
  }

  .code-snippet {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .hero .lead {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    margin-bottom: 10px;
    margin-left: 0 !important;
  }

  .navbar {
    padding: 10px 0;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar-toggler {
    width: 36px;
    height: 36px;
  }

  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }

  .tech-skills-icons .tech-icon {
    font-size: 1.5rem;
    opacity: 0.3;
  }

  .code-snippet {
    padding: 10px;
    font-size: 0.8rem;
  }

  .scroll-indicator {
    transform: translateX(-50%) scale(0.8);
    bottom: 15px;
  }

  /* Certifications section responsive */
  .cert-card {
    padding: 20px 15px;
  }

  .cert-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .cert-content h3 {
    font-size: 1.2rem;
  }

  /* Projects section responsive */
  .project-img {
    height: 160px;
  }

  .project-content {
    padding: 15px;
  }

  .project-content h3 {
    font-size: 1.3rem;
  }

  .project-tech span {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Contact section responsive */
  .contact-item i {
    font-size: 1.2rem;
  }

  .contact-form .form-control {
    padding: 12px;
  }

  /* Footer responsive */
  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-heading {
    font-size: 1.1rem;
  }
}

/* Extra small devices - additional styles */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .navbar-brand {
    font-size: 1.4rem;
  }

  .navbar-toggler {
    width: 32px;
    height: 32px;
  }

  .navbar-toggler .hamburger {
    transform: scale(0.9);
  }

  .about-content h3,
  .professional-content h3,
  .education-content h3,
  .experience-content h3,
  .interests-content h3,
  .goals-content h3,
  .languages-content h3 {
    font-size: 1.6rem;
  }

  .timeline-item {
    padding-left: 45px;
  }

  .timeline-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .cert-card {
    padding: 15px 10px;
  }

  .cert-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .cert-content h3 {
    font-size: 1.1rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  .hero {
    height: -webkit-fill-available;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skill-card:nth-child(odd),
  .skill-card:nth-child(even),
  .floating-skill,
  .tech-icon,
  .skills-cube {
    animation: none !important;
  }
}

/* Additional responsive improvements for better mobile experience */
@media (max-width: 767.98px) {
  /* Improve touch targets */
  .nav-link,
  .btn,
  .social-link,
  .filter-item,
  .skill-category-btn {
    padding: 12px 20px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Improve form elements */
  input,
  textarea,
  select,
  button {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  /* Reduce motion for better performance */
  .animated-text::before,
  .animated-subtitle::before {
    animation-duration: 0.5s;
  }

  /* Optimize images */
  img {
    content-visibility: auto;
  }

  /* Optimize scrolling */
  .about-tabs .nav-tabs,
  .skills-categories {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .about-tabs .nav-link,
  .skill-category-btn {
    scroll-snap-align: start;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-color: #f8f9fa;
    --text-color: #e1e1e1;
  }
}

/* ===== Font styles ===== */
.font-code {
  font-family: var(--font-code);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

/* ===== 3D Scene Styles ===== */
.tech-3d-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===== Project Card Improvements ===== */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content p {
  flex-grow: 1;
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.project-links a {
  flex: 1;
  text-align: center;
}

/* ===== Preloader Animation ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-spinner::before,
.preloader-spinner::after {
  content: "";
  position: absolute;
  border: 4px solid transparent;
  border-radius: 50%;
}

.preloader-spinner::before {
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-top-color: var(--gradient-start);
  animation: spin 0.8s linear infinite reverse;
}

.preloader-spinner::after {
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-top-color: var(--light-color);
  animation: spin 1.2s linear infinite;
}

/* ===== End of Stylesheet ===== */

/* Form validation styles */
.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
  border-color: #198754;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

textarea.form-control.is-invalid,
textarea.form-control.is-valid {
  background-position: right calc(0.375em + 0.1875rem) top calc(0.375em + 0.1875rem);
}

/* Add these styles at the end of your styles.css file */

/* Certificate Modal Styles */
.certificate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.certificate-modal-content {
  position: relative;
  background-color: var(--dark-color);
  border-radius: 10px;
  width: 95%;
  max-width: 900px;
  height: 90vh;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}

.certificate-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--light-color);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color:var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  text-align: center;
  padding: 0;
}

.certificate-close:hover,
.certificate-close:focus {
  color: white;
  transform: rotate(90deg);
  background-color:var(--primary-color);
}

.certificate-container {
  flex: 1;
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

#certificate-frame {
  width: 100%;
  height: 100%;
  border: none;
  background-color: white;
  position: absolute;
  top: 0;
  left: 0;
}

/* Remove the certificate controls section that contains the download button */
.certificate-controls {
  display: none;
}

/* Responsive adjustments for certificate modal */
@media (max-width: 768px) {
  .certificate-modal-content {
    width: 95%;
    height: 80vh;
    border-radius: 8px;
  }

  .certificate-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .certificate-modal {
    padding: 10px;
  }

  .certificate-modal-content {
    width: 100%;
    height: 75vh;
    border-radius: 6px;
  }

  .certificate-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Add styles for touch devices */
@media (hover: none) {
  .certificate-close {
    opacity: 1;
    background-color:var(--primary-color);
  }
}

