/* General Styles */
:root {
    --primary-color: #00e1ff;
    --primary-dark: #00b3cc;
    --secondary-color: #2d3436;
    --accent-color: #4a69bd;
    --dark-bg: #1e272e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --text-dark-color: var(--bs-body-color);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
    background-color: var(--dark-bg);
    color: var(--text-color);
}

/* Glowing effects */
.glow {
    text-shadow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    height: 100vh;
    min-height: 600px;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 45%, 
            rgba(0, 225, 255, 0.1) 50%, 
            transparent 55%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar {
    background: rgba(30, 39, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 225, 255, 0.1);
    z-index: 1000;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

section:not(.hero-section) {
    background: var(--dark-bg);
}

/* Dark text against light backgrounds */
section.bg-light p,
section.bg-light h2,
section.bg-light h3,
section.bg-light h4
{
    color: var(--text-dark-color);
}

h2 {
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 225, 255, 0.1);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.2);
    border-color: var(--primary-color);
}

.card-body {
    padding: 2rem;
}

.card i {
    color: var(--primary-color);
}

/* Eventi Cards */
.event-card {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.event-details {
    color: #6c757d;
    margin-top: 1rem;
}

/* Form Styles */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 225, 255, 0.1);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.form-control::placeholder {
    color: var(--text-color);
    opacity: 40%;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 225, 255, 0.25);
    color: var(--text-color);
}

/* Octopusform fixes */
section:not(.hero-section, .bg-light) .form-container label[for="consent"]
{
    color: var(--text-color) !important;
}

.octopus-container [data-form="3bbedd4c-279a-11f0-98c0-f10f66a61c90"].inline-container {
    max-width: none !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-outline-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid rgba(0, 225, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--secondary-color) !important;
    border-top: 1px solid rgba(0, 225, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .event-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Matrix rain effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    section {
        padding: 60px 0;
    }
} 