/* 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;
}

.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;
}

.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(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.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: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 205, 196, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.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;
}

/* Section-specific backgrounds - ORIGINAL NAMING */
.mobile-gaming-section {
    background: linear-gradient(135deg, #1a0033 0%, #0d1421 50%, #000511 100%);
}

.ai-section {
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 50%, #38ef7d 100%);
}

/* Updated AR Section - Professional Tech Blue */
.ar-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a365d 50%, #2d3748 100%);
}

.ar-section .section-title {
    background: linear-gradient(135deg, #4fd1c7, #63b3ed, #90cdf4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.ar-section .item-title {
    color: #63b3ed;
}

.ar-section .item-description .highlight {
    color: #4fd1c7;
}

.ar-section .item-link:hover {
    background: rgba(99, 179, 237, 0.2);
    border-color: #63b3ed;
}

.ar-section .item-card::before {
    background: linear-gradient(90deg, #4fd1c7, #63b3ed, #90cdf4);
}

.ar-section .item-card:hover {
    border-color: rgba(99, 179, 237, 0.3);
}

/* Updated VR Section - Deep Space Purple */
.vr-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

.vr-section .section-title {
    background: linear-gradient(135deg, #a78bfa, #c084fc, #e879f9);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.vr-section .item-title {
    color: #c084fc;
}

.vr-section .item-description .highlight {
    color: #a78bfa;
}

.vr-section .item-link:hover {
    background: rgba(192, 132, 252, 0.2);
    border-color: #c084fc;
}

.vr-section .item-card::before {
    background: linear-gradient(90deg, #a78bfa, #c084fc, #e879f9);
}

.vr-section .item-card:hover {
    border-color: rgba(192, 132, 252, 0.3);
}

.web-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
}

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

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