:root {
    --card-radius: 20px;
    --primary-color: #3b82f6;
    --bg-surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent-color: #00E6D6;
}

.portfolio-card {
    background: rgb(255, 255, 255, 0.8);
    border-radius: var(--card-radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* CAROUSEL STYLING */
.card-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.75rem;
    width: 100%;
}

.project-link a {
    background: var(--accent-color);
    color: #062026;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Indicators (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 12;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
}

.carousel-indicator.active {
    background: rgba(0,0,0,0.85);
}

/* Hidden controls that appear on hover */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-card:hover .carousel-controls {
    opacity: 1;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* CONTENT STYLING */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: space-between;
}

.tag-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    background: #eff6ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

#portfolio-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}