/* General Styling for Project Sections */
.project-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    margin: 50px auto;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out backwards;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
}

.project-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-section:hover::before {
    opacity: 1;
}

/* Game Projects - unique gradients per project using class names */
.project-section.game-1 {
    background: linear-gradient(135deg, #ffafbd, #ffc3a0);
    color: #222;
}

.project-section.game-1:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 175, 189, 0.4);
}

.project-section.game-2 {
    background: linear-gradient(135deg, #c9ffbf, #ffafbd);
    color: #222;
}

.project-section.game-2:hover {
    transform: translateY(-10px) rotate(-1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(201, 255, 191, 0.4);
}

.project-section.game-3 {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    color: #222;
}

.project-section.game-3:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(161, 196, 253, 0.4);
}

.project-section.game-4 {
    background: linear-gradient(135deg, #d4fc79, #96e6a1);
    color: #222;
}

.project-section.game-4:hover {
    transform: translateY(-10px) rotate(-1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 252, 121, 0.4);
}

.project-section.game-5 {
    background: linear-gradient(135deg, #ffa751, #ffe259);
    color: #222;
}

.project-section.game-5:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 167, 81, 0.4);
}

.project-section.game-6 {
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    color: #fff;
}

.project-section.game-6:hover {
    transform: translateY(-10px) rotate(-1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
}

.project-section.game-7 {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
}

.project-section.game-7:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(56, 239, 125, 0.4);
}

.project-section.game-8 {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #fff;
}

.project-section.game-8:hover {
    transform: translateY(-10px) rotate(-1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(247, 151, 30, 0.4);
}

/* App Projects */
.project-section.app-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.project-section.app-1:hover {
    transform: translateY(-10px) rotate(-1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.project-section.app-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}

.project-section.app-2:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.4);
}

.project-section.app-3 {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
}

.project-section.app-3:hover {
    transform: translateY(-10px) rotate(-1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(32, 58, 67, 0.6);
}

.project-section.app-4 {
    background: linear-gradient(135deg, #1a3a2a, #2d6a4f, #40916c);
    color: #fff;
}

.project-section.app-4:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(45, 106, 79, 0.6);
}

/* Video Container */
.video-container {
    flex: 1;
    min-width: 400px;
    margin-right: 30px;
}

.video-container iframe {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.project-section:hover .video-container iframe {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

/* Description Box */
.description {
    flex: 1;
    text-align: left;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-in-out;
}

.description h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.project-section.game-1 .description h2,
.project-section.game-2 .description h2,
.project-section.game-3 .description h2,
.project-section.game-4 .description h2,
.project-section.game-5 .description h2 {
    color: #222;
}

.project-section.game-6 .description h2,
.project-section.game-7 .description h2,
.project-section.game-8 .description h2,
.project-section.app-1 .description h2,
.project-section.app-2 .description h2,
.project-section.app-3 .description h2,
.project-section.app-4 .description h2 {
    color: #fff;
}

.description p {
    line-height: 1.8;
    margin: 8px 0;
    color: inherit;
    transition: all 0.3s ease;
}

.description ul {
    margin-left: 20px;
    color: inherit;
}

.description a {
    color: #0066cc;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* White-ish text for dark-gradient sections */
.project-section.game-6 .description a,
.project-section.game-7 .description a,
.project-section.app-1 .description a,
.project-section.app-2 .description a,
.project-section.app-3 .description a,
.project-section.app-4 .description a {
    color: #ffe259;
}

.description a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.description a:hover::after {
    width: 100%;
}

.description a:hover {
    filter: brightness(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle hover shadow for all sections */
.project-section:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive: handled in styles/responsive.css */
