@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Inter", sans-serif;
}

/* ===== Particle Background Layer ===== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000000;
  top: 0;
  left: 0;
  z-index: 0;
}

.content-layer,
nav,
section,
footer {
  position: relative;
  z-index: 10;
}

/* Make particles cover the entire screen */
  #tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
  }

/* Background Elements */
.bg-pattern {
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(6, 182, 212, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(8, 145, 178, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(6, 182, 212, 0.05) 0%,
      transparent 50%
    );
  background-size: 800px 800px, 600px 600px, 1000px 1000px;
  background-position: 0% 0%, 100% 100%, 50% 50%;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 25% 75%;
  }
}

.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 15s infinite linear;
}

.shape:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.shape:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 5s;
  animation-duration: 25s;
}

.shape:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: 10s;
  animation-duration: 18s;
}

.shape:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-delay: 15s;
  animation-duration: 22s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.grid-pattern {
  background-image: linear-gradient(
      rgba(6, 182, 212, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 30s linear infinite;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), 0 0 60px rgba(6, 182, 212, 0.4);
  }
}

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

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-15px);
  }
  70% {
    transform: translateY(-7px);
  }
  90% {
    transform: translateY(-3px);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.project-filter-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-filter-btn.active {
  background-color: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), inset 0 0 10px rgba(6, 182, 212, 0.1);
}

