/* Hackathon Rules Section Styles */
.rules-container {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, rgba(14, 165, 233, 0.05), transparent);
    position: relative;
    overflow: hidden;
}

.rules-container::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.rule-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.rule-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(14, 165, 233, 0.2);
}

.rule-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(14, 165, 233, 0.05);
    line-height: 1;
    transition: all 0.4s ease;
}

.rule-card:hover .rule-number {
    color: rgba(14, 165, 233, 0.15);
    transform: scale(1.2);
}

.rule-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
}

.rule-icon-wrapper i {
    font-size: 1.5rem;
    color: #fff;
}

.rule-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.rule-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.rule-list li strong {
    color: #e2e8f0;
}

/* Special AI Rule Highlight */
.rule-card.ai-highlight {
    border: 2px solid rgba(168, 85, 247, 0.3); /* Purple tint for AI */
}

.rule-card.ai-highlight:hover {
    border-color: #a855f7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.2);
}

.rule-card.ai-highlight .rule-icon-wrapper {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* Warning Rule */
.rule-card.warning-highlight {
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.rule-card.warning-highlight:hover {
    border-color: #ef4444;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Golden Rule / Most Important */
.golden-rule-section {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 32px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    position: relative;
}

.golden-rule-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.golden-rule-text {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto;
}

.rule-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.badge-required { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.badge-pro-tip { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.badge-info { background: rgba(14, 165, 233, 0.2); color: #0ea5e9; }

@media (max-width: 768px) {
    .section-title-glow h2 {
        font-size: 2.5rem;
    }
    
    .rule-card {
        padding: 1.5rem;
    }
}

/* Floating Teams Card */
.teams-card {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: rgba(15, 23, 42, 0.6) !important;
}

.teams-container-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-team {
    position: absolute;
    white-space: nowrap;
    font-weight: 700;
    color: var(--primary-color);
    pointer-events: none;
    animation: floatAround var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
    transition: opacity 0.3s ease;
}

@keyframes floatAround {
    0% {
        transform: translate(var(--startX), var(--startY));
    }
    25% {
        transform: translate(var(--midX1), var(--midY1));
    }
    50% {
        transform: translate(var(--endX), var(--endY));
    }
    75% {
        transform: translate(var(--midX2), var(--midY2));
    }
    100% {
        transform: translate(var(--startX), var(--startY));
    }
}

/* Countdown Card */
.countdown-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.2)) !important;
}

.countdown-timer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

@media (max-width: 576px) {
    .countdown-value {
        font-size: 1.8rem;
    }
    .countdown-timer {
        gap: 0.5rem;
    }
}
