/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.project-card {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    min-height: 100%;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0);
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.project-card:hover::before {
    border-color: rgba(255, 255, 255, 0.06);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: #161616;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* Screenshot styling */
.project-image-with-screenshot {
    background-repeat: no-repeat;
    position: relative;
    transition: background-position 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-position;
}

.project-image-with-screenshot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.12) 20%,
        rgba(0, 0, 0, 0.06) 40%,
        rgba(0, 0, 0, 0.06) 60%,
        rgba(0, 0, 0, 0.12) 80%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-image {
    opacity: 0.98;
}

.project-card:hover .project-image-with-screenshot::before {
    opacity: 0.6;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-content {
    padding: 26px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.project-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Smaller gap for Catch & Release */
.project-title-wrapper-cnr {
    gap: 2px;
}

.project-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

/* Catch & Release SVG - Make it YouTube red and bigger */
.project-logo-cnr {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(7151%) hue-rotate(353deg) brightness(98%) contrast(95%);
    opacity: 0.95;
}

/* DropATask PNG - Make it lighter */
.project-logo-datatask {
    filter: brightness(4) contrast(1.2);
    opacity: 0.9;
}

.project-card:hover .project-logo {
    opacity: 1;
}

.project-card:hover .project-logo-cnr {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(7151%) hue-rotate(353deg) brightness(105%) contrast(100%);
}

.project-card:hover .project-logo-datatask {
    opacity: 1;
    filter: brightness(4.5) contrast(1.2);
}

.project-title {
    font-size: 1.2em;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.35;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
    transition: color 0.2s ease;
}

/* Catch & Release Title Styles */
.project-title-cnr {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.005em;
    font-size: 1.25em;
}

/* DropATask Title Styles */
.project-title-datatask {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.25em;
}

.project-card:hover .project-title {
    color: rgba(255, 255, 255, 0.98);
}

.project-role {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    background-color: transparent;
    border: none;
    padding: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 3px;
    position: relative;
    padding-left: 14px;
}

.project-role::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 11px;
    background-color: rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.project-card:hover .project-role {
    color: rgba(255, 255, 255, 0.7);
}

.project-card:hover .project-role::before {
    background-color: rgba(255, 255, 255, 0.2);
    height: 13px;
}

.project-desc {
    font-size: 0.92em;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 22px;
    transition: color 0.2s ease;
}

.project-card:hover .project-desc {
    color: rgba(255, 255, 255, 0.72);
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    transition: border-color 0.2s ease;
}

.project-card:hover .project-links {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    font-weight: 400;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
    min-height: 34px;
    position: relative;
    border-radius: 0;
}

.project-link-btn::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link-btn i {
    font-size: 0.72rem;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-link-btn span {
    position: relative;
}

.project-link-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.project-link-btn:hover::after {
    width: 100%;
}

.project-link-btn:hover i {
    opacity: 0.9;
    transform: translateX(1px);
}

.project-link-btn.website-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.project-link-btn.linkedin-link:hover {
    color: rgba(10, 102, 194, 0.85);
}

.project-link-btn.linkedin-link:hover i {
    color: rgba(10, 102, 194, 0.85);
}

