/* Sponsors Page Specific Styles */
.sponsors-page {
    background: linear-gradient(135deg, #2a1f1a 0%, #3d2f1f 25%, #2a1f1a 50%, #1a1510 75%, #2a1f1a 100%);
}

/* Sponsor Header Section */
.sponsor-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(139, 0, 0, 0.1));
    border: 3px solid var(--pirate-gold);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.sponsor-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.treasure-chest-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    animation: sparkle 2s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

.sponsor-header h2 {
    font-size: 2rem;
    color: var(--pirate-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 8px;
    font-weight: bold;
}

.sponsor-intro {
    font-size: 1.4rem;
    color: var(--ink-black);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}



.main-sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.main-sponsor-logo {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-sponsor-logo:hover {
    transform: scale(1.05);
}

.main-sponsor-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
}

.main-sponsor-info {
    text-align: center;
    max-width: 450px;
}

.main-sponsor-info h4 {
    font-size: 2.2rem;
    color: var(--pirate-red);
    margin-bottom: 6px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.main-sponsor-info p {
    font-size: 1.3rem;
    color: var(--ink-black);
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}

.main-sponsor-description {
    font-size: 1.1rem !important;
    color: var(--ink-black);
    font-style: normal;
    opacity: 1;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
    font-weight: 500;
}



/* Special Thanks Section */
.special-thanks {
    margin-top: 100px;
    margin-bottom: 60px;
}

.special-thanks h2 {
    font-size: 3.5rem;
    color: var(--pirate-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    position: relative;
}

.special-thanks h2::before {
    content: '⚓';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--pirate-red);
}

.special-thanks h2::after {
    content: '⚓';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--pirate-red);
}

/* Sponsors Grid */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.sponsor-card {
    background: linear-gradient(145deg, rgba(244, 241, 232, 0.95), rgba(232, 220, 192, 0.95));
    border: 3px solid var(--pirate-gold);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sponsor-card:hover::before {
    transform: translateX(100%);
}

.sponsor-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(212, 175, 55, 0.4);
    border-color: var(--pirate-red);
}

.sponsor-logo {
    width: 400px;
    height: 250px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sponsor-card:hover .sponsor-logo {
    transform: scale(1.05);
}

.sponsor-card:hover .sponsor-logo img {
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.6));
}

.sponsor-logo img {
    width: 380px;
    height: 230px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
}

.sponsor-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.sponsor-card h3 {
    font-size: 2.2rem;
    color: var(--pirate-red);
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.sponsor-card p {
    font-size: 1.4rem;
    color: var(--ink-black);
    line-height: 1.5;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.sponsor-description {
    margin-top: auto;
    padding-top: 20px;
}

.sponsor-description p {
    font-size: 1.3rem;
    color: var(--ink-black);
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid var(--pirate-gold);
}

/* Special styling for Code Makes It Go sponsor */
.sponsor-card:nth-child(2) .sponsor-logo {
    width: 400px;
    height: 250px;
    background: transparent;
    border: none;
}

.sponsor-card:nth-child(2) .sponsor-logo img {
    width: 380px;
    height: 230px;
    object-fit: contain;
}

/* Become a Sponsor Section */
.become-sponsor {
    text-align: center;
    padding: 40px;
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.1), rgba(212, 175, 55, 0.1));
    border: 3px solid var(--pirate-gold);
    border-radius: 20px;
    margin: 30px 20px;
    position: relative;
    overflow: hidden;
}

