/* ...existing code... */
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: theme('colors.secondary.100');
}

::-webkit-scrollbar-thumb {
    background: theme('colors.primary.400');
    border-radius: 4px;
}

/* For skill bars */
.skill-bar {
    transition: width 1s ease-in-out;
}

/* For project cards hover */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card:hover .project-image > div:first-child {
    transform: scale(1.05);
}

.project-card:hover .project-title {
    opacity: 0;
}

/* Timeline dots */
.timeline-dot::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: theme('colors.primary.500');
    left: -8px;
    top: 0;
}

/* For the typewriter effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* Subtle floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Smooth reveal animation for elements */
@keyframes reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-reveal {
    animation: reveal 0.8s ease-out forwards;
}

/* Prevent FOUC (Flash of Unstyled Content) when theme is loading */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Progress bar for experience hover */
.progress-bar {
    height: 4px;
    background-color: theme('colors.primary.500');
    animation: shrink 10s linear forwards;
    border-radius: 2px;
}

@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Flip animation for hero image */
.flip {
    transform: rotateY(180deg);
}

.backface-hidden {
    backface-visibility: hidden;
}

/* Contact section layout */
.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-layout {
        flex-direction: row;
        align-items: stretch;
    }

    .contact-layout > * {
        min-width: 0;
    }

    .contact-info {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .contact-form {
        flex: 0 0 70%;
        max-width: 70%;
    }
}