.gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
}
.animate-float {
            animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
/* .marquee {
    overflow: hidden;
    position: relative;
}
.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.skill-card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.project-card {
    transition: all 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
} */
.navbar-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    width: 31.5ch;
    animation: typing 3.5s steps(34, end), blink-caret .75s step-end infinite;
}
@keyframes typing {
    from { width: 0 }
    to { width: 31.5ch }
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #16f2b3; }
}

.whitespace-pre {
    white-space: pre;
}
.flex {
    display: flex;
    flex-wrap: wrap;
}

.timeline-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}


.projects-container {
    position: relative;
    z-index: 1;
    /* Add more space between cards to prevent overlap */
    /* padding-bottom: 100vh; */
}

.project-card {
    position: sticky;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto 1.5rem auto;
    z-index: 10;
    /* Add a minimum height to prevent overlap issues */
    min-height: 300px;
}


.project-card:nth-child(1) {
    top: 5rem;
    z-index: 11;
}

.project-card:nth-child(2) {
    top: 8.5rem;
    z-index: 12;
}

.project-card:nth-child(3) {
    top: 12rem;
    z-index: 13;
}

.project-card:nth-child(4) {
    top: 15.5rem;
    z-index: 14;
}
.project-card:nth-child(5) {
    top: 19.3rem;
    z-index: 15;
}
.card-content {
    background: linear-gradient(135deg, #0d1224 0%, #0a0d37 100%);
    border: 1px solid rgba(27, 44, 104, 0.6);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    position: relative;
}

.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
}

/* Add the gradient border at the top */
.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ec4899, #8b5cf6, transparent);
}

/* Mac OS window styling */
.mac-header {
    background: rgba(45, 51, 59, 0.8);
    border-radius: 0.5rem 0.5rem 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 0.75rem 1rem;
    position: relative;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for project cards appearing */
.project-card {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-card:nth-child(1) { top: 2.5rem; }
    .project-card:nth-child(2) { top: 4rem; }
    .project-card:nth-child(3) { top: 5.5rem; }
    .project-card:nth-child(4) { top: 7rem; }
    .project-card:nth-child(5) { top: 8.5rem; }
}


/*Skills*/
.marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200%); /* Double width to accommodate duplicated content */
    gap: 1rem;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.skill-card {
    flex: 0 0 auto;
    width: 140px;
    background: #1f2937;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-card:hover {
    background: #374151;
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.skill-card img {
    height: 3rem;
    width: auto;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.skill-card h3 {
    font-weight: 600;
    color: #f9fafb;
    font-size: 0.875rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 1rem));
    }
}

/* Pause animation on hover */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skill-card {
        width: 120px;
        padding: 1rem;
    }
    
    .skill-card i {
        font-size: 2rem;
    }
    
    .skill-card img {
        height: 2rem;
    }
}