/* Animate on Scroll (AOS) Effects - Enhanced & Creative */
[data-aos] {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fade Up with Bounce */
[data-aos="fade-up"] {
  transform: translateY(60px) rotateX(-10deg);
  animation: none;
}

@keyframes fadeUpBounce {
  0% {
    opacity: 0;
    transform: translateY(60px) rotateX(-10deg);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) rotateX(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Fade Down with Bounce */
[data-aos="fade-down"] {
  transform: translateY(-60px) rotateX(10deg);
}

@keyframes fadeDownBounce {
  0% {
    opacity: 0;
    transform: translateY(-60px) rotateX(10deg);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) rotateX(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Fade Left with Slide */
[data-aos="fade-left"] {
  transform: translateX(80px) skewX(-5deg);
}

@keyframes fadeLeftSlide {
  0% {
    opacity: 0;
    transform: translateX(80px) skewX(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
  }
}

/* Fade Right with Slide */
[data-aos="fade-right"] {
  transform: translateX(-80px) skewX(5deg);
}

@keyframes fadeRightSlide {
  0% {
    opacity: 0;
    transform: translateX(-80px) skewX(5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
  }
}

/* Zoom In with Rotation */
[data-aos="zoom-in"] {
  transform: scale(0.8) rotate(-5deg);
}

@keyframes zoomInRotate {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Flip Left with Glow */
[data-aos="flip-left"] {
  transform: perspective(1200px) rotateY(-90deg) rotateZ(-5deg);
}

@keyframes flipLeftGlow {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateY(-90deg) rotateZ(-5deg);
    filter: blur(10px);
  }
  70% {
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) rotateZ(0deg);
    filter: blur(0px);
  }
}

/* Flip Right with Glow */
[data-aos="flip-right"] {
  transform: perspective(1200px) rotateY(90deg) rotateZ(5deg);
}

@keyframes flipRightGlow {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateY(90deg) rotateZ(5deg);
    filter: blur(10px);
  }
  70% {
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) rotateZ(0deg);
    filter: blur(0px);
  }
}

/* Apply animations when visible */
[data-aos="fade-up"].aos-animate {
  animation: fadeUpBounce 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  transform: none;
}

[data-aos="fade-down"].aos-animate {
  animation: fadeDownBounce 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  transform: none;
}

[data-aos="fade-left"].aos-animate {
  animation: fadeLeftSlide 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  transform: none;
}

[data-aos="fade-right"].aos-animate {
  animation: fadeRightSlide 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  transform: none;
}

[data-aos="zoom-in"].aos-animate {
  animation: zoomInRotate 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  transform: none;
}

[data-aos="flip-left"].aos-animate {
  animation: flipLeftGlow 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  transform: none;
}

[data-aos="flip-right"].aos-animate {
  animation: flipRightGlow 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  transform: none;
}

/* Generic animate class fallback */
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out;
}
.animate-slide-right {
  animation: slideInRight 0.8s ease-out;
}
.animate-fade-up {
  animation: fadeInUp 1s ease-out;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-hover {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(6, 182, 212, 0.1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.typing-animation {
  border-right: 2px solid #06b6d4;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: #06b6d4;
  }
  51%,
  100% {
    border-color: transparent;
  }
}

.scroll-smooth {
  scroll-behavior: smooth;
}

/* Programming Language Icons */
.lang-icon {
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-icon:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 20px currentColor);
}

.java-icon {
  color: #f89820;
}
.java-icon:hover {
  color: #ff6b35;
  animation: bounce 0.6s;
}

.python-icon {
  color: #3776ab;
}
.python-icon:hover {
  color: #ffd43b;
  animation: bounce 0.6s;
}

.csharp-icon {
  color: #239120;
}
.csharp-icon:hover {
  color: #68217a;
  animation: bounce 0.6s;
}

.cpp-icon {
  color: #00599c;
}
.cpp-icon:hover {
  color: #f34b7d;
  animation: bounce 0.6s;
}

.bash-icon {
  color: #4eaa25;
}
.bash-icon:hover {
  color: #89e051;
  animation: bounce 0.6s;
}

.thm-container {
  position: relative;
  display: inline-block;
}

.thm-container::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: 160px;
  bottom: 30px;
  background: linear-gradient(45deg, #06b6d4, #0891b2, #06b6d4);
  border-radius: 15px;
  z-index: -1;
  animation: glow 2s ease-in-out infinite;
  opacity: 0.7;
}

.thm-iframe {
  border-radius: 10px;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

/* Content positioning */
.content-layer {
  position: relative;
  z-index: 10;
}

/* Subtle section backgrounds */
.section-bg {
  background: rgba(17, 24, 39, 0.3);
  backdrop-filter: blur(2px);
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

/* Section Transitions and Visual Separation */
section {
  position: relative;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
}

section:hover::before {
  opacity: 1;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
  opacity: 0.3;
}

/* Terminal-Style Contact Form */
.terminal-form input,
.terminal-form textarea {
  font-family: "Fira Mono", "Consolas", monospace;
  font-size: 1rem;
  background: transparent;
  color: #67e8f9;
}

/* Enhanced Footer Styling */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
}

/* Social Links with glow effect */
.social-link-footer {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(6, 182, 212, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: currentColor;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.social-link-footer:hover {
  border-color: currentColor;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), inset 0 0 8px currentColor;
  transform: translateY(-3px);
}

.social-link-footer:hover::before {
  opacity: 0.08;
}

.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.social-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: currentColor;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  border-color: currentColor;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4), inset 0 0 10px currentColor;
  transform: translateY(-2px);
  color: white;
}

.social-link:hover::after {
  opacity: 0.1;
}

/* Back to Top Button */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  will-change: opacity, transform;
}

#back-to-top.opacity-0 {
  opacity: 0;
}

/* Terminal-Style Contact Form */
.terminal-form input:focus,
.terminal-form textarea:focus {
  outline: none;
  border-color: #22d3ee;
}
.terminal-form .terminal-cursor {
  caret-color: #22d3ee;
  position: relative;
}
.terminal-form .terminal-cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: #22d3ee;
  margin-left: 2px;
  animation: blink-cursor 1s steps(1) infinite;
  vertical-align: middle;
}
@keyframes blink-cursor {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Base - ensure top layer and pointer-events off so it never blocks clicks */
#custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: screen;
}

/* Core dot */
.cursor-core {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(6, 182, 212, 1); /* cyan */
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.9), 0 0 18px rgba(6, 182, 212, 0.25),
    inset 0 0 6px rgba(255, 255, 255, 0.03);
  transition: transform 120ms ease, width 120ms ease, height 120ms ease,
    opacity 120ms ease;
  will-change: transform, width, height, opacity;
}

/* Trailing dots container (positions relative to cursor core) */
.cursor-trail {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
}

.trail-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
}

/* Click ripple */
.cursor-click-ripple {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.6);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Hover states for interactive elements (optional): enlarge and glow */
.cursor-core.hovered {
  transform: translate(-50%, -50%) scale(1.9);
  width: 18px;
  height: 18px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 1), 0 0 28px rgba(6, 182, 212, 0.25);
}

/* Hide the real cursor on non-touch devices */
@media (pointer: fine) {
  body {
    cursor: none;
  }
}

