.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-bar {
    transition: width 1.5s ease-in-out;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    left: -8px;
    top: 0;
    background-color:#2a2a2a ;
}

/* home section styling */
.home {
    display: flex;
    background: #0f172a;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
 
#hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
 
/* Ensure your existing .home content sits above the canvas */
.home > *:not(#hero-bg) {
    position: relative;
    z-index: 1;
}

.home .home-content {
    padding: 20px 0;
}

.home .home-content .text-1 {
    font-size: 27px;
    color: rgba(255, 255, 255, 0.9);
}

.home .home-content .text-2 {
    font-size: 60px;
    font-weight: 600;
    margin: 5px 0;
    color: white;
}

.home .home-content .text-3 {
    font-size: 32px;
    margin: 5px 0 20px;
    color: white;
}

.home .home-content .text-3 span {
    color: #3b82f6; /* Using Tailwind's blue-500 */
    font-weight: 600;
}

/* Experience Section Styling */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #1e40af; /* Blue-800 for emphasis */
}

.timeline-content p {
    line-height: 1.6;
}

/* Mobile Navigation Menu */
        .mobile-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #e5e7eb;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-menu a {
            display: block;
            padding: 12px 24px;
            color: #374151;
            text-decoration: none;
            border-bottom: 1px solid #f3f4f6;
            transition: background-color 0.3s ease;
        }

        .mobile-menu a:hover {
            background-color: #f9fafb;
            color: #1e40af;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .home .home-content .text-2 {
        font-size: 50px;
    }
    .home .home-content .text-3 {
        font-size: 30px;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-2 {
        font-size: 40px;
    }
    .home .home-content .text-3 {
        font-size: 25px;
    }
}

/* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

/* Tools Carousel */
.tools-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tools-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    line-height: 1;
}

.tools-btn:hover {
    background: #eff6ff;
    border-color: #1e40af;
    color: #1e40af;
}

.tools-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.tools-viewport {
    flex: 1;
    overflow: hidden;
}

.tools-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Each slide takes 1/4 of the viewport — shows 4 tools at a time */
/* Change 25% to 33.33% for 3, or 20% for 5 */
.tools-slide {
    flex: 0 0 25%;
    padding: 0 8px;
}

.tools-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: background 0.2s ease;
    cursor: default;
}

.tools-item:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.tools-item span {
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
}

@media (max-width: 640px) {
    /* Show 2 tools at a time on mobile */
    .tools-slide {
        flex: 0 0 50%;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.project-card img {
    max-height: 300px;
    object-fit: cover;
}
