/* imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #4c1d95;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Animations */
.waving-hand {
    display: inline-block;
    /* Allows transform */
    font-size: 4rem;
    /* Make it bigger */
    animation: wave-animation 2s infinite;
    transform-origin: 70% 70%;
    /* Set rotation point */
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    /* Wave up */
    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate(0.0deg)
    }

    /* Reset */
    100% {
        transform: rotate(0.0deg)
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading Animation */
@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

@keyframes progressAnimation {
    from { width: 0%; }
    to { width: 100%; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-rotateIn {
    animation: rotateIn 0.6s ease-out forwards;
}

.animate-shimmer {
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0), 
        rgba(139, 92, 246, 0.2), 
        rgba(139, 92, 246, 0)
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }
.animate-delay-900 { animation-delay: 0.9s; }
.animate-delay-1000 { animation-delay: 1s; }

/* Canvas Background */
#star-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Typing Effect */
.typing-text::after {
    content: '|';
    display: inline-block;
}

.typing-text.blink::after {
    animation: blink .7s step-end infinite;
}

.typing-text {
    color: #8b5cf6;
    background-clip: text;
    font-weight: 800;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Progress Bar Animation */
.progress-bar {
    width: 0;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover Effects */
.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Form Input Glow */
.input-glow:focus {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Lazy Loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in, transform 0.5s ease-out;
    transform: scale(0.95);
    filter: blur(5px);
}

.lazy-image.loaded {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0f1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-logo {
    animation: loadingPulse 2s infinite;
}

.loading-progress-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    animation: progressAnimation 2.5s ease-out forwards;
}

/* 3D Card Effect */
.card-3d {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

/* Gradient Text Animation */
.gradient-text-animated {
    background-size: 200% auto;
    background-position: 0% center;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Particle Effect */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particle-animation 1s ease-out forwards;
}

@keyframes particle-animation {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

/* Reveal Animation */
.reveal-mask {
    position: relative;
    overflow: hidden;
}

.reveal-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111827;
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-mask.revealed::after {
    transform: translateX(100%);
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(1px, -3px);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-1px, 3px);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(3px, 1px);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-3px, -2px);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(2px, 2px);
    }
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-effect::before {
    color: #ff00c1;
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    animation-delay: 0.1s;
}

.glitch-effect::after {
    color: #3498db;
    z-index: -2;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    animation-delay: 0.2s;
}

.glitch-effect {
    position: relative;
    display: inline-block;
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 5px rgba(139, 92, 246, 0.5),
        0 0 10px rgba(139, 92, 246, 0.3),
        0 0 15px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(139, 92, 246, 0.1);
}

/* Blob Animation */
@keyframes blob-animation {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 70% / 30% 30% 70% 70%; }
    75% { border-radius: 60% 40% 70% 30% / 70% 50% 40% 30%; }
}

.blob-animation {
    animation: blob-animation 8s ease-in-out infinite;
}

/* Custom gradient color (scroll to top) */
 .scroll-btn {
  background: linear-gradient(135deg, #3B1D75, #4F2D92); /* Adjust based on your image */
  box-shadow: 0 4px 10px rgba(75, 42, 142, 0.5);
}
.scroll-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(75, 42, 142, 0.7);
}

/* Skills Section */
.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.dark .skill-bar {
    background-color: #374151;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #374151;
    color: #e5e7eb;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s;
}

.tech-badge:hover {
    background-color: #0ea5e9;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
    width: 50%;
    padding-left: 3rem;
}

.timeline-item:nth-child(even) {
    width: 50%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #0ea5e9;
    border-radius: 50%;
    border: 4px solid #1f2937;
    z-index: 1;
}



.timeline-item:nth-child(odd) .timeline-dot {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: auto;
    right: -10px;
}

.timeline-content {
    background-color: #1f2937;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}



.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #0ea5e9;
    color: white;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.25rem;
}


.timeline-company {
    font-size: 1rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}


.timeline-location {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: #9ca3af;
}



.timeline-description {
    color: #d1d5db;
    font-size: 0.95rem;
}



.timeline-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

.timeline-item:nth-child(even) .timeline-list {
    padding-left: 0;
    padding-right: 1.5rem;
    text-align: right;
    list-style-position: inside;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 2.5rem;
        padding-right: 0;
        text-align: left;
        margin-left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -10px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-list {
        padding-left: 1.5rem;
        padding-right: 0;
        text-align: left;
        list-style-position: outside;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .waving-hand {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .waving-hand {
        font-size: 2rem;
    }
}