/* Disable custom cursor on small screens (mobile) */
@media (max-width: 900px), (pointer: coarse) {
  #custom-cursor {
    display: none !important;
  }
  body {
    cursor: auto;
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}
@keyframes scan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}
.glitch-overlay {
  background: linear-gradient(45deg, rgba(6, 182, 212, 0.1), transparent);
  mix-blend-mode: overlay;
  animation: glitch 0.3s infinite;
}
.scanner-line {
  animation: scan 3s linear infinite;
}
.terminal-text {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(6, 182, 212, 0.5);
  animation: typewriter 1s steps(40) forwards, blink 1s infinite;
}

/* Popup Animations */
@keyframes popupIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* ===== ADVANCED FEATURES ===== */

/* Scroll Progress Bar - Advanced */
#progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #00ffff, #0077ff, #00ffff, #06b6d4);
  background-size: 200% 100%;
  animation: progress-shimmer 2s linear infinite;
  box-shadow: 
    0 0 20px rgba(6, 182, 212, 1),
    0 0 40px rgba(6, 182, 212, 0.6),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  filter: blur(0.5px);
}

@keyframes progress-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Parallax Hero Enhancement */
#parallax-hero {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Premium Button Styles */
a[href="#contact"],
a[href="#projects"],
button {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a[href="#contact"]::before,
a[href="#projects"]::before,
button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

a[href="#contact"]:hover::before,
a[href="#projects"]:hover::before,
button:hover::before {
  left: 100%;
}

/* Enhanced Parallax Hero */
#parallax-hero {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Enhanced Hover Effects - Subtle Default Cards */
.card-hover {
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
  overflow: visible;
}

.card-hover:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
}

/* Right-aligned card hover - for timeline items on right side */
.lg\:justify-end .card-hover:hover {
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.1);
}

/* Premium Hover Effects - Projects & Certificates */
.project-card,
.certificate-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.02) 100%);
  background-clip: padding-box;
  overflow: hidden;
}

.project-card::before,
.certificate-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease, top 0.6s ease;
  pointer-events: none;
}

.project-card::after,
.certificate-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover,
.certificate-card:hover {
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 
    0 0 40px rgba(6, 182, 212, 0.6),
    0 0 80px rgba(6, 182, 212, 0.3),
    inset 0 0 40px rgba(6, 182, 212, 0.15),
    0 0 2px rgba(255, 255, 255, 0.5);
  transform: translateY(-8px) scale(1.03);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.project-card:hover::before,
.certificate-card:hover::before {
  opacity: 0.6;
  top: -50%;
}

.project-card:hover::after,
.certificate-card:hover::after {
  opacity: 1;
}

/* Button Ripple Effect - Advanced */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
  0% {
    width: 5px;
    height: 5px;
    opacity: 1;
    box-shadow: 0 0 5px rgba(6, 182, 212, 0.8);
  }
  50% {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
    box-shadow: 0 0 0 rgba(6, 182, 212, 0);
  }
}

/* Timeline Animations - Advanced */
@keyframes timeline-flow {
  0% {
    background-position: 0% 0%;
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.5);
  }
  100% {
    background-position: 0% 100%;
  }
}

.animate-timeline-flow {
  background-size: 100% 200%;
  animation: timeline-flow 3s ease-in-out infinite;
  background: linear-gradient(to bottom, 
    rgba(6, 182, 212, 0.2),
    rgba(6, 182, 212, 0.8),
    rgba(0, 255, 255, 0.4),
    rgba(6, 182, 212, 0.2)
  );
}

.timeline-dot {
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  background: linear-gradient(135deg, #00ffff, #0077ff);
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), transparent);
  animation: dot-glow 2s ease-in-out infinite;
}

@keyframes dot-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
}

.timeline-dot:hover {
  box-shadow: 0 0 0 12px rgba(6, 182, 212, 0.2);
  transform: scale(1.3);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.2);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

.timeline-item {
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), transparent);
  transition: width 0.5s ease;
  pointer-events: none;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.lg\:justify-end.timeline-item::after {
  left: auto;
  right: -100px;
}

.timeline-item:hover::before {
  width: 100%;
}

.timeline-item:hover::after {
  opacity: 1;
}

.timeline-item:hover .card-hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

