/* ============================================================
   SHOWCASE PAGE STYLES
   ============================================================ */
.showcase-hero {
    position: relative;
    padding: 180px 20px 80px;
    background: var(--dark);
    text-align: center;
    overflow: hidden;
}

.showcase-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #0a0f24 0%, #020617 100%);
    overflow: hidden;
    z-index: 1;
    perspective: 1200px;
}

/* Blinking Stars (Static Twinkle) */
.showcase-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 15% 20%, #fff, transparent),
        radial-gradient(2px 2px at 35% 45%, #fff, transparent),
        radial-gradient(2px 2px at 55% 15%, #00d2ff, transparent),
        radial-gradient(2px 2px at 75% 65%, #fff, transparent),
        radial-gradient(2px 2px at 85% 25%, #ff00ff, transparent),
        radial-gradient(2px 2px at 10% 80%, #fff, transparent),
        radial-gradient(2px 2px at 95% 85%, #00d2ff, transparent),
        radial-gradient(2px 2px at 45% 80%, #fff, transparent);
    background-size: 100% 100%;
    animation: twinkle 4s ease-in-out infinite alternate;
    z-index: 0;
}

/* Shooting Stars (Meteor Shower) */
.showcase-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    box-shadow: 
        500px 300px 0 -1px rgba(0, 210, 255, 0.8),
        1200px -200px 0 -1px rgba(255, 0, 255, 0.8);
    transform-origin: left center;
    animation: meteorShower 8s linear infinite;
    opacity: 0;
    z-index: 0;
}

/* 3D Astrolabe / Core effect */
.hero-gradient-mesh, 
.hero-glass-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    z-index: 1;
}

.hero-gradient-mesh::before,
.hero-gradient-mesh::after,
.hero-glass-overlay::before,
.hero-glass-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.hero-gradient-mesh::before {
    top: -200px; left: -200px; width: 400px; height: 400px;
    border-color: rgba(0, 210, 255, 0.8);
    border-top-color: transparent; border-bottom-color: transparent;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.4), inset 0 0 30px rgba(0, 210, 255, 0.4);
    animation: rotateRing1 8s linear infinite;
}

.hero-gradient-mesh::after {
    top: -300px; left: -300px; width: 600px; height: 600px;
    border-color: rgba(255, 0, 255, 0.5);
    border-left-color: transparent; border-right-color: transparent;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.3), inset 0 0 40px rgba(255, 0, 255, 0.3);
    animation: rotateRing2 12s linear infinite;
}

.hero-glass-overlay::before {
    top: -450px; left: -450px; width: 900px; height: 900px;
    border: 1px dashed rgba(0, 210, 255, 0.4);
    animation: rotateRing3 20s linear infinite;
}

.hero-glass-overlay::after {
    top: -600px; left: -600px; width: 1200px; height: 1200px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.03), transparent 60%);
    border: 1px dotted rgba(255, 0, 255, 0.2);
    animation: rotateRing4 30s linear infinite;
}

/* Floating Particles (Stars) using bottom fade pseudo */
.hero-bottom-fade {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 250px;
    background: linear-gradient(to top, #020617 0%, transparent 100%);
    z-index: 3; pointer-events: none;
}

.hero-bottom-fade::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 200vh;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00d2ff, transparent),
        radial-gradient(2px 2px at 40px 70px, #ff00ff, transparent),
        radial-gradient(2px 2px at 50px 160px, #ffffff, transparent),
        radial-gradient(2px 2px at 90px 40px, #00d2ff, transparent),
        radial-gradient(3px 3px at 130px 80px, #ff00ff, transparent);
    background-repeat: repeat; background-size: 250px 250px;
    animation: starsUp 40s linear infinite; opacity: 0.4; z-index: -1;
}

@keyframes rotateRing1 { 0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); } }
@keyframes rotateRing2 { 0% { transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg); } 100% { transform: rotateX(45deg) rotateY(45deg) rotateZ(-360deg); } }
@keyframes rotateRing3 { 0% { transform: rotateX(75deg) rotateY(-30deg) rotateZ(0deg); } 100% { transform: rotateX(75deg) rotateY(-30deg) rotateZ(360deg); } }
@keyframes rotateRing4 { 0% { transform: rotateX(-60deg) rotateY(60deg) rotateZ(0deg); } 100% { transform: rotateX(-60deg) rotateY(60deg) rotateZ(-360deg); } }
@keyframes starsUp { 0% { transform: translateY(0); } 100% { transform: translateY(250px); } }
@keyframes twinkle { 0% { opacity: 0.1; } 50% { opacity: 0.6; } 100% { opacity: 0.2; } }
@keyframes meteorShower { 0% { transform: rotate(-45deg) translateX(800px); opacity: 0; } 2% { opacity: 1; } 20% { transform: rotate(-45deg) translateX(-2000px); opacity: 0; } 100% { transform: rotate(-45deg) translateX(-2000px); opacity: 0; } }

