*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* Custom Scrollbar with RGB Gradient */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ff3d3d, #ff6b3d, #ff3d7c, #ff3d3d);
  border-radius: 10px;
  background-size: 200% 200%;
  animation: gradient-animation 5s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.audio {
  display: block;
  margin: 0 auto;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px #ff3d3d, 0 0 20px #ff3d3d, 0 0 30px #ff3d3d, 0 0 40px #ff3d3d;
  border-radius: 29px;                             
}

body{
  position: relative;
  height: fit-content;
  width:100%;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  padding: 30px 0;
  justify-content: center;
  align-items: center;
}

.back-vid {
  position: fixed;
  left: 0;
  top: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
  background-color: #000;
}



.main-section{
  width: 90%;
  min-height: 90vh;
  background-color:#0e121785;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 5px 5px 20px 1px #ff3d3d;
  overflow: hidden;
  padding-bottom: 50px;
}

nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
}

nav h1{
  color: white;
  font-size: 30px;
  font-weight: 900;
}

.navigation {
  display: flex;
}

.navigation a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: 0.2s;
  padding: 0px 25px;
}

.navigation a:hover,
.navigation a.active {
  color: #ff3d3d;
  text-decoration: underline;
}

.menu-btn {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.menu-btn::before {
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 3px;
  background: #fff;
  transform: translateY(-10px);
  box-shadow: 0 10px 0 #fff;
  transition: 0.2s;
}

.menu-btn::after {
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 3px;
  background: #fff;
  transform: translateY(10px);
  transition: 0.2s;
}

.menu-btn.active::before {
  transform: translateY(0) rotate(45deg);
  box-shadow: 0 0 0 #fff;
}

.menu-btn.active::after {
  transform: translateY(0) rotate(-45deg);
}

.hero{
  display: flex;
  align-items: center;
  padding: 30px 5%;
  color: white;
  justify-content: center;
  text-align: center;
}

.hero-info {
  max-width: 800px;
}

.hero h1{
  font-size: 60px;
  margin-bottom: 20px;
}

.hero p{
  max-width: 700px;
  margin: 0 auto;
  margin-top: 7px;
  margin-bottom: 20px;
  font-size: 18px;
}

/* Glowing text effect for main heading */
.glow-text {
  position: relative;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 61, 61, 0.7),
             0 0 20px rgba(255, 61, 61, 0.7),
             0 0 30px rgba(255, 61, 61, 0.7),
             0 0 40px rgba(255, 61, 61, 0.7),
             0 0 70px rgba(255, 61, 61, 0.7);
  background: linear-gradient(90deg, #ff3d3d, #fff, #ff3d3d);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 5s ease-in-out infinite;
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ff3d3d, #000000, #ff3d3d);
  border-radius: 10px;
  background-size: 200% 200%;
  animation: gradient-animation 5s ease infinite;
}

/* Skills Container and Cards */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 5%;
}

.skill-card {
  width: 300px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 61, 61, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 61, 61, 0.2);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 61, 61, 0.5);
  border: 1px solid rgba(255, 61, 61, 0.5);
}

.skill-icon {
  font-size: 60px;
  color: #ff3d3d;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 61, 61, 0.5);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Custom C and C++ icons */
.c-icon, .cpp-icon {
  font-weight: bold;
  font-family: 'Courier New', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Icon animations */
.icon-pulse {
  animation: iconPulse 2s infinite;
}

.icon-rotate {
  animation: iconRotate 6s infinite linear;
}

.icon-float {
  animation: iconFloat 3s infinite ease-in-out;
}

.icon-shake {
  animation: iconShake 3s infinite;
}

.skill-card:hover .skill-icon {
  transform: scale(1.2);
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 61, 61, 0.8), 0 0 30px rgba(255, 61, 61, 0.6);
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes iconRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes iconShake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.skill-info {
  width: 100%;
  color: white;
  text-align: center;
}

.skill-info h3 {
  font-size: 22px;
  color: #ff3d3d;
  text-transform: uppercase;
  letter-spacing: 1px;
}



.skill-info p {
  font-size: 16px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .skill-card {
    width: 250px;
  }
}

@media (max-width: 980px) {
  body {
    height: fit-content;
    overflow: auto;
  }
  
  .main-section {
    height: auto;
    min-height: 90vh;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 5%;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .skill-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }
  
  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(14, 18, 23, 0.9);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    z-index: 1;
  }
  
  .navigation.active {
    right: 0;
  }
  
  .navigation a {
    display: block;
    font-size: 24px;
    margin: 20px 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .skill-card {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 20px;
  }
  
  nav h1 {
    font-size: 24px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .skill-card {
    padding: 15px;
  }
  
  .skill-icon {
    font-size: 50px;
  }
  
  .skill-info h3 {
    font-size: 20px;
  }
}
