.sponsorship {
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0, 159, 226, 0.97), rgba(46, 35, 129, 0.97));
    position: relative;
    overflow: hidden;
}

.sponsorship::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.sponsorship h2 {
    text-align: center;
    color: var(--background-color);
    margin-bottom: 3rem;
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out both;
}

.sponsorship h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    animation: widthGrow 1s ease-out 0.5s both;
}

.package-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
    margin: 2rem auto;
    padding: 1rem;
    max-width: 1400px;
    perspective: 1000px;
}

.package {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    animation: fadeIn 0.5s ease-out both;
    animation-delay: calc(var(--animation-order, 0) * 100ms);
    transform-style: preserve-3d;
}

.package-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.package-footer {
    margin-top: auto;
    padding-top: 20px;
    position: relative;
    z-index: 2;
}

.package h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin: 1.5rem 0;
    opacity: 0.9;
}

.package ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.package ul li {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.4;
}

.package ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.learn-more {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.learn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.learn-more:hover::before {
    opacity: 0.1;
}

/* Bronze Package */
.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.2));
    border: 1px solid rgba(205, 127, 50, 0.3);
    color: #CD7F32;
}

.bronze::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(205, 127, 50, 0) 0%,
        rgba(205, 127, 50, 0.1) 50%,
        rgba(205, 127, 50, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bronze:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(205, 127, 50, 0.2),
        0 0 20px rgba(205, 127, 50, 0.2);
}

.bronze:hover::after {
    opacity: 1;
}

/* Silver Package */
.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.2));
    border: 1px solid rgba(192, 192, 192, 0.3);
    color: #C0C0C0;
}

.silver::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(192, 192, 192, 0) 0%,
        rgba(192, 192, 192, 0.1) 50%,
        rgba(192, 192, 192, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.silver:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(192, 192, 192, 0.2),
        0 0 20px rgba(192, 192, 192, 0.2);
}

.silver:hover::after {
    opacity: 1;
}

/* Gold Package */
.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0) 0%,
        rgba(255, 215, 0, 0.1) 50%,
        rgba(255, 215, 0, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gold:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.gold:hover::after {
    opacity: 1;
}

/* Platinum Package */
.platinum {
    background: linear-gradient(135deg, rgba(229, 228, 226, 0.1), rgba(229, 228, 226, 0.2));
    border: 1px solid rgba(229, 228, 226, 0.3);
    color: #E5E4E2;
}

.platinum::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(229, 228, 226, 0) 0%,
        rgba(229, 228, 226, 0.1) 50%,
        rgba(229, 228, 226, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platinum:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(229, 228, 226, 0.2),
        0 0 20px rgba(229, 228, 226, 0.2);
}

.platinum:hover::after {
    opacity: 1;
}

/* Diamond Package */
.diamond {
    background: linear-gradient(135deg, rgba(185, 242, 255, 0.1), rgba(185, 242, 255, 0.2));
    border: 1px solid rgba(185, 242, 255, 0.3);
    color: #B9F2FF;
}

.diamond::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(185, 242, 255, 0) 0%,
        rgba(185, 242, 255, 0.1) 50%,
        rgba(185, 242, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diamond:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(185, 242, 255, 0.2),
        0 0 20px rgba(185, 242, 255, 0.2);
}

.diamond:hover::after {
    opacity: 1;
}

/* Elite Package */
.elite {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 191, 255, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    position: relative;
    overflow: hidden;
}

.elite::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.2),
        rgba(0, 191, 255, 0.2),
        transparent
    );
    transition: transform 0.6s ease;
}

.elite:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.2),
        0 0 20px rgba(0, 191, 255, 0.2);
}

.elite:hover::before {
    transform: translateX(50%);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes widthGrow {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@media (max-width: 1200px) {
    .package-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .package-container {
        grid-template-columns: 1fr;
    }
    
    .package {
        min-height: auto;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(46, 35, 129, 0.95), rgba(0, 159, 226, 0.95));
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: var(--background-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10000;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    margin-bottom: 2rem;
    position: relative;
}

.modal-body {
    position: relative;
}

.modal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 200px;
    z-index: 10001;
}

.close-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.close-button:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .modal-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .close-button {
        width: 90%;
        max-width: 280px;
        margin: 0 auto;
        padding: 1rem 2rem;
    }
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Package Highlighting */
.package.bronze h3 { color: #CD7F32; }
.package.silver h3 { color: #808080; }
.package.gold h3 { color: #FFB700; }
.package.platinum h3 { color: #666666; }
.package.diamond h3 { color: #00A2E8; }
.package.elite h3 { color: #FF8C00; }

/* Responsive Design */
@media (max-width: 992px) {
    .package-container {
        gap: 2rem;
    }
    
    .package {
        padding: 2rem;
    }
}

@media (min-width: 1200px) {
    .package-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sponsorship {
        padding: 3rem 1rem;
    }
    
    .package-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .package:hover {
        transform: translateY(-5px);
    }
    
    .package {
        min-height: 450px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .package {
        transition: none;
    }
    
    .package:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .package {
        border: 2px solid var(--primary-color);
    }
    
    .package ul li::before {
        color: var(--primary-color);
    }
}

/* Modal Styles */
.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-section ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.modal-price {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Package-specific modal styles */
.modal-content.bronze, 
.modal-content.silver, 
.modal-content.gold, 
.modal-content.platinum, 
.modal-content.diamond, 
.modal-content.elite {
    position: relative;
    z-index: 9997;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-section h3 {
        font-size: 1.25rem;
    }
    
    .modal-price {
        font-size: 1.5rem;
    }
}

.modal-description {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-description p {
    margin-bottom: 1rem;
}

.modal-description .disclaimer {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}
