/* Packages Portfolio Layout */
body.packages-portfolio-page {
    background-color: #121217;
    color: #fff;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.portfolio-hero {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
}

.portfolio-hero .back-link {
    position: absolute;
    top: 200px;
    left: 40px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    transition: color 0.3s ease;
}

.portfolio-hero .back-link:hover {
    color: #fff;
}

.portfolio-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 50px;
    letter-spacing: -2px;
}

.gradient-text {
    color: #ffffff;
    display: block;
}

.gradient-secondary {
    color: #ffffff;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.filter-pill.active {
    background: #7a6fff;
    border-color: #7a6fff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(122, 111, 255, 0.3);
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 20px 0 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    background: #1e1e24;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.card-overlay h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.card-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hover Effects */
.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-card:hover .card-overlay {
    transform: translateY(0);
}

.portfolio-card:hover::after {
    opacity: 0.9;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 120px 0 40px;
    }

    .portfolio-hero .back-link {
        position: static;
        justify-content: center;
        margin-bottom: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .portfolio-card {
        aspect-ratio: 1 / 1;
    }
}

/* Footer overrides for packages page */
.footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
}