/* Portfolio Section Styles */
.portfolio-section {
    min-height: 100vh;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;

    /* UNIVERSAL BACKGROUND - Transparent so Hologram is Crisp */
    background: transparent;
    /* backdrop-filter removed to prevent blurring the hologram */
}

.portfolio-section.active {
    display: block;
    animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Close section button */
.close-section {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1000;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: none;
    width: 45px;
    height: 45px;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.close-section.show {
    display: flex;
}

.close-section:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
    /* Essential for 3D tilt */
}

.item-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    /* Fast transform for tilt */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    mix-blend-mode: overlay;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.item-card:hover::before {
    transform: scaleX(1);
}

.item-card:hover {
    /* Transform handled by JS for tilt */
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.item-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 10px;
}

.item-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.item-description .highlight {
    color: #ff6b6b;
    font-weight: bold;
}

.item-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.item-link:hover {
    background: rgba(69, 183, 209, 0.2);
    border-color: #45b7d1;
    transform: translateY(-2px);
}

.development-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 20px;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Removed specific section backgrounds to prevent overrides */
/* Uniform Dark Background handled in .portfolio-section class above */

/* Loading State */
.portfolio-section.loading {
    pointer-events: none;
}

.portfolio-section.loading .items-grid {
    opacity: 0.6;
}