:where([class^="ri-"])::before { content: "\f3c2"; }

body {
font-family: 'Poppins', sans-serif;
scroll-behavior: smooth;
background-color: #121212;
color: #FFFFFF;
position: relative;
overflow-x: hidden;
}
.animated-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background: linear-gradient(45deg, #121212, #1a1a1a);
overflow: hidden;
}
.animated-bg::before {
content: '';
position: absolute;
width: 200%;
height: 200%;
top: -50%;
left: -50%;
background: radial-gradient(circle, transparent 20%, #121212 70%);
background-size: 20px 20px;
animation: backgroundAnimation 60s linear infinite;
opacity: 0.3;
}
.animated-bg::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236C63FF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
@keyframes backgroundAnimation {
0% {
transform: translate(0, 0) rotate(0deg);
}
100% {
transform: translate(-25%, -25%) rotate(360deg);
}
}
.typing-effect::after {
content: "|";
animation: blink 1s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.nav-glass {
backdrop-filter: blur(10px);
background-color: rgba(18, 18, 18, 0.7);
}
.progress-bar {
position: relative;
height: 8px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.1);
overflow: hidden;
}
.progress-bar::before {
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
background: #6C63FF;
animation: progress-animation 2s ease-in-out forwards;
transform-origin: left;
transform: scaleX(0);
}
@keyframes progress-animation {
to { transform: scaleX(1); }
}
.html-progress::before { width: 95%; }
.css-progress::before { width: 90%; }
.js-progress::before { width: 85%; }
.uiux-progress::before { width: 92%; }
.cursor-trail {
position: fixed;
width: 10px;
height: 10px;
border-radius: 50%;
background: rgba(108, 99, 255, 0.5);
pointer-events: none;
transform: translate(-50%, -50%);
z-index: 9999;
transition: transform 0.1s, opacity 0.5s;
}
.projects-item {
transition: transform 0.3s ease;
}
.projects-item:hover {
transform: translateY(-5px);
}
.projects-overlay {
opacity: 0;
transition: opacity 0.3s ease;
}
.projects-item:hover .projects-overlay {
opacity: 1;
}
input:focus, textarea:focus {
outline: none;
border-color: #6C63FF;
box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}
.scroll-indicator {
animation: bounce 2s infinite;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-20px); }
60% { transform: translateY(-10px); }
}
.skill-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}
.skill-icon {
transition: transform 0.3s ease;
}
.skill-card:hover .skill-icon {
transform: scale(1.1);
}
.section-transition {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-transition.visible {
opacity: 1;
transform: translateY(0);
}
.social-icon {
transition: transform 0.3s ease, color 0.3s ease;
}
.social-icon:hover {
transform: translateY(-3px);
color: #6C63FF;
}
.floating-particle {
position: absolute;
background-color: rgba(108, 99, 255, 0.2);
border-radius: 50%;
pointer-events: none;
}

/* New Cool Animations */
.glow-effect {
position: relative;
}
.glow-effect::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, #6C63FF, #FF6CAB, #6C63FF);
z-index: -1;
border-radius: inherit;
opacity: 0;
transition: opacity 0.3s ease;
}
.glow-effect:hover::before {
opacity: 1;
animation: glowing 1.5s linear infinite;
}
@keyframes glowing {
0% { background-position: 0 0; }
50% { background-position: 400% 0; }
100% { background-position: 0 0; }
}

.reveal-text {
position: relative;
color: transparent;
}
.reveal-text::before {
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
color: white;
overflow: hidden;
white-space: nowrap;
animation: reveal-text 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
@keyframes reveal-text {
0% { width: 0; }
100% { width: 100%; }
}

.floating {
animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
0% { transform: translateY(0px); }
50% { transform: translateY(-15px); }
100% { transform: translateY(0px); }
}

.rotate-3d {
transition: transform 0.5s ease;
transform-style: preserve-3d;
}
.rotate-3d:hover {
transform: perspective(1000px) rotateY(15deg);
}

.magnetic-button {
transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.ripple {
position: relative;
overflow: hidden;
}
.ripple::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
opacity: 0;
}
.ripple.active::after {
animation: ripple-effect 0.6s ease-out;
}
@keyframes ripple-effect {
0% {
  width: 0;
  height: 0;
  opacity: 0.5;
}
100% {
  width: 500px;
  height: 500px;
  opacity: 0;
}
}

.text-gradient {
background: linear-gradient(90deg, #6C63FF, #FF6CAB);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
background-size: 200% auto;
animation: text-gradient-animation 4s linear infinite;
}
@keyframes text-gradient-animation {
0% { background-position: 0% center; }
100% { background-position: 200% center; }
}

.morph-bg {
background-size: 400% 400%;
animation: gradient-shift 15s ease infinite;
}
@keyframes gradient-shift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

.shake-on-hover:hover {
animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
10%, 90% { transform: translate3d(-1px, 0, 0); }
20%, 80% { transform: translate3d(2px, 0, 0); }
30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
40%, 60% { transform: translate3d(4px, 0, 0); }
}

.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}

.tilt-on-hover {
transition: transform 0.3s ease;
}
.tilt-on-hover:hover {
transform: rotate(2deg);
}

.spotlight {
position: relative;
overflow: hidden;
}
.spotlight::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
opacity: 0;
transition: opacity 0.3s;
pointer-events: none;
}
.spotlight:hover::after {
opacity: 1;
animation: spotlight-move 2s infinite;
}
@keyframes spotlight-move {
0% { transform: translate(-30%, -30%); }
25% { transform: translate(30%, -30%); }
50% { transform: translate(30%, 30%); }
75% { transform: translate(-30%, 30%); }
100% { transform: translate(-30%, -30%); }
}

/* Base responsive styles */
@media screen and (max-width: 640px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Adjust skill cards on mobile */
  .skill-card {
    padding: 1rem;
  }

  /* Adjust projects items on mobile */
  .projects-item {
    margin-bottom: 1rem;
  }

  /* Adjust contact form on mobile */
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
  }

  /* Adjust navigation spacing */
  .nav-glass {
    padding: 0.75rem 1rem;
  }

  /* Adjust footer spacing */
  footer {
    padding: 2rem 1rem;
  }
}

/* Adjust animations for mobile devices */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Improve touch targets on mobile */
@media (max-width: 640px) {
  button,
  .social-icon,
  a {
    min-height: 44px;
    min-width: 44px;
  }
}