/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Card Hover Effect */
.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        hsla(0, 0%, 100%, 0.05) 50%,
        transparent 100%
    );
    left: -100%;
}

.hover-project-card .hover-states .default,
.hover-project-card .hover-states .hover {
    opacity: 1;
}

.project-card:hover .hover-states .hover {
    opacity: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 35px;
    max-width: 100%;
}

@media screen and (max-width: 1150px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media screen and (max-width: 750px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.project-card .content {
    padding: 25px;
}

.project-card .content h3 {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem; /* 32px */
    font-weight: 600;
    margin-bottom: 10px;
}

.project-card .content p {
    font-size: 1rem; /* 16px */
    line-height: 1.5rem; /* 24px */
    margin-bottom: 20px;
}

.project-card .content .badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-card .content .badges .badge {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    padding: 5px 10px;
    border-radius: 9999px;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
}

/* Ensure badges are visible in dark mode */
.badge {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card .content .links {
    display: flex;
    gap: 20px;
}

.project-card .content .links a {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease-in-out;
}

.project-card .content .links a:hover {
    opacity: 0.8;
}

.project-card .content .links a svg {
    height: 20px;
    width: 20px;
}

/* Adjust project card image height on smaller screens */
@media screen and (max-width: 750px) {
    .project-card .image {
        height: 175px;
    }
}

/* Keep the existing hover effect */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: hsla(0, 0%, 100%, 0.2);
}