/* Events Section */
.events-section {
    padding: 100px 5%;
    background-color: rgba(10, 25, 47, 0.8);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    text-shadow: 0 0 10px rgba(41, 182, 246, 0.5);
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    bottom: 0;
    left: 20%;
    box-shadow: 0 0 10px rgba(41, 182, 246, 0.5);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.event-card {
    background-color: rgba(13, 31, 61, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(41, 182, 246, 0.2);
    opacity: 0;
    transform: translateY(30px);
}

.event-card.animate {
    animation: fadeInUp 1s ease-out forwards;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(41, 182, 246, 0.5);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--italian-green), var(--italian-white), var(--italian-red));
    z-index: 2;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(41, 182, 246, 0.2);
    z-index: 1;
    opacity: 0.5;
}

.event-image {
    height: 200px;
    background-color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.2), rgba(10, 25, 47, 0.8));
    z-index: 1;
}

.event-content {
    padding: 20px;
    position: relative;
}

.event-date {
    display: inline-block;
    background-color: var(--electric-blue);
    color: var(--dark-blue);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(41, 182, 246, 0.3);
}

.event-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.event-description {
    color: rgba(230, 241, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(41, 182, 246, 0.2);
}

.event-location {
    color: rgba(230, 241, 255, 0.7);
    font-size: 0.9rem;
}

.btn-text {
    color: var(--electric-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--light-blue);
    text-shadow: 0 0 8px rgba(41, 182, 246, 0.7);
}

/* Podcast Section with Enhanced Styling */
.podcast-section {
    padding: 100px 5%;
    background-color: var(--dark-blue);
    position: relative;
    overflow: hidden;
}

.podcast-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(41, 182, 246, 0.05), transparent 70%);
    z-index: 0;
}

.episode-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.episode-card {
    background-color: rgba(13, 31, 61, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    border: 1px solid rgba(41, 182, 246, 0.2);
    display: flex;
    opacity: 0;
    transform: translateY(30px);
}

.episode-card.animate {
    animation: fadeInUp 1s ease-out forwards;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(41, 182, 246, 0.3);
    background-color: rgba(13, 31, 61, 0.9);
}

.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--electric-blue), transparent);
}

.episode-play {
    min-width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.5);
    position: relative;
    overflow: hidden;
}

.episode-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(41, 182, 246, 0.1), transparent 70%);
    z-index: 0;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--electric-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px rgba(41, 182, 246, 0.5);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(41, 182, 246, 0.8);
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--dark-blue);
    margin-left: 4px;
}

.episode-content {
    flex-grow: 1;
    padding: 20px;
}

.episode-number {
    display: inline-block;
    background-color: rgba(41, 182, 246, 0.2);
    color: var(--electric-blue);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    box-shadow: 0 0 8px rgba(41, 182, 246, 0.2);
}

.episode-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(41, 182, 246, 0.3);
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.episode-date, .episode-duration {
    font-size: 0.9rem;
    color: rgba(230, 241, 255, 0.7);
}

.episode-description {
    color: rgba(230, 241, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
}

.episode-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.episode-tag {
    background-color: rgba(41, 182, 246, 0.1);
    color: var(--electric-blue);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 5px rgba(41, 182, 246, 0.2);
}

.episode-tag:hover {
    background-color: rgba(41, 182, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(41, 182, 246, 0.4);
}

/* Newsletter Section with Enhanced Styling */
.newsletter-section {
    padding: 80px 5%;
    text-align: center;
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(41, 182, 246, 0.05), transparent 70%);
    z-index: 0;
}

.newsletter-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(13, 31, 61, 0.7);
    border-radius: 8px;
    padding: 40px 20px;
    border: 1px solid rgba(41, 182, 246, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.newsletter-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    border-radius: 5px 5px 0 0;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(41, 182, 246, 0.5);
}

.newsletter-description {
    color: rgba(230, 241, 255, 0.8);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.newsletter-input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    background-color: rgba(230, 241, 255, 0.1);
    color: var(--text-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.newsletter-input:focus {
    background-color: rgba(230, 241, 255, 0.15);
    box-shadow: 0 0 10px rgba(41, 182, 246, 0.3);
}

.newsletter-button {
    background-color: var(--electric-blue);
    color: var(--dark-blue);
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(41, 182, 246, 0.3);
}

.newsletter-button:hover {
    background-color: var(--light-blue);
    box-shadow: 0 0 15px rgba(41, 182, 246, 0.5);
}

/* Footer with Enhanced Styling */
footer {
    background-color: rgba(8, 20, 38, 0.95);
    padding: 60px 5% 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--dark-blue), rgba(8, 20, 38, 0));
    z-index: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    color: var(--electric-blue);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 0 8px rgba(41, 182, 246, 0.5);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--electric-blue);
    bottom: 0;
    left: 0;
    box-shadow: 0 0 8px rgba(41, 182, 246, 0.5);
}

.footer-about p {
    color: rgba(230, 241, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(41, 182, 246, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(41, 182, 246, 0.2);
}

.social-link:hover {
    background-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(41, 182, 246, 0.5);
    transform: translateY(-3px);
}

.social-icon {
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    color: var(--dark-blue);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(230, 241, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover {
    color: var(--electric-blue);
    transform: translateX(5px);
    text-shadow: 0 0 5px rgba(41, 182, 246, 0.5);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 241, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.copyright {
    color: rgba(230, 241, 255, 0.5);
    font-size: 0.9rem;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-nav ul li a {
    color: rgba(230, 241, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--electric-blue);
    text-shadow: 0 0 5px rgba(41, 182, 246, 0.5);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 80%;
        margin: 0 auto;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        flex-direction: column;
    }
    
    .episode-play {
        min-width: 100%;
        padding: 20px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .terminal-container {
        width: 95%;
        max-width: none;
    }
    
    .hud-element {
        width: 100px;
        height: 100px;
    }
}