.showcase-hero-title {
    position: relative;
    font-size: 3.5rem;
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.showcase-hero-subtitle {
    position: relative;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Filters */
.showcase-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    position: relative;
    flex-wrap: wrap;
}

.showcase-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'ComicNeueSansID', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-filter-btn.active, .showcase-filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.4);
}

/* ============================================================
   PIXEL PERFECT SHOWCASE PORTFOLIO REDESIGN
   ============================================================ */
.showcase-portfolio-section {
    padding: 20px 0 100px 0;
    position: relative;
    z-index: 2;
    background-image: url('../images/showcase-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
}

/* Dark overlay so the background doesn't overpower the card */
.showcase-portfolio-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 10, 25, 0.65);
    z-index: -1;
}

.showcase-portfolio-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- MASTER CARD WRAPPER --- */
.showcase-master-card {
    max-width: 850px; /* Reduced from 950px for even more compact look */
    margin: 0 auto;
    background: rgba(8, 10, 25, 0.4);
    border: 1px solid rgba(138, 43, 226, 0.4); /* Thin purple border */
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 30px; /* Reduced vertical and horizontal padding */
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 30px rgba(138, 43, 226, 0.1);
}

/* --- Top Featured Area --- */
.featured-area {
    margin-bottom: 20px; /* Reduced from 30px */
}

.featured-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.fh-icon {
    width: 28px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fh-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.fh-title {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin: 0;
}

.featured-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr; /* Image slightly larger */
    gap: 25px; /* Reduced from 30px */
}

.fc-image-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.fc-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fc-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}

.fc-title {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.fc-category {
    color: #F59E0B; /* Orange */
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.fc-student {
    margin-bottom: 12px;
    font-size: 1rem;
}

.fc-crafted {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 8px;
}

.fc-name {
    color: #fff;
    font-weight: 700;
}

.fc-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    max-width: 100%;
}

.fc-software-wrap {
    display: flex;
    flex-direction: row; /* Changed to row */
    align-items: center; /* Center vertically */
    gap: 15px; /* Space between text and icon */
    margin-top: 10px;
}

.fc-software-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.fc-software-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.fc-software-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Bottom Slider Area --- */
.slider-area {
    margin-top: 15px;
}

.sa-title {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 5px;
    padding-left: 20px;
}

.slider-container-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
}

.showcase-swiper {
    width: 100%;
    overflow: hidden; /* Restored to hidden to prevent bleeding out of card */
    padding: 30px 0; /* Increased vertical padding to allow drop-shadows and scale */
}

.swiper-wrapper {
    align-items: center; /* Vertically center slides in the wrapper */
}

.showcase-slide {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.5;
    filter: brightness(0.4);
    transform: scale(0.85); /* Inactive slides are smaller */
}

.showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-slide .slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

/* Active Slide state */
.showcase-slide.swiper-slide-active {
    opacity: 1;
    filter: brightness(1);
    border: 2px solid rgba(255, 255, 255, 0.8); /* Faint white border on active if needed, or none. Reference seems to have a faint border. Actually transparent looks better if it pops, but reference looks like it might have a thin crisp edge. Let's make it none. */
    border-color: transparent;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    transform: scale(1.2); /* Active slide pops out large */
    z-index: 2;
}

.showcase-slide.swiper-slide-active .slide-overlay {
    background: rgba(0, 0, 0, 0); /* Fully transparent */
}

/* Empty state */
.showcase-slide.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}

/* Navigation Arrows */
.showcase-prev, .showcase-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: transparent;
}

.showcase-prev { left: 0; }
.showcase-next { right: 0; }

.showcase-prev:hover, .showcase-next:hover {
    color: #F59E0B;
}

.showcase-prev svg, .showcase-next svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
    stroke-width: 1.5;
}

.showcase-prev::after, .showcase-next::after {
    display: none; /* Hide default swiper arrows */
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .showcase-master-card {
        padding: 25px;
    }
    .featured-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .fc-title {
        font-size: 2.2rem;
    }
    .slider-container-wrap {
        padding: 0 40px;
    }
}

@media (max-width: 640px) {
    .showcase-master-card {
        padding: 15px;
        border-radius: 8px;
    }
    .featured-area {
        margin-bottom: 15px;
    }
    .fh-title {
        font-size: 1.2rem;
    }
    .fc-title {
        font-size: 1.8rem;
    }
    .fc-category {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .slider-container-wrap {
        padding: 0; /* Remove padding to let swiper take full card width */
    }
    .showcase-prev svg, .showcase-next svg {
        width: 28px;
        height: 28px;
    }
    .showcase-swiper {
        padding: 20px 0; /* Reduce vertical padding */
    }
    .showcase-slide.swiper-slide-active {
        transform: scale(1.08); /* Reduce scale to prevent bleeding on small screens */
    }
    .sa-title {
        font-size: 1.2rem;
        padding-left: 10px;
    }
}