.become-sponsor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.become-sponsor h3 {
    font-size: 2.2rem;
    color: var(--pirate-gold);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.become-sponsor p {
    font-size: 1.4rem;
    color: var(--parchment);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-cta {
    display: inline-block;
    background: linear-gradient(145deg, var(--pirate-gold), #b8941f);
    color: var(--ink-black);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    border: 3px solid var(--pirate-red);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

.sponsor-cta:hover::before {
    left: 100%;
}

.sponsor-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #b8941f, var(--pirate-gold));
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--pirate-gold), #b8941f);
    border: 2px solid var(--pirate-red);
    border-radius: 50%;
    color: var(--ink-black);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #b8941f, var(--pirate-gold));
}

/* Responsive Design */
@media (max-width: 768px) {
    .special-thanks {
        margin-top: 60px;
        margin-bottom: 40px;
    }
    
    .special-thanks h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
    }
    
    .special-thanks h2::before,
    .special-thanks h2::after {
        font-size: 1.5rem;
        left: -30px;
        right: -30px;
    }
    
    .sponsor-header h2 {
        font-size: 2rem;
    }
    
    .sponsor-intro {
        font-size: 1.2rem;
    }
    
    .sponsor-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .main-sponsor-card {
        gap: 10px;
    }
    
    .main-sponsor-logo {
        width: 120px;
        height: 120px;
    }
    
    .main-sponsor-logo img {
        width: 120px;
        height: 120px;
    }
    
    .main-sponsor-info h4 {
        font-size: 1.8rem;
    }
    
    .main-sponsor-info p {
        font-size: 1.2rem;
    }
    
    .main-sponsor-description {
        font-size: 0.95rem !important;
    }
    
    .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }
    
    .sponsor-card {
        padding: 30px;
        min-height: 550px;
    }
    
    .sponsor-logo {
        width: 320px;
        height: 200px;
    }
    
    .sponsor-logo img {
        width: 300px;
        height: 180px;
    }
    
    .sponsor-card h3 {
        font-size: 1.8rem;
    }
    
    .sponsor-card p {
        font-size: 1.2rem;
    }
    
    .sponsor-description p {
        font-size: 1.2rem;
        padding: 12px;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.8);
    }
    
    .become-sponsor {
        padding: 30px;
        margin: 20px 10px;
    }
    
    .become-sponsor h3 {
        font-size: 1.8rem;
    }
    
    .become-sponsor p {
        font-size: 1.2rem;
    }
    
    .sponsor-cta {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    /* Special styling for Code Makes It Go sponsor on mobile */
    .sponsor-card:nth-child(2) .sponsor-logo {
        width: 320px;
        height: 200px;
    }
    
    .sponsor-card:nth-child(2) .sponsor-logo img {
        width: 300px;
        height: 180px;
    }
    
    .treasure-chest-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .special-thanks {
        margin-top: 50px;
        margin-bottom: 35px;
    }
    
    .special-thanks h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .special-thanks h2::before,
    .special-thanks h2::after {
        font-size: 1.2rem;
        left: -25px;
        right: -25px;
    }
    
    .sponsor-header {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .sponsor-header h2 {
        font-size: 1.8rem;
    }
    
    .sponsor-intro {
        font-size: 1.1rem;
    }
    
    .sponsor-card {
        padding: 25px;
        min-height: 500px;
    }
    
    .sponsor-logo {
        width: 280px;
        height: 170px;
    }
    
    .sponsor-logo img {
        width: 260px;
        height: 150px;
    }
    
    .sponsor-card h3 {
        font-size: 1.6rem;
    }
    
    .sponsor-card p {
        font-size: 1.1rem;
    }
    
    .sponsor-description p {
        font-size: 1.1rem;
        padding: 10px;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.8);
    }
    
    .become-sponsor {
        padding: 25px;
    }
    
    .become-sponsor h3 {
        font-size: 1.6rem;
    }
    
    .become-sponsor p {
        font-size: 1.1rem;
    }
    
    .sponsor-cta {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    /* Special styling for Code Makes It Go sponsor on small mobile */
    .sponsor-card:nth-child(2) .sponsor-logo {
        width: 280px;
        height: 170px;
    }
    
    .sponsor-card:nth-child(2) .sponsor-logo img {
        width: 260px;
        height: 150px;
    }
}
