/* Python Homepage Custom Box Styles */

.python-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    overflow: hidden;
}

.python-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="python-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23python-pattern)"/></svg>');
    opacity: 0.3;
}

.python-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.python-intro-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.python-intro-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3776ab, #ffd43b, #3776ab);
    animation: pythonGradient 3s ease-in-out infinite;
}

@keyframes pythonGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.python-intro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.python-new-badge {
    background: linear-gradient(45deg, #3776ab, #ffd43b);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(55, 118, 171, 0.4);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.python-new-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.python-logo-wrapper {
    font-size: 3rem;
    color: #3776ab;
    animation: pythonFloat 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(55, 118, 171, 0.5);
}

@keyframes pythonFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.python-intro-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3776ab;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.python-intro-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3776ab, #ffd43b);
    border-radius: 2px;
}

.python-intro-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.python-intro-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(55, 118, 171, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    color: #3776ab;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(55, 118, 171, 0.2);
    transform: translateY(-2px);
}

.feature-item i {
    color: #ffd43b;
    font-size: 1.2rem;
}

.python-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #3776ab, #4a90e2);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(55, 118, 171, 0.4);
    margin: 0 auto;
    display: flex;
    width: fit-content;
    position: relative;
    overflow: hidden;
}

.python-start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.python-start-btn:hover::before {
    left: 100%;
}

.python-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(55, 118, 171, 0.6);
}

.python-start-btn:active {
    transform: translateY(-1px);
}

.python-start-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.python-start-btn:hover i {
    transform: translateX(5px);
}

/* Dark theme support */
[data-theme="dark"] .python-intro-box {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
}

[data-theme="dark"] .python-intro-description {
    color: #e0e0e0;
}

[data-theme="dark"] .python-intro-title {
    color: #4a90e2;
}

[data-theme="dark"] .feature-item {
    background: rgba(74, 144, 226, 0.15);
    color: #4a90e2;
}

/* Responsive design */
@media (max-width: 768px) {
    .python-intro-section {
        padding: 2rem 1rem;
    }
    
    .python-intro-box {
        padding: 2rem 1.5rem;
    }
    
    .python-intro-header {
        flex-direction: column;
        text-align: center;
    }
    
    .python-intro-title {
        font-size: 2rem;
    }
    
    .python-intro-description {
        font-size: 1rem;
        padding: 0;
    }
    
    .python-intro-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .python-start-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .python-intro-section {
        padding: 1.5rem 1rem;
    }
    
    .python-intro-box {
        padding: 1.5rem 1rem;
    }
    
    .python-intro-title {
        font-size: 1.8rem;
    }
    
    .python-logo-wrapper {
        font-size: 2.5rem;
    }
    
    .python-new-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* Special effects for the Python box */
.python-intro-box {
    animation: pythonSlideIn 0.8s ease-out;
}

@keyframes pythonSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for the entire box */
.python-intro-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* Additional Python-themed elements */
.python-intro-box::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(55, 118, 171, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.python-intro-box:hover::after {
    animation: pythonGlow 2s ease-in-out infinite;
}

@keyframes pythonGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}