:root {
    --primary: #a855f7;
    --primary-color: #a855f7;
    --primary-color-tyed: #e5e1eb;
    --dark-bg: #111827;

    --primary-light: #c084fc;
    --primary-dark: #7c3aed;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
}

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

body {
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.glow-button {
    background: var(--gradient);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glow-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;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.typewriter {
    overflow: hidden;
    border-right: 0.15em solid var(--primary);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

/* --------------------------------------------------
   1. SKILLS SECTION ANIMATIONS
-------------------------------------------------- */

/* Fade-in-up for #skills */
@keyframes fade-in-up-skills {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#skills {
    opacity: 0;
    transform: translateY(20px);
}

#skills.visible {
    animation: fade-in-up-skills 0.8s ease-out forwards;
}

@keyframes pop-in-skill {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.skill-icon {
    opacity: 0;
    transform: scale(0.8);
}

.skill-icon.animate-pop {
    animation: pop-in-skill 0.5s ease-out forwards;
}

/* --------------------------------------------------
   2. ABOUT SECTION ANIMATIONS
-------------------------------------------------- */

/* Fade-in-up for #about */
@keyframes fade-in-up-about {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#about {
    opacity: 0;
    transform: translateY(20px);
}

#about.visible {
    animation: fade-in-up-about 0.8s ease-out forwards;
}

/* Pop-in for each .about-item */
@keyframes pop-in-about {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#about .about-item {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

#about .about-item.animate-pop {
    animation: pop-in-about 0.6s ease-out forwards;
}

/* --------------------------------------------------
   3. REST OF YOUR EXISTING STYLES (unchanged)
-------------------------------------------------- */

.project-card {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
    border-color: var(--primary);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient);
    border: 4px solid #0f0f23;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.3), 0 0 20px rgba(168, 85, 247, 0.6);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.2), 0 0 30px rgba(168, 85, 247, 0.8);
}

.timeline-content {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: rgba(15, 15, 35, 0.8);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: rgba(15, 15, 35, 0.8);
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--primary);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

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

.rotate-animation {
    animation: rotate 20s linear infinite;
}

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

.pulse-animation {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

.contact-form input,
.contact-form textarea {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    outline: none;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -30px;
        right: auto;
        border-right-color: rgba(15, 15, 35, 0.8);
        border-left-color: transparent;
    }
}

.logo-svg {
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(to right, #A78BFA, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.logo-svg:hover {
    transform: rotate(-10deg) scale(1.1);
}

.fade-cursor {
    position: fixed;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #34d399; 
    border-radius: 50%;
    opacity: 1;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-cursor.hide {
    opacity: 0;
    transform: scale(0.3);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), #c084fc);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c084fc, var(--primary-color));
}

#typed {
    color: var(--primary-color--tyed);
    font-weight: 600;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}


@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


#contact,
#projects,
#resume {
  opacity: 0;
  transform: translateY(20px);
}

#contact.visible,
#projects.visible,
#resume.visible {
  animation: fade-in-up 0.8s ease-out forwards;
}


#contact .contact-item,
#projects .project-card,
#resume .resume-item {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
}


#contact .contact-item.animate-pop,
#resume .resume-item.animate-pop {
  animation: pop-in 0.6s ease-out forwards;
}

#projects .project-card.animate-pop {
  animation: pop-in 0.5s ease-out forwards;
}


/* ============================
   PROFILE‐CIRCLE STYLING
   ============================ */


.profile-outer {
  width: 20rem;                
  height: 20rem;               
  margin-left: auto;           
  margin-right: auto;
  border-radius: 50%;          
  
  
  padding: 0.25rem;
  
  
  background: linear-gradient(
    to right,
    #A78BFA, 
    #06B6D4  
  );
}


.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #1F2937;  
  
  
  overflow: hidden;
  
  
  display: flex;
  align-items: center;
  justify-content: center;
}


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



/* ============================
   TOAST NOTIFICATION STYLING
   ============================ */

#contactToast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.025em;
  
  opacity: 0;
  pointer-events: none;
  
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  transform: translateX(-50%) translateY(-20px) scale(0.9);
}

#contactToast.opacity-100 {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

#contactToast:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.02);
  box-shadow: 0 25px 50px rgba(16, 185, 129, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

#contactToast::before {
  content: '✓';
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  #contactToast {
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(-20px) scale(0.9);
    font-size: 0.875rem;
    padding: 0.875rem 1.25rem;
  }
  
  #contactToast.opacity-100 {
    transform: translateX(0) translateY(0) scale(1);
  }
  
  #contactToast:hover {
    transform: translateX(0) translateY(-2px) scale(1.02);
  }
}